OOFEM 3.0
Loading...
Searching...
No Matches
oofem::StructuralPythonMaterialStatus Class Reference

#include <structuralpythonmaterial.h>

Inheritance diagram for oofem::StructuralPythonMaterialStatus:
Collaboration diagram for oofem::StructuralPythonMaterialStatus:

Public Member Functions

 StructuralPythonMaterialStatus (GaussPoint *gp)
 Constructor.
void initTempStatus () override
void updateYourself (TimeStep *tStep) override
void reinitTempStateDictionary ()
bp::object giveStateDictionary ()
bp::object giveTempStateDictionary ()
const char * giveClassName () const override
Public Member Functions inherited from oofem::StructuralMaterialStatus
 StructuralMaterialStatus (GaussPoint *g)
 Constructor. Creates new StructuralMaterialStatus with IntegrationPoint g.
void printOutputAt (FILE *file, TimeStep *tStep) const override
 Print receiver's output to given stream.
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
const FloatArraygiveStrainVector () const
 Returns the const pointer to receiver's strain vector.
const FloatArraygiveStressVector () const
 Returns the const pointer to receiver's stress vector.
const FloatArraygivePVector () const
 Returns the const pointer to receiver's first Piola-Kirchhoff stress vector.
const FloatArraygiveCVector () const
 Returns the const pointer to receiver's Cauchy stress vector.
const FloatArraygiveFVector () const
 Returns the const pointer to receiver's deformation gradient vector.
const FloatArraygiveTempStrainVector () const
 Returns the const pointer to receiver's temporary strain vector.
const FloatArraygiveTempStressVector () const
 Returns the const pointer to receiver's temporary stress vector.
const FloatArraygiveTempPVector () const
 Returns the const pointer to receiver's temporary first Piola-Kirchhoff stress vector.
const FloatArraygiveTempCVector () const
 Returns the const pointer to receiver's temporary Cauchy stress vector.
const FloatArraygiveTempFVector () const
 Returns the const pointer to receiver's temporary deformation gradient vector.
void letStrainVectorBe (const FloatArray &v)
 Assigns strain vector to given vector v.
void letStressVectorBe (const FloatArray &v)
 Assigns stressVector to given vector v.
void letPVectorBe (const FloatArray &v)
 Assigns PVector to given vector v.
void letCVectorBe (const FloatArray &v)
 Assigns CVector to given vector v.
void letFVectorBe (const FloatArray &v)
 Assigns FVector to given vector v.
void letTempStressVectorBe (const FloatArray &v)
 Assigns tempStressVector to given vector v.
void letTempStrainVectorBe (const FloatArray &v)
 Assigns tempStrainVector to given vector v.
void letTempPVectorBe (const FloatArray &v)
 Assigns tempPVector to given vector v.
void letTempCVectorBe (const FloatArray &v)
 Assigns tempPVector to given vector v.
void letTempFVectorBe (const FloatArray &v)
 Assigns tempFVector to given vector v.
void copyStateVariables (const MaterialStatus &iStatus) override
 Functions for MaterialStatusMapperInterface.
void addStateVariables (const MaterialStatus &iStatus) override
Public Member Functions inherited from oofem::MaterialStatus
 MaterialStatus (GaussPoint *g)
virtual bool giveMaterialProperty (int propID, double &value)
virtual void setMaterialProperty (int propID, double value)
Public Member Functions inherited from oofem::IntegrationPointStatus
 IntegrationPointStatus (GaussPoint *g)
virtual ~IntegrationPointStatus ()=default
 Destructor.
virtual void setStatusVariable (int varID, double value)
virtual InterfacegiveInterface (InterfaceType t)
Public Member Functions inherited from oofem::MaterialStatusMapperInterface
 MaterialStatusMapperInterface ()
virtual ~MaterialStatusMapperInterface ()
virtual int MSMI_map (const GaussPoint &iGP, const Domain &iOldDom, Set &sourceSet, const TimeStep &iTStep, MaterialStatus &oStatus)
virtual int MSMI_map_cz (const GaussPoint &iGP, const Domain &iOldDom, Set &sourceSet, const TimeStep &iTStep, MaterialStatus &oStatus)
virtual int MSMI_update (const GaussPoint &iGP, const TimeStep &iTStep)
virtual int MSMI_finish (const TimeStep &iTStep)

Protected Attributes

bp::dict stateDict
 Internal state variables.
bp::dict tempStateDict
Protected Attributes inherited from oofem::StructuralMaterialStatus
FloatArray strainVector
 Equilibrated strain vector in reduced form.
FloatArray stressVector
 Equilibrated stress vector in reduced form.
FloatArray tempStressVector
 Temporary stress vector in reduced form (increments are used mainly in nonlinear analysis).
FloatArray tempStrainVector
 Temporary strain vector in reduced form (to find balanced state).
FloatArray PVector
 Equilibrated first Piola-Kirchhoff stress vector.
FloatArray tempPVector
 Temporary first Piola-Kirchhoff stress vector (to find balanced state).
FloatArray CVector
 Equilibrated Cauchy stress vector.
FloatArray tempCVector
 Temporary Cauchy stress vector (to find balanced state).
FloatArray FVector
 Equilibrated deformation gradient in reduced form.
FloatArray tempFVector
 Temporary deformation gradient in reduced form (to find balanced state).
Protected Attributes inherited from oofem::IntegrationPointStatus
GaussPointgp
 Associated integration point.
Protected Attributes inherited from oofem::MaterialStatusMapperInterface
std::unique_ptr< MaterialMappingAlgorithmmpMaterialMapper

Detailed Description

Definition at line 116 of file structuralpythonmaterial.h.

Constructor & Destructor Documentation

◆ StructuralPythonMaterialStatus()

oofem::StructuralPythonMaterialStatus::StructuralPythonMaterialStatus ( GaussPoint * gp)

Member Function Documentation

◆ giveClassName()

const char * oofem::StructuralPythonMaterialStatus::giveClassName ( ) const
inlineoverridevirtual

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 133 of file structuralpythonmaterial.h.

◆ giveStateDictionary()

bp::object oofem::StructuralPythonMaterialStatus::giveStateDictionary ( )
inline

◆ giveTempStateDictionary()

bp::object oofem::StructuralPythonMaterialStatus::giveTempStateDictionary ( )
inline

◆ initTempStatus()

void oofem::StructuralPythonMaterialStatus::initTempStatus ( )
overridevirtual

Initializes the temporary internal variables, describing the current state according to previously reached equilibrium internal variables.

Todo
What to do here? Reset dicitonaries? I don't like this function at all.

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 228 of file structuralpythonmaterial.C.

◆ reinitTempStateDictionary()

void oofem::StructuralPythonMaterialStatus::reinitTempStateDictionary ( )

◆ updateYourself()

void oofem::StructuralPythonMaterialStatus::updateYourself ( TimeStep * )
overridevirtual

Update equilibrium history variables according to temp-variables. Invoked, after new equilibrium state has been reached.

Todo
Does this suffice? I'm not sure about what happens to references into the dictionary itself. I want a deep copy. / Mikael

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 241 of file structuralpythonmaterial.C.

References stateDict, and tempStateDict.

Member Data Documentation

◆ stateDict

bp::dict oofem::StructuralPythonMaterialStatus::stateDict
protected

Internal state variables.

Definition at line 120 of file structuralpythonmaterial.h.

Referenced by giveStateDictionary(), reinitTempStateDictionary(), and updateYourself().

◆ tempStateDict

bp::dict oofem::StructuralPythonMaterialStatus::tempStateDict
protected

The documentation for this class was generated from the following files:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011