public class LagrangianFemElementSampler extends FemElementSamplerBase
Constructor and Description |
---|
LagrangianFemElementSampler() |
Modifier and Type | Method and Description |
---|---|
double |
isample(Point3d coord,
Point3d pnt)
Generates a sample point from within the previously used or assigned finite element,
returns probability density of point, used mainly for numerical integration
|
void |
sample(Point3d c,
Matrix3d J0,
Point3d pnt) |
void |
sample(Point3d coord,
Point3d pnt)
Generates a sample point from within the previously used or assigned finite element
|
static void |
sampleElementRejection(FemElement3d elem,
CanonicalSampler canonicalSampler,
double maxJR0,
Point3d c,
Matrix3d J0,
Point3d pnt)
Uses a sample rejection technique to compute a random sample within an element.
|
void |
setElement(FemElement3d elem)
Sets the element to sample from
|
sample, sample
public static void sampleElementRejection(FemElement3d elem, CanonicalSampler canonicalSampler, double maxJR0, Point3d c, Matrix3d J0, Point3d pnt)
elem
- elementcanonicalSampler
- samples canonical elementmaxJR0
- maximum rest jacobian ratio (compared to canonical element)c
- natural coordinates at sample positionJ0
- rest jacobian at sample positionpnt
- final pointpublic void setElement(FemElement3d elem)
FemElementSampler
setElement
in interface FemElementSampler
setElement
in class FemElementSamplerBase
elem
- element to sample frompublic void sample(Point3d coord, Point3d pnt)
FemElementSampler
coord
- sampled local coordinate within the element (natural coordinates)pnt
- spatial location of pointpublic double isample(Point3d coord, Point3d pnt)
FemElementSampler
coord
- sampled local coordinate within the element (natural coordinates)pnt
- spatial location of point