mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' into particleInteractions
This commit is contained in:
@ -39,6 +39,7 @@ Foam::SurfaceFilmModel<CloudType>::SurfaceFilmModel(CloudType& owner)
|
|||||||
owner_(owner),
|
owner_(owner),
|
||||||
g_(dimensionedVector("zero", dimAcceleration, vector::zero)),
|
g_(dimensionedVector("zero", dimAcceleration, vector::zero)),
|
||||||
coeffDict_(dictionary::null),
|
coeffDict_(dictionary::null),
|
||||||
|
active_(false),
|
||||||
injectorCellsPatch_(0),
|
injectorCellsPatch_(0),
|
||||||
massParcelPatch_(0),
|
massParcelPatch_(0),
|
||||||
diameterParcelPatch_(0),
|
diameterParcelPatch_(0),
|
||||||
@ -62,6 +63,7 @@ Foam::SurfaceFilmModel<CloudType>::SurfaceFilmModel
|
|||||||
owner_(owner),
|
owner_(owner),
|
||||||
g_(g),
|
g_(g),
|
||||||
coeffDict_(dict.subDict(type + "Coeffs")),
|
coeffDict_(dict.subDict(type + "Coeffs")),
|
||||||
|
active_(true),
|
||||||
injectorCellsPatch_(0),
|
injectorCellsPatch_(0),
|
||||||
massParcelPatch_(0),
|
massParcelPatch_(0),
|
||||||
diameterParcelPatch_(0),
|
diameterParcelPatch_(0),
|
||||||
@ -85,6 +87,11 @@ template<class CloudType>
|
|||||||
template<class TrackData>
|
template<class TrackData>
|
||||||
void Foam::SurfaceFilmModel<CloudType>::inject(TrackData& td)
|
void Foam::SurfaceFilmModel<CloudType>::inject(TrackData& td)
|
||||||
{
|
{
|
||||||
|
if (!active_)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Retrieve the film model from the owner database
|
// Retrieve the film model from the owner database
|
||||||
const surfaceFilmModels::surfaceFilmModel& filmModel =
|
const surfaceFilmModels::surfaceFilmModel& filmModel =
|
||||||
this->owner().db().objectRegistry::lookupObject
|
this->owner().db().objectRegistry::lookupObject
|
||||||
|
|||||||
@ -79,6 +79,9 @@ protected:
|
|||||||
//- The coefficients dictionary
|
//- The coefficients dictionary
|
||||||
const dictionary coeffDict_;
|
const dictionary coeffDict_;
|
||||||
|
|
||||||
|
//- Active flag
|
||||||
|
bool active_;
|
||||||
|
|
||||||
|
|
||||||
// Cached injector fields per film patch
|
// Cached injector fields per film patch
|
||||||
|
|
||||||
|
|||||||
@ -107,8 +107,8 @@ ManualInjectionCoeffs
|
|||||||
{
|
{
|
||||||
minValue 5e-06;
|
minValue 5e-06;
|
||||||
maxValue 0.0005;
|
maxValue 0.0005;
|
||||||
d ( 5e-05 );
|
d 5e-05;
|
||||||
n ( 0.5 );
|
n 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,8 +92,8 @@ ManualInjectionCoeffs
|
|||||||
{
|
{
|
||||||
minValue 5e-06;
|
minValue 5e-06;
|
||||||
maxValue 0.000565;
|
maxValue 0.000565;
|
||||||
d ( 4.8e-05 );
|
d 4.8e-05;
|
||||||
n ( 0.5 );
|
n 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
thermoType hPsiMixtureThermo<reactingMixture<gasThermoPhysics>>;
|
thermoType hsPsiMixtureThermo<reactingMixture<gasThermoPhysics>>;
|
||||||
|
|
||||||
chemistryReader foamChemistryReader;
|
chemistryReader foamChemistryReader;
|
||||||
|
|
||||||
|
|||||||
@ -75,8 +75,8 @@ ManualInjectionCoeffs
|
|||||||
{
|
{
|
||||||
minValue 5e-05;
|
minValue 5e-05;
|
||||||
maxValue 0.0001;
|
maxValue 0.0001;
|
||||||
d ( 7.5e-05 );
|
d 7.5e-05;
|
||||||
n ( 0.5 );
|
n 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -88,8 +88,8 @@ ManualInjectionCoeffs
|
|||||||
{
|
{
|
||||||
minValue 5e-06;
|
minValue 5e-06;
|
||||||
maxValue 0.0005;
|
maxValue 0.0005;
|
||||||
d ( 5e-05 );
|
d 5e-05;
|
||||||
n ( 0.5 );
|
n 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user