Skip to content
Snippets Groups Projects
Commit 98fc11e8 authored by Andrew Heather's avatar Andrew Heather
Browse files

added pre-factor for reference field

parent 2f5178f6
Branches
Tags
......@@ -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_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment