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

#include <hydram.h>

+ Inheritance diagram for oofem::HydrationModelInterface:
+ Collaboration diagram for oofem::HydrationModelInterface:

Public Member Functions

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)
 
virtual void updateInternalState (const FloatArray &vec, GaussPoint *gp, TimeStep *tStep)
 Calls hydrationModel->updateInternalState, if the material is already cast. More...
 
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 ()
 
virtual const char * giveClassName () const =0
 

Protected Attributes

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

Definition at line 301 of file hydram.h.

Constructor & Destructor Documentation

virtual oofem::HydrationModelInterface::~HydrationModelInterface ( )
inlinevirtual

Destructor. Deletes the associated hydration model.

Definition at line 316 of file hydram.h.

References oofem::MaterialStatus::initializeFrom().

Member Function Documentation

double oofem::HydrationModelInterface::giveHydrationDegree ( GaussPoint gp,
TimeStep tStep,
ValueModeType  mode 
)

Returns the hydration degree at end of TimeStep tStep in given integration point.

The value is obtained from gp hydration status via the hydration model or the constantHydrationDegree value is returned.

Parameters
gpIntegration point.
tStepSolution step.
modeValue mode VM_Incremental or VM_Total.
Returns
Hydration degree or increment in given gp.

Definition at line 660 of file hydram.C.

Referenced by oofem::HydratingHeMoMaterial::giveIPValue(), oofem::HydratingIsoHeatMaterial::giveIPValue(), oofem::HydratingHeMoMaterial::updateInternalState(), and oofem::HydratingIsoHeatMaterial::updateInternalState().

HydrationModel* oofem::HydrationModelInterface::giveHydrationModel ( )
inline

Returns the associated hydration model.

Definition at line 314 of file hydram.h.

IRResultType oofem::HydrationModelInterface::initializeFrom ( InputRecord ir)

Creates and initializes the hydration model according to object description stored in input record.

The parent class instanciateFrom method is not called here.

Definition at line 599 of file hydram.C.

References _IFT_HydrationModelInterface_castAt, _IFT_HydrationModelInterface_hydration, oofem::HydrationModel::HydrationModel(), IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_BAD_FORMAT, oofem::IRRT_OK, OOFEM_LOG_INFO, and OOFEM_WARNING.

Referenced by oofem::HydratingHeMoMaterial::initializeFrom(), and oofem::HydratingIsoHeatMaterial::initializeFrom().

contextIOResultType oofem::HydrationModelInterface::restoreContext ( DataStream stream,
ContextMode  mode,
void *  obj = NULL 
)
inline
contextIOResultType oofem::HydrationModelInterface::saveContext ( DataStream stream,
ContextMode  mode,
void *  obj = NULL 
)
inline
void oofem::HydrationModelInterface::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.

Reimplemented in oofem::HydratingIsoHeatMaterial, and oofem::HydratingHeMoMaterial.

Definition at line 640 of file hydram.C.

References oofem::TimeStep::giveTargetTime(), oofem::TimeStep::giveTimeIncrement(), and oofem::TimeStep::setTimeIncrement().

Referenced by oofem::HydratingHeMoMaterial::updateInternalState(), and oofem::HydratingIsoHeatMaterial::updateInternalState().

Member Data Documentation

double oofem::HydrationModelInterface::castAt
protected
double oofem::HydrationModelInterface::constantHydrationDegree
protected

Constant hydration degree for analysis without hydration model.

Definition at line 310 of file hydram.h.


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