hysteresis_model
ModelOutput.h
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: bouc_wen_model_output.h
5  *
6  * Description:
7  *
8  * Version: 1.0
9  * Created: 23/10/10 11:11:09
10  * Revision: none
11  * Compiler: gcc
12  *
13  * Author: Ajish Babu (), ajish.babu@dfki.de
14  * Company: DFKI
15  *
16  * =====================================================================================
17  */
18 
19 #include <math.h>
20 #include <iostream>
21 #include <fstream>
22 #include <stdio.h>
23 #include <string.h>
24 #include <vector>
25 #include <sstream>
26 
28 
29 #ifndef _BOUC_WEN_MODEL_OUTPUT_H
30 #define _BOUC_WEN_MODEL_OUTPUT_H
31 
33 {
34  private:
36  double tmax; // Total Simulation period
37 
38  double mesIntpDeflection, mesIntpDeflection_dot, mesIntpTorque, timeFactor;
39  double prevDeflection, prevTime, modelTorque;
40 
41  int index;
42 
43  FILE *fileLog, *fileMeaData;
44  std::vector<double> mesTime, mesTorque, mesDeflection, mesDeflection_dot;
45 
46  void readMeaInput();
47 
48  public:
49  bouc_wen_model_output(const std::string &strLogFile, const std::string &strDataFile);
51  void setParameters(double *p);
52  void output();
53 };
54 #endif
Definition: ModelOutput.h:32
void setParameters(double *p)
Definition: ModelOutput.cpp:68
~bouc_wen_model_output()
Definition: ModelOutput.cpp:40
Definition: BoucWenHysteresisModel.hpp:29
void output()
Definition: ModelOutput.cpp:73
bouc_wen_model_output(const std::string &strLogFile, const std::string &strDataFile)
Definition: ModelOutput.cpp:22