... | ... | @@ -15,7 +15,7 @@ |
|
|
| (...) | ... |
|
|
|
| `xAcceptRangeXY filterF(xmid-distance_c/2.,xmid+distance_c/2.,distance_h+distance_c-epsilon,distance_h+distance_c+epsilon); ` | create a filter to evaluate a mean displacement on a physical zone ( will be a parameter of `curveWriter` below). |
|
|
|
| `test_param.setRefLoadFactor(distance_c * specimen_thickness); ` | resize the reference load factor, here for 2D problem : pressure has to be converted to force. |
|
|
|
| `curveWriter effdep(filterF); ` | declaration of an output curve: the definition is given in the *main.h*. |
|
|
|
| `curveWriter effdep(filterF); ` | declaration of an output curve: the definition of `curveWriter` is given in the *main.h*. |
|
|
|
| `// test_param.setCurveWriter(effdep); ` | set the CurveWriter objet to the driver of the TLS problem. |
|
|
|
| ` xPointToDouble initial_crack=xOppositeP2Double(xSphere(mPoint(xmid , 0.,0.), ouverture_damage)); ` | declare an initial level set: it must be a pre-damaged zone or a fictivious zone, but the declaration is mandatory. |
|
|
|
| `test_param.setLsInDef(initial_crack); ` | set the initial level set to the driver of the TLS problem. |
|
... | ... | @@ -29,9 +29,9 @@ |
|
|
| ` double poisson = 0.; ` | - |
|
|
|
| ` readYoungPoisson("data/matrix.mat", young_modulus, poisson); ` | after declaration, the parameters are read in a file. For multiple material problem, this had to be done as such as their are materials. |
|
|
|
| ` xEvalConstant < double > eval_Yc(damageinfo.getDouble("Yc")); ` | declare a evaluator for the energy release rate of the material, initialized with the parameter given in the *damageinfo.dat* |
|
|
|
| ` xEvalYoungModulus eval_young(young_modulus); ` | the same for the Young modulus |
|
|
|
| ` xEvalYoungModulus eval_young(young_modulus); ` | the same for the Young modulus . The definition of the `xEvalYoungModulus ` is given in the `main.h`. |
|
|
|
| ` xEvalConstant < double > eval_poisson(poisson); ` | the same for the Poisson ratio |
|
|
|
| ` test_param.setCaractEval(eval_young,eval_poisson,eval_Yc); | set the evaluators to the driver of the TLS problem. |
|
|
|
| ` test_param.setCaractEval(eval_young,eval_poisson,eval_Yc); ` | set the evaluators to the driver of the TLS problem. |
|
|
|
| ` driver.init_test(); ` | initialize the TLS problem. |
|
|
|
| `driver.run_test(); ` | run the TLS problem. |
|
|
|
| `driver.end_test(); ` | end the TLS problem. |
|
... | ... | |