mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fvc::laplacian: Added support for dimensionedTensor diffusivity consistent with fvm::laplacian
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -110,7 +110,20 @@ laplacian
|
||||
const word& name
|
||||
)
|
||||
{
|
||||
return gamma*fvc::laplacian(vf, name);
|
||||
GeometricField<GType, fvsPatchField, surfaceMesh> Gamma
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
gamma.name(),
|
||||
vf.instance(),
|
||||
vf.mesh(),
|
||||
IOobject::NO_READ
|
||||
),
|
||||
vf.mesh(),
|
||||
gamma
|
||||
);
|
||||
|
||||
return fvc::laplacian(Gamma, vf, name);
|
||||
}
|
||||
|
||||
|
||||
@ -140,10 +153,20 @@ laplacian
|
||||
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||
)
|
||||
{
|
||||
return gamma*fvc::laplacian
|
||||
GeometricField<GType, fvsPatchField, surfaceMesh> Gamma
|
||||
(
|
||||
vf, "laplacian(" + gamma.name() + ',' + vf.name() + ')'
|
||||
IOobject
|
||||
(
|
||||
gamma.name(),
|
||||
vf.instance(),
|
||||
vf.mesh(),
|
||||
IOobject::NO_READ
|
||||
),
|
||||
vf.mesh(),
|
||||
gamma
|
||||
);
|
||||
|
||||
return fvc::laplacian(Gamma, vf);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user