OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::PlasticMaterialStatus Class Reference

This class implements associated Material Status to PlasticMaterial. More...

#include <plasticmaterial.h>

+ Inheritance diagram for oofem::PlasticMaterialStatus:
+ Collaboration diagram for oofem::PlasticMaterialStatus:

Public Member Functions

 PlasticMaterialStatus (int n, Domain *d, GaussPoint *g, int statusSize)
 
virtual ~PlasticMaterialStatus ()
 
virtual void printOutputAt (FILE *file, TimeStep *tStep)
 Print receiver's output to given stream. More...
 
virtual void initTempStatus ()
 Initializes the temporary internal variables, describing the current state according to previously reached equilibrium internal variables. More...
 
virtual void updateYourself (TimeStep *tStep)
 Update equilibrium history variables according to temp-variables. More...
 
virtual contextIOResultType saveContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Stores receiver state to output stream. More...
 
virtual contextIOResultType restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Restores the receiver state previously written in stream. More...
 
const FloatArraygivePlasticStrainVector () const
 
const FloatArraygiveTempPlasticStrainVector () const
 
const FloatArraygiveStrainSpaceHardeningVars () const
 
const FloatArraygivetempStrainSpaceHardeningVarsVector () const
 
void letPlasticStrainVectorBe (FloatArray v)
 
void letTempPlasticStrainVectorBe (FloatArray v)
 
void letTempStrainSpaceHardeningVarsVectorBe (FloatArray v)
 
void letStrainSpaceHardeningVarsVectorBe (FloatArray v)
 
int giveStateFlag () const
 
int giveTempStateFlag () const
 
double givePlasticConsistencyPrameter () const
 
double giveTempPlasticConsistencyPrameter () const
 
void letTempPlasticConsistencyPrameterBe (double v)
 
void letTempStateFlagBe (int v)
 
virtual const char * giveClassName () const
 
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging. More...
 
virtual void copyStateVariables (const MaterialStatus &iStatus)
 Functions for MaterialStatusMapperInterface. More...
 
virtual void addStateVariables (const MaterialStatus &iStatus)
 
- Public Member Functions inherited from oofem::StructuralMaterialStatus
 StructuralMaterialStatus (int n, Domain *d, GaussPoint *g)
 Constructor. Creates new StructuralMaterialStatus with number n, belonging to domain d and IntegrationPoint g. More...
 
virtual ~StructuralMaterialStatus ()
 Destructor. More...
 
const FloatArraygiveStrainVector () const
 Returns the const pointer to receiver's strain vector. More...
 
const FloatArraygiveStressVector () const
 Returns the const pointer to receiver's stress vector. More...
 
const FloatArraygivePVector () const
 Returns the const pointer to receiver's first Piola-Kirchhoff stress vector. More...
 
const FloatArraygiveCVector () const
 Returns the const pointer to receiver's Cauchy stress vector. More...
 
const FloatArraygiveFVector () const
 Returns the const pointer to receiver's deformation gradient vector. More...
 
const FloatArraygiveTempStrainVector () const
 Returns the const pointer to receiver's temporary strain vector. More...
 
const FloatArraygiveTempStressVector () const
 Returns the const pointer to receiver's temporary stress vector. More...
 
const FloatArraygiveTempPVector () const
 Returns the const pointer to receiver's temporary first Piola-Kirchhoff stress vector. More...
 
const FloatArraygiveTempCVector () const
 Returns the const pointer to receiver's temporary Cauchy stress vector. More...
 
const FloatArraygiveTempFVector () const
 Returns the const pointer to receiver's temporary deformation gradient vector. More...
 
void letStrainVectorBe (const FloatArray &v)
 Assigns strain vector to given vector v. More...
 
void letStressVectorBe (const FloatArray &v)
 Assigns stressVector to given vector v. More...
 
void letPVectorBe (const FloatArray &v)
 Assigns PVector to given vector v. More...
 
void letCVectorBe (const FloatArray &v)
 Assigns CVector to given vector v. More...
 
void letFVectorBe (const FloatArray &v)
 Assigns FVector to given vector v. More...
 
void letTempStressVectorBe (const FloatArray &v)
 Assigns tempStressVector to given vector v. More...
 
void letTempStrainVectorBe (const FloatArray &v)
 Assigns tempStrainVector to given vector v. More...
 
void letTempPVectorBe (const FloatArray &v)
 Assigns tempPVector to given vector v. More...
 
void letTempCVectorBe (const FloatArray &v)
 Assigns tempPVector to given vector v. More...
 
void letTempFVectorBe (const FloatArray &v)
 Assigns tempFVector to given vector v. More...
 
- Public Member Functions inherited from oofem::MaterialStatus
 MaterialStatus (int n, Domain *d, GaussPoint *g)
 Constructor. More...
 
virtual ~MaterialStatus ()
 Destructor. More...
 
virtual bool giveMaterialProperty (int propID, double &value)
 Returns the value of material model property stored in receiving status. More...
 
virtual void setMaterialProperty (int propID, double value)
 Allows to set the value of material model property to be stored in receiving status. More...
 
virtual void setStatusVariable (int varID, double value)
 Allows to set the value of a specific variable, identified by varID. More...
 
virtual void restoreConsistency ()
 Restores consistency of the status, i.e., computes or corrects the values of certain status variables such that the state is admissible. More...
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
- Public Member Functions inherited from oofem::IntegrationPointStatus
 IntegrationPointStatus (int n, Domain *d, GaussPoint *g)
 Constructor. More...
 
virtual ~IntegrationPointStatus ()
 Destructor. More...
 
virtual const char * giveInputRecordName () const
 
- Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
 Regular constructor, creates component with given number and belonging to given domain. More...
 
virtual ~FEMComponent ()
 Virtual destructor. More...
 
DomaingiveDomain () const
 
virtual void setDomain (Domain *d)
 Sets associated Domain. More...
 
int giveNumber () const
 
void setNumber (int num)
 Sets number of receiver. More...
 
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
 Local renumbering support. More...
 
virtual void giveInputRecord (DynamicInputRecord &input)
 Setups the input record string of receiver. More...
 
virtual int checkConsistency ()
 Allows programmer to test some internal data, before computation begins. More...
 
virtual InterfacegiveInterface (InterfaceType t)
 Interface requesting service. More...
 
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros). More...
 
- 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)
 Maps all internal state variables from the old domain to the given gp status. More...
 
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)
 Updates the internal state variables from previously mapped values. More...
 
virtual int MSMI_finish (const TimeStep &iTStep)
 Finishes the mapping for given time step. More...
 

Protected Attributes

FloatArray plasticStrainVector
 Plastic strain vector (reduced form). More...
 
FloatArray tempPlasticStrainVector
 
FloatArray strainSpaceHardeningVarsVector
 Strain space hardening variables. More...
 
FloatArray tempStrainSpaceHardeningVarsVector
 
int state_flag
 Yield function status indicator. More...
 
int temp_state_flag
 
double gamma
 Plastic consistency parameter. More...
 
double temp_gamma
 
- Protected Attributes inherited from oofem::StructuralMaterialStatus
FloatArray strainVector
 Equilibrated strain vector in reduced form. More...
 
FloatArray stressVector
 Equilibrated stress vector in reduced form. More...
 
FloatArray tempStressVector
 Temporary stress vector in reduced form (increments are used mainly in nonlinear analysis) More...
 
FloatArray tempStrainVector
 Temporary strain vector in reduced form (to find balanced state) More...
 
FloatArray PVector
 Equilibrated first Piola-Kirchhoff stress vector. More...
 
FloatArray tempPVector
 Temporary first Piola-Kirchhoff stress vector (to find balanced state) More...
 
FloatArray CVector
 Equilibrated Cauchy stress vector. More...
 
FloatArray tempCVector
 Temporary Cauchy stress vector (to find balanced state) More...
 
FloatArray FVector
 Equilibrated deformation gradient in reduced form. More...
 
FloatArray tempFVector
 Temporary deformation gradient in reduced form (to find balanced state) More...
 
- Protected Attributes inherited from oofem::IntegrationPointStatus
GaussPointgp
 Associated integration point. More...
 
- Protected Attributes inherited from oofem::FEMComponent
int number
 Component number. More...
 
Domaindomain
 Link to domain object, useful for communicating with other FEM components. More...
 
- Protected Attributes inherited from oofem::MaterialStatusMapperInterface
MaterialMappingAlgorithmmpMaterialMapper
 

Detailed Description

This class implements associated Material Status to PlasticMaterial.

Definition at line 52 of file plasticmaterial.h.

Constructor & Destructor Documentation

oofem::PlasticMaterialStatus::PlasticMaterialStatus ( int  n,
Domain d,
GaussPoint g,
int  statusSize 
)

Definition at line 707 of file plasticmaterial.C.

References gamma, oofem::PM_Elastic, state_flag, temp_gamma, and temp_state_flag.

oofem::PlasticMaterialStatus::~PlasticMaterialStatus ( )
virtual

Definition at line 716 of file plasticmaterial.C.

Member Function Documentation

void oofem::PlasticMaterialStatus::addStateVariables ( const MaterialStatus iStatus)
virtual

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 875 of file plasticmaterial.C.

Referenced by giveClassName().

virtual const char* oofem::PlasticMaterialStatus::giveClassName ( ) const
inlinevirtual
Returns
Class name of the receiver.

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 101 of file plasticmaterial.h.

References addStateVariables(), copyStateVariables(), and printYourself().

double oofem::PlasticMaterialStatus::givePlasticConsistencyPrameter ( ) const
inline

Definition at line 94 of file plasticmaterial.h.

References gamma.

Referenced by copyStateVariables().

const FloatArray& oofem::PlasticMaterialStatus::givePlasticStrainVector ( ) const
inline
int oofem::PlasticMaterialStatus::giveStateFlag ( ) const
inline

Definition at line 92 of file plasticmaterial.h.

References state_flag.

Referenced by copyStateVariables(), and oofem::PlasticMaterial::giveRealStressVector().

const FloatArray& oofem::PlasticMaterialStatus::giveStrainSpaceHardeningVars ( ) const
inline
double oofem::PlasticMaterialStatus::giveTempPlasticConsistencyPrameter ( ) const
inline
const FloatArray& oofem::PlasticMaterialStatus::giveTempPlasticStrainVector ( ) const
inline

Definition at line 83 of file plasticmaterial.h.

References tempPlasticStrainVector.

Referenced by copyStateVariables().

int oofem::PlasticMaterialStatus::giveTempStateFlag ( ) const
inline
const FloatArray& oofem::PlasticMaterialStatus::givetempStrainSpaceHardeningVarsVector ( ) const
inline

Definition at line 85 of file plasticmaterial.h.

References tempStrainSpaceHardeningVarsVector.

Referenced by copyStateVariables().

void oofem::PlasticMaterialStatus::letPlasticStrainVectorBe ( FloatArray  v)
inline

Definition at line 87 of file plasticmaterial.h.

void oofem::PlasticMaterialStatus::letStrainSpaceHardeningVarsVectorBe ( FloatArray  v)
inline

Definition at line 90 of file plasticmaterial.h.

void oofem::PlasticMaterialStatus::letTempPlasticConsistencyPrameterBe ( double  v)
inline

Definition at line 96 of file plasticmaterial.h.

Referenced by oofem::PlasticMaterial::giveRealStressVector().

void oofem::PlasticMaterialStatus::letTempPlasticStrainVectorBe ( FloatArray  v)
inline

Definition at line 88 of file plasticmaterial.h.

Referenced by oofem::PlasticMaterial::giveRealStressVector().

void oofem::PlasticMaterialStatus::letTempStateFlagBe ( int  v)
inline

Definition at line 98 of file plasticmaterial.h.

Referenced by oofem::PlasticMaterial::giveRealStressVector().

void oofem::PlasticMaterialStatus::letTempStrainSpaceHardeningVarsVectorBe ( FloatArray  v)
inline

Definition at line 89 of file plasticmaterial.h.

Referenced by oofem::PlasticMaterial::giveRealStressVector().

void oofem::PlasticMaterialStatus::printOutputAt ( FILE *  file,
TimeStep tStep 
)
virtual
void oofem::PlasticMaterialStatus::printYourself ( )
virtual

Prints receiver state on stdout. Useful for debugging.

Reimplemented from oofem::FEMComponent.

Definition at line 880 of file plasticmaterial.C.

References plasticStrainVector, and oofem::FloatArray::printYourself().

Referenced by giveClassName().

contextIOResultType oofem::PlasticMaterialStatus::restoreContext ( DataStream stream,
ContextMode  mode,
void *  obj = NULL 
)
virtual

Restores the receiver state previously written in stream.

See also
saveContext
Parameters
streamInput stream.
modeDetermines amount of info available in stream (state, definition, ...).
objSpecial parameter for sending extra information.
Returns
contextIOResultType.
Exceptions
throwsan ContextIOERR exception if error encountered.

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 824 of file plasticmaterial.C.

References oofem::CIO_IOERR, oofem::CIO_OK, gamma, plasticStrainVector, oofem::DataStream::read(), oofem::StructuralMaterialStatus::restoreContext(), oofem::FloatArray::restoreYourself(), state_flag, strainSpaceHardeningVarsVector, and THROW_CIOERR.

contextIOResultType oofem::PlasticMaterialStatus::saveContext ( DataStream stream,
ContextMode  mode,
void *  obj = NULL 
)
virtual

Stores receiver state to output stream.

Parameters
streamOutput stream.
modeDetermines amount of info required in stream (state, definition, ...).
objSpecial parameter, used only to send particular integration point to material class version of this method.
Returns
contextIOResultType.
Exceptions
throwsan ContextIOERR exception if error encountered.

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 789 of file plasticmaterial.C.

References oofem::CIO_IOERR, oofem::CIO_OK, gamma, plasticStrainVector, oofem::StructuralMaterialStatus::saveContext(), state_flag, oofem::FloatArray::storeYourself(), strainSpaceHardeningVarsVector, THROW_CIOERR, and oofem::DataStream::write().

void oofem::PlasticMaterialStatus::updateYourself ( TimeStep )
virtual

Update equilibrium history variables according to temp-variables.

Invoked, after new equilibrium state has been reached.

Reimplemented from oofem::StructuralMaterialStatus.

Definition at line 771 of file plasticmaterial.C.

References gamma, plasticStrainVector, state_flag, strainSpaceHardeningVarsVector, temp_gamma, temp_state_flag, tempPlasticStrainVector, tempStrainSpaceHardeningVarsVector, and oofem::StructuralMaterialStatus::updateYourself().

Member Data Documentation

double oofem::PlasticMaterialStatus::gamma
protected
FloatArray oofem::PlasticMaterialStatus::plasticStrainVector
protected
int oofem::PlasticMaterialStatus::state_flag
protected
FloatArray oofem::PlasticMaterialStatus::strainSpaceHardeningVarsVector
protected

Strain space hardening variables.

Definition at line 60 of file plasticmaterial.h.

Referenced by copyStateVariables(), giveStrainSpaceHardeningVars(), initTempStatus(), printOutputAt(), restoreContext(), saveContext(), and updateYourself().

double oofem::PlasticMaterialStatus::temp_gamma
protected
int oofem::PlasticMaterialStatus::temp_state_flag
protected
FloatArray oofem::PlasticMaterialStatus::tempPlasticStrainVector
protected
FloatArray oofem::PlasticMaterialStatus::tempStrainSpaceHardeningVarsVector
protected

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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011