ENH: added active flag to lagrangian/intermediate's SurfaceFilmModel

This commit is contained in:
andy
2010-04-09 11:44:56 +01:00
parent 39f66fbefa
commit 762508c822
2 changed files with 10 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Foam::SurfaceFilmModel<CloudType>::SurfaceFilmModel(CloudType& owner)
owner_(owner),
g_(dimensionedVector("zero", dimAcceleration, vector::zero)),
coeffDict_(dictionary::null),
active_(false),
injectorCellsPatch_(0),
massParcelPatch_(0),
diameterParcelPatch_(0),
@ -62,6 +63,7 @@ Foam::SurfaceFilmModel<CloudType>::SurfaceFilmModel
owner_(owner),
g_(g),
coeffDict_(dict.subDict(type + "Coeffs")),
active_(true),
injectorCellsPatch_(0),
massParcelPatch_(0),
diameterParcelPatch_(0),
@ -85,6 +87,11 @@ template<class CloudType>
template<class TrackData>
void Foam::SurfaceFilmModel<CloudType>::inject(TrackData& td)
{
if (!active_)
{
return;
}
// Retrieve the film model from the owner database
const surfaceFilmModels::surfaceFilmModel& filmModel =
this->owner().db().objectRegistry::lookupObject

View File

@ -79,6 +79,9 @@ protected:
//- The coefficients dictionary
const dictionary coeffDict_;
//- Active flag
bool active_;
// Cached injector fields per film patch