#include <distance_function.h>
|
libMesh::DenseVector< libMesh::Real > | Up |
|
libMesh::DenseVector< libMesh::Real > | Fp |
|
libMesh::DenseVector< libMesh::Real > | Um |
|
libMesh::DenseVector< libMesh::Real > | Fm |
|
This class provides the functionality to compute finite difference Jacobians required when computing the distance function
Definition at line 118 of file distance_function.h.
GRINS::ComputeDistanceJacobian::ComputeDistanceJacobian |
( |
| ) |
|
|
inline |
GRINS::ComputeDistanceJacobian::~ComputeDistanceJacobian |
( |
| ) |
|
|
inline |
template<class f >
void GRINS::ComputeDistanceJacobian::operator() |
( |
const libMesh::DenseVector< libMesh::Real > & |
U, |
|
|
const libMesh::DenseVector< libMesh::Real > & |
F0, |
|
|
f & |
F, |
|
|
libMesh::DenseMatrix< libMesh::Real > & |
dFdU |
|
) |
| |
|
inline |
Finite-differenced Jacobian approximation.
Definition at line 132 of file distance_function.h.
References Fp, and Up.
141 dFdU.resize(U.size(),U.size());
144 for (
unsigned int j=0; j<U.size(); j++)
154 pert = 4.e-8*(std::max (std::abs(U(j)), 1.e-3));
159 invpert = 1./(
Up(j) - U(j));
167 for (
unsigned int i=0; i<U.size(); i++)
168 dFdU(i,j) = (
Fp(i) - F0(i))*invpert;
libMesh::DenseVector< libMesh::Real > Up
libMesh::DenseVector< libMesh::Real > Fp
libMesh::DenseVector<libMesh::Real> GRINS::ComputeDistanceJacobian::Fm |
|
private |
libMesh::DenseVector<libMesh::Real> GRINS::ComputeDistanceJacobian::Fp |
|
private |
libMesh::DenseVector<libMesh::Real> GRINS::ComputeDistanceJacobian::Um |
|
private |
libMesh::DenseVector<libMesh::Real> GRINS::ComputeDistanceJacobian::Up |
|
private |
The documentation for this class was generated from the following file: