Skip to content

MFront internal state variable initialization from project file

Before this option the internal state variables were initialized through dummy "material properties". This is now avoided. The syntax in the project file is

<constitutive_relation>
    ...
    <material_properties>
    ...
    </material_properties>
    <initial_values>
        <state_variable name="PreConsolidationPressure" parameter="InitialPreConsolidationPressure"/>
        <state_variable name="Porosity" parameter="InitialPorosity"/>
    </initial_values>
</constitutive_relation>

All processes but LIE (which does not handle initial values at all) were updated.

Known drawbacks/unimplemented things:

  • In the evaluation of the parameters the time is set to zero. Might be incorrect in restart. Needs extensive modification of whole call-chain from the very top of the time loop. Another MR?
  • Evaluation and setting of the internal state variable properties is not very efficient due to repeated searches. Can be improved.
  • Some code duplication happened in the CreateMFrontGeneric.cpp and I try to add few more commits to reduce it, but it will change unrelated code parts. Another MR?
  1. Feature description was added to the changelog
  2. Tests covering your feature were added? (existing test updated, no changes to the reference files).
  3. Any new feature or behavior change was documented?
Edited by Dmitry Yu. Naumov

Merge request reports