33 #define declareFvmLaplacianScalarGamma(Type) \
36 Foam::tmp<Foam::fvMatrix<Foam::Type>> \
37 Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvmLaplacian \
39 const SurfaceField<scalar>& gamma, \
40 const VolField<Type>& vf \
43 const fvMesh& mesh = this->mesh(); \
45 SurfaceField<scalar> gammaMagSf \
50 tmp<fvMatrix<Type>> tfvm = fvmLaplacianUncorrected \
53 this->tsnGradScheme_().deltaCoeffs(vf), \
56 fvMatrix<Type>& fvm = tfvm.ref(); \
58 if (this->tsnGradScheme_().corrected()) \
60 if (mesh.schemes().fluxRequired(vf.name())) \
62 fvm.faceFluxCorrectionPtr() = new \
65 gammaMagSf*this->tsnGradScheme_().correction(vf) \
72 *fvm.faceFluxCorrectionPtr() \
73 )().primitiveField(); \
81 gammaMagSf*this->tsnGradScheme_().correction(vf) \
82 )().primitiveField(); \
91 Foam::tmp<Foam::VolField<Foam::Type>> \
92 Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvcLaplacian \
94 const SurfaceField<scalar>& gamma, \
95 const VolField<Type>& vf \
98 const fvMesh& mesh = this->mesh(); \
100 tmp<VolField<Type>> tLaplacian \
102 fvc::div(gamma*this->tsnGradScheme_().snGrad(vf)*mesh.magSf()) \
105 tLaplacian.ref().rename \
107 "laplacian(" + gamma.name() + ',' + vf.name() + ')' \
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component,...
makeFvLaplacianScheme(gaussLaplacianScheme)
#define declareFvmLaplacianScalarGamma(Type)