Commit 1dc587c3 authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Moved total mass variable to sub-model

parent 04dee64a
......@@ -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_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment