public class MLSShapeFunction extends java.lang.Object implements MFreeShapeFunction
Modifier and Type | Field and Description |
---|---|
static int |
CONSTANT_ORDER |
static int |
LINEAR_ORDER |
static int |
QUADRATIC_ORDER |
static int |
SHEPARD |
Constructor and Description |
---|
MLSShapeFunction() |
MLSShapeFunction(int order) |
MLSShapeFunction(MFreeNode3d[] nodes,
int order) |
Modifier and Type | Method and Description |
---|---|
double |
eval(int nidx)
Returns the value of the i'th shape function (related to node i)
|
void |
eval(VectorNd N)
Returns the values of the shape functions at the current point
|
void |
eval(VectorNd N,
Vector3d[] dNds)
Evaluates both the shape function and derivatives at a given point
|
void |
evalDerivative(int nidx,
Vector3d dNds)
Returns the value of the i'th shape function derivatives
|
void |
evalDerivative(Vector3d[] dNds)
Returns the value of all shape function derivatives
|
Point3d |
getCoordinate()
Current coordinate to be used for evaluation
|
MFreeNode3d[] |
getNodes()
Current nodes used for evaluation
|
static Diff2Function3x1[] |
getPolynomialBasis(int order) |
void |
invalidateRestData()
Invalidate any stored rest information
|
void |
setBasisFunctions(Diff2Function3x1[] functions) |
void |
setCoordinate(Point3d pnt)
Set the evaluation coordinate
|
void |
setNodes(MFreeNode3d[] nodes)
Set the rest nodes
|
void |
updateRestData() |
public static final int CONSTANT_ORDER
public static final int SHEPARD
public static final int LINEAR_ORDER
public static final int QUADRATIC_ORDER
public MLSShapeFunction()
public MLSShapeFunction(int order)
public MLSShapeFunction(MFreeNode3d[] nodes, int order)
public void setBasisFunctions(Diff2Function3x1[] functions)
public void invalidateRestData()
MFreeShapeFunction
invalidateRestData
in interface MFreeShapeFunction
public void updateRestData()
public static Diff2Function3x1[] getPolynomialBasis(int order)
public double eval(int nidx)
MFreeShapeFunction
eval
in interface MFreeShapeFunction
nidx
- node indexpublic void evalDerivative(int nidx, Vector3d dNds)
MFreeShapeFunction
evalDerivative
in interface MFreeShapeFunction
nidx
- node indexdNds
- derivatives (d/dx, d/dy, d/dz)public void setCoordinate(Point3d pnt)
MFreeShapeFunction
setCoordinate
in interface MFreeShapeFunction
public Point3d getCoordinate()
MFreeShapeFunction
getCoordinate
in interface MFreeShapeFunction
public void setNodes(MFreeNode3d[] nodes)
MFreeShapeFunction
setNodes
in interface MFreeShapeFunction
nodes
- nodespublic MFreeNode3d[] getNodes()
MFreeShapeFunction
getNodes
in interface MFreeShapeFunction
public void eval(VectorNd N)
MFreeShapeFunction
eval
in interface MFreeShapeFunction
N
- vector of shape functionspublic void evalDerivative(Vector3d[] dNds)
MFreeShapeFunction
evalDerivative
in interface MFreeShapeFunction
dNds
- derivatives (d/dx, d/dy, d/dz)public void eval(VectorNd N, Vector3d[] dNds)
MFreeShapeFunction
eval
in interface MFreeShapeFunction
N
- shape function outputsdNds
- shape function derivative outputs