OOFEM 3.0
Loading...
Searching...
No Matches
oofem::TMSimpleMaterial Class Reference
Inheritance diagram for oofem::TMSimpleMaterial:
Collaboration diagram for oofem::TMSimpleMaterial:

Public Member Functions

 TMSimpleMaterial (int n, Domain *d)
void giveCharacteristicMatrix (FloatMatrix &answer, MatResponseMode type, GaussPoint *gp, TimeStep *tStep) const override
 Returns characteristic matrix of the receiver.
void giveCharacteristicVector (FloatArray &answer, FloatArray &flux, MatResponseMode type, GaussPoint *gp, TimeStep *tStep) const override
double giveCharacteristicValue (MatResponseMode type, GaussPoint *gp, TimeStep *tStep) const override
 Returns characteristic value of the receiver.
void initializeFrom (InputRecord &ir) override
void giveInputRecord (DynamicInputRecord &input) override
std::unique_ptr< MaterialStatusCreateStatus (GaussPoint *gp) const override
const char * giveClassName () const override
const char * giveInputRecordName () const override
int giveIPValue (FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
Public Member Functions inherited from oofem::Material
 Material (int n, Domain *d)
virtual ~Material ()=default
 Destructor.
virtual bool isCharacteristicMtrxSymmetric (MatResponseMode rMode) const
virtual double give (int aProperty, GaussPoint *gp) const
virtual bool hasProperty (int aProperty, GaussPoint *gp) const
virtual void modifyProperty (int aProperty, double value, GaussPoint *gp)
double giveCastingTime () const
virtual bool isActivated (TimeStep *tStep) const
virtual bool hasMaterialModeCapability (MaterialMode mode) const
virtual bool hasCastingTimeSupport () const
virtual int setIPValue (const FloatArray &value, GaussPoint *gp, InternalStateType type)
void printYourself () override
 Prints receiver state on stdout. Useful for debugging.
virtual void saveIPContext (DataStream &stream, ContextMode mode, GaussPoint *gp)
virtual void restoreIPContext (DataStream &stream, ContextMode mode, GaussPoint *gp)
int checkConsistency () override
virtual void restoreConsistency (GaussPoint *gp)
virtual int initMaterial (Element *element)
virtual MaterialStatusgiveStatus (GaussPoint *gp) const
virtual int packUnknowns (DataStream &buff, TimeStep *tStep, GaussPoint *ip)
virtual int unpackAndUpdateUnknowns (DataStream &buff, TimeStep *tStep, GaussPoint *ip)
virtual int estimatePackSize (DataStream &buff, GaussPoint *ip)
virtual double predictRelativeComputationalCost (GaussPoint *gp)
virtual double predictRelativeRedistributionCost (GaussPoint *gp)
virtual void initTempStatus (GaussPoint *gp) const
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
DomaingiveDomain () const
virtual void setDomain (Domain *d)
int giveNumber () const
void setNumber (int num)
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
virtual void initializeFrom (InputRecord &ir, int priority)
virtual void initializeFinish ()
virtual void postInitialize ()
 Performs post initialization steps. Called after all components are created and initialized.
virtual void printOutputAt (FILE *file, TimeStep *tStep)
virtual InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Protected Attributes

double e
double nu
double lambda
double alpha
double c
Protected Attributes inherited from oofem::Material
Dictionary propertyDictionary
double castingTime
int preCastingTimeMat
 Material existing before casting time - optional parameter, zero by default.
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Detailed Description

Definition at line 588 of file tm.C.

Constructor & Destructor Documentation

◆ TMSimpleMaterial()

oofem::TMSimpleMaterial::TMSimpleMaterial ( int n,
Domain * d )
inline

Definition at line 595 of file tm.C.

References alpha, c, e, lambda, oofem::Material::Material(), and nu.

Member Function Documentation

◆ CreateStatus()

std::unique_ptr< MaterialStatus > oofem::TMSimpleMaterial::CreateStatus ( GaussPoint * gp) const
inlineoverridevirtual

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

Definition at line 697 of file tm.C.

◆ giveCharacteristicMatrix()

void oofem::TMSimpleMaterial::giveCharacteristicMatrix ( FloatMatrix & answer,
MatResponseMode type,
GaussPoint * gp,
TimeStep * tStep ) const
inlineoverridevirtual

◆ giveCharacteristicValue()

double oofem::TMSimpleMaterial::giveCharacteristicValue ( MatResponseMode type,
GaussPoint * gp,
TimeStep * tStep ) const
inlineoverridevirtual

Returns characteristic value of the receiver.

Reimplemented from oofem::Material.

Definition at line 675 of file tm.C.

References alpha, and c.

◆ giveCharacteristicVector()

void oofem::TMSimpleMaterial::giveCharacteristicVector ( FloatArray & answer,
FloatArray & flux,
MatResponseMode type,
GaussPoint * gp,
TimeStep * tStep ) const
inlineoverridevirtual
Parameters
fluxGeneralized strain vector, flux.at(1-6) containing total strain vector, flux(7-9) temperature gradient, flux(10) temperature

Reimplemented from oofem::Material.

Definition at line 637 of file tm.C.

References alpha, oofem::FloatArray::beProductOf(), giveCharacteristicMatrix(), oofem::Material::giveStatus(), OOFEM_ERROR, oofem::FloatArray::resize(), and oofem::FloatArray::zero().

◆ giveClassName()

const char * oofem::TMSimpleMaterial::giveClassName ( ) const
inlineoverridevirtual
Returns
Class name of the receiver.

Implements oofem::FEMComponent.

Definition at line 699 of file tm.C.

◆ giveInputRecord()

void oofem::TMSimpleMaterial::giveInputRecord ( DynamicInputRecord & input)
inlineoverridevirtual

Setups the input record string of receiver.

Parameters
inputDynamic input record to be filled by receiver.

Reimplemented from oofem::Material.

Definition at line 696 of file tm.C.

◆ giveInputRecordName()

const char * oofem::TMSimpleMaterial::giveInputRecordName ( ) const
inlineoverridevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 700 of file tm.C.

References _IFT_TMSimpleMaterial_Name.

◆ giveIPValue()

int oofem::TMSimpleMaterial::giveIPValue ( FloatArray & answer,
GaussPoint * gp,
InternalStateType type,
TimeStep * tStep )
inlineoverridevirtual

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

Definition at line 701 of file tm.C.

References oofem::Material::giveIPValue(), and oofem::Material::giveStatus().

◆ initializeFrom()

void oofem::TMSimpleMaterial::initializeFrom ( InputRecord & ir)
inlineoverridevirtual

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. Note that initializeFrom may be called mutiple times.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
priorityPriority of the input record. This is used to determine the order of initialization

Reimplemented from oofem::Material.

Definition at line 685 of file tm.C.

References _IFT_TMSimpleMaterial_alpha, _IFT_TMSimpleMaterial_c, _IFT_TMSimpleMaterial_E, _IFT_TMSimpleMaterial_lambda, _IFT_TMSimpleMaterial_nu, alpha, c, e, IR_GIVE_OPTIONAL_FIELD, lambda, and nu.

Member Data Documentation

◆ alpha

double oofem::TMSimpleMaterial::alpha
protected

◆ c

double oofem::TMSimpleMaterial::c
protected

Definition at line 593 of file tm.C.

Referenced by giveCharacteristicValue(), initializeFrom(), and TMSimpleMaterial().

◆ e

double oofem::TMSimpleMaterial::e
protected

Definition at line 590 of file tm.C.

Referenced by giveCharacteristicMatrix(), initializeFrom(), and TMSimpleMaterial().

◆ lambda

double oofem::TMSimpleMaterial::lambda
protected

Definition at line 591 of file tm.C.

Referenced by initializeFrom(), and TMSimpleMaterial().

◆ nu

double oofem::TMSimpleMaterial::nu
protected

Definition at line 590 of file tm.C.

Referenced by giveCharacteristicMatrix(), initializeFrom(), and TMSimpleMaterial().


The documentation for this class was generated from the following file:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011