ENH: Moved total mass variable to sub-model

This commit is contained in:
andy
2010-09-17 14:35:10 +01:00
parent 04dee64ac4
commit 1dc587c327
3 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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_;