mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Moved total mass variable to sub-model
This commit is contained in:
@ -97,6 +97,9 @@ void Foam::surfaceFilmModels::standardPhaseChange::correct
|
||||
scalarField& dEnergy
|
||||
)
|
||||
{
|
||||
dMass = 0.0;
|
||||
dEnergy = 0.0;
|
||||
|
||||
const thermoSingleLayer& film = refCast<const thermoSingleLayer>(owner_);
|
||||
|
||||
// set local thermo properties
|
||||
|
||||
@ -163,9 +163,6 @@ void Foam::surfaceFilmModels::thermoSingleLayer::updateSubmodels()
|
||||
htcw_->correct();
|
||||
|
||||
// Update phase change
|
||||
massPhaseChangeForPrimary_.internalField() = 0.0;
|
||||
energyPhaseChangeForPrimary_.internalField() = 0.0;
|
||||
|
||||
phaseChange_->correct
|
||||
(
|
||||
time_.deltaTValue(),
|
||||
@ -173,7 +170,6 @@ void Foam::surfaceFilmModels::thermoSingleLayer::updateSubmodels()
|
||||
energyPhaseChangeForPrimary_
|
||||
);
|
||||
massPhaseChangeForPrimary_.correctBoundaryConditions();
|
||||
totalMassPhaseChange_ += sum(massPhaseChangeForPrimary_).value();
|
||||
|
||||
// Update kinematic sub-models
|
||||
kinematicSingleLayer::updateSubmodels();
|
||||
@ -380,7 +376,6 @@ Foam::surfaceFilmModels::thermoSingleLayer::thermoSingleLayer
|
||||
heatTransferModel::New(*this, coeffs_.subDict("lowerSurfaceModels"))
|
||||
),
|
||||
phaseChange_(phaseChangeModel::New(*this, coeffs_)),
|
||||
totalMassPhaseChange_(0.0),
|
||||
energyPhaseChangeForPrimary_
|
||||
(
|
||||
IOobject
|
||||
|
||||
@ -147,9 +147,6 @@ protected:
|
||||
//- Phase change
|
||||
autoPtr<phaseChangeModel> phaseChange_;
|
||||
|
||||
//- Total mass transferred to primary region [kg]
|
||||
scalar totalMassPhaseChange_;
|
||||
|
||||
//- Film energy evolved via phase change
|
||||
volScalarField energyPhaseChangeForPrimary_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user