70 int ielem, nelem, ie, ig, nv, iv, nc, ic, varsize, vt;
80 for ( ielem = 1; ielem <= nelem; ielem++ ) {
86 if ( fscanf(
initStream,
"%d %d", & ie, & ig) != 2 ) {
92 assert( gp->giveNumber() == ig );
98 assert(nc >= 0 && nc <= 3);
99 for ( ic = 0; ic < nc; ic++ ) {
100 if ( fscanf(
initStream,
"%lg", & coords [ ic ]) != 1 ) {
110 for ( iv = 1; iv <= nv; iv++ ) {
111 if ( fscanf(
initStream,
"%d %d", & vt, & varsize) != 2 ) {
117 for ( ic = 1; ic <= varsize; ic++ ) {
118 if ( fscanf(
initStream,
"%lg", & value.
at(ic) ) != 1 ) {
CrossSection * giveCrossSection()
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
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.
Represents GP (Gauss point) initialization module.
virtual IntegrationRule * giveDefaultIntegrationRulePtr()
Access method for default integration rule.
virtual IRResultType initializeFrom(InputRecord *ir)=0
Initializes receiver according to object description stored in input record.
virtual void restoreConsistency()
Restores consistency of the status, i.e., computes or corrects the values of certain status variables...
double & at(int i)
Coefficient access function.
Represents init module - a base class for all init modules.
Abstract base class for all finite elements.
FILE * initStream
Initialization file.
int giveNumberOfElements() const
Returns number of elements in domain.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Element * giveElement(int n)
Service for accessing particular domain fe element.
Abstract base class for all material models.
REGISTER_InitModule(GPInitModule)
Abstract base class representing a material status information.
Class representing vector of real numbers.
EngngModel * emodel
Problem pointer.
IRResultType
Type defining the return values of InputRecord reading operations.
Abstract base class representing the "problem" under consideration.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Domain * giveDomain(int n)
Service for accessing particular problem domain.
virtual ~GPInitModule()
Destructor.
virtual void doInit()
Reads the input. Abstract service.
void resize(int s)
Resizes receiver towards requested size.
virtual Material * giveMaterial(IntegrationPoint *ip)=0
Returns the material associated with the GP.