74 }
else if ( n == 6 ) {
83 }
else if ( n == 1 ) {
87 OOFEM_ERROR(
"Tensor is in strange voigt format. Should be 3 or 6. Use setPrescribedGradient directly if needed.");
121 double domain_size = 0.0;
124 const IntArray &boundaries =
set->giveBoundaryList();
126 for (
int pos = 1; pos <= boundaries.
giveSize() / 2; ++pos ) {
128 int boundary = boundaries.
at(pos * 2);
132 return fabs(domain_size / nsd);
int giveNumberOfColumns() const
Returns number of columns of receiver.
FloatArray mCenterCoord
Center coordinate .
virtual void giveInputRecord(DynamicInputRecord &input)
virtual double domainSize()
void setPrescribedGradientVoigt(const FloatArray &t)
Sets the prescribed gradient from the matrix from given voigt notation.
double & at(int i)
Coefficient access function.
#define _IFT_PrescribedGradientHomogenization_centercoords
Abstract base class for all finite elements.
virtual double evalNXIntegral(int boundary, const FEICellGeometry &cellgeo)
Computes the integral .
int giveNumberOfSpatialDimensions()
Returns number of spatial dimensions.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
virtual FEInterpolation * giveInterpolation() const
Class representing a general abstraction for finite element interpolation class.
Element * giveElement(int n)
Service for accessing particular domain fe element.
Set of elements, boundaries, edges and/or nodes.
Wrapper around element definition to provide FEICellGeometry interface.
Set * giveSet(int n)
Service for accessing particular domain set.
double at(int i, int j) const
Coefficient access function.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
FloatMatrix mGradient
Prescribed gradient .
Class representing vector of real numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
void resize(int rows, int cols)
Checks size of receiver towards requested bounds.
void zero()
Zeroes all coefficients of receiver.
void giveGradientVoigt(FloatArray &oGradient) const
Gives back the applied gradient in Voigt form.
int giveSize() const
Returns the size of receiver.
#define _IFT_PrescribedGradientHomogenization_gradient
the oofem namespace is to define a context or scope in which all oofem names are defined.
int giveNumberOfRows() const
Returns number of rows of receiver.
void resize(int s)
Resizes receiver towards requested size.