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

Heat and moisture transport material with hydration. More...

#include <hydratinghemomat.h>

+ Inheritance diagram for oofem::HydratingHeMoMaterial:
+ Collaboration diagram for oofem::HydratingHeMoMaterial:

Public Member Functions

 HydratingHeMoMaterial (int n, Domain *d)
 
virtual ~HydratingHeMoMaterial ()
 
void setMixture (MixtureType mix)
 
virtual int hasInternalSource ()
 Returns nonzero if receiver generates internal source of state variable(s), zero otherwise. More...
 
virtual void computeInternalSourceVector (FloatArray &val, GaussPoint *gp, TimeStep *tStep, ValueModeType mode)
 Computes the internal source vector of receiver. More...
 
virtual void updateInternalState (const FloatArray &state, GaussPoint *gp, TimeStep *tStep)
 Calls hydrationModel->updateInternalState, if the material is already cast. More...
 
virtual double giveCharacteristicValue (MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
 Computes the characteristic value of receiver in given integration point, respecting its history. 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 const char * giveInputRecordName () const
 
virtual const char * giveClassName () const
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. 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::HeMoTKMaterial
 HeMoTKMaterial (int n, Domain *d)
 Constructor. More...
 
virtual ~HeMoTKMaterial ()
 Destructor. More...
 
virtual void giveFluxVector (FloatArray &answer, GaussPoint *gp, const FloatArray &grad, const FloatArray &field, TimeStep *tStep)
 Returns the flux for the field and its gradient. More...
 
virtual void giveCharacteristicMatrix (FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
 Computes characteristic matrix of receiver in given integration point. 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 int hasMaterialModeCapability (MaterialMode mode)
 Tests if material supports material mode. More...
 
double sorption_isotherm (double phi)
 
double inverse_sorption_isotherm (double w)
 
double give_dphi_dw (double w)
 
- Public Member Functions inherited from oofem::TransportMaterial
 TransportMaterial (int n, Domain *d)
 Constructor. More...
 
virtual ~TransportMaterial ()
 Destructor. More...
 
- Public Member Functions inherited from oofem::Material
 Material (int n, Domain *d)
 Constructor. More...
 
virtual ~Material ()
 Destructor. 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 hasCastingTimeSupport ()
 Tests if material supports casting time. 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 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 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...
 
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...
 
- Public Member Functions inherited from oofem::HydrationModelInterface
HydrationModelgiveHydrationModel ()
 Returns the associated hydration model. More...
 
virtual ~HydrationModelInterface ()
 Destructor. Deletes the associated hydration model. More...
 
IRResultType initializeFrom (InputRecord *ir)
 Creates and initializes the hydration model according to object description stored in input record. More...
 
contextIOResultType saveContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 
contextIOResultType restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 
double giveHydrationDegree (GaussPoint *gp, TimeStep *tStep, ValueModeType mode)
 Returns the hydration degree at end of TimeStep tStep in given integration point. More...
 
- Public Member Functions inherited from oofem::Interface
 Interface ()
 Constructor. More...
 
virtual ~Interface ()
 

Protected Member Functions

virtual MaterialStatusCreateStatus (GaussPoint *gp) const
 Creates new copy of associated status and inserts it into given integration point. More...
 
- Protected Member Functions inherited from oofem::HeMoTKMaterial
void computeConductivityMtrx (FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
 
void matcond1d (FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep)
 
void matcond2d (FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep)
 
void matcond3d (FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep)
 
double computeCapacityCoeff (MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
 
double giveHumidity (GaussPoint *gp, ValueModeType mode)
 Returns positive value of humidity, use VM_Velocity for previous (equilibrated) value. More...
 
double get_latent (double w, double t)
 
double get_ceff (double w, double t)
 
double get_chi (double w, double t)
 
double perm_wt (double w, double t)
 
double perm_ww (double w, double t)
 
double give_delta_gw (double phi)
 
double give_dpgw_dt (double t, double phi)
 
double get_b (double w, double t)
 
double get_sat (double w, double t)
 
double give_p_gws (double t)
 

Protected Attributes

int hydration
 
int hydrationHeat
 
int hydrationLHS
 
int teplotaOut
 
- Protected Attributes inherited from oofem::HeMoTKMaterial
double a_0
 Constant (obtained from experiments) [Bazant and Najjar, 1972]. More...
 
double nn
 Constant-exponent (obtained from experiments) [Bazant and Najjar, 1972]. More...
 
double phi_c
 Constant-relative humidity (obtained from experiments) [Bazant and Najjar, 1972]. More...
 
double delta_wet
 Constant-water vapor permeability (obtained from experiments) [Bazant and Najjar, 1972]. More...
 
double w_h
 Constant water content (obtained from experiments) [Pedersen, 1990]. More...
 
double n
 Constant-exponent (obtained from experiments) [Pedersen, 1990]. More...
 
double a
 Constant (obtained from experiments) [Pedersen, 1990]. More...
 
double latent
 Latent heat of evaporation. More...
 
double c
 Thermal capacity. More...
 
double rho
 Volume density. More...
 
double chi_eff
 Effective thermal conductivity. More...
 
double por
 Porosity. More...
 
double rho_gws
 Saturation volume density. More...
 
- 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...
 
- Protected Attributes inherited from oofem::HydrationModelInterface
std::unique_ptr< HydrationModelhydrationModel
 Reference to the associated hydrationModel instance. More...
 
double castAt
 Material cast time - start of hydration. More...
 
double constantHydrationDegree
 Constant hydration degree for analysis without hydration model. More...
 

Detailed Description

Heat and moisture transport material with hydration.

Definition at line 54 of file hydratinghemomat.h.

Constructor & Destructor Documentation

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

Definition at line 60 of file hydratinghemomat.h.

virtual oofem::HydratingHeMoMaterial::~HydratingHeMoMaterial ( )
inlinevirtual

Member Function Documentation

void oofem::HydratingHeMoMaterial::computeInternalSourceVector ( FloatArray val,
GaussPoint gp,
TimeStep tStep,
ValueModeType  mode 
)
virtual

Computes the internal source vector of receiver.

Parameters
valContains response.
gpIntegration point.
tStepSolution step.
modeDetermines response mode.

!! better via HydrationModelInterface

!! mode is VM_Total for nltransientstatic

Reimplemented from oofem::TransportMaterial.

Definition at line 134 of file hydratinghemomat.C.

References oofem::FloatArray::clear(), oofem::TimeStep::giveTimeIncrement(), hydrationHeat, oofem::HydrationModelInterface::hydrationModel, oofem::FloatArray::times(), and oofem::FloatArray::zero().

Referenced by updateInternalState(), and ~HydratingHeMoMaterial().

MaterialStatus * oofem::HydratingHeMoMaterial::CreateStatus ( GaussPoint gp) const
protectedvirtual

Creates new copy of associated status and inserts it into given integration point.

Parameters
gpIntegration point where newly created status will be stored.
Returns
Reference to new status.

Reimplemented from oofem::TransportMaterial.

Definition at line 301 of file hydratinghemomat.C.

References oofem::FEMComponent::domain.

Referenced by giveClassName().

double oofem::HydratingHeMoMaterial::giveCharacteristicValue ( MatResponseMode  mode,
GaussPoint gp,
TimeStep tStep 
)
virtual

Computes the characteristic value of receiver in given integration point, respecting its history.

The algorithm should use temporary or equilibrium history variables stored in integration point status to compute and return required result.

Parameters
modeMaterial response mode.
gpIntegration point.
tStepTime step (most models are able to respond only when tStep is current time step).

!! better via HydrationModelInterface

Reimplemented from oofem::HeMoTKMaterial.

Definition at line 209 of file hydratinghemomat.C.

References oofem::__MatResponseModeToString(), oofem::FloatArray::at(), oofem::HydrationModelInterface::castAt, oofem::HeMoTKMaterial::give_dphi_dw(), oofem::HeMoTKMaterial::giveCharacteristicValue(), oofem::FloatArray::giveSize(), oofem::Material::giveStatus(), oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), hydrationLHS, oofem::HydrationModelInterface::hydrationModel, oofem::HeMoTKMaterial::inverse_sorption_isotherm(), OOFEM_ERROR, PRECAST_CAPACITY_COEFF, and oofem::FloatArray::resize().

Referenced by ~HydratingHeMoMaterial().

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

Reimplemented from oofem::HeMoTKMaterial.

Definition at line 79 of file hydratinghemomat.h.

References CreateStatus(), giveIPValue(), and initializeFrom().

virtual const char* oofem::HydratingHeMoMaterial::giveInputRecordName ( ) const
inlinevirtual
Returns
Input record name of the receiver.

Reimplemented from oofem::HeMoTKMaterial.

Definition at line 78 of file hydratinghemomat.h.

References _IFT_HydratingHeMoMaterial_Name.

int oofem::HydratingHeMoMaterial::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.

Reimplemented from oofem::HeMoTKMaterial.

Definition at line 284 of file hydratinghemomat.C.

References oofem::FloatArray::at(), oofem::HydrationModelInterface::giveHydrationDegree(), oofem::HeMoTKMaterial::giveIPValue(), and oofem::FloatArray::resize().

Referenced by giveClassName().

int oofem::HydratingHeMoMaterial::hasInternalSource ( )
virtual

Returns nonzero if receiver generates internal source of state variable(s), zero otherwise.

Reimplemented from oofem::TransportMaterial.

Definition at line 123 of file hydratinghemomat.C.

References hydrationHeat.

Referenced by ~HydratingHeMoMaterial().

IRResultType oofem::HydratingHeMoMaterial::initializeFrom ( InputRecord ir)
virtual

Initializes receiver according to object description stored in input record.

This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
Returns
IRResultType

Reimplemented from oofem::HeMoTKMaterial.

Definition at line 48 of file hydratinghemomat.C.

References _IFT_HydratingHeMoMaterial_hydration, _IFT_HydratingHeMoMaterial_mix, _IFT_HydratingHeMoMaterial_noHeat, _IFT_HydratingHeMoMaterial_noLHS, oofem::FEMComponent::giveNumber(), oofem::InputRecord::hasField(), hydration, hydrationHeat, hydrationLHS, oofem::HeMoTKMaterial::initializeFrom(), oofem::HydrationModelInterface::initializeFrom(), IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_OK, oofem::mtLafarge, setMixture(), and teplotaOut.

Referenced by giveClassName().

contextIOResultType oofem::HydratingHeMoMaterial::restoreIPContext ( DataStream stream,
ContextMode  mode,
GaussPoint gp 
)
virtual

Reads integration point state to output stream.

Parameters
streamOutput stream.
modeDetermines amount of info required in stream (state, definition, ...).
gpintegration point.
Returns
contextIOResultType.
Exceptions
throwsan ContextIOERR exception if error encountered.

Reimplemented from oofem::Material.

Definition at line 265 of file hydratinghemomat.C.

References oofem::CIO_OK, oofem::HydrationModelInterface::restoreContext(), oofem::Material::restoreIPContext(), and THROW_CIOERR.

Referenced by ~HydratingHeMoMaterial().

contextIOResultType oofem::HydratingHeMoMaterial::saveIPContext ( DataStream stream,
ContextMode  mode,
GaussPoint gp 
)
virtual

Stores integration point state to output stream.

Parameters
streamOutput stream.
modeDetermines amount of info required in stream (state, definition, ...).
gpintegration point.
Returns
contextIOResultType.
Exceptions
throwsan ContextIOERR exception if error encountered.

Reimplemented from oofem::Material.

Definition at line 245 of file hydratinghemomat.C.

References oofem::CIO_OK, oofem::HydrationModelInterface::saveContext(), oofem::Material::saveIPContext(), and THROW_CIOERR.

Referenced by ~HydratingHeMoMaterial().

void oofem::HydratingHeMoMaterial::setMixture ( MixtureType  mix)
void oofem::HydratingHeMoMaterial::updateInternalState ( const FloatArray vec,
GaussPoint gp,
TimeStep tStep 
)
virtual

Calls hydrationModel->updateInternalState, if the material is already cast.

In case the cast time lies within the span of current timestep, the timestep increment is set to (time-castAt).

Parameters
vecNew state vector.
gpIntegration point.
tStepTime step.

!! might be cleaner to choose wc / h in hydration model, but it must be defined which one is passed anyway; so relative humidity was chosen !! also, the humidity vector might be evaluated by a function (ensure 2 elements and set humidity)

Reimplemented from oofem::HydrationModelInterface.

Definition at line 158 of file hydratinghemomat.C.

References oofem::FloatArray::at(), computeInternalSourceVector(), oofem::HeMoTKMaterial::give(), oofem::GaussPoint::giveElement(), oofem::HydrationModelInterface::giveHydrationDegree(), oofem::FEMComponent::giveNumber(), oofem::TimeStep::giveNumber(), oofem::GaussPoint::giveNumber(), oofem::FloatArray::giveSize(), oofem::TimeStep::giveSolutionStateCounter(), oofem::Material::giveStatus(), oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), hydration, oofem::HeMoTKMaterial::inverse_sorption_isotherm(), oofem::FloatArray::isEmpty(), oofem::TransportMaterialStatus::letTempStateVectorBe(), oofem::FloatArray::resize(), teplotaOut, oofem::FloatArray::times(), oofem::HydrationModelInterface::updateInternalState(), and oofem::FloatArray::zero().

Referenced by ~HydratingHeMoMaterial().

Member Data Documentation

int oofem::HydratingHeMoMaterial::hydration
protected

Definition at line 57 of file hydratinghemomat.h.

Referenced by initializeFrom(), setMixture(), and updateInternalState().

int oofem::HydratingHeMoMaterial::hydrationHeat
protected
int oofem::HydratingHeMoMaterial::hydrationLHS
protected

Definition at line 57 of file hydratinghemomat.h.

Referenced by giveCharacteristicValue(), and initializeFrom().

int oofem::HydratingHeMoMaterial::teplotaOut
protected

Definition at line 57 of file hydratinghemomat.h.

Referenced by initializeFrom(), and updateInternalState().


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