144 if ( type == IST_MaterialNumber ) {
148 }
else if ( type == IST_Density ) {
163 printf(
"Material with properties : \n");
250 if ( status == NULL ) {
257 if ( status != NULL ) {
258 gp->setMaterialStatus( status, this->
giveNumber() );
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
void printYourself()
Prints the receiver on screen.
virtual ~Material()
Destructor.
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Returns material status of receiver in given integration point.
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
virtual int initMaterial(Element *element)
Optional function to call specific procedures when initializing a material.
virtual contextIOResultType saveIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Stores integration point state to output stream.
double & at(int aKey)
Returns the value of the pair which key is aKey.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
double & at(int i)
Coefficient access function.
void clear()
Clears receiver (zero size).
bool includes(int aKey)
Checks if dictionary includes given key.
Dictionary propertyDictionary
Property dictionary.
Abstract base class for all finite elements.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Element * giveElement()
Returns corresponding element to receiver.
virtual contextIOResultType restoreIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Reads integration point state to output stream.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
MaterialMode
Type representing material mode of integration point.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
virtual double give(int aProperty, GaussPoint *gp)
Returns the value of material property 'aProperty'.
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
int giveNumber()
Returns number of receiver.
#define _IFT_Material_density
Material(int n, Domain *d)
Constructor.
Abstract base class representing a material status information.
Pair * add(int aKey, double value)
Adds a new Pair with given keyword and value into receiver.
Initializes the variable VERBOSE, in order to get a few intermediate messages on screen: beginning an...
Class representing vector of real numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual int hasMaterialModeCapability(MaterialMode mode)
Tests if material supports material mode.
#define _IFT_Material_castingtime
virtual void printYourself()
Prints receiver state on stdout. Useful for debugging.
virtual int hasCastingTimeSupport()
Tests if material supports casting time.
virtual void modifyProperty(int aProperty, double value, GaussPoint *gp)
Modify 'aProperty', which already exists on material.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
double castingTime
Casting time.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual bool hasProperty(int aProperty, GaussPoint *gp)
Returns true if 'aProperty' exists on material.
virtual void initTempStatus(GaussPoint *gp)
Initializes temporary variables stored in integration point status at the beginning of new time step...
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing integration point in finite element program.
#define OOFEM_WARNING(...)
Class representing solution step.
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
The top abstract class of all classes constituting the finite element mesh.
void resize(int s)
Resizes receiver towards requested size.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.