OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::FluidDynamicMaterial Class Referenceabstract

Abstract base class for all fluid materials. More...

#include <fluiddynamicmaterial.h>

+ Inheritance diagram for oofem::FluidDynamicMaterial:
+ Collaboration diagram for oofem::FluidDynamicMaterial:

Public Member Functions

 FluidDynamicMaterial (int n, Domain *d)
 Constructor. More...
 
virtual ~FluidDynamicMaterial ()
 Destructor. More...
 
virtual void computeDeviatoricStressVector (FloatArray &stress_dev, double &epsp_vol, GaussPoint *gp, const FloatArray &eps, double pressure, TimeStep *tStep)
 Computes the deviatoric stress vector and volumetric strain rate from given deviatoric strain and pressure. More...
 
virtual void computeDeviatoricStressVector (FloatArray &answer, GaussPoint *gp, const FloatArray &eps, TimeStep *tStep)=0
 Computes the deviatoric stress vector from given strain. More...
 
virtual void giveDeviatoricStiffnessMatrix (FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)=0
 Computes the deviatoric stiffness; $ \frac{\partial\sigma_{\mathrm{dev}}}{\partial \epsilon_{\mathrm{dev}}}$. More...
 
virtual void giveStiffnessMatrices (FloatMatrix &dsdd, FloatArray &dsdp, FloatArray &dedd, double &dedp, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
 Computes the 4 tangents of the compressible material response in 3D. More...
 
virtual double giveEffectiveViscosity (GaussPoint *gp, TimeStep *tStep)=0
 Gives the effective viscosity for the given integration point. More...
 
virtual void updateInternalState (const FloatArray &vec, GaussPoint *gp, TimeStep *tStep)
 Updates internal state of material according to new state vector. More...
 
virtual int giveIPValue (FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
 Returns the integration point corresponding value in Reduced form. More...
 
- Public Member Functions inherited from oofem::Material
 Material (int n, Domain *d)
 Constructor. More...
 
virtual ~Material ()
 Destructor. More...
 
virtual bool isCharacteristicMtrxSymmetric (MatResponseMode rMode)
 Returns true if stiffness matrix of receiver is symmetric Default implementation returns true. More...
 
virtual double give (int aProperty, GaussPoint *gp)
 Returns the value of material property 'aProperty'. More...
 
virtual bool hasProperty (int aProperty, GaussPoint *gp)
 Returns true if 'aProperty' exists on material. More...
 
virtual void modifyProperty (int aProperty, double value, GaussPoint *gp)
 Modify 'aProperty', which already exists on material. More...
 
double giveCastingTime ()
 
virtual bool isActivated (TimeStep *tStep)
 
virtual int hasNonLinearBehaviour ()
 Returns nonzero if receiver is non linear. More...
 
virtual int hasMaterialModeCapability (MaterialMode mode)
 Tests if material supports material mode. More...
 
virtual int hasCastingTimeSupport ()
 Tests if material supports casting time. More...
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
virtual void giveInputRecord (DynamicInputRecord &input)
 Setups the input record string of receiver. More...
 
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging. More...
 
virtual contextIOResultType saveIPContext (DataStream &stream, ContextMode mode, GaussPoint *gp)
 Stores integration point state to output stream. More...
 
virtual contextIOResultType restoreIPContext (DataStream &stream, ContextMode mode, GaussPoint *gp)
 Reads integration point state to output stream. More...
 
virtual int checkConsistency ()
 Allows programmer to test some internal data, before computation begins. More...
 
virtual int initMaterial (Element *element)
 Optional function to call specific procedures when initializing a material. More...
 
virtual MaterialStatusgiveStatus (GaussPoint *gp) const
 Returns material status of receiver in given integration point. More...
 
virtual int packUnknowns (DataStream &buff, TimeStep *tStep, GaussPoint *ip)
 Pack all necessary data of integration point (according to element parallel_mode) into given communication buffer. More...
 
virtual int unpackAndUpdateUnknowns (DataStream &buff, TimeStep *tStep, GaussPoint *ip)
 Unpack and updates all necessary data of given integration point (according to element parallel_mode) into given communication buffer. More...
 
virtual int estimatePackSize (DataStream &buff, GaussPoint *ip)
 Estimates the necessary pack size to hold all packed data of receiver. More...
 
virtual double predictRelativeComputationalCost (GaussPoint *gp)
 Returns the weight representing relative computational cost of receiver The reference material model is linear isotropic material - its weight is set to 1.0 The other material models should compare to this reference model. More...
 
virtual double predictRelativeRedistributionCost (GaussPoint *gp)
 Returns the relative redistribution cost of the receiver. More...
 
virtual MaterialStatusCreateStatus (GaussPoint *gp) const
 Creates new copy of associated status and inserts it into given integration point. More...
 
virtual void initTempStatus (GaussPoint *gp)
 Initializes temporary variables stored in integration point status at the beginning of new time step. More...
 
virtual int setIPValue (const FloatArray &value, GaussPoint *gp, InternalStateType type)
 Sets the value of a certain variable at a given integration point to the given value. More...
 
- 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...
 
virtual const char * giveClassName () const =0
 
virtual const char * giveInputRecordName () const =0
 
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 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...
 
virtual void printOutputAt (FILE *file, TimeStep *tStep)
 Prints output of receiver to stream, for given time step. 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...
 

Additional Inherited Members

- Protected Attributes inherited from oofem::Material
Dictionary propertyDictionary
 Property dictionary. More...
 
double castingTime
 Casting time. 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...
 

Detailed Description

Abstract base class for all fluid materials.

The fluid materials can have compressible response, though most will be incompressible. The models are characterized by having deviatoric strain rate, and pressure as input at each integration point.

Definition at line 92 of file fluiddynamicmaterial.h.

Constructor & Destructor Documentation

oofem::FluidDynamicMaterial::FluidDynamicMaterial ( int  n,
Domain d 
)
inline

Constructor.

Creates material with given number, belonging to given domain.

Parameters
nMaterial number.
dDomain to which new material will belong.

Definition at line 100 of file fluiddynamicmaterial.h.

virtual oofem::FluidDynamicMaterial::~FluidDynamicMaterial ( )
inlinevirtual

Destructor.

Definition at line 102 of file fluiddynamicmaterial.h.

References oofem::IntegrationPointStatus::gp.

Member Function Documentation

void oofem::FluidDynamicMaterial::computeDeviatoricStressVector ( FloatArray stress_dev,
double &  epsp_vol,
GaussPoint gp,
const FloatArray eps,
double  pressure,
TimeStep tStep 
)
virtual

Computes the deviatoric stress vector and volumetric strain rate from given deviatoric strain and pressure.

Defaults to incompressible function.

Parameters
stress_devDeviatoric stress.
epsp_volVolumetric strain-rate (minus the volumetric part of the eps argument).
gpIntegration point.
epsStrain-rate.
pressurePressure.
tStepTime step.

Reimplemented in oofem::FE2FluidMaterial.

Definition at line 47 of file fluiddynamicmaterial.C.

References oofem::FloatArray::at(), and oofem::GaussPoint::giveMaterialMode().

Referenced by oofem::TR1_2D_PFEM::computeDeviatoricStress(), oofem::TwoFluidMaterial::computeDeviatoricStressVector(), oofem::TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionTerm_MB(), oofem::SUPGElement2::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG2::computeDiffusionTerm_MB(), oofem::TR1_2D_SUPG_AXI::computeDiffusionTerm_MC(), oofem::TR1_2D_SUPG2_AXI::computeDiffusionTerm_MC(), oofem::Hexa21Stokes::computeInternalForcesVector(), oofem::Tet21Stokes::computeInternalForcesVector(), oofem::Tr21Stokes::computeInternalForcesVector(), oofem::Tr1BubbleStokes::computeInternalForcesVector(), oofem::Tet1BubbleStokes::computeInternalForcesVector(), oofem::tet21ghostsolid::computeStiffnessMatrix(), oofem::tet21ghostsolid::giveInternalForcesVectorGivenSolution(), oofem::tet21ghostsolid::giveInternalForcesVectorGivenSolutionDebug(), and oofem::FluidMaterialEvaluator::solveYourself().

virtual void oofem::FluidDynamicMaterial::computeDeviatoricStressVector ( FloatArray answer,
GaussPoint gp,
const FloatArray eps,
TimeStep tStep 
)
pure virtual

Computes the deviatoric stress vector from given strain.

Parameters
answerDeviatoric stress.
gpIntegration point.
epsStrain-rate.
tStepTime step.

Implemented in oofem::FE2FluidMaterial, oofem::BinghamFluidMaterial2, oofem::NonlinearFluidMaterial, oofem::TwoFluidMaterial, and oofem::NewtonianFluidMaterial.

virtual double oofem::FluidDynamicMaterial::giveEffectiveViscosity ( GaussPoint gp,
TimeStep tStep 
)
pure virtual

Gives the effective viscosity for the given integration point.

Parameters
gpGauss point of interest.
tStepTime step.
Returns
The effective viscosity in the point.

Implemented in oofem::FE2FluidMaterial, oofem::BinghamFluidMaterial2, oofem::NonlinearFluidMaterial, oofem::TwoFluidMaterial, and oofem::NewtonianFluidMaterial.

Referenced by oofem::TwoFluidMaterial::giveEffectiveViscosity().

int oofem::FluidDynamicMaterial::giveIPValue ( FloatArray answer,
GaussPoint gp,
InternalStateType  type,
TimeStep tStep 
)
virtual

Returns the integration point corresponding value in Reduced form.

Parameters
answerContain corresponding ip value, zero sized if not available.
gpIntegration point to which the value refers.
typeDetermines the type of internal variable.
tStepDetermines the time step.
Returns
Nonzero if the assignment can be done, zero if this type of variable is not supported.
Todo:
Verify that this is correct for for all models.

Reimplemented from oofem::Material.

Reimplemented in oofem::FE2FluidMaterial, and oofem::TwoFluidMaterial.

Definition at line 96 of file fluiddynamicmaterial.C.

References oofem::FloatArray::at(), oofem::FloatArray::copySubVector(), oofem::FluidDynamicMaterialStatus::giveDeviatoricStrainRateVector(), oofem::FluidDynamicMaterialStatus::giveDeviatoricStressVector(), oofem::Material::giveIPValue(), oofem::GaussPoint::giveMaterialMode(), OOFEM_ERROR, and oofem::FloatArray::resize().

Referenced by oofem::FluidMaterialEvaluator::doStepOutput(), oofem::TwoFluidMaterial::giveIPValue(), and oofem::FE2FluidMaterial::giveIPValue().

void oofem::FluidDynamicMaterial::giveStiffnessMatrices ( FloatMatrix dsdd,
FloatArray dsdp,
FloatArray dedd,
double &  dedp,
MatResponseMode  mode,
GaussPoint gp,
TimeStep tStep 
)
virtual
void oofem::FluidDynamicMaterial::updateInternalState ( const FloatArray vec,
GaussPoint gp,
TimeStep tStep 
)
virtual

Updates internal state of material according to new state vector.

Parameters
vecNew state vector.
gpIntegration point.
tStepSolution step.

Definition at line 42 of file fluiddynamicmaterial.C.


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