mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Create output for Su VollerPrakash
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017 OpenCFD Ltd.
|
Copyright (C) 2017-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -68,6 +68,16 @@ Foam::porousModels::VollerPrakash::S() const
|
|||||||
const volScalarField& solidAlpha =
|
const volScalarField& solidAlpha =
|
||||||
mesh_.lookupObject<volScalarField>(solidPhase_);
|
mesh_.lookupObject<volScalarField>(solidPhase_);
|
||||||
|
|
||||||
|
if (mesh_.time().outputTime() && debug)
|
||||||
|
{
|
||||||
|
volScalarField Su
|
||||||
|
(
|
||||||
|
"Su" + solidAlpha.name(),
|
||||||
|
Cu_*sqr(solidAlpha)/(pow3(1.0 - solidAlpha) + 1e-3)
|
||||||
|
);
|
||||||
|
Su.write();
|
||||||
|
}
|
||||||
|
|
||||||
return Cu_*sqr(solidAlpha)/(pow3(1.0 - solidAlpha) + 1e-3);
|
return Cu_*sqr(solidAlpha)/(pow3(1.0 - solidAlpha) + 1e-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user