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

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

#include <rcm2.h>

+ Inheritance diagram for oofem::RCM2MaterialStatus:
+ Collaboration diagram for oofem::RCM2MaterialStatus:

Public Member Functions

 RCM2MaterialStatus (int n, Domain *d, GaussPoint *g)
 
virtual ~RCM2MaterialStatus ()
 
virtual void printOutputAt (FILE *file, TimeStep *tStep)
 Print receiver's output to given stream. More...
 
const FloatArraygetPrincipalStrainVector () const
 
const FloatArraygetPrincipalStressVector () const
 
const FloatArraygivePrevPrincStrainVector () const
 
const FloatArraygivePrevPrincStressVector () const
 
void letPrincipalStrainVectorBe (FloatArray pv)
 
void letPrincipalStressVectorBe (FloatArray pv)
 
const IntArraygiveCrackMap () const
 
void letCrackMapBe (IntArray map)
 
virtual int isCrackActive (int i) const
 
virtual int giveNumberOfActiveCracks () const
 
virtual int giveNumberOfTempActiveCracks () const
 
int giveTempAlreadyCrack () const
 
const FloatMatrixgiveTempCrackDirs ()
 
void letTempCrackDirsBe (FloatMatrix a)
 
double giveTempMaxCrackStrain (int icrack)
 
void setTempMaxCrackStrain (int icrack, double val)
 
const IntArraygiveTempCrackStatus ()
 
int giveTempCrackStatus (int icrack) const
 
void setTempCrackStatus (int icrack, int val)
 
const FloatArraygiveCrackStrainVector () const
 
double giveCrackStrain (int icrack) const
 
const FloatArraygiveOldCrackStrainVector ()
 
void letCrackStrainVectorBe (FloatArray a)
 
void letOldCrackStrainVectorBe (FloatArray a)
 
double giveCharLength (int icrack) const
 
void setCharLength (int icrack, double val)
 
const FloatMatrixgiveCrackDirs ()
 
const IntArraygiveCrackStatus ()
 
int giveAlreadyCrack () const
 
virtual const char * giveClassName () const
 
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...
 
- 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...
 
virtual void copyStateVariables (const MaterialStatus &iStatus)
 Functions for MaterialStatusMapperInterface. More...
 
virtual void addStateVariables (const MaterialStatus &iStatus)
 
- 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 void printYourself ()
 Prints receiver state on stdout. Useful for debugging. 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

IntArray crackStatuses
 One value from (pscm_NONE, pscm_OPEN, pscm_SOFTENING, pscm_RELOADING, pscm_UNLOADING, pscm_CLOSED. More...
 
IntArray tempCrackStatuses
 
FloatArray maxCrackStrains
 Max crack strain reached. More...
 
FloatArray tempMaxCrackStrains
 
FloatArray crackStrainVector
 Components of crack strain vector. More...
 
FloatArray oldCrackStrainVector
 
FloatMatrix crackDirs
 Storing direction of cracks in columwise format. More...
 
FloatMatrix tempCrackDirs
 
FloatArray charLengths
 
FloatArray principalStrain
 
FloatArray oldPrincipalStrain
 
FloatArray principalStress
 
FloatArray oldPrincipalStress
 
IntArray crackMap
 
- 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 SmearedCrackingMaterail.

Definition at line 77 of file rcm2.h.

Constructor & Destructor Documentation

oofem::RCM2MaterialStatus::RCM2MaterialStatus ( int  n,
Domain d,
GaussPoint g 
)

Definition at line 972 of file rcm2.C.

References oofem::FloatMatrix::at(), crackDirs, and tempCrackDirs.

Referenced by oofem::RCM2Material::CreateStatus().

oofem::RCM2MaterialStatus::~RCM2MaterialStatus ( )
virtual

Definition at line 986 of file rcm2.C.

Member Function Documentation

const FloatArray& oofem::RCM2MaterialStatus::getPrincipalStrainVector ( ) const
inline

Definition at line 109 of file rcm2.h.

References principalStrain.

Referenced by oofem::RCM2Material::giveEffectiveMaterialStiffnessMatrix().

const FloatArray& oofem::RCM2MaterialStatus::getPrincipalStressVector ( ) const
inline

Definition at line 110 of file rcm2.h.

References principalStress.

Referenced by oofem::RCM2Material::giveEffectiveMaterialStiffnessMatrix().

int oofem::RCM2MaterialStatus::giveAlreadyCrack ( ) const
inline

Definition at line 153 of file rcm2.h.

References giveNumberOfActiveCracks().

Referenced by oofem::RCM2Material::giveIPValue().

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

Reimplemented from oofem::StructuralMaterialStatus.

Reimplemented in oofem::RCSDMaterialStatus, oofem::RCSDEMaterialStatus, and oofem::RCSDNLMaterialStatus.

Definition at line 156 of file rcm2.h.

References initTempStatus(), restoreContext(), saveContext(), and updateYourself().

const FloatMatrix& oofem::RCM2MaterialStatus::giveCrackDirs ( )
inline
const IntArray& oofem::RCM2MaterialStatus::giveCrackStatus ( )
inline

Definition at line 152 of file rcm2.h.

References crackStatuses.

Referenced by oofem::RCM2Material::giveIPValue().

double oofem::RCM2MaterialStatus::giveCrackStrain ( int  icrack) const
inline
int oofem::RCM2MaterialStatus::giveNumberOfActiveCracks ( ) const
virtual

Definition at line 1049 of file rcm2.C.

References oofem::FloatArray::at(), and oldCrackStrainVector.

Referenced by giveAlreadyCrack(), and letCrackMapBe().

int oofem::RCM2MaterialStatus::giveNumberOfTempActiveCracks ( ) const
virtual
const FloatArray& oofem::RCM2MaterialStatus::giveOldCrackStrainVector ( )
inline

Definition at line 137 of file rcm2.h.

References oldCrackStrainVector.

const FloatArray& oofem::RCM2MaterialStatus::givePrevPrincStrainVector ( ) const
inline

Definition at line 111 of file rcm2.h.

References oldPrincipalStrain.

Referenced by oofem::RCM2Material::giveRealPrincipalStressVector3d().

const FloatArray& oofem::RCM2MaterialStatus::givePrevPrincStressVector ( ) const
inline

Definition at line 112 of file rcm2.h.

References oldPrincipalStress.

int oofem::RCM2MaterialStatus::giveTempAlreadyCrack ( ) const
inline
int oofem::RCM2MaterialStatus::giveTempCrackStatus ( int  icrack) const
inline

Definition at line 132 of file rcm2.h.

References oofem::IntArray::at().

void oofem::RCM2MaterialStatus::initTempStatus ( )
virtual
int oofem::RCM2MaterialStatus::isCrackActive ( int  i) const
virtual
void oofem::RCM2MaterialStatus::letCrackMapBe ( IntArray  map)
inline
void oofem::RCM2MaterialStatus::letCrackStrainVectorBe ( FloatArray  a)
inline

Definition at line 138 of file rcm2.h.

Referenced by oofem::RCM2Material::giveRealPrincipalStressVector3d().

void oofem::RCM2MaterialStatus::letOldCrackStrainVectorBe ( FloatArray  a)
inline

Definition at line 139 of file rcm2.h.

void oofem::RCM2MaterialStatus::letPrincipalStrainVectorBe ( FloatArray  pv)
inline

Definition at line 113 of file rcm2.h.

Referenced by oofem::RCM2Material::giveRealPrincipalStressVector3d().

void oofem::RCM2MaterialStatus::letPrincipalStressVectorBe ( FloatArray  pv)
inline

Definition at line 114 of file rcm2.h.

Referenced by oofem::RCM2Material::giveRealPrincipalStressVector3d().

void oofem::RCM2MaterialStatus::letTempCrackDirsBe ( FloatMatrix  a)
inline

Definition at line 127 of file rcm2.h.

Referenced by oofem::RCM2Material::giveRealPrincipalStressVector3d().

void oofem::RCM2MaterialStatus::printOutputAt ( FILE *  file,
TimeStep tStep 
)
virtual
contextIOResultType oofem::RCM2MaterialStatus::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.

Reimplemented in oofem::RCSDMaterialStatus, oofem::RCSDEMaterialStatus, and oofem::RCSDNLMaterialStatus.

Definition at line 1195 of file rcm2.C.

References charLengths, oofem::CIO_OK, crackDirs, crackMap, crackStatuses, crackStrainVector, maxCrackStrains, oldCrackStrainVector, oldPrincipalStrain, oldPrincipalStress, principalStrain, principalStress, oofem::StructuralMaterialStatus::restoreContext(), oofem::IntArray::restoreYourself(), oofem::FloatArray::restoreYourself(), oofem::FloatMatrix::restoreYourself(), and THROW_CIOERR.

Referenced by giveClassName(), oofem::RCSDEMaterialStatus::restoreContext(), and oofem::RCSDMaterialStatus::restoreContext().

contextIOResultType oofem::RCM2MaterialStatus::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.

Reimplemented in oofem::RCSDMaterialStatus, oofem::RCSDEMaterialStatus, and oofem::RCSDNLMaterialStatus.

Definition at line 1131 of file rcm2.C.

References charLengths, oofem::CIO_OK, crackDirs, crackMap, crackStatuses, crackStrainVector, maxCrackStrains, oldCrackStrainVector, oldPrincipalStrain, oldPrincipalStress, principalStrain, principalStress, oofem::StructuralMaterialStatus::saveContext(), oofem::IntArray::storeYourself(), oofem::FloatArray::storeYourself(), oofem::FloatMatrix::storeYourself(), and THROW_CIOERR.

Referenced by giveClassName(), oofem::RCSDEMaterialStatus::saveContext(), and oofem::RCSDMaterialStatus::saveContext().

void oofem::RCM2MaterialStatus::setCharLength ( int  icrack,
double  val 
)
inline

Definition at line 148 of file rcm2.h.

References oofem::FloatArray::at().

Referenced by oofem::RCM2Material::updateStatusForNewCrack().

void oofem::RCM2MaterialStatus::setTempCrackStatus ( int  icrack,
int  val 
)
inline

Definition at line 133 of file rcm2.h.

References oofem::IntArray::at().

Referenced by oofem::RCM2Material::updateCrackStatus().

void oofem::RCM2MaterialStatus::setTempMaxCrackStrain ( int  icrack,
double  val 
)
inline

Definition at line 130 of file rcm2.h.

References oofem::FloatArray::at().

Referenced by oofem::RCM2Material::updateCrackStatus().

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

Member Data Documentation

FloatArray oofem::RCM2MaterialStatus::charLengths
protected

Definition at line 89 of file rcm2.h.

Referenced by restoreContext(), and saveContext().

FloatMatrix oofem::RCM2MaterialStatus::crackDirs
protected
IntArray oofem::RCM2MaterialStatus::crackMap
protected

Definition at line 101 of file rcm2.h.

Referenced by giveCrackMap(), initTempStatus(), isCrackActive(), restoreContext(), and saveContext().

IntArray oofem::RCM2MaterialStatus::crackStatuses
protected

One value from (pscm_NONE, pscm_OPEN, pscm_SOFTENING, pscm_RELOADING, pscm_UNLOADING, pscm_CLOSED.

Definition at line 81 of file rcm2.h.

Referenced by giveCrackStatus(), initTempStatus(), oofem::RCSDEMaterialStatus::printOutputAt(), oofem::RCSDMaterialStatus::printOutputAt(), printOutputAt(), restoreContext(), saveContext(), and updateYourself().

FloatArray oofem::RCM2MaterialStatus::crackStrainVector
protected
FloatArray oofem::RCM2MaterialStatus::maxCrackStrains
protected

Max crack strain reached.

Definition at line 83 of file rcm2.h.

Referenced by initTempStatus(), restoreContext(), saveContext(), and updateYourself().

FloatArray oofem::RCM2MaterialStatus::oldCrackStrainVector
protected
FloatArray oofem::RCM2MaterialStatus::oldPrincipalStrain
protected
FloatArray oofem::RCM2MaterialStatus::oldPrincipalStress
protected
FloatArray oofem::RCM2MaterialStatus::principalStrain
protected
FloatArray oofem::RCM2MaterialStatus::principalStress
protected
FloatMatrix oofem::RCM2MaterialStatus::tempCrackDirs
protected

Definition at line 87 of file rcm2.h.

Referenced by giveTempCrackDirs(), initTempStatus(), RCM2MaterialStatus(), and updateYourself().

IntArray oofem::RCM2MaterialStatus::tempCrackStatuses
protected

Definition at line 81 of file rcm2.h.

Referenced by giveTempCrackStatus(), initTempStatus(), and updateYourself().

FloatArray oofem::RCM2MaterialStatus::tempMaxCrackStrains
protected

Definition at line 83 of file rcm2.h.

Referenced by initTempStatus(), and updateYourself().


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:41 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011