73 for (
int i = 1; i <= iN.
giveSize(); i++ ) {
74 double levelSetNode = 0.0;
77 oLevelSet += iN.
at(i) * levelSetNode;
85 for (
int i = 1; i <= iN.
giveSize(); i++ ) {
86 double levelSetNode = 0.0;
89 oLevelSet += iN.
at(i) * levelSetNode;
98 if ( oGradLevelSet.
giveSize() != dim ) {
102 oGradLevelSet.
zero();
105 for (
int j = 1; j <= dim; j++ ) {
106 double levelSetNode = 0.0;
109 oGradLevelSet.
at(j) += idNdX.
at(i, j) * levelSetNode;
int giveNumberOfColumns() const
Returns number of columns of receiver.
double & at(int i)
Coefficient access function.
EnrichmentItem with hybrid geometry description in the following sense: We have a BasicGeometry to de...
Class implementing an array of integers.
virtual void evalLevelSetTangential(double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const
Evaluate the tangential direction level set in the point iGlobalCoord.
void interpGradLevelSet(FloatArray &oGradLevelSet, const FloatMatrix &idNdX, const IntArray &iNodeInd) const
REGISTER_EnrichmentItem(HybridEI)
bool evalLevelSetNormalInNode(double &oLevelSet, int iNodeInd, const FloatArray &iGlobalCoord) const
double at(int i, int j) const
Coefficient access function.
virtual void evalGradLevelSetNormal(FloatArray &oGradLevelSet, const FloatArray &iGlobalCoord, const FloatMatrix &idNdX, const IntArray &iNodeInd) const
Evaluate the gradient of the normal direction level set in the point iGlobalCoord.
void interpLevelSetTangential(double &oLevelSet, const FloatArray &iN, const IntArray &iNodeInd) const
bool evalLevelSetTangInNode(double &oLevelSet, int iNodeInd, const FloatArray &iGlobalCoord) const
Class representing vector of real numbers.
virtual void evalLevelSetNormal(double &oLevelSet, const FloatArray &iGlobalCoord, const FloatArray &iN, const IntArray &iNodeInd) const
Evaluate the normal direction level set in the point iGlobalCoord.
Implementation of matrix containing floating point numbers.
void interpLevelSet(double &oLevelSet, const FloatArray &iN, const IntArray &iNodeInd) const
This class manages the xfem part.
const FloatArray & giveNodeCoordinates() const
As giveCoordinates, but non-virtual and therefore faster (because it can be inlined).
void zero()
Zeroes all coefficients of receiver.
Domain * giveDomain() const
int giveSize() const
Returns the size of receiver.
Node * giveNode(int n)
Service for accessing particular domain node.
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.
EnrichmentItem with geometry described by BasicGeometry.
void resize(int s)
Resizes receiver towards requested size.