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

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

#include <randommaterialext.h>

+ Inheritance diagram for oofem::RandomMaterialExtensionInterface:
+ Collaboration diagram for oofem::RandomMaterialExtensionInterface:

Public Member Functions

 RandomMaterialExtensionInterface ()
 Constructor. More...
 
virtual ~RandomMaterialExtensionInterface ()
 Destructor. More...
 
IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
void giveInputRecord (DynamicInputRecord &ir)
 
bool give (int key, GaussPoint *gp, double &value)
 Returns the property in associated status of given integration point if defined. More...
 
- Public Member Functions inherited from oofem::Interface
 Interface ()
 Constructor. More...
 
virtual ~Interface ()
 
virtual const char * giveClassName () const =0
 

Protected Member Functions

void _generateStatusVariables (GaussPoint *) const
 Sets up (generates) the variables identified in randVariables array using generators given in randomVariableGenerators and stores them in given status. More...
 

Protected Attributes

IntArray randVariables
 Array of randomized variables (identified by a key). More...
 
IntArray randomVariableGenerators
 Array of generators id's for corresponding randomized variables. More...
 

Detailed Description

Abstract base class for all random materials.

Materials supporting random interface can store some of their constants inside integration points (in their statuses). This allows, for example, to set up random variation of certain parameter while still setting up only one material model within the FE model. The default implementation of provided services assumes that material statuses created by the material are derived from base RandomMaterialStatusExtensionInterface.

Definition at line 93 of file randommaterialext.h.

Constructor & Destructor Documentation

oofem::RandomMaterialExtensionInterface::RandomMaterialExtensionInterface ( )
inline

Constructor.

Definition at line 102 of file randommaterialext.h.

virtual oofem::RandomMaterialExtensionInterface::~RandomMaterialExtensionInterface ( )
inlinevirtual

Destructor.

Definition at line 105 of file randommaterialext.h.

Member Function Documentation

void oofem::RandomMaterialExtensionInterface::_generateStatusVariables ( GaussPoint gp) const
protected
bool oofem::RandomMaterialExtensionInterface::give ( int  key,
GaussPoint gp,
double &  value 
)

Returns the property in associated status of given integration point if defined.

Returns
true if property available, false otherwise

Definition at line 90 of file randommaterialext.C.

References oofem::RandomMaterialStatusExtensionInterface::_giveProperty(), oofem::FEMComponent::giveInterface(), oofem::GaussPoint::giveMaterialStatus(), and oofem::RandomMaterialStatusExtensionInterfaceType.

Referenced by oofem::ConcreteFCM::give().

void oofem::RandomMaterialExtensionInterface::giveInputRecord ( DynamicInputRecord ir)
IRResultType oofem::RandomMaterialExtensionInterface::initializeFrom ( InputRecord ir)

Initializes receiver according to object description stored in input record.

The density of material is read into property dictionary (keyword 'd') Intended to be called from material initializeFrom service.

Definition at line 63 of file randommaterialext.C.

References _IFT_RandomMaterialExt_randGen, _IFT_RandomMaterialExt_randVariables, IR_GIVE_OPTIONAL_FIELD, oofem::IRRT_BAD_FORMAT, oofem::IRRT_OK, and OOFEM_WARNING.

Referenced by oofem::ConcreteFCM::initializeFrom(), oofem::MazarsMaterial::initializeFrom(), oofem::IsotropicDamageMaterial1::initializeFrom(), and oofem::LatticeDamage2d::initializeFrom().

Member Data Documentation

IntArray oofem::RandomMaterialExtensionInterface::randomVariableGenerators
protected

Array of generators id's for corresponding randomized variables.

Definition at line 99 of file randommaterialext.h.

IntArray oofem::RandomMaterialExtensionInterface::randVariables
protected

Array of randomized variables (identified by a key).

Definition at line 97 of file randommaterialext.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:40 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011