35 #define declareFvmLaplacianScalarGamma(Type) \ 38 Foam::tmp<Foam::fvMatrix<Foam::Type>> \ 39 Foam::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() = new \ 65 GeometricField<Type, fvsPatchField, surfaceMesh> \ 67 gammaMagSf*this->tsnGradScheme_().correction(vf) \ 74 *fvm.faceFluxCorrectionPtr() \ 75 )().primitiveField(); \ 83 gammaMagSf*this->tsnGradScheme_().correction(vf) \ 84 )().primitiveField(); \ 93 Foam::tmp<Foam::GeometricField<Foam::Type, Foam::fvPatchField, Foam::volMesh>> \ 94 Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvcLaplacian \ 96 const GeometricField<scalar, fvsPatchField, surfaceMesh>& gamma, \ 97 const GeometricField<Type, fvPatchField, volMesh>& vf \ 100 const fvMesh& mesh = this->mesh(); \ 102 tmp<GeometricField<Type, fvPatchField, volMesh>> tLaplacian \ 104 fvc::div(gamma*this->tsnGradScheme_().snGrad(vf)*mesh.magSf()) \ 107 tLaplacian.ref().rename \ 109 "laplacian(" + gamma.name() + ',' + vf.name() + ')' \
#define declareFvmLaplacianScalarGamma(Type)
makeFvLaplacianScheme(gaussLaplacianScheme)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Tensor of scalars, i.e. Tensor<scalar>.