public class MonteCarloFemElementIntegrator extends MonteCarloIntegrator implements FemElementIntegrator
MonteCarloIntegrator.FunctionNdSampler, MonteCarloIntegrator.FunctionSampler
Constructor and Description |
---|
MonteCarloFemElementIntegrator(FemElementSampler sampler) |
Modifier and Type | Method and Description |
---|---|
double |
integrate(FemElement3d elem,
Function3x1 func)
Integrates a function defined over the finite element
|
double |
integrateRest(FemElement3d elem,
Function3x1 func)
Integrates a function defined over the finite element at rest coordinates
|
void |
integrateShapeFunctionProduct(FemElement3d elem,
Function3x1 func,
VectorNd out)
Integrates a function times the shape functions
|
void |
integrateShapeFunctionProductRest(FemElement3d elem,
Function3x1 func,
VectorNd out)
Integrates a function times the shape functions at rest coordinates
|
void |
setSampler(FemElementSampler sampler) |
integrate, integrate, integrate, integrate, integrate, integrate, setLimits, setMaxSamples, setMaxVariance, setMinSamples
public MonteCarloFemElementIntegrator(FemElementSampler sampler)
public void setSampler(FemElementSampler sampler)
public double integrate(FemElement3d elem, Function3x1 func)
FemElementIntegrator
integrate
in interface FemElementIntegrator
elem
- finite elementfunc
- function to integratepublic void integrateShapeFunctionProduct(FemElement3d elem, Function3x1 func, VectorNd out)
FemElementIntegrator
integrateShapeFunctionProduct
in interface FemElementIntegrator
elem
- finite elementfunc
- function to integrateout
- output, length equal to number of shape functions (i.e. FEM nodes)public double integrateRest(FemElement3d elem, Function3x1 func)
FemElementIntegrator
integrateRest
in interface FemElementIntegrator
elem
- finite elementfunc
- function to integratepublic void integrateShapeFunctionProductRest(FemElement3d elem, Function3x1 func, VectorNd out)
FemElementIntegrator
integrateShapeFunctionProductRest
in interface FemElementIntegrator
elem
- finite elementfunc
- function to integrateout
- output, length equal to number of shape functions (i.e. FEM nodes)