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 
)
157 {
158  //helpers::writeToFile("xyz.restart","abc");
159 
160  Matrix3D stressGoal;
161  stressGoal.XX = 0.0;
162  stressGoal.YY = 0.0;
163  stressGoal.ZZ = 0.0;
164  stressGoal.XY = -2.0;
165 
166  Matrix3D strainRate;
167  strainRate.XY = 0.0;
168  Matrix3D gainFactor;
169  gainFactor.XY = 0.0001;
170  gainFactor.XX = 0.0001;
171  gainFactor.YY = 0.0001;
172  gainFactor.ZZ = 0.0001;
173  bool isStrainRateControlled = true;
174 
175  //instantiate the class
176  StressStrainControl dpm(stressGoal, strainRate, gainFactor, isStrainRateControlled);
177 
178  //set name
179  dpm.setName("StressStrainControlBoundarySelfTest");
180  //set output and time stepping properties
181  dpm.setTimeMax(0.1);
182  dpm.eneFile.setSaveCount(1000);
183  //dpm.dataFile.setFileType(FileType::NO_FILE);
184  //dpm.restartFile.setFileType(FileType::ONE_FILE);
185  //dpm.fStatFile.setFileType(FileType::NO_FILE);
186  dpm.eneFile.setFileType(FileType::ONE_FILE);
187  //solve
188  dpm.solve();
189  //dpm.writeRestartFile();
190 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
Implementation of a 3D matrix.
Definition: Matrix.h:38
Mdouble XY
Definition: Matrix.h:43
Mdouble YY
Definition: Matrix.h:43
Mdouble ZZ
Definition: Matrix.h:43
Mdouble XX
all nine matrix elements
Definition: Matrix.h:43
[REV_ISO:headers]
Definition: REVIsotropicCompressionDemo.cpp:40

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