diff --git a/src/lagrangian/intermediate/Make/files b/src/lagrangian/intermediate/Make/files index 9165621d6c..6d4e26a441 100644 --- a/src/lagrangian/intermediate/Make/files +++ b/src/lagrangian/intermediate/Make/files @@ -54,13 +54,13 @@ KINEMATICINJECTION=submodels/Kinematic/InjectionModel $(KINEMATICINJECTION)/KinematicLookupTableInjection/kinematicParcelInjectionData.C $(KINEMATICINJECTION)/KinematicLookupTableInjection/kinematicParcelInjectionDataIO.C $(KINEMATICINJECTION)/KinematicLookupTableInjection/kinematicParcelInjectionDataIOList.C +$(KINEMATICINJECTION)/PatchInjection/patchInjectionBase.C THERMOINJECTION=submodels/Thermodynamic/InjectionModel $(THERMOINJECTION)/ThermoLookupTableInjection/thermoParcelInjectionData.C $(THERMOINJECTION)/ThermoLookupTableInjection/thermoParcelInjectionDataIO.C $(THERMOINJECTION)/ThermoLookupTableInjection/thermoParcelInjectionDataIOList.C - REACTINGINJECTION=submodels/Reacting/InjectionModel $(REACTINGINJECTION)/ReactingLookupTableInjection/reactingParcelInjectionData.C $(REACTINGINJECTION)/ReactingLookupTableInjection/reactingParcelInjectionDataIO.C diff --git a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C index 9744364ca1..184c026b92 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/PatchInjection/PatchInjection.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -38,8 +38,7 @@ Foam::PatchInjection::PatchInjection ) : InjectionModel(dict, owner, modelName, typeName), - patchName_(this->coeffDict().lookup("patchName")), - patchId_(owner.mesh().boundaryMesh().findPatchID(patchName_)), + patchInjectionBase(owner.mesh(), this->coeffDict().lookup("patchName")), duration_(readScalar(this->coeffDict().lookup("duration"))), parcelsPerSecond_ ( @@ -62,32 +61,11 @@ Foam::PatchInjection::PatchInjection this->coeffDict().subDict("sizeDistribution"), owner.rndGen() ) - ), - cellOwners_(), - fraction_(1.0) + ) { - if (patchId_ < 0) - { - FatalErrorIn - ( - "PatchInjection::PatchInjection" - "(" - "const dictionary&, " - "CloudType&" - ")" - ) << "Requested patch " << patchName_ << " not found" << nl - << "Available patches are: " << owner.mesh().boundaryMesh().names() - << nl << exit(FatalError); - } - duration_ = owner.db().time().userTimeToTime(duration_); - updateMesh(); - - label patchSize = cellOwners_.size(); - label totalPatchSize = patchSize; - reduce(totalPatchSize, sumOp