added pre-factor for reference field

This commit is contained in:
andy
2009-05-18 19:02:16 +01:00
parent 2f5178f60c
commit 98fc11e827
2 changed files with 15 additions and 8 deletions

View File

@ -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]++;

View File

@ -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_;