OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
This class implements a transport material status information. More...
#include <fluiddynamicmaterial.h>
Public Member Functions | |
FluidDynamicMaterialStatus (int n, Domain *d, GaussPoint *g) | |
Constructor - creates new TransportMaterialStatus with number n, belonging to domain d and integration point g. More... | |
virtual | ~FluidDynamicMaterialStatus () |
Destructor. More... | |
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 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 FloatArray & | giveDeviatoricStressVector () |
Gives the deviatoric stress. More... | |
const FloatArray & | giveDeviatoricStrainRateVector () |
void | letDeviatoricStressVectorBe (FloatArray v) |
Sets the deviatoric stress. More... | |
void | letDeviatoricStrainRateVectorBe (FloatArray v) |
Public Member Functions inherited from oofem::MaterialStatus | |
MaterialStatus (int n, Domain *d, GaussPoint *g) | |
Constructor. More... | |
virtual | ~MaterialStatus () |
Destructor. More... | |
virtual void | updateYourself (TimeStep *) |
Update equilibrium history variables according to temp-variables. 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 |
virtual const char * | giveClassName () 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... | |
Domain * | giveDomain () 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 Interface * | giveInterface (InterfaceType t) |
Interface requesting service. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
FloatArray | deviatoricStressVector |
Stress vector in reduced form. More... | |
FloatArray | deviatoricStrainRateVector |
Strain vector in reduced form. More... | |
Protected Attributes inherited from oofem::IntegrationPointStatus | |
GaussPoint * | gp |
Associated integration point. More... | |
Protected Attributes inherited from oofem::FEMComponent | |
int | number |
Component number. More... | |
Domain * | domain |
Link to domain object, useful for communicating with other FEM components. More... | |
This class implements a transport material status information.
It is an attribute of a Gauss point. This is only an abstract class, for every instance of material class there should be specialized derived class, which handles are history variables. It only adds attributes common to all "transport problem" material models - the state value vectors (both the temporary and equilibrium) containing the state values in associated integration point. The corresponding services for accessing, setting, initializing and updating these attributes are provided.
Definition at line 55 of file fluiddynamicmaterial.h.
oofem::FluidDynamicMaterialStatus::FluidDynamicMaterialStatus | ( | int | n, |
Domain * | d, | ||
GaussPoint * | g | ||
) |
Constructor - creates new TransportMaterialStatus with number n, belonging to domain d and integration point g.
Definition at line 72 of file fluiddynamicmaterial.C.
|
inlinevirtual |
Destructor.
Definition at line 67 of file fluiddynamicmaterial.h.
References initTempStatus(), printOutputAt(), restoreContext(), and saveContext().
|
inline |
Definition at line 79 of file fluiddynamicmaterial.h.
References deviatoricStrainRateVector.
Referenced by oofem::FluidDynamicMaterial::giveIPValue(), and oofem::FluidMaterialEvaluator::solveYourself().
|
inline |
Gives the deviatoric stress.
Definition at line 78 of file fluiddynamicmaterial.h.
References deviatoricStressVector.
Referenced by oofem::FluidDynamicMaterial::giveIPValue().
|
virtual |
Initializes the temporary internal variables, describing the current state according to previously reached equilibrium internal variables.
Reimplemented from oofem::MaterialStatus.
Reimplemented in oofem::FE2FluidMaterialStatus, oofem::TwoFluidMaterialStatus, oofem::BinghamFluidMaterial2Status, and oofem::NonlinearFluidMaterialStatus.
Definition at line 89 of file fluiddynamicmaterial.C.
References oofem::MaterialStatus::initTempStatus().
Referenced by oofem::NonlinearFluidMaterialStatus::initTempStatus(), oofem::BinghamFluidMaterial2Status::initTempStatus(), oofem::TwoFluidMaterialStatus::initTempStatus(), oofem::FE2FluidMaterialStatus::initTempStatus(), and ~FluidDynamicMaterialStatus().
|
inline |
Definition at line 84 of file fluiddynamicmaterial.h.
Referenced by oofem::TwoFluidMaterial::computeDeviatoricStressVector(), oofem::FE2FluidMaterial::computeDeviatoricStressVector(), and oofem::FluidMaterialEvaluator::solveYourself().
|
inline |
Sets the deviatoric stress.
Definition at line 83 of file fluiddynamicmaterial.h.
Referenced by oofem::TwoFluidMaterial::computeDeviatoricStressVector(), oofem::BinghamFluidMaterial2::computeDeviatoricStressVector(), and oofem::FE2FluidMaterial::computeDeviatoricStressVector().
|
virtual |
Print receiver's output to given stream.
Reimplemented from oofem::MaterialStatus.
Reimplemented in oofem::FE2FluidMaterialStatus, oofem::TwoFluidMaterialStatus, and oofem::BinghamFluidMaterial2Status.
Definition at line 77 of file fluiddynamicmaterial.C.
References deviatoricStressVector.
Referenced by oofem::FE2FluidMaterialStatus::printOutputAt(), and ~FluidDynamicMaterialStatus().
|
virtual |
Restores the receiver state previously written in stream.
stream | Input stream. |
mode | Determines amount of info available in stream (state, definition, ...). |
obj | Special parameter for sending extra information. |
throws | an ContextIOERR exception if error encountered. |
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::FE2FluidMaterialStatus, oofem::TwoFluidMaterialStatus, and oofem::BinghamFluidMaterial2Status.
Definition at line 193 of file fluiddynamicmaterial.C.
References oofem::CIO_OK, deviatoricStrainRateVector, deviatoricStressVector, oofem::FEMComponent::restoreContext(), oofem::FloatArray::restoreYourself(), and THROW_CIOERR.
Referenced by oofem::BinghamFluidMaterial2Status::restoreContext(), oofem::FE2FluidMaterialStatus::restoreContext(), and ~FluidDynamicMaterialStatus().
|
virtual |
Stores receiver state to output stream.
stream | Output stream. |
mode | Determines amount of info required in stream (state, definition, ...). |
obj | Special parameter, used only to send particular integration point to material class version of this method. |
throws | an ContextIOERR exception if error encountered. |
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::FE2FluidMaterialStatus, oofem::TwoFluidMaterialStatus, and oofem::BinghamFluidMaterial2Status.
Definition at line 173 of file fluiddynamicmaterial.C.
References oofem::CIO_OK, deviatoricStrainRateVector, deviatoricStressVector, oofem::FEMComponent::saveContext(), oofem::FloatArray::storeYourself(), and THROW_CIOERR.
Referenced by oofem::BinghamFluidMaterial2Status::saveContext(), oofem::FE2FluidMaterialStatus::saveContext(), and ~FluidDynamicMaterialStatus().
|
protected |
Strain vector in reduced form.
Definition at line 61 of file fluiddynamicmaterial.h.
Referenced by oofem::BinghamFluidMaterial2Status::BinghamFluidMaterial2Status(), giveDeviatoricStrainRateVector(), oofem::NonlinearFluidMaterialStatus::initTempStatus(), oofem::BinghamFluidMaterial2Status::initTempStatus(), oofem::BinghamFluidMaterial2Status::printOutputAt(), restoreContext(), saveContext(), oofem::NonlinearFluidMaterialStatus::updateYourself(), and oofem::BinghamFluidMaterial2Status::updateYourself().
|
protected |
Stress vector in reduced form.
Definition at line 59 of file fluiddynamicmaterial.h.
Referenced by oofem::BinghamFluidMaterial2Status::BinghamFluidMaterial2Status(), giveDeviatoricStressVector(), oofem::NonlinearFluidMaterialStatus::initTempStatus(), printOutputAt(), oofem::BinghamFluidMaterial2Status::printOutputAt(), restoreContext(), saveContext(), and oofem::NonlinearFluidMaterialStatus::updateYourself().