Interface FeynmanKac.PdeCoefficients
- Enclosing class:
- FeynmanKac
-
Method Summary
Modifier and TypeMethodDescriptiondoublekappa(double x, double t) Returns the value of the \(\kappa\) coefficient at the given point.doublemu(double x, double t) Returns the value of the \(\mu\) coefficient at the given point.doublesigma(double x, double t) Returns the value of the \(\sigma\) coefficient at the given point.doublesigmaPrime(double x, double t) Returns the value of \(\sigma^\prime=\frac{\partial \sigma(x,t)}{\partial x}\) at the given point.
-
Method Details
-
sigma
double sigma(double x, double t) Returns the value of the \(\sigma\) coefficient at the given point.Time dependency of \(\sigma\) can be controlled via method
setTimeDependence. Use of this method will usually yield a more efficient algorithm because some finite element matrices do not have to be reassembled for eachtvalue.- Parameters:
x- adouble, the point in space at which \(\sigma\) is to be evaluated.t- adouble, the time point at which \(\sigma\) is to be evaluated.- Returns:
- a
double, the value of \(\sigma\) at(x,t).
-
sigmaPrime
double sigmaPrime(double x, double t) Returns the value of \(\sigma^\prime=\frac{\partial \sigma(x,t)}{\partial x}\) at the given point.Time dependency of \(\sigma^\prime\) can be controlled via method
setTimeDependence. Use of this method will usually yield a more efficient algorithm because some finite element matrices do not have to be reassembled for eachtvalue.- Parameters:
x- adouble, the point in space at which \(\sigma^\prime\) is to be evaluated.t- adouble, the time point at which \(\sigma^\prime\) is to be evaluated.- Returns:
- a
double, the value of \(\sigma^\prime\) at(x,t).
-
mu
double mu(double x, double t) Returns the value of the \(\mu\) coefficient at the given point.Time dependency of \(\mu\) can be controlled via method
setTimeDependence. Use of this method will usually yield a more efficient algorithm because some finite element matrices do not have to be reassembled for eachtvalue.- Parameters:
x- adouble, the point in space at which \(\mu\) is to be evaluated.t- adouble, the time point at which \(\mu\) is to be evaluated.- Returns:
- a
double, the value of \(\mu\) at(x,t).
-
kappa
double kappa(double x, double t) Returns the value of the \(\kappa\) coefficient at the given point.Time dependency of \(\kappa\) can be controlled via method
setTimeDependence. Use of this method will usually yield a more efficient algorithm because some finite element matrices do not have to be reassembled for eachtvalue.- Parameters:
x- adouble, the point in space at which \(\kappa\) is to be evaluated.t- adouble, the time point at which \(\kappa\) is to be evaluated.- Returns:
- a
double, the value of \(\kappa\) at(x,t).
-