88 FloatArray lcoords = gp->giveNaturalCoordinates();
92 coord.
times(gp->giveWeight()*fabs(detJ));
94 V=V+gp->giveWeight()*fabs(detJ);
117 if ( ( mode != VM_Total ) && ( mode != VM_Incremental ) ) {
125 answer.
times(factor);
173 answer=answer*factor;
REGISTER_BoundaryCondition(BoundaryCondition)
virtual double giveTransformationJacobian(const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the determinant of the transformation.
Domain * domain
Link to domain object, useful for communicating with other FEM components.
FloatArray componentArray
Components of boundary condition.
virtual double boundaryEvalNormal(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
Evaluates the normal on the requested boundary.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Function * giveTimeFunction()
IntArray celements
Array containing elements elements in set cset.
Abstract base class for all finite elements.
double evaluate(TimeStep *tStep, ValueModeType mode)
Returns the value of load time function at given time.
int giveNumberOfSpatialDimensions()
Returns number of spatial dimensions.
Class implementing an array of integers.
virtual FEInterpolation * giveInterpolation() const
Abstract base class representing integration rule.
void computeXbar()
Compute centre of mass for set cset.
Class representing a general abstraction for finite element interpolation class.
Element * giveElement(int n)
Service for accessing particular domain fe element.
virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode)
Computes components values of load at given point - global coordinates (coordinates given)...
double dotProduct(const FloatArray &x) const
Computes the dot product (or inner product) of receiver and argument.
int cset
Set containing elements used to calculate xbar.
Wrapper around element definition to provide FEICellGeometry interface.
virtual void computeValueAtBoundary(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode, Element *e, int boundary)
Set * giveSet(int n)
Service for accessing particular domain set.
virtual int global2local(FloatArray &answer, const FloatArray &gcoords, const FEICellGeometry &cellgeo)=0
Evaluates local coordinates from given global ones.
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.
IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
void zero()
Zeroes all coefficients of receiver.
void times(double s)
Multiplies receiver with scalar.
void computeNormal(FloatArray &answer, Element *e, int side)
Compute normal at center of element.
#define _IFT_NeumannMomentLoad_Constant
Domain * giveDomain() const
#define _IFT_NeumannMomentLoad_Gradient
virtual IntegrationRule * giveIntegrationRule(int order)
Sets up a suitable integration rule for numerical integrating over volume.
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define _IFT_NeumannMomentLoad_CenterSet
FloatArray xbar
Center of structure.
Class representing integration point in finite element program.
Class representing solution step.
const IntArray & giveElementList()
Returns list of elements within set.
void add(const FloatArray &src)
Adds array src to receiver.
virtual void local2global(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)=0
Evaluates global coordinates from given local ones.
void resize(int s)
Resizes receiver towards requested size.