Weighted flux interpolation scheme class. More...
Protected Member Functions | |
void | clearOut () |
Additional Inherited Members | |
![]() | |
static tmp< surfaceInterpolationScheme< Type > > | New (const fvMesh &mesh, Istream &schemeData) |
static tmp< surfaceInterpolationScheme< Type > > | New (const fvMesh &mesh, const surfaceScalarField &faceFlux, Istream &schemeData) |
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &, const tmp< surfaceScalarField > &, const tmp< surfaceScalarField > &) |
template<class SFType > | |
static tmp< GeometricField< typename innerProduct< typename SFType::value_type, Type >::type, fvsPatchField, surfaceMesh > > | dotInterpolate (const SFType &Sf, const GeometricField< Type, fvPatchField, volMesh > &vf, const tmp< surfaceScalarField > &tlambdas) |
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &, const tmp< surfaceScalarField > &) |
Weighted flux interpolation scheme class.
This scheme is used to compute fluxes with variable diffusivity or conductivity, as e.g.
When using the Gauss theorem to compute a gradient, cell centred values need to be interpolated to the faces. Using this scheme, temperature (T) is weighted by thermal conductivity when being interpolated. Similarly, velocity is weighted by diffusivity (D) and the electric potential by the electric conductivity (sigma). Lambda, D or sigma are read from the object registry - the names need to be specified in fvSchemes as e.g.
gradSchemes { grad(T) Gauss weightedFlux lambda; grad(u) Gauss weightedFlux D; grad(potential) Gauss weightedFlux sigma; }
For more details, see equation 16 and 17 in
Weber, N., Beckstein, P., Galindo, V., Starace, M. & Weier, T. (2018). Electro-vortex flow simulation using coupled meshes. Computers and Fluids 168, 101-109. doi:10.1016/j.compfluid.2018.03.047 https://arxiv.org/pdf/1707.06546.pdf
Definition at line 82 of file weightedFlux.H.
|
inline |
Definition at line 131 of file weightedFlux.H.
|
inline |
Definition at line 145 of file weightedFlux.H.
|
virtual |
Definition at line 37 of file weightedFlux.C.
|
protected |
Definition at line 27 of file weightedFlux.C.
References Foam::deleteDemandDrivenData().
TypeName | ( | "weightedFlux< Type >" | ) |
|
inlinevirtual |
Implements surfaceInterpolationScheme< Type >.
Definition at line 167 of file weightedFlux.H.
References surfaceInterpolationScheme< Type >::mesh().
|
inline |
Definition at line 175 of file weightedFlux.H.
|
inline |
Definition at line 186 of file weightedFlux.H.
|
virtual |
Reimplemented from surfaceInterpolationScheme< Type >.
Definition at line 147 of file weightedFlux.C.
References GeometricField::boundaryField(), GeometricField::boundaryFieldRef(), fvsPatchField::coupled(), forAll, mesh, and Foam::New().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.