|
MGIS 3.1.0
|
structure in charge of containing the data required for a behaviour integration. More...
#include </home/runner/work/MFrontGenericInterfaceSupport/MFrontGenericInterfaceSupport/include/MGIS/Behaviour/BehaviourData.hxx>
Public Member Functions | |
| BehaviourData (const Behaviour &) | |
| constructor from a behaviour | |
| BehaviourData (BehaviourData &&) | |
| move constructor | |
| BehaviourData (const BehaviourData &) | |
| copy constructor | |
| BehaviourData & | operator= (BehaviourData &&) |
| move assignement | |
| BehaviourData & | operator= (const BehaviourData &) |
| copy assignement | |
Public Attributes | |
| char * | error_message |
| a pointer to a buffer used to store error message | |
| real | dt = real{} |
| time increment | |
| std::vector< real > | K |
| the stiffness matrix. | |
| real | rdt = 1 |
| proposed time step increment increase factor | |
| real | speed_of_sound = 0 |
| speed of sound (only computed if requested) | |
| State | s0 |
| state at the beginning of the time step | |
| State | s1 |
| state at the end of the time step | |
| std::array< char, 512 > | error_message_buffer = {} |
| default buffer of the error messages (see error_message) | |
structure in charge of containing the data required for a behaviour integration.
| mgis::behaviour::BehaviourData::BehaviourData | ( | const Behaviour & | ) |
constructor from a behaviour
| [in] | b | behaviour |
| char* mgis::behaviour::BehaviourData::error_message |
a pointer to a buffer used to store error message
By default, this is initialised to the buffer error_message_buffer of this object. The copies of an object using its own buffer use their own buffer.
The user may use its own buffer by setting this pointer appropriately or set it to the null pointer. If not null, the pointer must point to a buffer which is at least 512 characters wide (longer error message are truncated). The user must ensure thread-safety (i.e. each thread shall have its own buffer).
| std::vector<real> mgis::behaviour::BehaviourData::K |
the stiffness matrix.
On input, the first element of K (K[0]) must contain the type of type of computation to be performed.
Let Ke be equal to:
If Ke is negative, only the prediction operator is computed and no behaviour integration is performed.
Ke has the following meaning:
| real mgis::behaviour::BehaviourData::rdt = 1 |
proposed time step increment increase factor
The calling solver shall set a suitable value on input depending on its policy before each call to integrate.
For instance, if the solver want to limit the increase to 20% at most, it shall set it to 1.2. But setting it to 1, the solver won't allow the behaviour to request an increase of the time step.