StressStrainControlBoundarySelfTest.cpp File Reference

Classes

class  StressStrainControl
 [REV_ISO:headers] More...
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
137 {
138  //helpers::writeToFile("xyz.restart","abc");
139 
140  Matrix3D stressGoal;
141  stressGoal.XX = 0.0;
142  stressGoal.YY = 0.0;
143  stressGoal.ZZ = 0.0;
144  stressGoal.XY = -2.0;
145 
146  Matrix3D strainRate;
147  strainRate.XY = 0.0;
148  Matrix3D gainFactor;
149  gainFactor.XY = 0.0001;
150  gainFactor.XX = 0.0001;
151  gainFactor.YY = 0.0001;
152  gainFactor.ZZ = 0.0001;
153  bool isStrainRateControlled = true;
154 
155  //instantiate the class
156  StressStrainControl dpm(stressGoal, strainRate, gainFactor, isStrainRateControlled);
157 
158  //set name
159  dpm.setName("StressStrainControlBoundarySelfTest");
160  //set output and time stepping properties
161  dpm.setTimeMax(0.1);
162  dpm.eneFile.setSaveCount(1000);
163  //dpm.dataFile.setFileType(FileType::NO_FILE);
164  //dpm.restartFile.setFileType(FileType::ONE_FILE);
165  //dpm.fStatFile.setFileType(FileType::NO_FILE);
166  dpm.eneFile.setFileType(FileType::ONE_FILE);
167  //solve
168  dpm.solve();
169  //dpm.writeRestartFile();
170 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
Implementation of a 3D matrix.
Definition: Kernel/Math/Matrix.h:17
Mdouble XY
Definition: Kernel/Math/Matrix.h:22
Mdouble YY
Definition: Kernel/Math/Matrix.h:22
Mdouble ZZ
Definition: Kernel/Math/Matrix.h:22
Mdouble XX
all nine matrix elements
Definition: Kernel/Math/Matrix.h:22
[REV_ISO:headers]
Definition: REVIsotropicCompressionDemo.cpp:20

References DPMBase::eneFile, ONE_FILE, File::setFileType(), DPMBase::setName(), File::setSaveCount(), DPMBase::setTimeMax(), DPMBase::solve(), Matrix3D::XX, Matrix3D::XY, Matrix3D::YY, and Matrix3D::ZZ.