50 double ksi = lcoords.
at(1);
53 answer.
at(1) = ( 1. - ksi ) * 0.5;
54 answer.
at(2) = ( 1. + ksi ) * 0.5;
63 answer.
at(1, 1) = -1.0 / l;
64 answer.
at(2, 1) = 1.0 / l;
74 this->
evalN(n, lcoords, cellgeo);
88 ksi = ( 2.0 * coords.
at(1) - ( x1 + x2 ) ) / ( x2 - x1 );
89 answer.
at(1) =
clamp(ksi, -1., 1.);
90 return fabs(ksi) <= 1.0;
106 this->
evalN(answer, lcoords, cellgeo);
virtual void local2global(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates global coordinates from given local ones.
virtual void boundaryEdgeEvalN(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the basis functions on the requested boundary.
double & at(int i)
Coefficient access function.
virtual const FloatArray * giveVertexCoordinates(int i) const =0
virtual double giveLength(const FEICellGeometry &cellgeo) const
Computes the exact length.
Class representing a general abstraction for cell geometry.
virtual void evalN(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the array of interpolation functions (shape functions) at given point.
Class implementing an array of integers.
virtual void boundaryEdgeLocal2Global(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Maps the local boundary coordinates to global.
virtual double giveTransformationJacobian(const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the determinant of the transformation.
virtual double evaldNdx(FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the matrix of derivatives of interpolation functions (shape functions) at given point...
virtual double boundaryEdgeGiveTransformationJacobian(int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the determinant of the transformation Jacobian on the requested boundary.
double at(int i, int j) const
Coefficient access function.
Class representing vector of real numbers.
Implementation of matrix containing floating point numbers.
double clamp(int a, int lower, int upper)
Returns the clamped value of a between upper and lower.
void resize(int rows, int cols)
Checks size of receiver towards requested bounds.
virtual void boundaryEdgeGiveNodes(IntArray &answer, int boundary)
Gives the boundary nodes for requested boundary number.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual int global2local(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates local coordinates from given global ones.
void resize(int s)
Resizes receiver towards requested size.