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),
|
||||
factor_(readScalar(this->coeffDict().lookup("factor"))),
|
||||
referenceField_
|
||||
(
|
||||
owner.db().objectRegistry::lookupObject<volScalarField>
|
||||
@ -212,7 +213,7 @@ bool Foam::FieldActivatedInjection<CloudType>::validInjection
|
||||
if
|
||||
(
|
||||
nParcelsInjected_[parcelI] < nParcelsPerInjector_
|
||||
&& referenceField_[cellI] > thresholdField_[cellI]
|
||||
&& factor_*referenceField_[cellI] > thresholdField_[cellI]
|
||||
)
|
||||
{
|
||||
nParcelsInjected_[parcelI]++;
|
||||
|
||||
@ -26,15 +26,18 @@ Class
|
||||
Foam::FieldActivatedInjection
|
||||
|
||||
Description
|
||||
Injection at specified positions, with the condition that for injection
|
||||
to be allowed
|
||||
Injection at specified positions, with the conditions:
|
||||
|
||||
referenceField[cellI] >= thresholdField[cellI]
|
||||
- for injection to be allowed
|
||||
|
||||
where:
|
||||
- referenceField is the field used to supply the look-up values
|
||||
- thresholdField supplies the values beyond which the injection is
|
||||
permitted
|
||||
factor*referenceField[cellI] >= thresholdField[cellI]
|
||||
|
||||
where:
|
||||
- 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
|
||||
FieldActivatedInjection.C
|
||||
@ -66,6 +69,9 @@ class FieldActivatedInjection
|
||||
|
||||
// Model parameters
|
||||
|
||||
//- Factor to apply to reference field
|
||||
const scalar factor_;
|
||||
|
||||
//- Reference field
|
||||
const volScalarField& referenceField_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user