mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Fixes #416
This commit is contained in:
@ -277,13 +277,13 @@ bool Foam::functionObjects::scalarTransport::execute()
|
|||||||
const volScalarField& alpha =
|
const volScalarField& alpha =
|
||||||
mesh_.lookupObject<volScalarField>(phaseName_);
|
mesh_.lookupObject<volScalarField>(phaseName_);
|
||||||
|
|
||||||
const surfaceScalarField& limitedPhiAlpa =
|
const surfaceScalarField& limitedPhiAlpha =
|
||||||
mesh_.lookupObject<surfaceScalarField>(phasePhiCompressedName_);
|
mesh_.lookupObject<surfaceScalarField>(phasePhiCompressedName_);
|
||||||
|
|
||||||
D *= pos(alpha - 0.99);
|
D *= pos(alpha - 0.99);
|
||||||
|
|
||||||
// Reset D dimensions consistent with limitedPhiAlpa
|
// Reset D dimensions consistent with limitedPhiAlpha
|
||||||
D.dimensions().reset(limitedPhiAlpa.dimensions()/dimLength);
|
D.dimensions().reset(limitedPhiAlpha.dimensions()/dimLength);
|
||||||
|
|
||||||
// Solve
|
// Solve
|
||||||
tmp<surfaceScalarField> tTPhiUD;
|
tmp<surfaceScalarField> tTPhiUD;
|
||||||
@ -292,7 +292,7 @@ bool Foam::functionObjects::scalarTransport::execute()
|
|||||||
fvScalarMatrix sEqn
|
fvScalarMatrix sEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(s)
|
fvm::ddt(s)
|
||||||
+ fvm::div(limitedPhiAlpa, s, divScheme)
|
+ fvm::div(limitedPhiAlpha, s, divScheme)
|
||||||
- fvm::laplacian(D, s, laplacianScheme)
|
- fvm::laplacian(D, s, laplacianScheme)
|
||||||
==
|
==
|
||||||
alpha*fvOptions_(s)
|
alpha*fvOptions_(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user