46 double domain_size = 0.0;
49 const IntArray &boundaries =
set->giveBoundaryList();
51 for (
int pos = 1; pos <= boundaries.
giveSize() / 2; ++pos ) {
53 int boundary = boundaries.
at(pos * 2);
57 return domain_size / nsd;
#define _IFT_MixedGradientPressure_devGradient
Domain * domain
Link to domain object, useful for communicating with other FEM components.
double domainSize()
Computes the size (including pores) by surface integral over the domain.
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
virtual void setPrescribedPressure(double p)=0
Set prescribed pressure.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing a general abstraction for finite element interpolation class.
Element * giveElement(int n)
Service for accessing particular domain fe element.
#define _IFT_MixedGradientPressure_pressure
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.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing vector of real numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
Domain * giveDomain() const
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void setPrescribedDeviatoricGradientFromVoigt(const FloatArray &ddev)=0
Sets the prescribed tensor from the matrix from given Voigt notation.