mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added pre-factor for reference field
This commit is contained in:
@ -75,6 +75,7 @@ Foam::FieldActivatedInjection<CloudType>::FieldActivatedInjection
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
InjectionModel<CloudType>(dict, owner, typeName),
|
InjectionModel<CloudType>(dict, owner, typeName),
|
||||||
|
factor_(readScalar(this->coeffDict().lookup("factor"))),
|
||||||
referenceField_
|
referenceField_
|
||||||
(
|
(
|
||||||
owner.db().objectRegistry::lookupObject<volScalarField>
|
owner.db().objectRegistry::lookupObject<volScalarField>
|
||||||
@ -212,7 +213,7 @@ bool Foam::FieldActivatedInjection<CloudType>::validInjection
|
|||||||
if
|
if
|
||||||
(
|
(
|
||||||
nParcelsInjected_[parcelI] < nParcelsPerInjector_
|
nParcelsInjected_[parcelI] < nParcelsPerInjector_
|
||||||
&& referenceField_[cellI] > thresholdField_[cellI]
|
&& factor_*referenceField_[cellI] > thresholdField_[cellI]
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
nParcelsInjected_[parcelI]++;
|
nParcelsInjected_[parcelI]++;
|
||||||
|
|||||||
@ -26,15 +26,18 @@ Class
|
|||||||
Foam::FieldActivatedInjection
|
Foam::FieldActivatedInjection
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Injection at specified positions, with the condition that for injection
|
Injection at specified positions, with the conditions:
|
||||||
to be allowed
|
|
||||||
|
|
||||||
referenceField[cellI] >= thresholdField[cellI]
|
- for injection to be allowed
|
||||||
|
|
||||||
where:
|
factor*referenceField[cellI] >= thresholdField[cellI]
|
||||||
- referenceField is the field used to supply the look-up values
|
|
||||||
- thresholdField supplies the values beyond which the injection is
|
where:
|
||||||
permitted
|
- referenceField is the field used to supply the look-up values
|
||||||
|
- thresholdField supplies the values beyond which the injection is
|
||||||
|
permitted
|
||||||
|
|
||||||
|
- limited to a user-supllied number of injections per injector location
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
FieldActivatedInjection.C
|
FieldActivatedInjection.C
|
||||||
@ -66,6 +69,9 @@ class FieldActivatedInjection
|
|||||||
|
|
||||||
// Model parameters
|
// Model parameters
|
||||||
|
|
||||||
|
//- Factor to apply to reference field
|
||||||
|
const scalar factor_;
|
||||||
|
|
||||||
//- Reference field
|
//- Reference field
|
||||||
const volScalarField& referenceField_;
|
const volScalarField& referenceField_;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user