public class EulerianFemElementSampler extends FemElementSamplerBase
| Constructor and Description |
|---|
EulerianFemElementSampler() |
| 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 J,
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 maxJR,
Point3d c,
Matrix3d J,
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, samplepublic static void sampleElementRejection(FemElement3d elem, CanonicalSampler canonicalSampler, double maxJR, Point3d c, Matrix3d J, Point3d pnt)
elem - elementcanonicalSampler - samples canonical elementmaxJR - maximum jacobian ratio (compared to canonical element)c - natural coordinates at sample positionJ - jacobian at sample positionpnt - final pointpublic void setElement(FemElement3d elem)
FemElementSamplersetElement in interface FemElementSamplersetElement in class FemElementSamplerBaseelem - element to sample frompublic void sample(Point3d coord, Point3d pnt)
FemElementSamplercoord - sampled local coordinate within the element (natural coordinates)pnt - spatial location of pointpublic double isample(Point3d coord, Point3d pnt)
FemElementSamplercoord - sampled local coordinate within the element (natural coordinates)pnt - spatial location of point