60 DEFORMATION_GRADIENT_ONLY = 2,
61 STRAIN_AND_STRESS = 3,
62 DEFORMATION_GRADIENT_AND_STRESS = 4
78 const Vector& rInitialStressVector,
79 const Matrix& rInitialDeformationGradientMatrix);
83 const InitialImposingType InitialImposition = InitialImposingType::STRAIN_ONLY);
87 const Vector& rInitialStressVector);
104 return mReferenceCounter;
112 void SetInitialStrainVector(
const Vector& rInitialStrainVector);
118 void SetInitialStressVector(
const Vector& rInitialStressVector);
124 void SetInitialDeformationGradientMatrix(
const Matrix& rInitialDeformationGradientMatrix);
129 const Vector& GetInitialStrainVector()
const;
134 const Vector& GetInitialStressVector()
const;
139 const Matrix& GetInitialDeformationGradientMatrix()
const;
147 virtual std::string
Info()
const
149 std::stringstream buffer;
150 buffer <<
"InitialState" ;
156 virtual void PrintInfo(std::ostream& rOStream)
const {rOStream <<
"InitialState";}
167 Vector mInitialStrainVector;
168 Vector mInitialStressVector;
169 Matrix mInitialDeformationGradientMatrix;
174 mutable std::atomic<int> mReferenceCounter{0};
177 x->mReferenceCounter.fetch_add(1, std::memory_order_relaxed);
182 if (
x->mReferenceCounter.fetch_sub(1, std::memory_order_release) == 1) {
183 std::atomic_thread_fence(std::memory_order_acquire);
194 rSerializer.
save(
"InitialStrainVector",mInitialStrainVector);
195 rSerializer.
save(
"InitialStressVector",mInitialStressVector);
196 rSerializer.
save(
"InitialDeformationGradientMatrix",mInitialDeformationGradientMatrix);
201 rSerializer.
load(
"InitialStrainVector",mInitialStrainVector);
202 rSerializer.
load(
"InitialStressVector",mInitialStressVector);
203 rSerializer.
load(
"InitialDeformationGradientMatrix",mInitialDeformationGradientMatrix);
Define the initial state of the material in terms of initial stress/strain/F.
Definition: initial_state.h:41
friend void intrusive_ptr_release(const InitialState *x)
Definition: initial_state.h:180
friend void intrusive_ptr_add_ref(const InitialState *x)
Definition: initial_state.h:175
virtual std::string Info() const
Turn back information as a string.
Definition: initial_state.h:147
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: initial_state.h:159
virtual ~InitialState()
Destructor.
Definition: initial_state.h:93
InitialImposingType
Definition: initial_state.h:57
InitialState()
Default constructor.
Definition: initial_state.h:70
std::size_t SizeType
Definition: initial_state.h:47
KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION(InitialState)
Pointer definition of NodeSearchUtility.
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: initial_state.h:156
unsigned int use_count() const noexcept
Definition: initial_state.h:102
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
void load(std::string const &rTag, TDataType &rObject)
Definition: serializer.h:207
void save(std::string const &rTag, std::array< TDataType, TDataSize > const &rObject)
Definition: serializer.h:545
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
def load(f)
Definition: ode_solve.py:307
tuple const
Definition: ode_solve.py:403
x
Definition: sensitivityMatrix.py:49