39 #include "../sm/Materials/structuralmaterial.h" 44 MaterialStatus(n, d, g), jump(3), traction(3), tempTraction(3), tempJump(3), firstPKTraction(3), tempFirstPKTraction(3), F(3, 3), tempF(3, 3),
60 fprintf(file,
" jump ");
61 for (
auto &val : this->
jump ) {
62 fprintf(file,
" %.4e", val );
65 fprintf(file,
"\n traction ");
67 fprintf(file,
" %.4e", val );
94 if ( this->
giveJump().giveSize() == 0 ) {
125 if ( ( iores = strainVector.storeYourself(stream) ) !=
CIO_OK ) {
129 if ( ( iores = stressVector.storeYourself(stream) ) !=
CIO_OK ) {
147 if ( ( iores = strainVector.restoreYourself(stream) ) !=
CIO_OK ) {
151 if ( ( iores = stressVector.restoreYourself(stream) ) !=
CIO_OK ) {
FloatArray tempJump
Temporary jump (discontinuity)
virtual void updateYourself(TimeStep *)
Update equilibrium history variables according to temp-variables.
FloatMatrix tempF
Temporary deformation gradient in reduced form (to find balanced state)
FloatArray traction
Equilibrated (engineering) traction vector.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
const FloatArray & giveTempTraction() const
Returns the const pointer to receiver's temporary traction vector.
virtual void copyStateVariables(const MaterialStatus &iStatus)
Functions for MaterialStatusMapperInterface.
const FloatArray & giveFirstPKTraction() const
Returns the const pointer to receiver's first Piola-Kirchhoff traction vector.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
const FloatMatrix & giveTempF() const
Returns the const pointer to receiver's temporary deformation gradient vector.
FloatMatrix F
Equilibrated deformation gradient in reduced form.
FloatArray tempFirstPKTraction
Temporary first Piola-Kirchhoff traction vector (to find balanced state)
This class implements a structural interface material status information.
const FloatArray & giveJump() const
Returns the const pointer to receiver's jump.
FloatArray jump
Equilibrated jump (discontinuity)
Abstract base class representing a material status information.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
const FloatArray & giveTraction() const
Returns the const pointer to receiver's traction vector.
virtual ~StructuralInterfaceMaterialStatus()
Destructor.
FloatArray firstPKTraction
Equilibrated first Piola-Kirchhoff traction vector T.
StructuralInterfaceMaterialStatus(int n, Domain *d, GaussPoint *g)
Constructor. Creates new StructuralInterfaceMaterialStatus with number n, belonging to domain d and I...
virtual void addStateVariables(const MaterialStatus &iStatus)
FloatArray mNormalDir
Interface normal direction.
void zero()
Zeroes all coefficients of receiver.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
const FloatArray & giveTempFirstPKTraction() const
Returns the const pointer to receiver's temporary first Piola-Kirchhoff traction vector.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
FloatArray tempTraction
Temporary (engineering) traction vector.
Domain * giveDomain() const
void beUnitMatrix()
Sets receiver to unity matrix.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
const FloatArray & giveTempJump() const
Returns the const pointer to receiver's temporary jump.
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
const FloatMatrix & giveF() const
Returns the const pointer to receiver's deformation gradient vector.
const FloatArray & giveNormal() const
Returns const reference to normal vector.
Class representing integration point in finite element program.
Class representing solution step.
void resize(int s)
Resizes receiver towards requested size.