mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: film phase change model - updated for restarts
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -60,6 +60,12 @@ noPhaseChange::~noPhaseChange()
|
||||
|
||||
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
|
||||
|
||||
bool noPhaseChange::active() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void noPhaseChange::correctModel
|
||||
(
|
||||
const scalar,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -85,6 +85,9 @@ public:
|
||||
|
||||
// Evolution
|
||||
|
||||
//- Return the model 'active' status - default active = true
|
||||
virtual bool active() const;
|
||||
|
||||
//- Correct
|
||||
virtual void correctModel
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -81,6 +81,11 @@ void phaseChangeModel::correct
|
||||
volScalarField& dEnergy
|
||||
)
|
||||
{
|
||||
if (!active())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
correctModel
|
||||
(
|
||||
dt,
|
||||
|
||||
Reference in New Issue
Block a user