53 if ( result !=
IRRT_OK )
return result;
57 if ( result !=
IRRT_OK )
return result;
76 printf(
"\nHydratingHeatMat %d: using mixture %d.\n",
giveNumber(), value);
80 printf(
"HydratingHeatMat %d: hydration heat neglected.\n",
giveNumber() );
89 printf(
"HydratingHeatMat %d: hydration heat not included in LHS.\n",
giveNumber() );
106 OOFEM_ERROR(
"Can't setup undefined hydrationModel.");
130 hydrationModel->computeInternalSourceVector(val, gp, tStep, VM_Incremental);
168 FILE *vyst = fopen(
"teplota.out",
"a");
176 fprintf( vyst,
"Elem %.3d krok %.2d: t= %.0f, dt=%.0f, %ld. it, ksi= %.12f, T= %.8f, heat=%.8f\n", gp->
giveElement()->
giveNumber(), tStep->
giveNumber(),
191 if ( rmode == Capacity ) {
193 answer = this->
give(
'c', gp, tStep) * this->
give(
'd', gp, tStep) / 1000;
195 answer = this->
give(
'c', gp, tStep) * this->
give(
'd', gp, tStep);
206 answer =
hydrationModel->giveCharacteristicValue(vec, rmode, gp, tStep)
258 if ( type == IST_HydrationDegree ) {
280 fprintf(file,
" status ");
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Returns material status of receiver in given integration point.
Domain * domain
Link to domain object, useful for communicating with other FEM components.
virtual contextIOResultType saveIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Stores integration point state to output stream.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
double & at(int i)
Coefficient access function.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
void clear()
Clears receiver (zero size).
#define _IFT_HydratingIsoHeatMaterial_mix
const char * __MatResponseModeToString(MatResponseMode _value)
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
double giveTargetTime()
Returns target time.
Element * giveElement()
Returns corresponding element to receiver.
virtual contextIOResultType restoreIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Reads integration point state to output stream.
This class implements a transport material status information.
MatResponseMode
Describes the character of characteristic material matrix.
contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
double giveTimeIncrement()
Returns solution step associated time increment.
std::unique_ptr< HydrationModel > hydrationModel
Reference to the associated hydrationModel instance.
#define _IFT_HydratingIsoHeatMaterial_noLHS
int giveNumber()
Returns receiver's number.
StateCounterType giveSolutionStateCounter()
Returns current solution state counter.
int giveNumber()
Returns number of receiver.
Isotropic material for heat with hydration.
virtual void computeInternalSourceVector(FloatArray &val, GaussPoint *gp, TimeStep *tStep, ValueModeType mode)
Computes the internal source vector of receiver.
bool isEmpty() const
Returns true if receiver is empty.
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
double giveHydrationDegree(GaussPoint *gp, TimeStep *tStep, ValueModeType mode)
Returns the hydration degree at end of TimeStep tStep in given integration point. ...
Abstract base class representing a material status information.
virtual contextIOResultType saveIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Stores integration point state to output stream.
Class representing vector of real numbers.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
void zero()
Zeroes all coefficients of receiver.
#define _IFT_HydratingIsoHeatMaterial_noHeat
void printOutputAt(FILE *file, TimeStep *tStep)
Outputs the status variables.
virtual double give(int aProperty, GaussPoint *gp, TimeStep *tStep)
void times(double s)
Multiplies receiver with scalar.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
#define _IFT_HydratingIsoHeatMaterial_hydration
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
InterfaceType
Enumerative type, used to identify interface type.
REGISTER_Material(DummyMaterial)
int giveSize() const
Returns the size of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
double castAt
Material cast time - start of hydration.
void letTempStateVectorBe(FloatArray v)
virtual void updateInternalState(const FloatArray &state, GaussPoint *gp, TimeStep *tStep)
Calls hydrationModel->updateInternalState, if the material is already cast.
virtual double giveCharacteristicValue(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes the characteristic value of receiver in given integration point, respecting its history...
Class representing integration point in finite element program.
virtual void updateInternalState(const FloatArray &vec, GaussPoint *gp, TimeStep *tStep)
Calls hydrationModel->updateInternalState, if the material is already cast.
Class representing solution step.
void setMixture(MixtureType mix)
IRResultType initializeFrom(InputRecord *ir)
Creates and initializes the hydration model according to object description stored in input record...
virtual contextIOResultType restoreIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Reads integration point state to output stream.
virtual int hasInternalSource()
Return true if hydration heat source is present.
void resize(int s)
Resizes receiver towards requested size.