35#define declareFvmLaplacianScalarGamma(Type) \
38Foam::tmp<Foam::fvMatrix<Foam::Type>> \
39Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvmLaplacian \
41 const GeometricField<scalar, fvsPatchField, surfaceMesh>& gamma, \
42 const GeometricField<Type, fvPatchField, volMesh>& vf \
45 const fvMesh& mesh = this->mesh(); \
47 GeometricField<scalar, fvsPatchField, surfaceMesh> gammaMagSf \
52 tmp<fvMatrix<Type>> tfvm = fvmLaplacianUncorrected \
55 this->tsnGradScheme_().deltaCoeffs(vf), \
58 fvMatrix<Type>& fvm = tfvm.ref(); \
60 if (this->tsnGradScheme_().corrected()) \
62 if (mesh.fluxRequired(vf.name())) \
64 fvm.faceFluxCorrectionPtr() = std::make_unique \
66 GeometricField<Type, fvsPatchField, surfaceMesh> \
69 gammaMagSf*this->tsnGradScheme_().correction(vf) \
76 *fvm.faceFluxCorrectionPtr() \
77 )().primitiveField(); \
85 gammaMagSf*this->tsnGradScheme_().correction(vf) \
86 )().primitiveField(); \
95Foam::tmp<Foam::GeometricField<Foam::Type, Foam::fvPatchField, Foam::volMesh>> \
96Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvcLaplacian \
98 const GeometricField<scalar, fvsPatchField, surfaceMesh>& gamma, \
99 const GeometricField<Type, fvPatchField, volMesh>& vf \
102 const fvMesh& mesh = this->mesh(); \
104 tmp<GeometricField<Type, fvPatchField, volMesh>> tLaplacian \
106 fvc::div(gamma*this->tsnGradScheme_().snGrad(vf)*mesh.magSf()) \
109 tLaplacian.ref().rename \
111 "laplacian(" + gamma.name() + ',' + vf.name() + ')' \
#define declareFvmLaplacianScalarGamma(Type)
#define makeFvLaplacianScheme(SS)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.