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

#include <hemobaznajmat.h>

+ Inheritance diagram for oofem::HeMoBazNajMaterial:
+ Collaboration diagram for oofem::HeMoBazNajMaterial:

Public Member Functions

 HeMoBazNajMaterial (int n, Domain *d)
 Constructor. More...
 
virtual ~HeMoBazNajMaterial ()
 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 *atTime)
 Computes characteristic matrix of receiver in given integration point. More...
 
virtual double giveCharacteristicValue (MatResponseMode mode, GaussPoint *gp, TimeStep *atTime)
 Computes the characteristic value of receiver in given integration point, respecting its history. More...
 
virtual bool isCharacteristicMtrxSymmetric (MatResponseMode rMode)
 Returns true if stiffness matrix of receiver is symmetric Default implementation returns true. More...
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. 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...
 
virtual const char * giveInputRecordName () const
 
virtual const char * giveClassName () const
 
- Public Member Functions inherited from oofem::TransportMaterial
 TransportMaterial (int n, Domain *d)
 Constructor. More...
 
virtual ~TransportMaterial ()
 Destructor. More...
 
virtual void updateInternalState (const FloatArray &state, GaussPoint *gp, TimeStep *tStep)
 Updates internal state of material according to new state vector. More...
 
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 double giveHumidity (GaussPoint *gp, ValueModeType mode)
 Returns positive value of humidity if implemented and enabled in derived material, -1 otherwise. More...
 
virtual MaterialStatusCreateStatus (GaussPoint *gp) const
 Creates new copy of associated status and inserts it into given integration point. 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 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 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...
 

Protected Member Functions

void computeConductivityMtrx (FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *atTime)
 
void matcond1d (FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *atTime)
 
void matcond2d (FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *atTime)
 
void matcond3d (FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *atTime)
 
double computeCapacityCoeff (MatResponseMode mode, GaussPoint *gp, TimeStep *atTime)
 
double perm_mm (double h, double T)
 
double perm_mh (double h, double T)
 
double perm_hm (double h, double T)
 
double perm_hh (double h, double T)
 
virtual int giveIPValue (FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *atTime)
 Returns the integration point corresponding value in Reduced form. More...
 

Protected Attributes

double moistureCapacity
 sorption isotherm derivative [kg/m^3] More...
 
double C1
 maximal permeability [kg/ m s] More...
 
double n
 exponent in nonlinear permeability function [-] More...
 
double alpha0
 fraction minimal/maximal permeability [-] More...
 
double hC
 nonlinear threshold [-] More...
 
double heatConductivity
 Conductivity (k in input file). More...
 
double heatCapacity
 Capacity (c in input file). 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...
 

Detailed Description

Definition at line 55 of file hemobaznajmat.h.

Constructor & Destructor Documentation

oofem::HeMoBazNajMaterial::HeMoBazNajMaterial ( 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 82 of file hemobaznajmat.h.

virtual oofem::HeMoBazNajMaterial::~HeMoBazNajMaterial ( )
inlinevirtual

Member Function Documentation

double oofem::HeMoBazNajMaterial::computeCapacityCoeff ( MatResponseMode  mode,
GaussPoint gp,
TimeStep atTime 
)
protected

Definition at line 273 of file hemobaznajmat.C.

References heatCapacity, moistureCapacity, and OOFEM_ERROR.

Referenced by giveCharacteristicValue(), and giveClassName().

void oofem::HeMoBazNajMaterial::computeConductivityMtrx ( FloatMatrix answer,
MatResponseMode  mode,
GaussPoint gp,
TimeStep atTime 
)
protected
double oofem::HeMoBazNajMaterial::give ( int  aProperty,
GaussPoint gp 
)
virtual

Returns the value of material property 'aProperty'.

Property must be identified by unique int id. Integration point also passed to allow for materials with spatially varying properties

Parameters
aPropertyID of property requested.
gpIntegration point,
Returns
Property value.

Reimplemented from oofem::Material.

Definition at line 77 of file hemobaznajmat.C.

References oofem::Material::give().

Referenced by ~HeMoBazNajMaterial().

void oofem::HeMoBazNajMaterial::giveCharacteristicMatrix ( FloatMatrix answer,
MatResponseMode  mode,
GaussPoint gp,
TimeStep tStep 
)
virtual

Computes characteristic matrix of receiver in given integration point.

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

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

Implements oofem::TransportMaterial.

Definition at line 127 of file hemobaznajmat.C.

References oofem::__MatResponseModeToString(), computeConductivityMtrx(), and OOFEM_ERROR.

Referenced by ~HeMoBazNajMaterial().

double oofem::HeMoBazNajMaterial::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).

Implements oofem::TransportMaterial.

Definition at line 144 of file hemobaznajmat.C.

References computeCapacityCoeff().

Referenced by ~HeMoBazNajMaterial().

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

Implements oofem::FEMComponent.

Definition at line 107 of file hemobaznajmat.h.

References computeCapacityCoeff(), computeConductivityMtrx(), giveIPValue(), matcond1d(), matcond2d(), matcond3d(), perm_hh(), perm_hm(), perm_mh(), and perm_mm().

void oofem::HeMoBazNajMaterial::giveFluxVector ( FloatArray answer,
GaussPoint gp,
const FloatArray grad,
const FloatArray field,
TimeStep tStep 
)
virtual

Returns the flux for the field and its gradient.

Todo:
{ Should the field variable just be a scalar? This might change when we rethink the coupled-fields approach. Now its either just [temperature], or [temperature, concentration] so to cover both cases there is a floatarray. }
Parameters
answerThe flux.
gpGauss point.
gradGradient of the primary field, usually the main input.
fieldThe value of the field itself.
tStepActive time step.

Implements oofem::TransportMaterial.

Definition at line 88 of file hemobaznajmat.C.

References oofem::FloatArray::addSubVector(), oofem::FloatArray::at(), oofem::FloatArray::beScaled(), oofem::FloatArray::giveSize(), oofem::Material::giveStatus(), oofem::TransportMaterialStatus::giveTempField(), oofem::FloatArray::isEmpty(), OOFEM_ERROR, perm_hh(), perm_hm(), perm_mh(), perm_mm(), oofem::FloatArray::resize(), oofem::TransportMaterialStatus::setTempField(), oofem::TransportMaterialStatus::setTempFlux(), oofem::TransportMaterialStatus::setTempGradient(), and oofem::FloatArray::zero().

Referenced by ~HeMoBazNajMaterial().

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

Implements oofem::FEMComponent.

Definition at line 106 of file hemobaznajmat.h.

References _IFT_HeMoBazNajMaterial_Name.

int oofem::HeMoBazNajMaterial::giveIPValue ( FloatArray answer,
GaussPoint gp,
InternalStateType  type,
TimeStep tStep 
)
protectedvirtual

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::TransportMaterial.

Definition at line 332 of file hemobaznajmat.C.

References oofem::FloatArray::at(), oofem::TransportMaterial::giveHumidity(), oofem::TransportMaterial::giveIPValue(), and oofem::FloatArray::resize().

Referenced by giveClassName().

int oofem::HeMoBazNajMaterial::hasMaterialModeCapability ( MaterialMode  mode)
virtual

Tests if material supports material mode.

Parameters
modeRequired material mode.
Returns
Nonzero if supported, zero otherwise.

Reimplemented from oofem::Material.

Definition at line 46 of file hemobaznajmat.C.

Referenced by ~HeMoBazNajMaterial().

IRResultType oofem::HeMoBazNajMaterial::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::Material.

Definition at line 57 of file hemobaznajmat.C.

References _IFT_HeMoBazNajMaterial_alpha0, _IFT_HeMoBazNajMaterial_c, _IFT_HeMoBazNajMaterial_c1, _IFT_HeMoBazNajMaterial_capa, _IFT_HeMoBazNajMaterial_hc, _IFT_HeMoBazNajMaterial_k, _IFT_HeMoBazNajMaterial_n, alpha0, C1, hC, heatCapacity, heatConductivity, oofem::Material::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, moistureCapacity, and n.

Referenced by ~HeMoBazNajMaterial().

bool oofem::HeMoBazNajMaterial::isCharacteristicMtrxSymmetric ( MatResponseMode  rMode)
virtual

Returns true if stiffness matrix of receiver is symmetric Default implementation returns true.

Reimplemented from oofem::Material.

Definition at line 320 of file hemobaznajmat.C.

References oofem::__MatResponseModeToString(), and OOFEM_ERROR.

Referenced by ~HeMoBazNajMaterial().

double oofem::HeMoBazNajMaterial::perm_hh ( double  h,
double  T 
)
protected

Definition at line 314 of file hemobaznajmat.C.

References heatConductivity.

Referenced by giveClassName(), giveFluxVector(), matcond1d(), matcond2d(), and matcond3d().

double oofem::HeMoBazNajMaterial::perm_hm ( double  h,
double  T 
)
protected

Definition at line 308 of file hemobaznajmat.C.

Referenced by giveClassName(), giveFluxVector(), matcond1d(), matcond2d(), and matcond3d().

double oofem::HeMoBazNajMaterial::perm_mh ( double  h,
double  T 
)
protected

Definition at line 302 of file hemobaznajmat.C.

Referenced by giveClassName(), giveFluxVector(), matcond1d(), matcond2d(), and matcond3d().

double oofem::HeMoBazNajMaterial::perm_mm ( double  h,
double  T 
)
protected

Definition at line 296 of file hemobaznajmat.C.

References alpha0, C1, hC, and n.

Referenced by giveClassName(), giveFluxVector(), matcond1d(), matcond2d(), and matcond3d().

Member Data Documentation

double oofem::HeMoBazNajMaterial::alpha0
protected

fraction minimal/maximal permeability [-]

Definition at line 67 of file hemobaznajmat.h.

Referenced by initializeFrom(), and perm_mm().

double oofem::HeMoBazNajMaterial::C1
protected

maximal permeability [kg/ m s]

Definition at line 63 of file hemobaznajmat.h.

Referenced by initializeFrom(), and perm_mm().

double oofem::HeMoBazNajMaterial::hC
protected

nonlinear threshold [-]

Definition at line 69 of file hemobaznajmat.h.

Referenced by initializeFrom(), and perm_mm().

double oofem::HeMoBazNajMaterial::heatCapacity
protected

Capacity (c in input file).

Definition at line 72 of file hemobaznajmat.h.

Referenced by computeCapacityCoeff(), and initializeFrom().

double oofem::HeMoBazNajMaterial::heatConductivity
protected

Conductivity (k in input file).

Definition at line 71 of file hemobaznajmat.h.

Referenced by initializeFrom(), and perm_hh().

double oofem::HeMoBazNajMaterial::moistureCapacity
protected

sorption isotherm derivative [kg/m^3]

Definition at line 60 of file hemobaznajmat.h.

Referenced by computeCapacityCoeff(), and initializeFrom().

double oofem::HeMoBazNajMaterial::n
protected

exponent in nonlinear permeability function [-]

Definition at line 65 of file hemobaznajmat.h.

Referenced by initializeFrom(), and perm_mm().


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