diff --git a/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H b/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H index 553fc1a01..eb927e71b 100644 --- a/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H +++ b/src/thermophysicalModels/chemistryModel/chemistryModel/basicChemistryModel/basicChemistryModel.H @@ -175,27 +175,6 @@ public: //- Return the heat release, i.e. enthalpy/sec [m2/s3] virtual tmp dQ() const = 0; - - //- Return the mass fraction of the *specieName - //- 28.Nov.2017 Jinwoo Park - virtual tmp Yspecie(const word *specieName) {} - - //- Return the mass fraction of the *specieName - //- 28.Nov.2017 Jinwoo Park - virtual tmp MoleFracSpecie(const word *specieName) {} - - //- Return the epsilon - virtual tmp epsilon() {} - - //- Return the k - virtual tmp k() {} - - //- Return the U field - virtual tmp U() {} - - //- Return the turbulent kinematic diffusivity of chemical species (Le=1 is assumed) - virtual tmp nut() {} - }; diff --git a/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.C b/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.C index 6807df96e..9747e979c 100644 --- a/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.C +++ b/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.C @@ -585,249 +585,6 @@ Foam::chemistryModel::Sh() const return tSh; } -// * * * * * * * quoted by JW 20170320 (13) * * * * * * * * * * * * // - - -template -Foam::tmp -Foam::chemistryModel::Yspecie(const word *specieName) const -{ - tmp tYspecie - ( - new volScalarField - ( - IOobject - ( - "Yspecie", - this->mesh_.time().timeName(), - this->mesh_, - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->mesh_, - dimensionedScalar("zero", dimless, 0.0) - ) - ); - - scalarField& Yspecie = tYspecie.ref(); - - scalar initializationchecker=0.0; - - forAll(Yspecie, celli) - { - if (Yspecie[celli] !=0.0){ - initializationchecker = 1.0; - } - } - - if (initializationchecker != 0.0){ - Info<<"mass fraction field failed to be initialized!"<&>(this->thermo()).species()[*specieName]; - - - forAll(Yspecie, celli) - { - Yspecie[celli] = Y_[SpecieIndex][celli]; - } - - return tYspecie; -} - -template -Foam::tmp -Foam::chemistryModel::MoleFracSpecie(const word *specieName) const -{ - tmp tMoleFracSpecie - ( - new volScalarField - ( - IOobject - ( - "MoleFracSpecie", - this->mesh_.time().timeName(), - this->mesh_, - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->mesh_, - dimensionedScalar("zero", dimless, 0.0) - ) - ); - - scalarField& MoleFracSpecie = tMoleFracSpecie.ref(); - - scalar initializationchecker=0.0; - - forAll(MoleFracSpecie, celli) - { - if (MoleFracSpecie[celli] !=0.0){ - initializationchecker = 1.0; - } - } - - if (initializationchecker != 0.0){ - Info<<"mole fraction field failed to be initialized!"<&>(this->thermo()).species()[*specieName]; - - forAll(MoleFracSpecie, celli) - { - - scalar totMol(0.0); - - for (label i=0; i -Foam::tmp -Foam::chemistryModel::epsilon() const -{ - tmp tepsilon - ( - new volScalarField - ( - IOobject - ( - "epsilon_temp", - this->mesh_.time().timeName(), - this->mesh_, - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->mesh_, - dimensionedScalar("zero", dimless, 0.0) - ) - ); - - scalarField& epsilon = tepsilon.ref(); - - const volScalarField& epsilon_ref = this->db().objectRegistry::lookupObject("epsilon"); - - forAll(epsilon, celli) - { - epsilon[celli] = epsilon_ref[celli]; - } - - return tepsilon; -} - -template -Foam::tmp -Foam::chemistryModel::k() const -{ - tmp tk - ( - new volScalarField - ( - IOobject - ( - "k_temp", - this->mesh_.time().timeName(), - this->mesh_, - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->mesh_, - dimensionedScalar("zero", dimless, 0.0) - ) - ); - - scalarField& k = tk.ref(); - - const volScalarField& k_ref = this->db().objectRegistry::lookupObject("k"); - - forAll(k, celli) - { - k[celli] = k_ref[celli]; - } - - return tk; -} - -// * * * * * quoted by JW 20170331(15) * * * * * * // -template -Foam::tmp -Foam::chemistryModel::U() const -{ - tmp tU - ( - new volVectorField - ( - IOobject - ( - "U_temp", - this->mesh_.time().timeName(), - this->mesh_, - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->mesh_, - dimensionedVector("U_temp", dimLength/dimTime, vector(0.0, 0.0, 0.0)) - ) - ); - - vectorField& U = tU.ref(); - - const volVectorField& U_ref = this->db().objectRegistry::lookupObject("U"); - - forAll(U, celli) - { - U[celli] = U_ref[celli]; - } - - return tU; -} - - -template -Foam::tmp -Foam::chemistryModel::nut() const -{ - tmp tnut - ( - new volScalarField - ( - IOobject - ( - "nut_temp", - this->mesh_.time().timeName(), - this->mesh_, - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->mesh_, - dimensionedScalar("zero", pow(dimLength,2)/dimTime, 0.0) - ) - ); - - scalarField& nut = tnut.ref(); - - const volScalarField& nut_ref = this->db().objectRegistry::lookupObject("nut"); - - forAll(nut, celli) - { - nut[celli] = nut_ref[celli]; - } - - return tnut; -} template Foam::tmp diff --git a/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.H b/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.H index d5343adea..720ad96b9 100644 --- a/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.H +++ b/src/thermophysicalModels/chemistryModel/chemistryModel/chemistryModel/chemistryModel.H @@ -231,29 +231,6 @@ public: //- Return the heat release, i.e. enthalpy/sec [kg/m2/s3] virtual tmp dQ() const; - //- Return mass fraction of *specieName - //- 28.Nov.2017 Jinwoo Park - virtual tmp Yspecie(const word *specieName) const; - - //- Return mole fraction of *specieName - //- 28.Nov.2017 Jinwoo Park - virtual tmp MoleFracSpecie(const word *specieName) const; - - //- Return the epsilon - //- 28.Nov.2017 Jinwoo Park - virtual tmp epsilon() const; - - //- Return the turbulent kinetic energy - //- 28.Nov.2017 Jinwoo Park - virtual tmp k() const; - - //- Return the velocity field - //- 28.Nov.2017 Jinwoo Park - virtual tmp U() const; - - //- Return the turbulent kinematic diffusivity of chemical species (Le=1) - //- 28.Nov.2017 Jinwoo Park - virtual tmp nut() const; // ODE functions (overriding abstract functions in ODE.H) diff --git a/src/thermophysicalModels/chemistryModel/chemistryModel/rhoChemistryModel/rhoChemistryModels.C b/src/thermophysicalModels/chemistryModel/chemistryModel/rhoChemistryModel/rhoChemistryModels.C index b45ebb318..c331cd1c7 100644 --- a/src/thermophysicalModels/chemistryModel/chemistryModel/rhoChemistryModel/rhoChemistryModels.C +++ b/src/thermophysicalModels/chemistryModel/chemistryModel/rhoChemistryModel/rhoChemistryModels.C @@ -111,23 +111,6 @@ namespace Foam rhoChemistryModel, icoPoly8EThermoPhysics ); - - // Chemistry moldels based on absoluteEnthalpy - makeChemistryModel - ( - chemistryModel, - rhoChemistryModel, - gasHaThermoPhysics - ); - - // Chemistry moldels based on absoluteInternalEnergy - makeChemistryModel - ( - chemistryModel, - rhoChemistryModel, - gasEaThermoPhysics - ); - } // ************************************************************************* // diff --git a/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/makeChemistrySolvers.C b/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/makeChemistrySolvers.C index 03ee392a3..069a78282 100644 --- a/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/makeChemistrySolvers.C +++ b/src/thermophysicalModels/chemistryModel/chemistrySolver/chemistrySolver/makeChemistrySolvers.C @@ -88,14 +88,6 @@ namespace Foam incompressibleGasEThermoPhysics ); makeChemistrySolverTypes(rhoChemistryModel, icoPoly8EThermoPhysics); - - // Chemistry solvers based on absoluteEnthalpy - makeChemistrySolverTypes(rhoChemistryModel, gasHaThermoPhysics); - // makeChemistrySolverTypes(rhoChemistryModel, gasHaThermoPhysics); - - // Chemistry solvers based on absoluteInternalEnergy - makeChemistrySolverTypes(rhoChemistryModel, gasEaThermoPhysics); - // makeChemistrySolverTypes(rhoChemistryModel, gasEaThermoPhysics); }