29#ifndef MATERIALEXAMPLE_H
30#define MATERIALEXAMPLE_H
48 double current_back_stress = 0.;
49 double current_plastic_strain = 0.;
50 double trial_back_stress = 0.;
51 double trial_plastic_strain = 0.;
62 int initialize(
const shared_ptr<DomainBase>&)
override;
72 void print()
override;
A MaterialExample material class.
Definition: MaterialExample.h:47
int clear_status() override
Operations are required to achieve the following objective.
Definition: MaterialExample.cpp:178
void print() override
Definition: MaterialExample.cpp:219
int commit_status() override
Operations are required to achieve the following objective.
Definition: MaterialExample.cpp:194
int update_trial_status(const vec &) override
There are two states we are managing at any time point. The current state is the converged state from...
Definition: MaterialExample.cpp:143
int reset_status() override
Operations are required to achieve the following objective.
Definition: MaterialExample.cpp:210
int initialize(const shared_ptr< DomainBase > &) override
Unless the target material model involves other material models to compute responses,...
Definition: MaterialExample.cpp:107
MaterialExample(unsigned=0, double=2E5, double=400., double=.05, double=0., double=0.)
The constructor of material model depends on the specific model to be implemented....
Definition: MaterialExample.cpp:86
unique_ptr< Material > get_copy() override
The get_copy() method should always be implemented with make_unique. In case the model defines other ...
Definition: MaterialExample.cpp:125
A Material abstract base class.
Definition: Material.h:111
SUANPAN_EXPORT void new_materialexample(unique_ptr< Material > &, istringstream &)
Definition: MaterialExample.cpp:21
It is recommended to store data, especially constant data, in a simple structure. The motivation is t...
Definition: MaterialExample.h:39
const double hardening_ratio
Definition: MaterialExample.h:42
const double elastic_modulus
Definition: MaterialExample.h:40
const double yield_stress
Definition: MaterialExample.h:41
const double plastic_modulus
Definition: MaterialExample.h:44
const double beta
Definition: MaterialExample.h:43
#define SUANPAN_EXPORT
Definition: suanPan.h:154