OOFEM  2.1
Public Member Functions | Protected Attributes
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:

List of all members.

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.
void getPrincipalStrainVector (FloatArray &answer) const
void getPrincipalStressVector (FloatArray &answer) const
void givePrevPrincStrainVector (FloatArray &answer) const
void givePrevPrincStressVector (FloatArray &answer) const
void letPrincipalStrainVectorBe (const FloatArray &pv)
void letPrincipalStressVectorBe (const FloatArray &pv)
void giveCrackMap (IntArray &answer) const
void letCrackMapBe (IntArray &map)
virtual int isCrackActive (int i) const
virtual int giveNumberOfActiveCracks () const
virtual int giveNumberOfTempActiveCracks () const
int giveTempAlreadyCrack () const
void giveTempCrackDirs (FloatMatrix &answer)
void letTempCrackDirsBe (const FloatMatrix &a)
double giveTempMaxCrackStrain (int icrack)
void setTempMaxCrackStrain (int icrack, double val)
void giveTempCrackStatus (IntArray &answer)
int giveTempCrackStatus (int icrack) const
void setTempCrackStatus (int icrack, int val)
void giveCrackStrainVector (FloatArray &answer)
double giveCrackStrain (int icrack) const
void giveOldCrackStrainVector (FloatArray &answer)
void letCrackStrainVectorBe (const FloatArray &a)
void letOldCrackStrainVectorBe (const FloatArray &a)
double giveCharLength (int icrack) const
void setCharLength (int icrack, double val)
void giveCrackDirs (FloatMatrix &answer)
void giveCrackStatus (IntArray &answer)
int giveAlreadyCrack () const
virtual const char * giveClassName () const
virtual classType giveClassID () const
 Returns classType id of receiver.
virtual void initTempStatus ()
 Initializes the temporary internal variables, describing the current state according to previously reached equilibrium internal variables.
virtual void updateYourself (TimeStep *tStep)
 Update equilibrium history variables according to temp-variables.
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.

Protected Attributes

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

Detailed Description

This class implements associated Material Status to SmearedCrackingMaterail.

Definition at line 70 of file rcm2.h.


Constructor & Destructor Documentation

Definition at line 1086 of file rcm2.C.

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

Definition at line 1100 of file rcm2.C.


Member Function Documentation

Definition at line 102 of file rcm2.h.

References principalStrain.

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

Definition at line 103 of file rcm2.h.

References principalStress.

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

Definition at line 140 of file rcm2.h.

References giveNumberOfActiveCracks().

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

double oofem::RCM2MaterialStatus::giveCharLength ( int  icrack) const [inline]
virtual classType oofem::RCM2MaterialStatus::giveClassID ( ) const [inline, virtual]

Returns classType id of receiver.

Intended for run time type checking. Every derived class have to overload this method.

See also:
classType.
Returns:
Class type of receiver.

Reimplemented from oofem::StructuralMaterialStatus.

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

Definition at line 144 of file rcm2.h.

References oofem::RCMMaterialStatusClass.

virtual const char* oofem::RCM2MaterialStatus::giveClassName ( ) const [inline, virtual]
Returns:
Class name of the receiver.

Reimplemented from oofem::StructuralMaterialStatus.

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

Definition at line 143 of file rcm2.h.

void oofem::RCM2MaterialStatus::giveCrackMap ( IntArray answer) const [inline]

Definition at line 139 of file rcm2.h.

References crackStatuses.

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

double oofem::RCM2MaterialStatus::giveCrackStrain ( int  icrack) const [inline]

Definition at line 1163 of file rcm2.C.

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

Referenced by giveAlreadyCrack().

Definition at line 130 of file rcm2.h.

References oldCrackStrainVector.

Definition at line 104 of file rcm2.h.

References oldPrincipalStrain.

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

Definition at line 105 of file rcm2.h.

References oldPrincipalStress.

int oofem::RCM2MaterialStatus::giveTempCrackStatus ( int  icrack) const [inline]

Definition at line 125 of file rcm2.h.

References oofem::IntArray::at(), and tempCrackStatuses.

double oofem::RCM2MaterialStatus::giveTempMaxCrackStrain ( int  icrack) [inline]

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

Reimplemented from oofem::StructuralMaterialStatus.

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

Definition at line 1200 of file rcm2.C.

References oofem::IntArray::at(), crackDirs, crackMap, crackStatuses, crackStrainVector, maxCrackStrains, oldCrackStrainVector, oldPrincipalStrain, oldPrincipalStress, principalStrain, principalStress, tempCrackDirs, tempCrackStatuses, and tempMaxCrackStrains.

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

int oofem::RCM2MaterialStatus::isCrackActive ( int  i) const [virtual]

Definition at line 131 of file rcm2.h.

References crackStrainVector.

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

Definition at line 132 of file rcm2.h.

References oldCrackStrainVector.

Definition at line 106 of file rcm2.h.

References principalStrain.

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

Definition at line 107 of file rcm2.h.

References principalStress.

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

Definition at line 120 of file rcm2.h.

References tempCrackDirs.

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.

Reads the FEMComponent class-id in order to allow test consistency.

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 1309 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 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.

Writes the FEMComponent class-id in order to allow test whether correct data are then restored.

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 1245 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 oofem::RCSDEMaterialStatus::saveContext(), and oofem::RCSDMaterialStatus::saveContext().

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

Definition at line 135 of file rcm2.h.

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

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

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

Definition at line 126 of file rcm2.h.

References oofem::IntArray::at(), and tempCrackStatuses.

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

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

Definition at line 123 of file rcm2.h.

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

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

Update equilibrium history variables according to temp-variables.

Invoked, after new equilibrium state has been reached.

Reimplemented from oofem::StructuralMaterialStatus.

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

Definition at line 1224 of file rcm2.C.

References crackDirs, crackStatuses, crackStrainVector, maxCrackStrains, oldCrackStrainVector, oldPrincipalStrain, oldPrincipalStress, principalStrain, principalStress, tempCrackDirs, tempCrackStatuses, and tempMaxCrackStrains.


Member Data Documentation

Definition at line 82 of file rcm2.h.

Referenced by giveCharLength(), restoreContext(), saveContext(), and setCharLength().

Definition at line 94 of file rcm2.h.

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

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

Definition at line 74 of file rcm2.h.

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

Components of crack strain vector.

Definition at line 78 of file rcm2.h.

Referenced by giveCrackStrain(), giveCrackStrainVector(), initTempStatus(), letCrackStrainVectorBe(), restoreContext(), saveContext(), and updateYourself().

Max crack strain reached.

Definition at line 76 of file rcm2.h.

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

Definition at line 74 of file rcm2.h.

Referenced by giveTempCrackStatus(), initTempStatus(), setTempCrackStatus(), 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 Sun Mar 10 2013 18:17:03 for OOFEM by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2011