diff --git a/applications/solvers/combustion/fireFoam/Make/options b/applications/solvers/combustion/fireFoam/Make/options index 888e7f99ae..58da65f273 100644 --- a/applications/solvers/combustion/fireFoam/Make/options +++ b/applications/solvers/combustion/fireFoam/Make/options @@ -6,12 +6,9 @@ EXE_INC = \ -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude \ -I$(LIB_SRC)/transportModels/compressible/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidChemistryModel/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ @@ -19,7 +16,6 @@ EXE_INC = \ -I$(LIB_SRC)/radiationModels/lnInclude \ -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ - -I$(LIB_SRC)/regionModels/pyrolysisModels/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \ -I$(LIB_SRC)/ODE/lnInclude @@ -37,14 +33,11 @@ EXE_LIBS = \ -lreactionThermophysicalModels \ -lSLGThermo \ -lchemistryModel \ - -lsolidChemistryModel \ -lcombustionModels \ -lregionModels \ -lradiationModels \ -lsurfaceFilmModels \ -lsurfaceFilmDerivedFvPatchFields \ - -lpyrolysisModels \ - -lregionCoupling \ -llagrangianIntermediate \ -llagrangianTurbulence \ -lODE diff --git a/applications/solvers/combustion/fireFoam/createFields.H b/applications/solvers/combustion/fireFoam/createFields.H index 374785b899..90e6b90e11 100644 --- a/applications/solvers/combustion/fireFoam/createFields.H +++ b/applications/solvers/combustion/fireFoam/createFields.H @@ -119,12 +119,6 @@ Switch solvePrimaryRegion additionalControlsDict.lookup("solvePrimaryRegion") ); -Switch solvePyrolysisRegion -( - additionalControlsDict.lookupOrDefault("solvePyrolysisRegion", true) -); - - Info<< "Creating field dpdt\n" << endl; volScalarField dpdt ( @@ -143,6 +137,5 @@ volScalarField K("K", 0.5*magSqr(U)); #include "createClouds.H" #include "createSurfaceFilmModel.H" -#include "createPyrolysisModel.H" #include "createRadiationModel.H" #include "createFvOptions.H" diff --git a/applications/solvers/combustion/fireFoam/createPyrolysisModel.H b/applications/solvers/combustion/fireFoam/createPyrolysisModel.H deleted file mode 100644 index 4c93ad2c6a..0000000000 --- a/applications/solvers/combustion/fireFoam/createPyrolysisModel.H +++ /dev/null @@ -1,3 +0,0 @@ -Info<< "Creating pyrolysis model" << endl; - -regionModels::pyrolysisModels::pyrolysisModelCollection pyrolysis(mesh); diff --git a/applications/solvers/combustion/fireFoam/fireFoam.C b/applications/solvers/combustion/fireFoam/fireFoam.C index cbc0fa2e69..2e2a1c89bf 100644 --- a/applications/solvers/combustion/fireFoam/fireFoam.C +++ b/applications/solvers/combustion/fireFoam/fireFoam.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -26,7 +26,7 @@ Application Description Transient solver for fires and turbulent diffusion flames with reacting - particle clouds, surface film and pyrolysis modelling. + particle clouds and surface film modelling. \*---------------------------------------------------------------------------*/ @@ -34,10 +34,8 @@ Description #include "turbulentFluidThermoModel.H" #include "basicReactingCloud.H" #include "surfaceFilmModel.H" -#include "pyrolysisModelCollection.H" #include "radiationModel.H" #include "SLGThermo.H" -#include "solidChemistryModel.H" #include "psiReactionThermo.H" #include "CombustionModel.H" #include "pimpleControl.H" @@ -59,7 +57,6 @@ int main(int argc, char *argv[]) #include "createTimeControls.H" #include "compressibleCourantNo.H" #include "setInitialDeltaT.H" - #include "readPyrolysisTimeControls.H" turbulence->validate(); @@ -71,7 +68,6 @@ int main(int argc, char *argv[]) { #include "readTimeControls.H" #include "compressibleCourantNo.H" - #include "solidRegionDiffusionNo.H" #include "setMultiRegionDeltaT.H" #include "setDeltaT.H" @@ -83,11 +79,6 @@ int main(int argc, char *argv[]) surfaceFilm.evolve(); - if(solvePyrolysisRegion) - { - pyrolysis.evolve(); - } - if (solvePrimaryRegion) { #include "rhoEqn.H" diff --git a/applications/solvers/combustion/fireFoam/readPyrolysisTimeControls.H b/applications/solvers/combustion/fireFoam/readPyrolysisTimeControls.H deleted file mode 100644 index 9559832955..0000000000 --- a/applications/solvers/combustion/fireFoam/readPyrolysisTimeControls.H +++ /dev/null @@ -1,34 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Global - readPyrolysisTimeControls - -Description - - -\*---------------------------------------------------------------------------*/ - -scalar maxDi = pyrolysis.maxDiff(); - -// ************************************************************************* // diff --git a/applications/solvers/combustion/fireFoam/setMultiRegionDeltaT.H b/applications/solvers/combustion/fireFoam/setMultiRegionDeltaT.H index 7f7d58906f..8a88dd36ab 100644 --- a/applications/solvers/combustion/fireFoam/setMultiRegionDeltaT.H +++ b/applications/solvers/combustion/fireFoam/setMultiRegionDeltaT.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -38,14 +38,7 @@ if (adjustTimeStep) CoNum = small; } - if (DiNum == -great) - { - DiNum = small; - } - - const scalar TFactorFluid = maxCo/(CoNum + small); - const scalar TFactorSolid = maxDi/(DiNum + small); const scalar TFactorFilm = maxCo/(surfaceFilm.CourantNumber() + small); const scalar dt0 = runTime.deltaTValue(); @@ -54,7 +47,7 @@ if (adjustTimeStep) ( min ( - dt0*min(min(TFactorFluid, min(TFactorFilm, TFactorSolid)), 1.2), + dt0*min(min(TFactorFluid, TFactorFilm), 1.2), maxDeltaT ) ); diff --git a/applications/solvers/combustion/fireFoam/solidRegionDiffusionNo.H b/applications/solvers/combustion/fireFoam/solidRegionDiffusionNo.H deleted file mode 100644 index 4aac1f390e..0000000000 --- a/applications/solvers/combustion/fireFoam/solidRegionDiffusionNo.H +++ /dev/null @@ -1 +0,0 @@ -scalar DiNum = pyrolysis.solidRegionDiffNo(); diff --git a/src/TurbulenceModels/compressible/Make/options b/src/TurbulenceModels/compressible/Make/options index 4a6578d628..db20dce097 100644 --- a/src/TurbulenceModels/compressible/Make/options +++ b/src/TurbulenceModels/compressible/Make/options @@ -12,7 +12,6 @@ LIB_LIBS = \ -lcompressibleTransportModels \ -lfluidThermophysicalModels \ -lsolidThermo \ - -lsolidSpecie \ -lturbulenceModels \ -lspecie \ -lfiniteVolume \ diff --git a/src/regionModels/Allwclean b/src/regionModels/Allwclean index 2996d85d61..037a56e5eb 100755 --- a/src/regionModels/Allwclean +++ b/src/regionModels/Allwclean @@ -3,9 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory makeType=${1:-libso} wclean $makeType regionModel -wclean $makeType pyrolysisModels wclean $makeType surfaceFilmModels wclean $makeType thermalBaffleModels -wclean $makeType regionCoupling #------------------------------------------------------------------------------ diff --git a/src/regionModels/Allwmake b/src/regionModels/Allwmake index 1f2348ee2c..e6c2241cee 100755 --- a/src/regionModels/Allwmake +++ b/src/regionModels/Allwmake @@ -5,10 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments wmake $targetType regionModel -wmake $targetType pyrolysisModels wmake $targetType surfaceFilmModels wmake $targetType surfaceFilmModels/derivedFvPatchFields/wallFunctions wmake $targetType thermalBaffleModels -wmake $targetType regionCoupling #------------------------------------------------------------------------------ diff --git a/src/regionModels/pyrolysisModels/Make/files b/src/regionModels/pyrolysisModels/Make/files deleted file mode 100644 index 0a9f942f78..0000000000 --- a/src/regionModels/pyrolysisModels/Make/files +++ /dev/null @@ -1,8 +0,0 @@ -/* Pyrolysis models */ -pyrolysisModel/pyrolysisModel.C -pyrolysisModel/pyrolysisModelNew.C -reactingOneDim/reactingOneDim.C -noPyrolysis/noPyrolysis.C -pyrolysisModel/pyrolysisModelCollection.C - -LIB = $(FOAM_LIBBIN)/libpyrolysisModels diff --git a/src/regionModels/pyrolysisModels/Make/options b/src/regionModels/pyrolysisModels/Make/options deleted file mode 100644 index 0132e66ef7..0000000000 --- a/src/regionModels/pyrolysisModels/Make/options +++ /dev/null @@ -1,26 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidChemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ - -I$(LIB_SRC)/radiationModels/lnInclude \ - -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude - -LIB_LIBS = \ - -lfiniteVolume \ - -lmeshTools \ - -lchemistryModel \ - -lspecie \ - -lfluidThermophysicalModels \ - -lsolidChemistryModel \ - -lsolidThermo \ - -lturbulenceModels \ - -lcompressibleTurbulenceModels \ - -lregionModels \ - -lradiationModels \ - -lreactionThermophysicalModels diff --git a/src/regionModels/pyrolysisModels/noPyrolysis/noPyrolysis.C b/src/regionModels/pyrolysisModels/noPyrolysis/noPyrolysis.C deleted file mode 100644 index 1d534cb867..0000000000 --- a/src/regionModels/pyrolysisModels/noPyrolysis/noPyrolysis.C +++ /dev/null @@ -1,194 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "noPyrolysis.H" -#include "addToRunTimeSelectionTable.H" -#include "volFields.H" -#include "absorptionEmissionModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -defineTypeNameAndDebug(noPyrolysis, 0); -addToRunTimeSelectionTable(pyrolysisModel, noPyrolysis, mesh); -addToRunTimeSelectionTable(pyrolysisModel, noPyrolysis, dictionary); - -// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // - -void noPyrolysis::constructThermoChemistry() -{ - solidThermo_.reset - ( - solidReactionThermo::New(regionMesh()).ptr() - ); - - solidChemistry_.reset - ( - basicSolidChemistryModel::New(solidThermo_()).ptr() - ); - - solidThermo_.reset(&solidChemistry_->solidThermo()); - radiation_.reset(radiationModel::New(solidThermo_->T()).ptr()); -} - - -bool noPyrolysis::read() -{ - if (pyrolysisModel::read()) - { - // no additional info to read - return true; - } - else - { - return false; - } -} - - -bool noPyrolysis::read(const dictionary& dict) -{ - if (pyrolysisModel::read(dict)) - { - // no additional info to read - return true; - } - else - { - return false; - } -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -noPyrolysis::noPyrolysis -( - const word& modelType, - const fvMesh& mesh, - const word& regionType -) -: - pyrolysisModel(mesh, regionType), - solidThermo_(nullptr), - solidChemistry_(nullptr), - radiation_(nullptr) -{ - if (active()) - { - constructThermoChemistry(); - } -} - - -noPyrolysis::noPyrolysis -( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType -) -: - pyrolysisModel(mesh, regionType), - solidThermo_(nullptr), - solidChemistry_(nullptr), - radiation_(nullptr) -{ - if (active()) - { - constructThermoChemistry(); - } -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -noPyrolysis::~noPyrolysis() -{} - - -// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // - -void noPyrolysis::preEvolveRegion() -{} - - -void noPyrolysis::evolveRegion() -{} - - -const volScalarField& noPyrolysis::rho() const -{ - return solidThermo_->rho(); -} - - -const volScalarField& noPyrolysis::T() const -{ - return solidThermo_->T(); -} - - -const tmp noPyrolysis::Cp() const -{ - return solidThermo_->Cp(); -} - - -tmp noPyrolysis::kappaRad() const -{ - return radiation_->absorptionEmission().a(); -} - - -tmp noPyrolysis::kappa() const -{ - return solidThermo_->kappa(); -} - - -const surfaceScalarField& noPyrolysis::phiGas() const -{ - FatalErrorInFunction - << "phiGas field not available for " << type() << abort(FatalError); - return surfaceScalarField::null(); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace surfaceFilmModels -} // End namespace regionModels -} // End namespace Foam - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/noPyrolysis/noPyrolysis.H b/src/regionModels/pyrolysisModels/noPyrolysis/noPyrolysis.H deleted file mode 100644 index 6ba65f4b0a..0000000000 --- a/src/regionModels/pyrolysisModels/noPyrolysis/noPyrolysis.H +++ /dev/null @@ -1,165 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::regionModels::pyrolysisModels::noPyrolysis - -Description - Dummy surface pyrolysis model for 'none' - -SourceFiles - noPyrolysis.C - -\*---------------------------------------------------------------------------*/ - -#ifndef noPyrolysis_H -#define noPyrolysis_H - -#include "pyrolysisModel.H" -#include "volFieldsFwd.H" -#include "basicSolidChemistryModel.H" -#include "radiationModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - -/*---------------------------------------------------------------------------*\ - Class noPyrolysis Declaration -\*---------------------------------------------------------------------------*/ - -class noPyrolysis -: - public pyrolysisModel -{ -protected: - - // Protected member functions - - //- Read control parameters from dictionary - virtual bool read(); - - //- Read control parameters from dictionary - virtual bool read(const dictionary& dict); - - //- Reset solidChemistryModel and solidThermo pointers - void constructThermoChemistry(); - - //- Reference to solid thermo - autoPtr solidThermo_; - - //- Reference to the solid chemistry model - autoPtr solidChemistry_; - - //- Pointer to radiation model - autoPtr radiation_; - - -public: - - //- Runtime type information - TypeName("none"); - - - // Constructors - - //- Construct from type name and mesh - noPyrolysis - ( - const word& modelType, - const fvMesh& mesh, - const word& regionType - ); - - //- Construct from type name and mesh and dict - noPyrolysis - ( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType - ); - - //- Disallow default bitwise copy construction - noPyrolysis(const noPyrolysis&) = delete; - - - //- Destructor - virtual ~noPyrolysis(); - - - // Member Functions - - // Fields - - //- Return density [kg/m^3] - virtual const volScalarField& rho() const; - - //- Return const temperature [K] - virtual const volScalarField& T() const; - - //- Return specific heat capacity [J/kg/K] - virtual const tmp Cp() const; - - //- Return the region absorptivity [1/m] - virtual tmp kappaRad() const; - - //- Return the region thermal conductivity [W/m/k] - virtual tmp kappa() const; - - //- Return the total gas mass flux to primary region [kg/m^2/s] - virtual const surfaceScalarField& phiGas() const; - - - // Evolution - - //- Pre-evolve region - virtual void preEvolveRegion(); - - //- Evolve the pyrolysis equations - virtual void evolveRegion(); - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const noPyrolysis&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace pyrolysisModels -} // End namespace regionModels -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModel.C b/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModel.C deleted file mode 100644 index fb8440831c..0000000000 --- a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModel.C +++ /dev/null @@ -1,154 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "pyrolysisModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -defineTypeNameAndDebug(pyrolysisModel, 0); -defineRunTimeSelectionTable(pyrolysisModel, mesh); -defineRunTimeSelectionTable(pyrolysisModel, dictionary); - -// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // - -void pyrolysisModel::readPyrolysisControls() -{} - - -bool pyrolysisModel::read() -{ - if (regionModel1D::read()) - { - readPyrolysisControls(); - return true; - } - else - { - return false; - } -} - - -bool pyrolysisModel::read(const dictionary& dict) -{ - if (regionModel1D::read(dict)) - { - readPyrolysisControls(); - return true; - } - else - { - return false; - } -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -pyrolysisModel::pyrolysisModel(const fvMesh& mesh, const word& regionType) -: - regionModel1D(mesh, regionType) -{} - - -pyrolysisModel::pyrolysisModel -( - const word& modelType, - const fvMesh& mesh, - const word& regionType -) -: - regionModel1D(mesh, regionType, modelType) -{ - if (active_) - { - read(); - } -} - - -pyrolysisModel::pyrolysisModel -( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType -) -: - regionModel1D(mesh, regionType, modelType, dict) -{ - if (active_) - { - read(dict); - } -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -pyrolysisModel::~pyrolysisModel() -{} - - -// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // - -scalar pyrolysisModel::addMassSources -( - const label patchi, - const label facei -) -{ - return 0.0; -} - - -scalar pyrolysisModel::solidRegionDiffNo() const -{ - return -great; -} - - -scalar pyrolysisModel::maxDiff() const -{ - return great; -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace pyrolysisModels -} // End namespace regionModels -} // End namespace Foam - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModel.H b/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModel.H deleted file mode 100644 index d06d68db7f..0000000000 --- a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModel.H +++ /dev/null @@ -1,241 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::regionModels::pyrolysisModels::pyrolysisModel - -Description - Base class for pyrolysis models - -SourceFiles - pyrolysisModelI.H - pyrolysisModel.C - -\*---------------------------------------------------------------------------*/ - -#ifndef pyrolysisModel_H -#define pyrolysisModel_H - -#include "runTimeSelectionTables.H" -#include "volFieldsFwd.H" -#include "regionModel1D.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes -class fvMesh; -class Time; - -namespace regionModels -{ -namespace pyrolysisModels -{ - -/*---------------------------------------------------------------------------*\ - Class pyrolysisModel Declaration -\*---------------------------------------------------------------------------*/ - -class pyrolysisModel -: - public regionModel1D -{ - // Private Member Functions - - //- Construct fields - void constructMeshObjects(); - - //- Read pyrolysis controls - void readPyrolysisControls(); - - -protected: - - // Protected Member Functions - - //- Read control parameters - virtual bool read(); - - //- Read control parameters from dictionary - virtual bool read(const dictionary& dict); - - -public: - - //- Runtime type information - TypeName("pyrolysisModel"); - - - // Declare runtime constructor selection table - - declareRunTimeSelectionTable - ( - autoPtr, - pyrolysisModel, - mesh, - ( - const word& modelType, - const fvMesh& mesh, - const word& regionType - ), - (modelType, mesh, regionType) - ); - - declareRunTimeSelectionTable - ( - autoPtr, - pyrolysisModel, - dictionary, - ( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType - ), - (modelType, mesh, dict, regionType) - ); - - - // Constructors - - //- Construct null from mesh - pyrolysisModel - ( - const fvMesh& mesh, - const word& regionType - ); - - //- Construct from type name and mesh - pyrolysisModel - ( - const word& modelType, - const fvMesh& mesh, - const word& regionType - ); - - //- Construct from type name and mesh and dictionary - pyrolysisModel - ( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType - ); - - //- Disallow default bitwise copy construction - pyrolysisModel(const pyrolysisModel&) = delete; - - //- Return clone - autoPtr clone() const - { - NotImplemented; - return autoPtr(nullptr); - } - - - // Selectors - - //- Return a reference to the selected pyrolysis model - static autoPtr New - ( - const fvMesh& mesh, - const word& regionType = "pyrolysis" - ); - - //- Return a reference to a named selected pyrolysis model - static autoPtr New - ( - const fvMesh& mesh, - const dictionary& dict, - const word& regionType = "pyrolysis" - ); - - - //- Destructor - virtual ~pyrolysisModel(); - - - // Member Functions - - // Access - - // Fields - - //- Return density [kg/m^3] - virtual const volScalarField& rho() const = 0; - - //- Return const temperature [K] - virtual const volScalarField& T() const = 0; - - //- Return specific heat capacity [J/kg/K] - virtual const tmp Cp() const = 0; - - //- Return the region absorptivity [1/m] - virtual tmp kappaRad() const = 0; - - //- Return the region thermal conductivity [W/m/k] - virtual tmp kappa() const = 0; - - //- Return the total gas mass flux to primary region [kg/m^2/s] - virtual const surfaceScalarField& phiGas() const = 0; - - - // Sources - - //- External hook to add mass to the primary region - virtual scalar addMassSources - ( - const label patchi, - const label facei - ); - - - // Helper function - - //- Mean diffusion number of the solid region - virtual scalar solidRegionDiffNo() const; - - //- Return max diffusivity allowed in the solid - virtual scalar maxDiff() const; - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const pyrolysisModel&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace pyrolysisModels -} // End namespace regionModels -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.C b/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.C deleted file mode 100644 index 12f9716fda..0000000000 --- a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.C +++ /dev/null @@ -1,198 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "pyrolysisModelCollection.H" -#include "volFields.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -namespace Foam -{ - namespace regionModels - { - namespace pyrolysisModels - { - defineTypeNameAndDebug(pyrolysisModelCollection, 0); - } - } -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -pyrolysisModelCollection::pyrolysisModelCollection(const fvMesh& mesh) -: - PtrList() - -{ - IOdictionary pyrolysisZonesDict - ( - IOobject - ( - "pyrolysisZones", - mesh.time().constant(), - mesh, - IOobject::MUST_READ, - IOobject::NO_WRITE - ) - ); - - const wordList regions(pyrolysisZonesDict.toc()); - - setSize(regions.size()); - - for (label i = 0; i < regions.size(); i++) - { - set - ( - i, - pyrolysisModel::New - ( - mesh, - pyrolysisZonesDict.subDict(regions[i]), - regions[i] - ) - ); - } -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -pyrolysisModelCollection::~pyrolysisModelCollection() -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - - -void pyrolysisModelCollection::preEvolveRegion() -{ - forAll(*this, i) - { - this->operator[](i).preEvolveRegion(); - } -} - - -void pyrolysisModelCollection::evolveRegion() -{ - forAll(*this, i) - { - this->operator[](i).evolveRegion(); - } -} - - -void pyrolysisModelCollection::evolve() -{ - forAll(*this, i) - { - pyrolysisModel& pyrolysis = this->operator[](i); - - if (pyrolysis.active()) - { - if (pyrolysis.primaryMesh().changing()) - { - FatalErrorInFunction - << "Currently not possible to apply " - << pyrolysis.modelName() - << " model to moving mesh cases" << nl<< abort(FatalError); - } - - // Pre-evolve - pyrolysis.preEvolveRegion(); - - // Increment the region equations up to the new time level - pyrolysis.evolveRegion(); - - // Provide some feedback - if (pyrolysis.infoOutput()) - { - Info<< incrIndent; - pyrolysis.info(); - Info<< endl << decrIndent; - } - } - } -} - - -void pyrolysisModelCollection::info() -{ - forAll(*this, i) - { - this->operator[](i).info(); - } -} - - -scalar pyrolysisModelCollection::maxDiff() const -{ - scalar maxDiff = 0.0; - forAll(*this, i) - { - if (maxDiff < this->operator[](i).maxDiff()) - { - maxDiff = this->operator[](i).maxDiff(); - } - - } - return maxDiff; -} - - -scalar pyrolysisModelCollection::solidRegionDiffNo() const -{ - scalar totalDiNum = great; - - forAll(*this, i) - { - if - ( - totalDiNum > this->operator[](i).solidRegionDiffNo() - ) - { - totalDiNum = this->operator[](i).solidRegionDiffNo(); - } - } - - return totalDiNum; -} - - -} // End namespace pyrolysisModels -} // End namespace regionModels -} // End namespace Foam - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.H b/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.H deleted file mode 100644 index 6cb99d1175..0000000000 --- a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelCollection.H +++ /dev/null @@ -1,121 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::regionModels::pyrolysisModels::pyrolysisModelCollection - -Description - A centralized pyrolysis collection. - - Container class for a set of pyrolysis with functions implemented - to loop over the functions for each type. - -SourceFiles - pyrolysisModelCollection.C - -\*---------------------------------------------------------------------------*/ - -#ifndef pyrolysisModelCollection_H -#define pyrolysisModelCollection_H - -#include "PtrList.H" -#include "pyrolysisModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward class declarations -class fvMesh; - -namespace regionModels -{ -namespace pyrolysisModels -{ - -/*---------------------------------------------------------------------------*\ - Class pyrolysisModelCollection Declaration -\*---------------------------------------------------------------------------*/ - -class pyrolysisModelCollection -: - public PtrList -{ -public: - - // Runtime type information - TypeName("pyrolysisModelCollection"); - - - // Constructors - - //- Construct from mesh - pyrolysisModelCollection(const fvMesh&); - - //- Disallow default bitwise copy construction - pyrolysisModelCollection(const pyrolysisModelCollection&) = delete; - - - //- Destructor - virtual ~pyrolysisModelCollection(); - - - // Member Functions - - //- Pre-evolve regions - virtual void preEvolveRegion(); - - //- Evolve the pyrolysis equation regions - virtual void evolveRegion(); - - //- Evolve regions - virtual void evolve(); - - //- Provide some feedback from pyrolysis regions - virtual void info(); - - //- Return max diffusivity allowed in the solid - virtual scalar maxDiff() const; - - //- Mean diffusion number of the solid regions - virtual scalar solidRegionDiffNo() const; - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const pyrolysisModelCollection&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace pyrolysisModels -} // End namespace regionModels -} // End namespace Foam - - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelI.H b/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelI.H deleted file mode 100644 index 3c3e0f3b50..0000000000 --- a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelI.H +++ /dev/null @@ -1,44 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "pyrolysisModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -inline const Foam::Switch& -Foam::pyrolysisModels::pyrolysisModel::active() const -{ - return active_; -} - - -inline const Foam::dictionary& -Foam::pyrolysisModels::pyrolysisModel::coeffs() const -{ - return coeffs_; -} - - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelNew.C b/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelNew.C deleted file mode 100644 index 0ba58e5c57..0000000000 --- a/src/regionModels/pyrolysisModels/pyrolysisModel/pyrolysisModelNew.C +++ /dev/null @@ -1,125 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "pyrolysisModel.H" -#include "fvMesh.H" -#include "Time.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - -// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // - -autoPtr pyrolysisModel::New -( - const fvMesh& mesh, - const word& regionType -) -{ - // get model name, but do not register the dictionary - const word modelType - ( - IOdictionary - ( - IOobject - ( - regionType + "Properties", - mesh.time().constant(), - mesh, - IOobject::MUST_READ, - IOobject::NO_WRITE, - false - ) - ).lookup("pyrolysisModel") - ); - - Info<< "Selecting pyrolysisModel " << modelType << endl; - - meshConstructorTable::iterator cstrIter = - meshConstructorTablePtr_->find(modelType); - - if (cstrIter == meshConstructorTablePtr_->end()) - { - FatalErrorInFunction - << "Unknown pyrolysisModel type " << modelType - << nl << nl << "Valid pyrolisisModel types are:" << nl - << meshConstructorTablePtr_->sortedToc() - << exit(FatalError); - } - - return autoPtr(cstrIter()(modelType, mesh, regionType)); -} - - -autoPtr pyrolysisModel::New -( - const fvMesh& mesh, - const dictionary& dict, - const word& regionType -) -{ - - const word modelType = dict.lookup("pyrolysisModel"); - - Info<< "Selecting pyrolysisModel " << modelType << endl; - - dictionaryConstructorTable::iterator cstrIter = - dictionaryConstructorTablePtr_->find(modelType); - - if (cstrIter == dictionaryConstructorTablePtr_->end()) - { - FatalErrorInFunction - << "Unknown pyrolysisModel type " << modelType - << nl << nl << "Valid pyrolisisModel types are:" << nl - << dictionaryConstructorTablePtr_->sortedToc() - << exit(FatalError); - } - - return autoPtr - ( - cstrIter() - ( - modelType, - mesh, - dict, - regionType - ) - ); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace surfaceFilmModels -} // End namespace regionModels -} // End namespace Foam - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDim.C b/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDim.C deleted file mode 100644 index b9cdec65ad..0000000000 --- a/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDim.C +++ /dev/null @@ -1,744 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "reactingOneDim.H" -#include "addToRunTimeSelectionTable.H" -#include "fvm.H" -#include "fvcDiv.H" -#include "fvcVolumeIntegrate.H" -#include "fvcLaplacian.H" -#include "absorptionEmissionModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -defineTypeNameAndDebug(reactingOneDim, 0); - -addToRunTimeSelectionTable(pyrolysisModel, reactingOneDim, mesh); -addToRunTimeSelectionTable(pyrolysisModel, reactingOneDim, dictionary); - -// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // - -void reactingOneDim::readReactingOneDimControls() -{ - const dictionary& solution = this->solution().subDict("SIMPLE"); - solution.lookup("nNonOrthCorr") >> nNonOrthCorr_; - time().controlDict().lookup("maxDi") >> maxDiff_; - - coeffs().lookup("minimumDelta") >> minimumDelta_; - - coeffs().lookup("gasHSource") >> gasHSource_; - coeffs().lookup("qrHSource") >> qrHSource_; - useChemistrySolvers_ = - coeffs().lookupOrDefault("useChemistrySolvers", true); -} - - -bool reactingOneDim::read() -{ - if (pyrolysisModel::read()) - { - readReactingOneDimControls(); - return true; - } - else - { - return false; - } -} - - -bool reactingOneDim::read(const dictionary& dict) -{ - if (pyrolysisModel::read(dict)) - { - readReactingOneDimControls(); - return true; - } - else - { - return false; - } -} - - -void reactingOneDim::updateqr() -{ - // Update local qr from coupled qr field - qr_ == dimensionedScalar(qr_.dimensions(), 0); - - // Retrieve field from coupled region using mapped boundary conditions - qr_.correctBoundaryConditions(); - - volScalarField::Boundary& qrBf = qr_.boundaryFieldRef(); - - forAll(intCoupledPatchIDs_, i) - { - const label patchi = intCoupledPatchIDs_[i]; - - // qr is positive going in the solid - // If the surface is emitting the radiative flux is set to zero - qrBf[patchi] = max(qrBf[patchi], scalar(0)); - } - - const vectorField& cellC = regionMesh().cellCentres(); - - tmp kappa = kappaRad(); - - // Propagate qr through 1-D regions - label localPyrolysisFacei = 0; - forAll(intCoupledPatchIDs_, i) - { - const label patchi = intCoupledPatchIDs_[i]; - - const scalarField& qrp = qr_.boundaryField()[patchi]; - const vectorField& Cf = regionMesh().Cf().boundaryField()[patchi]; - - forAll(qrp, facei) - { - const scalar qr0 = qrp[facei]; - point Cf0 = Cf[facei]; - const labelList& cells = boundaryFaceCells_[localPyrolysisFacei++]; - scalar kappaInt = 0.0; - forAll(cells, k) - { - const label celli = cells[k]; - const point& Cf1 = cellC[celli]; - const scalar delta = mag(Cf1 - Cf0); - kappaInt += kappa()[celli]*delta; - qr_[celli] = qr0*exp(-kappaInt); - Cf0 = Cf1; - } - } - } -} - - -void reactingOneDim::updatePhiGas() -{ - phiHsGas_ == dimensionedScalar(phiHsGas_.dimensions(), 0); - phiGas_ == dimensionedScalar(phiGas_.dimensions(), 0); - - const speciesTable& gasTable = solidChemistry_->gasTable(); - - forAll(gasTable, gasI) - { - tmp tHsiGas = - solidChemistry_->gasHs(solidThermo_->p(), solidThermo_->T(), gasI); - - const volScalarField& HsiGas = tHsiGas(); - - const volScalarField::Internal& RRiGas = - solidChemistry_->RRg(gasI); - - surfaceScalarField::Boundary& phiGasBf = - phiGas_.boundaryFieldRef(); - - label totalFaceId = 0; - forAll(intCoupledPatchIDs_, i) - { - const label patchi = intCoupledPatchIDs_[i]; - - scalarField& phiGasp = phiGasBf[patchi]; - const scalarField& cellVol = regionMesh().V(); - - forAll(phiGasp, facei) - { - const labelList& cells = boundaryFaceCells_[totalFaceId++]; - scalar massInt = 0.0; - forAllReverse(cells, k) - { - const label celli = cells[k]; - massInt += RRiGas[celli]*cellVol[celli]; - phiHsGas_[celli] += massInt*HsiGas[celli]; - } - - phiGasp[facei] += massInt; - - if (debug) - { - Info<< " Gas : " << gasTable[gasI] - << " on patch : " << patchi - << " mass produced at face(local) : " - << facei - << " is : " << massInt - << " [kg/s] " << endl; - } - } - } - } -} - - -void reactingOneDim::updateFields() -{ - if (qrHSource_) - { - updateqr(); - } - - updatePhiGas(); -} - - -void reactingOneDim::updateMesh(const scalarField& mass0) -{ - if (!moveMesh_) - { - return; - } - - const scalarField newV(mass0/rho_); - - Info<< "Initial/final volumes = " << gSum(regionMesh().V()) << ", " - << gSum(newV) << " [m^3]" << endl; - - // move the mesh - const labelList moveMap = moveMesh(regionMesh().V() - newV, minimumDelta_); - - // flag any cells that have not moved as non-reacting - forAll(moveMap, i) - { - if (moveMap[i] == 0) - { - solidChemistry_->setCellReacting(i, false); - } - } -} - - -void reactingOneDim::solveContinuity() -{ - if (debug) - { - InfoInFunction << endl; - } - - const scalarField mass0 = rho_*regionMesh().V(); - - fvScalarMatrix rhoEqn - ( - fvm::ddt(rho_) == -solidChemistry_->RRg() - ); - - if (regionMesh().moving()) - { - surfaceScalarField phiRhoMesh - ( - fvc::interpolate(rho_)*regionMesh().phi() - ); - - rhoEqn += fvc::div(phiRhoMesh); - } - - rhoEqn.solve(); - - updateMesh(mass0); -} - - -void reactingOneDim::solveSpeciesMass() -{ - if (debug) - { - InfoInFunction << endl; - } - - volScalarField Yt(0.0*Ys_[0]); - - for (label i=0; iRRs(i) - ); - - if (regionMesh().moving()) - { - surfaceScalarField phiYiRhoMesh - ( - fvc::interpolate(Yi*rho_)*regionMesh().phi() - ); - - YiEqn += fvc::div(phiYiRhoMesh); - - } - - YiEqn.solve("Yi"); - Yi.max(0.0); - Yt += Yi; - } - - Ys_[Ys_.size() - 1] = 1.0 - Yt; -} - - -void reactingOneDim::solveEnergy() -{ - if (debug) - { - InfoInFunction << endl; - } - - tmp alpha(solidThermo_->alpha()); - - fvScalarMatrix hEqn - ( - fvm::ddt(rho_, h_) - - fvm::laplacian(alpha, h_) - + fvc::laplacian(alpha, h_) - - fvc::laplacian(kappa(), T()) - == - chemistryQdot_ - - fvm::Sp(solidChemistry_->RRg(), h_) - ); - - if (gasHSource_) - { - const surfaceScalarField phiGas(fvc::interpolate(phiHsGas_)); - hEqn += fvc::div(phiGas); - } - - if (qrHSource_) - { - const surfaceScalarField phiqr(fvc::interpolate(qr_)*nMagSf()); - hEqn += fvc::div(phiqr); - } - - if (regionMesh().moving()) - { - surfaceScalarField phihMesh - ( - fvc::interpolate(rho_*h_)*regionMesh().phi() - ); - - hEqn += fvc::div(phihMesh); - } - - hEqn.relax(); - hEqn.solve(); -} - - -void reactingOneDim::calculateMassTransfer() -{ - totalGasMassFlux_ = 0; - forAll(intCoupledPatchIDs_, i) - { - const label patchi = intCoupledPatchIDs_[i]; - totalGasMassFlux_ += gSum(phiGas_.boundaryField()[patchi]); - } - - if (infoOutput_) - { - totalHeatRR_ = fvc::domainIntegrate(chemistryQdot_); - - addedGasMass_ += - fvc::domainIntegrate(solidChemistry_->RRg())*time_.deltaT(); - lostSolidMass_ += - fvc::domainIntegrate(solidChemistry_->RRs())*time_.deltaT(); - } -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -reactingOneDim::reactingOneDim -( - const word& modelType, - const fvMesh& mesh, - const word& regionType -) -: - pyrolysisModel(modelType, mesh, regionType), - solidThermo_(solidReactionThermo::New(regionMesh())), - solidChemistry_(basicSolidChemistryModel::New(solidThermo_())), - radiation_(radiationModel::New(solidThermo_->T())), - rho_ - ( - IOobject - ( - "rho", - regionMesh().time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - solidThermo_->rho() - ), - Ys_(solidThermo_->composition().Y()), - h_(solidThermo_->he()), - nNonOrthCorr_(-1), - maxDiff_(10), - minimumDelta_(1e-4), - - phiGas_ - ( - IOobject - ( - "phiGas", - time().timeName(), - regionMesh(), - IOobject::READ_IF_PRESENT, - IOobject::AUTO_WRITE - ), - regionMesh(), - dimensionedScalar(dimMass/dimTime, 0) - ), - - phiHsGas_ - ( - IOobject - ( - "phiHsGas", - time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::NO_WRITE - ), - regionMesh(), - dimensionedScalar(dimEnergy/dimTime, 0) - ), - - chemistryQdot_ - ( - IOobject - ( - "chemistryQdot", - time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - regionMesh(), - dimensionedScalar(dimEnergy/dimTime/dimVolume, 0) - ), - - qr_ - ( - IOobject - ( - "qr", - time().timeName(), - regionMesh(), - IOobject::MUST_READ, - IOobject::AUTO_WRITE - ), - regionMesh() - ), - - lostSolidMass_(dimensionedScalar(dimMass, 0)), - addedGasMass_(dimensionedScalar(dimMass, 0)), - totalGasMassFlux_(0.0), - totalHeatRR_(dimensionedScalar(dimEnergy/dimTime, 0)), - gasHSource_(false), - qrHSource_(false), - useChemistrySolvers_(true) -{ - if (active_) - { - read(); - } -} - - -reactingOneDim::reactingOneDim -( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType -) -: - pyrolysisModel(modelType, mesh, dict, regionType), - solidThermo_(solidReactionThermo::New(regionMesh())), - solidChemistry_(basicSolidChemistryModel::New(solidThermo_())), - radiation_(radiationModel::New(solidThermo_->T())), - rho_ - ( - IOobject - ( - "rho", - regionMesh().time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - solidThermo_->rho() - ), - Ys_(solidThermo_->composition().Y()), - h_(solidThermo_->he()), - nNonOrthCorr_(-1), - maxDiff_(10), - minimumDelta_(1e-4), - - phiGas_ - ( - IOobject - ( - "phiGas", - time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - regionMesh(), - dimensionedScalar(dimMass/dimTime, 0) - ), - - phiHsGas_ - ( - IOobject - ( - "phiHsGas", - time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::NO_WRITE - ), - regionMesh(), - dimensionedScalar(dimEnergy/dimTime, 0) - ), - - chemistryQdot_ - ( - IOobject - ( - "chemistryQdot", - time().timeName(), - regionMesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - regionMesh(), - dimensionedScalar(dimEnergy/dimTime/dimVolume, 0) - ), - - qr_ - ( - IOobject - ( - "qr", - time().timeName(), - regionMesh(), - IOobject::MUST_READ, - IOobject::AUTO_WRITE - ), - regionMesh() - ), - - lostSolidMass_(dimensionedScalar(dimMass, 0)), - addedGasMass_(dimensionedScalar(dimMass, 0)), - totalGasMassFlux_(0.0), - totalHeatRR_(dimensionedScalar(dimEnergy/dimTime, 0)), - gasHSource_(false), - qrHSource_(false), - useChemistrySolvers_(true) -{ - if (active_) - { - read(dict); - } -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -reactingOneDim::~reactingOneDim() -{} - - -// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // - -scalar reactingOneDim::addMassSources(const label patchi, const label facei) -{ - label index = 0; - forAll(primaryPatchIDs_, i) - { - if (primaryPatchIDs_[i] == patchi) - { - index = i; - break; - } - } - - const label localPatchId = intCoupledPatchIDs_[index]; - - const scalar massAdded = phiGas_.boundaryField()[localPatchId][facei]; - - if (debug) - { - Info<< "\nPyrolysis region: " << type() << "added mass : " - << massAdded << endl; - } - - return massAdded; -} - - -scalar reactingOneDim::solidRegionDiffNo() const -{ - scalar DiNum = -great; - - if (regionMesh().nInternalFaces() > 0) - { - surfaceScalarField KrhoCpbyDelta - ( - sqr(regionMesh().surfaceInterpolation::deltaCoeffs()) - *fvc::interpolate(kappa()) - /fvc::interpolate(Cp()*rho_) - ); - - DiNum = max(KrhoCpbyDelta.primitiveField())*time().deltaTValue(); - } - - return DiNum; -} - - -scalar reactingOneDim::maxDiff() const -{ - return maxDiff_; -} - - -const volScalarField& reactingOneDim::rho() const -{ - return rho_; -} - - -const volScalarField& reactingOneDim::T() const -{ - return solidThermo_->T(); -} - - -const tmp reactingOneDim::Cp() const -{ - return solidThermo_->Cp(); -} - - -tmp reactingOneDim::kappaRad() const -{ - return radiation_->absorptionEmission().a(); -} - - -tmp reactingOneDim::kappa() const -{ - return solidThermo_->kappa(); -} - - -const surfaceScalarField& reactingOneDim::phiGas() const -{ - return phiGas_; -} - - -void reactingOneDim::preEvolveRegion() -{ - pyrolysisModel::preEvolveRegion(); - - // Initialise all cells as able to react - forAll(h_, celli) - { - solidChemistry_->setCellReacting(celli, true); - } -} - - -void reactingOneDim::evolveRegion() -{ - Info<< "\nEvolving pyrolysis in region: " << regionMesh().name() << endl; - - if (useChemistrySolvers_) - { - solidChemistry_->solve(time().deltaTValue()); - } - else - { - solidChemistry_->calculate(); - } - - solveContinuity(); - - chemistryQdot_ = solidChemistry_->Qdot()(); - - updateFields(); - - solveSpeciesMass(); - - for (int nonOrth=0; nonOrth<=nNonOrthCorr_; nonOrth++) - { - solveEnergy(); - } - - calculateMassTransfer(); - - solidThermo_->correct(); - - Info<< "pyrolysis min/max(T) = " - << gMin(solidThermo_->T().primitiveField()) - << ", " - << gMax(solidThermo_->T().primitiveField()) - << endl; -} - - -void reactingOneDim::info() -{ - Info<< "\nPyrolysis in region: " << regionMesh().name() << endl; - - Info<< indent << "Total gas mass produced [kg] = " - << addedGasMass_.value() << nl - << indent << "Total solid mass lost [kg] = " - << lostSolidMass_.value() << nl - << indent << "Total pyrolysis gases [kg/s] = " - << totalGasMassFlux_ << nl - << indent << "Total heat release rate [J/s] = " - << totalHeatRR_.value() << nl; -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam -} // End namespace regionModels -} // End namespace pyrolysisModels - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDim.H b/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDim.H deleted file mode 100644 index 119f28b93d..0000000000 --- a/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDim.H +++ /dev/null @@ -1,305 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::regionModels::pyrolysisModels::reactingOneDim - -Description - Reacting, 1-D pyrolysis model - -SourceFiles - reactingOneDim.C - -\*---------------------------------------------------------------------------*/ - -#ifndef reactingOneDim_H -#define reactingOneDim_H - -#include "pyrolysisModel.H" -#include "basicSolidChemistryModel.H" -#include "radiationModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ -namespace regionModels -{ -namespace pyrolysisModels -{ - - -/*---------------------------------------------------------------------------*\ - Class reactingOneDim Declaration -\*---------------------------------------------------------------------------*/ - -class reactingOneDim -: - public pyrolysisModel -{ - // Private Member Functions - - //- Read model controls - void readReactingOneDimControls(); - - -protected: - - // Protected data - - //- Reference to solid thermo - autoPtr solidThermo_; - - //- Reference to the solid chemistry model - autoPtr solidChemistry_; - - //- Pointer to radiation model - autoPtr radiation_; - - - // Reference to solid thermo properties - - //- Density [kg/m^3] - volScalarField rho_; - - //- List of solid components - PtrList& Ys_; - - // Non-const access to enthalpy - volScalarField& h_; - - - // Solution parameters - - //- Number of non-orthogonal correctors - label nNonOrthCorr_; - - //- Maximum diffussivity - scalar maxDiff_; - - //- Minimum delta for combustion - scalar minimumDelta_; - - - // Fields - - //- Total gas mass flux to the primary region [kg/m^2/s] - surfaceScalarField phiGas_; - - //- Sensible enthalpy gas flux [J/m2/s] - volScalarField phiHsGas_; - - //- Heat release rate [J/s/m^3] - volScalarField chemistryQdot_; - - - // Source term fields - - //- Coupled region radiative heat flux [W/m^2] - // Requires user to input mapping info for coupled patches - // volScalarField qrCoupled_; - - //- In depth radiative heat flux [W/m^2] - volScalarField qr_; - - - // Checks - - //- Cumulative lost mass of the condensed phase [kg] - dimensionedScalar lostSolidMass_; - - //- Cumulative mass generation of the gas phase [kg] - dimensionedScalar addedGasMass_; - - //- Total mass gas flux at the pyrolysing walls [kg/s] - scalar totalGasMassFlux_; - - //- Total heat release rate [J/s] - dimensionedScalar totalHeatRR_; - - - // Options - - //- Add gas enthalpy source term - bool gasHSource_; - - //- Add in depth radiation source term - bool qrHSource_; - - //- Use chemistry solvers (ode or sequential) - bool useChemistrySolvers_; - - - // Protected member functions - - //- Read control parameters from dictionary - bool read(); - - //- Read control parameters from dict - bool read(const dictionary& dict); - - //- Update submodels - void updateFields(); - - //- Update/move mesh based on change in mass - void updateMesh(const scalarField& mass0); - - //- Update radiative flux in pyrolysis region - void updateqr(); - - //- Update enthalpy flux for pyrolysis gases - void updatePhiGas(); - - //- Mass check - void calculateMassTransfer(); - - - // Equations - - //- Solve continuity equation - void solveContinuity(); - - //- Solve energy - void solveEnergy(); - - //- Solve solid species mass conservation - void solveSpeciesMass(); - - -public: - - //- Runtime type information - TypeName("reactingOneDim"); - - - // Constructors - - //- Construct from type name and mesh - reactingOneDim - ( - const word& modelType, - const fvMesh& mesh, - const word& regionType - ); - - //- Construct from type name, mesh and dictionary - reactingOneDim - ( - const word& modelType, - const fvMesh& mesh, - const dictionary& dict, - const word& regionType - ); - - //- Disallow default bitwise copy construction - reactingOneDim(const reactingOneDim&) = delete; - - - //- Destructor - virtual ~reactingOneDim(); - - - // Member Functions - - // Access - - //- Fields - - //- Return const density [Kg/m^3] - const volScalarField& rho() const; - - //- Return const temperature [K] - virtual const volScalarField& T() const; - - //- Return specific heat capacity [J/kg/K] - virtual const tmp Cp() const; - - //- Return the region absorptivity [1/m] - virtual tmp kappaRad() const; - - //- Return the region thermal conductivity [W/m/k] - virtual tmp kappa() const; - - //- Return the total gas mass flux to primary region [kg/m^2/s] - virtual const surfaceScalarField& phiGas() const; - - - // Solution parameters - - //- Return the number of non-orthogonal correctors - inline label nNonOrthCorr() const; - - //- Return max diffusivity allowed in the solid - virtual scalar maxDiff() const; - - - // Helper functions - - //- External hook to add mass to the primary region - virtual scalar addMassSources - ( - const label patchi, // patchi on primary region - const label facei // facei of patchi - ); - - //- Mean diffusion number of the solid region - virtual scalar solidRegionDiffNo() const; - - - // Evolution - - //- Pre-evolve region - virtual void preEvolveRegion(); - - //- Evolve the pyrolysis equations - virtual void evolveRegion(); - - - // I-O - - //- Provide some feedback - virtual void info(); - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const reactingOneDim&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace pyrolysisModels -} // End namespace regionModels -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#include "reactingOneDimI.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDimI.H b/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDimI.H deleted file mode 100644 index bd53364941..0000000000 --- a/src/regionModels/pyrolysisModels/reactingOneDim/reactingOneDimI.H +++ /dev/null @@ -1,37 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "reactingOneDim.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -inline Foam::label -Foam::regionModels::pyrolysisModels::reactingOneDim::nNonOrthCorr() const -{ - return nNonOrthCorr_; -} - - -// ************************************************************************* // diff --git a/src/regionModels/regionCoupling/Make/files b/src/regionModels/regionCoupling/Make/files deleted file mode 100644 index c1ebaf7990..0000000000 --- a/src/regionModels/regionCoupling/Make/files +++ /dev/null @@ -1,5 +0,0 @@ -derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.C -derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.C -derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C - -LIB = $(FOAM_LIBBIN)/libregionCoupling diff --git a/src/regionModels/regionCoupling/Make/options b/src/regionModels/regionCoupling/Make/options deleted file mode 100644 index 1b751c903a..0000000000 --- a/src/regionModels/regionCoupling/Make/options +++ /dev/null @@ -1,30 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/transportModels/compressible/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude\ - -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidChemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ - -I$(LIB_SRC)/radiationModels/lnInclude \ - -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ - -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ - -I$(LIB_SRC)/regionModels/pyrolysisModels/lnInclude \ - -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude - -LIB_LIBS = \ - -lregionModels \ - -lpyrolysisModels \ - -lsurfaceFilmModels \ - -lsolidChemistryModel \ - -lreactionThermophysicalModels \ - -lSLGThermo \ - -lturbulenceModels \ - -lcompressibleTurbulenceModels \ - -lfiniteVolume \ - -lmeshTools diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C deleted file mode 100644 index eccf5aa7fd..0000000000 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C +++ /dev/null @@ -1,424 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H" -#include "addToRunTimeSelectionTable.H" -#include "mappedPatchBase.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // - -const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::filmModelType& -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -filmModel() const -{ - HashTable models - = db().time().lookupClass(); - - forAllConstIter(HashTable, models, iter) - { - if (iter()->regionMesh().name() == filmRegionName_) - { - return *iter(); - } - } - - DynamicList modelNames; - forAllConstIter(HashTable, models, iter) - { - modelNames.append(iter()->regionMesh().name()); - } - - FatalErrorInFunction - << "Unable to locate film region " << filmRegionName_ - << ". Available regions include: " << modelNames - << abort(FatalError); - - return **models.begin(); -} - - -const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -pyrolysisModelType& -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -pyrModel() const -{ - HashTable models = - db().time().lookupClass(); - - forAllConstIter(HashTable, models, iter) - { - if (iter()->regionMesh().name() == pyrolysisRegionName_) - { - return *iter(); - } - } - - DynamicList modelNames; - forAllConstIter(HashTable, models, iter) - { - modelNames.append(iter()->regionMesh().name()); - } - - - FatalErrorInFunction - << "Unable to locate pyrolysis region " << pyrolysisRegionName_ - << ". Available regions include: " << modelNames - << abort(FatalError); - - return **models.begin(); -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField -( - const fvPatch& p, - const DimensionedField& iF -) -: - mixedFvPatchScalarField(p, iF), - temperatureCoupledBase(patch()), - filmRegionName_("surfaceFilmProperties"), - pyrolysisRegionName_("pyrolysisProperties"), - TnbrName_("undefined-Tnbr"), - qrName_("undefined-qr"), - convectiveScaling_(1.0), - filmDeltaDry_(0.0), - filmDeltaWet_(0.0) -{ - this->refValue() = 0.0; - this->refGrad() = 0.0; - this->valueFraction() = 1.0; -} - - -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField -( - const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField& psf, - const fvPatch& p, - const DimensionedField& iF, - const fvPatchFieldMapper& mapper -) -: - mixedFvPatchScalarField(psf, p, iF, mapper), - temperatureCoupledBase(patch(), psf), - filmRegionName_(psf.filmRegionName_), - pyrolysisRegionName_(psf.pyrolysisRegionName_), - TnbrName_(psf.TnbrName_), - qrName_(psf.qrName_), - convectiveScaling_(psf.convectiveScaling_), - filmDeltaDry_(psf.filmDeltaDry_), - filmDeltaWet_(psf.filmDeltaWet_) -{} - - -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField -( - const fvPatch& p, - const DimensionedField& iF, - const dictionary& dict -) -: - mixedFvPatchScalarField(p, iF), - temperatureCoupledBase(patch(), dict), - filmRegionName_ - ( - dict.lookupOrDefault("filmRegion", "surfaceFilmProperties") - ), - pyrolysisRegionName_ - ( - dict.lookupOrDefault("pyrolysisRegion", "pyrolysisProperties") - ), - TnbrName_(dict.lookup("Tnbr")), - qrName_(dict.lookup("qr")), - convectiveScaling_(dict.lookupOrDefault("convectiveScaling", 1.0)), - filmDeltaDry_(readScalar(dict.lookup("filmDeltaDry"))), - filmDeltaWet_(readScalar(dict.lookup("filmDeltaWet"))) -{ - if (!isA(this->patch().patch())) - { - FatalErrorInFunction - << "' not type '" << mappedPatchBase::typeName << "'" - << "\n for patch " << p.name() - << " of field " << internalField().name() - << " in file " << internalField().objectPath() - << exit(FatalError); - } - - fvPatchScalarField::operator=(scalarField("value", dict, p.size())); - - if (dict.found("refValue")) - { - // Full restart - refValue() = scalarField("refValue", dict, p.size()); - refGrad() = scalarField("refGradient", dict, p.size()); - valueFraction() = scalarField("valueFraction", dict, p.size()); - } - else - { - // Start from user entered data. Assume fixedValue. - refValue() = *this; - refGrad() = 0.0; - valueFraction() = 1.0; - } -} - - -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:: -filmPyrolysisRadiativeCoupledMixedFvPatchScalarField -( - const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField& psf, - const DimensionedField& iF -) -: - mixedFvPatchScalarField(psf, iF), - temperatureCoupledBase(patch(), psf), - filmRegionName_(psf.filmRegionName_), - pyrolysisRegionName_(psf.pyrolysisRegionName_), - TnbrName_(psf.TnbrName_), - qrName_(psf.qrName_), - convectiveScaling_(psf.convectiveScaling_), - filmDeltaDry_(psf.filmDeltaDry_), - filmDeltaWet_(psf.filmDeltaWet_) -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -void filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs() -{ - if (updated()) - { - return; - } - - // Get the coupling information from the mappedPatchBase - const mappedPatchBase& mpp = - refCast(patch().patch()); - - const label patchi = patch().index(); - const label nbrPatchi = mpp.samplePolyPatch().index(); - const polyMesh& mesh = patch().boundaryMesh().mesh(); - const polyMesh& nbrMesh = mpp.sampleMesh(); - const fvPatch& nbrPatch = - refCast(nbrMesh).boundary()[nbrPatchi]; - - scalarField intFld(patchInternalField()); - - const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField& - nbrField = - refCast - < - const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - > - ( - nbrPatch.lookupPatchField(TnbrName_) - ); - - // Swap to obtain full local values of neighbour internal field - scalarField nbrIntFld(nbrField.patchInternalField()); - mpp.distribute(nbrIntFld); - - scalarField& Tp = *this; - - const scalarField K(this->kappa(*this)); - const scalarField nbrK(nbrField.kappa(*this)); - - // Swap to obtain full local values of neighbour K*delta - scalarField KDeltaNbr(nbrK*nbrPatch.deltaCoeffs()); - mpp.distribute(KDeltaNbr); - - scalarField myKDelta(K*patch().deltaCoeffs()); - - scalarList Tfilm(patch().size(), 0.0); - scalarList htcwfilm(patch().size(), 0.0); - scalarList filmDelta(patch().size(), 0.0); - - const pyrolysisModelType& pyrolysis = pyrModel(); - const filmModelType& film = filmModel(); - - // Obtain Rad heat (qr) - scalarField qr(patch().size(), 0.0); - - label coupledPatchi = -1; - if (pyrolysisRegionName_ == mesh.name()) - { - coupledPatchi = patchi; - if (qrName_ != "none") - { - qr = nbrPatch.lookupPatchField(qrName_); - mpp.distribute(qr); - } - } - else if (pyrolysis.primaryMesh().name() == mesh.name()) - { - coupledPatchi = nbrPatch.index(); - if (qrName_ != "none") - { - qr = patch().lookupPatchField(qrName_); - } - } - else - { - FatalErrorInFunction - << type() << " condition is intended to be applied to either the " - << "primary or pyrolysis regions only" - << exit(FatalError); - } - - const label filmPatchi = pyrolysis.nbrCoupledPatchID(film, coupledPatchi); - - const scalarField htcw(film.htcw().h()().boundaryField()[filmPatchi]); - - // Obtain htcw - htcwfilm = - pyrolysis.mapRegionPatchField - ( - film, - coupledPatchi, - filmPatchi, - htcw, - true - ); - - - // Obtain Tfilm at the boundary through Ts. - // NOTE: Tf is not good as at the boundary it will retrieve Tp - Tfilm = film.Ts().boundaryField()[filmPatchi]; - film.toPrimary(filmPatchi, Tfilm); - - // Obtain delta - filmDelta = - pyrolysis.mapRegionPatchField - ( - film, - "deltaf", - coupledPatchi, - true - ); - - // Estimate wetness of the film (1: wet , 0: dry) - scalarField ratio - ( - min - ( - max - ( - (filmDelta - filmDeltaDry_)/(filmDeltaWet_ - filmDeltaDry_), - scalar(0) - ), - scalar(1) - ) - ); - - scalarField qConv(ratio*htcwfilm*(Tfilm - Tp)*convectiveScaling_); - - scalarField qRad((1.0 - ratio)*qr); - - scalarField alpha(KDeltaNbr - (qRad + qConv)/Tp); - - valueFraction() = alpha/(alpha + (1.0 - ratio)*myKDelta); - - refValue() = ratio*Tfilm + (1.0 - ratio)*(KDeltaNbr*nbrIntFld)/alpha; - - mixedFvPatchScalarField::updateCoeffs(); - - if (debug) - { - scalar Qc = gSum(qConv*patch().magSf()); - scalar qr = gSum(qRad*patch().magSf()); - scalar Qt = gSum((qConv + qRad)*patch().magSf()); - - Info<< mesh.name() << ':' - << patch().name() << ':' - << this->internalField().name() << " <- " - << nbrMesh.name() << ':' - << nbrPatch.name() << ':' - << this->internalField().name() << " :" << nl - << " convective heat[W] : " << Qc << nl - << " radiative heat [W] : " << qr << nl - << " total heat [W] : " << Qt << nl - << " wall temperature " - << " min:" << gMin(*this) - << " max:" << gMax(*this) - << " avg:" << gAverage(*this) - << endl; - } -} - - -void filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write -( - Ostream& os -) const -{ - mixedFvPatchScalarField::write(os); - writeEntryIfDifferent - ( - os, - "filmRegion", - "surfaceFilmProperties", - filmRegionName_ - ); - writeEntryIfDifferent - ( - os, - "pyrolysisRegion", - "pyrolysisProperties", - pyrolysisRegionName_ - ); - writeEntry(os, "Tnbr", TnbrName_); - writeEntry(os, "qr", qrName_); - writeEntry(os, "convectiveScaling", convectiveScaling_); - writeEntry(os, "filmDeltaDry", filmDeltaDry_); - writeEntry(os, "filmDeltaWet", filmDeltaWet_); - temperatureCoupledBase::write(os); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -makePatchTypeField -( - fvPatchScalarField, - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField -); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - - -// ************************************************************************* // diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H deleted file mode 100644 index 4087e2ac04..0000000000 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisRadiativeCoupledMixed/filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H +++ /dev/null @@ -1,237 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - -Description - Mixed boundary condition for temperature, to be used in the flow and - pyrolysis regions when a film region model is used. - - Example usage: - \verbatim - myInterfacePatchName - { - type filmPyrolysisRadiativeCoupledMixed; - Tnbr T; - kappa fluidThermo; - qr qr; - kappaName none; - filmDeltaDry 0.0; - filmDeltaWet 3e-4; - value $internalField; - } - \endverbatim - - Needs to be on underlying mapped(Wall)FvPatch. - It calculates local field as: - - \verbatim - ratio = (filmDelta - filmDeltaDry)/(filmDeltaWet - filmDeltaDry) - \endverbatim - - when ratio = 1 is considered wet and the film temperature is fixed at - the wall. If ratio = 0 (dry) it emulates the normal radiative solid BC. - - In between ratio 0 and 1 the gradient and value contributions are - weighted using the ratio field in the following way: - - \verbatim - qConv = ratio*htcwfilm*(Tfilm - *this); - qRad = (1.0 - ratio)*qr; - \endverbatim - - Then the solid can gain or loose energy through radiation or conduction - towards the film. - - Notes: - - - kappa and \c kappaName are inherited from temperatureCoupledBase. - - qr is the radiative flux defined in the radiation model. - - -See also - Foam::temperatureCoupledBase - -SourceFiles - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C - -\*---------------------------------------------------------------------------*/ - -#ifndef filmPyrolysisRadiativeCoupledMixedFvPatchScalarField_H -#define filmPyrolysisRadiativeCoupledMixedFvPatchScalarField_H - -#include "mixedFvPatchFields.H" -#include "temperatureCoupledBase.H" -#include "thermoSingleLayer.H" -#include "pyrolysisModel.H" - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -/*---------------------------------------------------------------------------*\ - Class filmPyrolysisRadiativeCoupledMixedFvPatchScalarField Declaration -\*---------------------------------------------------------------------------*/ - -class filmPyrolysisRadiativeCoupledMixedFvPatchScalarField -: - public mixedFvPatchScalarField, - public temperatureCoupledBase -{ -public: - - typedef Foam::regionModels::surfaceFilmModels::thermoSingleLayer - filmModelType; - - typedef Foam::regionModels::pyrolysisModels::pyrolysisModel - pyrolysisModelType; - - -private: - - // Private Data - - //- Name of film region - const word filmRegionName_; - - //- Name of pyrolysis region - const word pyrolysisRegionName_; - - //- Name of field on the neighbour region - const word TnbrName_; - - //- Name of the radiative heat flux - const word qrName_; - - //- Convective Scaling Factor (as determined by Prateep's tests) - const scalar convectiveScaling_; - - //- Minimum delta film to be consired dry - const scalar filmDeltaDry_; - - //- Maximum delta film to be consired wet - const scalar filmDeltaWet_; - - //- Retrieve film model from the database - const filmModelType& filmModel() const; - - //- Retrieve pyrolysis model from the database - const pyrolysisModelType& pyrModel() const; - - -public: - - //- Runtime type information - TypeName("filmPyrolysisRadiativeCoupledMixed"); - - - // Constructors - - //- Construct from patch and internal field - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - ( - const fvPatch&, - const DimensionedField& - ); - - //- Construct from patch, internal field and dictionary - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - ( - const fvPatch&, - const DimensionedField&, - const dictionary& - ); - - //- Construct by mapping given - // turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a - // new patch - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - ( - const - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField&, - const fvPatch&, - const DimensionedField&, - const fvPatchFieldMapper& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - ( - *this - ) - ); - } - - //- Construct as copy setting internal field reference - filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - ( - const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField&, - const DimensionedField& - ); - - //- Construct and return a clone setting internal field reference - virtual tmp clone - ( - const DimensionedField& iF - ) const - { - return tmp - ( - new filmPyrolysisRadiativeCoupledMixedFvPatchScalarField - ( - *this, - iF - ) - ); - } - - - // Member Functions - - //- Get corresponding K field - tmp K() const; - - //- Update the coefficients associated with the patch field - virtual void updateCoeffs(); - - //- Write - virtual void write(Ostream&) const; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.C b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.C deleted file mode 100644 index b02ef457f5..0000000000 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.C +++ /dev/null @@ -1,221 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "filmPyrolysisTemperatureCoupledFvPatchScalarField.H" -#include "addToRunTimeSelectionTable.H" -#include "surfaceFields.H" -#include "pyrolysisModel.H" -#include "surfaceFilmRegionModel.H" - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField:: -filmPyrolysisTemperatureCoupledFvPatchScalarField -( - const fvPatch& p, - const DimensionedField& iF -) -: - fixedValueFvPatchScalarField(p, iF), - filmRegionName_("surfaceFilmProperties"), - pyrolysisRegionName_("pyrolysisProperties"), - phiName_("phi"), - rhoName_("rho") -{} - - -Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField:: -filmPyrolysisTemperatureCoupledFvPatchScalarField -( - const filmPyrolysisTemperatureCoupledFvPatchScalarField& ptf, - const fvPatch& p, - const DimensionedField& iF, - const fvPatchFieldMapper& mapper -) -: - fixedValueFvPatchScalarField(ptf, p, iF, mapper), - filmRegionName_(ptf.filmRegionName_), - pyrolysisRegionName_(ptf.pyrolysisRegionName_), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_) -{} - - -Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField:: -filmPyrolysisTemperatureCoupledFvPatchScalarField -( - const fvPatch& p, - const DimensionedField& iF, - const dictionary& dict -) -: - fixedValueFvPatchScalarField(p, iF, dict), - filmRegionName_ - ( - dict.lookupOrDefault("filmRegion", "surfaceFilmProperties") - ), - pyrolysisRegionName_ - ( - dict.lookupOrDefault("pyrolysisRegion", "pyrolysisProperties") - ), - phiName_(dict.lookupOrDefault("phi", "phi")), - rhoName_(dict.lookupOrDefault("rho", "rho")) -{} - - -Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField:: -filmPyrolysisTemperatureCoupledFvPatchScalarField -( - const filmPyrolysisTemperatureCoupledFvPatchScalarField& fptpsf -) -: - fixedValueFvPatchScalarField(fptpsf), - filmRegionName_(fptpsf.filmRegionName_), - pyrolysisRegionName_(fptpsf.pyrolysisRegionName_), - phiName_(fptpsf.phiName_), - rhoName_(fptpsf.rhoName_) -{} - - -Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField:: -filmPyrolysisTemperatureCoupledFvPatchScalarField -( - const filmPyrolysisTemperatureCoupledFvPatchScalarField& fptpsf, - const DimensionedField& iF -) -: - fixedValueFvPatchScalarField(fptpsf, iF), - filmRegionName_(fptpsf.filmRegionName_), - pyrolysisRegionName_(fptpsf.pyrolysisRegionName_), - phiName_(fptpsf.phiName_), - rhoName_(fptpsf.rhoName_) -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -void Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField::updateCoeffs() -{ - if (updated()) - { - return; - } - - typedef regionModels::surfaceFilmModels::surfaceFilmRegionModel - filmModelType; - - typedef regionModels::pyrolysisModels::pyrolysisModel pyrModelType; - - // Since we're inside initEvaluate/evaluate there might be processor - // comms underway. Change the tag we use. - int oldTag = UPstream::msgType(); - UPstream::msgType() = oldTag+1; - - bool filmOk = db().time().foundObject(filmRegionName_); - - - bool pyrOk = db().time().foundObject(pyrolysisRegionName_); - - if (!filmOk || !pyrOk) - { - // Do nothing on construction - film model doesn't exist yet - return; - } - - scalarField& Tp = *this; - - const label patchi = patch().index(); - - // Retrieve film model - const filmModelType& filmModel = - db().time().lookupObject(filmRegionName_); - - const label filmPatchi = filmModel.regionPatchID(patchi); - - scalarField alphaFilm = filmModel.alpha().boundaryField()[filmPatchi]; - filmModel.toPrimary(filmPatchi, alphaFilm); - - scalarField TFilm = filmModel.Ts().boundaryField()[filmPatchi]; - filmModel.toPrimary(filmPatchi, TFilm); - - // Retrieve pyrolysis model - const pyrModelType& pyrModel = - db().time().lookupObject(pyrolysisRegionName_); - - const label pyrPatchi = pyrModel.regionPatchID(patchi); - - scalarField TPyr = pyrModel.T().boundaryField()[pyrPatchi]; - pyrModel.toPrimary(pyrPatchi, TPyr); - - - // Evaluate temperature - Tp = alphaFilm*TFilm + (1.0 - alphaFilm)*TPyr; - - // Restore tag - UPstream::msgType() = oldTag; - - fixedValueFvPatchScalarField::updateCoeffs(); -} - - -void Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField::write -( - Ostream& os -) const -{ - fvPatchScalarField::write(os); - writeEntryIfDifferent - ( - os, - "filmRegion", - "surfaceFilmProperties", - filmRegionName_ - ); - writeEntryIfDifferent - ( - os, - "pyrolysisRegion", - "pyrolysisProperties", - pyrolysisRegionName_ - ); - writeEntryIfDifferent(os, "phi", "phi", phiName_); - writeEntryIfDifferent(os, "rho", "rho", rhoName_); - writeEntry(os, "value", *this); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - makePatchTypeField - ( - fvPatchScalarField, - filmPyrolysisTemperatureCoupledFvPatchScalarField - ); -} - - -// ************************************************************************* // diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.H b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.H deleted file mode 100644 index f2bb0d6ee2..0000000000 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisTemperatureCoupled/filmPyrolysisTemperatureCoupledFvPatchScalarField.H +++ /dev/null @@ -1,199 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::filmPyrolysisTemperatureCoupledFvPatchScalarField - -Description - This boundary condition is designed to be used in conjunction with surface - film and pyrolysis modelling. It provides a temperature boundary condition - for patches on the primary region based on whether the patch is seen to - be 'wet', retrieved from the film alpha field. - - - if the patch is wet, the temperature is set using the film temperature - - otherwise, it is set using pyrolysis temperature - - Example of the boundary condition specification: - \verbatim - - { - type filmPyrolysisTemperatureCoupled; - phi phi; // name of flux field (default = phi) - rho rho; // name of density field (default = rho) - deltaWet 1e-4; // threshold height for 'wet' film - value uniform 300; // initial temperature / [K] - } - \endverbatim - -SourceFiles - filmPyrolysisTemperatureCoupledFvPatchScalarField.C - -\*---------------------------------------------------------------------------*/ - -#ifndef filmPyrolysisTemperatureCoupledFvPatchScalarField_H -#define filmPyrolysisTemperatureCoupledFvPatchScalarField_H - -#include "fixedValueFvPatchFields.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -/*---------------------------------------------------------------------------*\ - Class filmPyrolysisTemperatureCoupledFvPatchScalarField Declaration -\*---------------------------------------------------------------------------*/ - -class filmPyrolysisTemperatureCoupledFvPatchScalarField -: - public fixedValueFvPatchScalarField -{ - // Private Data - - //- Name of film region - const word filmRegionName_; - - //- Name of pyrolysis region - const word pyrolysisRegionName_; - - //- Name of flux field - word phiName_; - - //- Name of density field - word rhoName_; - - -public: - - //- Runtime type information - TypeName("filmPyrolysisTemperatureCoupled"); - - - // Constructors - - //- Construct from patch and internal field - filmPyrolysisTemperatureCoupledFvPatchScalarField - ( - const fvPatch&, - const DimensionedField& - ); - - //- Construct from patch, internal field and dictionary - filmPyrolysisTemperatureCoupledFvPatchScalarField - ( - const fvPatch&, - const DimensionedField&, - const dictionary& - ); - - //- Construct by mapping given - // filmPyrolysisTemperatureCoupledFvPatchScalarField onto a new patch - filmPyrolysisTemperatureCoupledFvPatchScalarField - ( - const filmPyrolysisTemperatureCoupledFvPatchScalarField&, - const fvPatch&, - const DimensionedField&, - const fvPatchFieldMapper& - ); - - //- Copy constructor - filmPyrolysisTemperatureCoupledFvPatchScalarField - ( - const filmPyrolysisTemperatureCoupledFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new filmPyrolysisTemperatureCoupledFvPatchScalarField(*this) - ); - } - - //- Copy constructor setting internal field reference - filmPyrolysisTemperatureCoupledFvPatchScalarField - ( - const filmPyrolysisTemperatureCoupledFvPatchScalarField&, - const DimensionedField& - ); - - //- Construct and return a clone setting internal field reference - virtual tmp clone - ( - const DimensionedField& iF - ) const - { - return tmp - ( - new filmPyrolysisTemperatureCoupledFvPatchScalarField(*this, iF) - ); - } - - - // Member Functions - - // Access - - //- Return the name of phi - const word& phiName() const - { - return phiName_; - } - - //- Return reference to the name of phi to allow adjustment - word& phiName() - { - return phiName_; - } - - //- Return the name of rho - const word& rhoName() const - { - return rhoName_; - } - - //- Return reference to the name of rho to allow adjustment - word& rhoName() - { - return rhoName_; - } - - - //- Update the coefficients associated with the patch field - virtual void updateCoeffs(); - - //- Write - virtual void write(Ostream&) const; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.C b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.C deleted file mode 100644 index 958763bc6d..0000000000 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.C +++ /dev/null @@ -1,247 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "filmPyrolysisVelocityCoupledFvPatchVectorField.H" -#include "addToRunTimeSelectionTable.H" -#include "surfaceFields.H" -#include "pyrolysisModel.H" -#include "surfaceFilmRegionModel.H" - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -Foam::filmPyrolysisVelocityCoupledFvPatchVectorField:: -filmPyrolysisVelocityCoupledFvPatchVectorField -( - const fvPatch& p, - const DimensionedField& iF -) -: - fixedValueFvPatchVectorField(p, iF), - filmRegionName_("surfaceFilmProperties"), - pyrolysisRegionName_("pyrolysisProperties"), - phiName_("phi"), - rhoName_("rho") -{} - - -Foam::filmPyrolysisVelocityCoupledFvPatchVectorField:: -filmPyrolysisVelocityCoupledFvPatchVectorField -( - const filmPyrolysisVelocityCoupledFvPatchVectorField& ptf, - const fvPatch& p, - const DimensionedField& iF, - const fvPatchFieldMapper& mapper -) -: - fixedValueFvPatchVectorField(ptf, p, iF, mapper), - filmRegionName_(ptf.filmRegionName_), - pyrolysisRegionName_(ptf.pyrolysisRegionName_), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_) -{} - - -Foam::filmPyrolysisVelocityCoupledFvPatchVectorField:: -filmPyrolysisVelocityCoupledFvPatchVectorField -( - const fvPatch& p, - const DimensionedField& iF, - const dictionary& dict -) -: - fixedValueFvPatchVectorField(p, iF, dict), - filmRegionName_ - ( - dict.lookupOrDefault("filmRegion", "surfaceFilmProperties") - ), - pyrolysisRegionName_ - ( - dict.lookupOrDefault("pyrolysisRegion", "pyrolysisProperties") - ), - phiName_(dict.lookupOrDefault("phi", "phi")), - rhoName_(dict.lookupOrDefault("rho", "rho")) -{} - - -Foam::filmPyrolysisVelocityCoupledFvPatchVectorField:: -filmPyrolysisVelocityCoupledFvPatchVectorField -( - const filmPyrolysisVelocityCoupledFvPatchVectorField& fpvpvf -) -: - fixedValueFvPatchVectorField(fpvpvf), - filmRegionName_(fpvpvf.filmRegionName_), - pyrolysisRegionName_(fpvpvf.pyrolysisRegionName_), - phiName_(fpvpvf.phiName_), - rhoName_(fpvpvf.rhoName_) -{} - - -Foam::filmPyrolysisVelocityCoupledFvPatchVectorField:: -filmPyrolysisVelocityCoupledFvPatchVectorField -( - const filmPyrolysisVelocityCoupledFvPatchVectorField& fpvpvf, - const DimensionedField& iF -) -: - fixedValueFvPatchVectorField(fpvpvf, iF), - filmRegionName_(fpvpvf.filmRegionName_), - pyrolysisRegionName_(fpvpvf.pyrolysisRegionName_), - phiName_(fpvpvf.phiName_), - rhoName_(fpvpvf.rhoName_) -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -void Foam::filmPyrolysisVelocityCoupledFvPatchVectorField::updateCoeffs() -{ - if (updated()) - { - return; - } - - typedef regionModels::surfaceFilmModels::surfaceFilmRegionModel - filmModelType; - - typedef regionModels::pyrolysisModels::pyrolysisModel pyrModelType; - - // Since we're inside initEvaluate/evaluate there might be processor - // comms underway. Change the tag we use. - int oldTag = UPstream::msgType(); - UPstream::msgType() = oldTag+1; - - bool foundFilm = db().time().foundObject(filmRegionName_); - - bool foundPyrolysis = - db().time().foundObject(pyrolysisRegionName_); - - if (!foundFilm || !foundPyrolysis) - { - // Do nothing on construction - film model doesn't exist yet - return; - } - - vectorField& Up = *this; - - const label patchi = patch().index(); - - // Retrieve film model - const filmModelType& filmModel = - db().time().lookupObject(filmRegionName_); - - const label filmPatchi = filmModel.regionPatchID(patchi); - - scalarField alphaFilm = filmModel.alpha().boundaryField()[filmPatchi]; - filmModel.toPrimary(filmPatchi, alphaFilm); - - vectorField UFilm = filmModel.Us().boundaryField()[filmPatchi]; - filmModel.toPrimary(filmPatchi, UFilm); - - // Retrieve pyrolysis model - const pyrModelType& pyrModel = - db().time().lookupObject(pyrolysisRegionName_); - - const label pyrPatchi = pyrModel.regionPatchID(patchi); - - scalarField phiPyr = pyrModel.phiGas().boundaryField()[pyrPatchi]; - pyrModel.toPrimary(pyrPatchi, phiPyr); - - - const surfaceScalarField& phi = - db().lookupObject(phiName_); - - if (phi.dimensions() == dimVelocity*dimArea) - {} - else if (phi.dimensions() == dimDensity*dimVelocity*dimArea) - { - const fvPatchField& rhop = - patch().lookupPatchField(rhoName_); - phiPyr /= rhop; - } - else - { - FatalErrorInFunction - << "Unable to process flux field phi with dimensions " - << phi.dimensions() << nl - << " on patch " << patch().name() - << " of field " << internalField().name() - << " in file " << internalField().objectPath() - << exit(FatalError); - } - - const scalarField UAvePyr(-phiPyr/patch().magSf()); - const vectorField& nf = patch().nf(); - - - // Evaluate velocity - Up = alphaFilm*UFilm + (1.0 - alphaFilm)*UAvePyr*nf; - - // Restore tag - UPstream::msgType() = oldTag; - - fixedValueFvPatchVectorField::updateCoeffs(); -} - - -void Foam::filmPyrolysisVelocityCoupledFvPatchVectorField::write -( - Ostream& os -) const -{ - fvPatchVectorField::write(os); - writeEntryIfDifferent - ( - os, - "filmRegion", - "surfaceFilmProperties", - filmRegionName_ - ); - writeEntryIfDifferent - ( - os, - "pyrolysisRegion", - "pyrolysisProperties", - pyrolysisRegionName_ - ); - writeEntryIfDifferent(os, "phi", "phi", phiName_); - writeEntryIfDifferent(os, "rho", "rho", rhoName_); - writeEntry(os, "value", *this); -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - makePatchTypeField - ( - fvPatchVectorField, - filmPyrolysisVelocityCoupledFvPatchVectorField - ); -} - - -// ************************************************************************* // diff --git a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.H b/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.H deleted file mode 100644 index e50d4caad4..0000000000 --- a/src/regionModels/regionCoupling/derivedFvPatchFields/filmPyrolysisVelocityCoupled/filmPyrolysisVelocityCoupledFvPatchVectorField.H +++ /dev/null @@ -1,200 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::filmPyrolysisVelocityCoupledFvPatchVectorField - -Description - This boundary condition is designed to be used in conjunction with surface - film and pyrolysis modelling. - - It provides a velocity boundary condition for patches on the primary region - based on whether the patch is seen to be 'wet', retrieved from the film - alpha field. - - if the patch is wet, the velocity is set using the film velocity - - otherwise, it is set using pyrolysis out-gassing velocity - - Example of the boundary condition specification: - \verbatim - - { - type filmPyrolysisVelocityCoupled; - phi phi; // name of flux field (default = phi) - rho rho; // name of density field (default = rho) - deltaWet 1e-4; // threshold height for 'wet' film - value uniform (0 0 0); // initial velocity / [m/s] - } - \endverbatim - -SourceFiles - filmPyrolysisVelocityCoupledFvPatchVectorField.C - -\*---------------------------------------------------------------------------*/ - -#ifndef filmPyrolysisVelocityCoupledFvPatchVectorField_H -#define filmPyrolysisVelocityCoupledFvPatchVectorField_H - -#include "fixedValueFvPatchFields.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -/*---------------------------------------------------------------------------*\ - Class filmPyrolysisVelocityCoupledFvPatchVectorField Declaration -\*---------------------------------------------------------------------------*/ - -class filmPyrolysisVelocityCoupledFvPatchVectorField -: - public fixedValueFvPatchVectorField -{ - // Private Data - - //- Name of film region - word filmRegionName_; - - //- Name of pyrolysis region - word pyrolysisRegionName_; - - //- Name of flux field - word phiName_; - - //- Name of density field - word rhoName_; - - -public: - - //- Runtime type information - TypeName("filmPyrolysisVelocityCoupled"); - - - // Constructors - - //- Construct from patch and internal field - filmPyrolysisVelocityCoupledFvPatchVectorField - ( - const fvPatch&, - const DimensionedField& - ); - - //- Construct from patch, internal field and dictionary - filmPyrolysisVelocityCoupledFvPatchVectorField - ( - const fvPatch&, - const DimensionedField&, - const dictionary& - ); - - //- Construct by mapping given - // filmPyrolysisVelocityCoupledFvPatchVectorField onto a new patch - filmPyrolysisVelocityCoupledFvPatchVectorField - ( - const filmPyrolysisVelocityCoupledFvPatchVectorField&, - const fvPatch&, - const DimensionedField&, - const fvPatchFieldMapper& - ); - - //- Copy constructor - filmPyrolysisVelocityCoupledFvPatchVectorField - ( - const filmPyrolysisVelocityCoupledFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new filmPyrolysisVelocityCoupledFvPatchVectorField(*this) - ); - } - - //- Copy constructor setting internal field reference - filmPyrolysisVelocityCoupledFvPatchVectorField - ( - const filmPyrolysisVelocityCoupledFvPatchVectorField&, - const DimensionedField& - ); - - //- Construct and return a clone setting internal field reference - virtual tmp clone - ( - const DimensionedField& iF - ) const - { - return tmp - ( - new filmPyrolysisVelocityCoupledFvPatchVectorField(*this, iF) - ); - } - - - // Member Functions - - // Access - - //- Return the name of phi - const word& phiName() const - { - return phiName_; - } - - //- Return reference to the name of phi to allow adjustment - word& phiName() - { - return phiName_; - } - - //- Return the name of rho - const word& rhoName() const - { - return rhoName_; - } - - //- Return reference to the name of rho to allow adjustment - word& rhoName() - { - return rhoName_; - } - - - //- Update the coefficients associated with the patch field - virtual void updateCoeffs(); - - //- Write - virtual void write(Ostream&) const; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/regionModels/thermalBaffleModels/noThermo/noThermo.H b/src/regionModels/thermalBaffleModels/noThermo/noThermo.H index 8fc572a35f..72da5f2435 100644 --- a/src/regionModels/thermalBaffleModels/noThermo/noThermo.H +++ b/src/regionModels/thermalBaffleModels/noThermo/noThermo.H @@ -25,7 +25,7 @@ Class Foam::regionModels::thermalBaffleModels::noThermo Description - Dummy surface pyrolysis model for 'none' + Dummy surface model for 'none' SourceFiles noThermo.C diff --git a/src/thermophysicalModels/Allwmake b/src/thermophysicalModels/Allwmake index efa8d55978..7d1c34298c 100755 --- a/src/thermophysicalModels/Allwmake +++ b/src/thermophysicalModels/Allwmake @@ -5,7 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments wmake $targetType specie -wmake $targetType solidSpecie wmake $targetType thermophysicalProperties wmake $targetType basic @@ -16,6 +15,5 @@ wmake $targetType barotropicCompressibilityModel wmake $targetType SLGThermo wmake $targetType solidThermo -wmake $targetType solidChemistryModel #------------------------------------------------------------------------------ diff --git a/src/thermophysicalModels/reactionThermo/Make/options b/src/thermophysicalModels/reactionThermo/Make/options index f59f44fc8d..255adc5fc8 100644 --- a/src/thermophysicalModels/reactionThermo/Make/options +++ b/src/thermophysicalModels/reactionThermo/Make/options @@ -2,12 +2,10 @@ EXE_INC = \ -I$(LIB_SRC)/transportModels/compressible/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude LIB_LIBS = \ -lcompressibleTransportModels \ -lfluidThermophysicalModels \ -lspecie \ - -lsolidSpecie \ -lfiniteVolume diff --git a/src/thermophysicalModels/solidChemistryModel/Make/files b/src/thermophysicalModels/solidChemistryModel/Make/files deleted file mode 100644 index fcef028611..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/Make/files +++ /dev/null @@ -1,8 +0,0 @@ - -basicSolidChemistryModel/basicSolidChemistryModel.C -basicSolidChemistryModel/basicSolidChemistryModelNew.C -basicSolidChemistryModel/basicSolidChemistryModels.C - -solidChemistrySolver/makeSolidChemistrySolvers.C - -LIB = $(FOAM_LIBBIN)/libsolidChemistryModel diff --git a/src/thermophysicalModels/solidChemistryModel/Make/options b/src/thermophysicalModels/solidChemistryModel/Make/options deleted file mode 100644 index a32f3efbb7..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/Make/options +++ /dev/null @@ -1,15 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude \ - -I$(LIB_SRC)/ODE/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude - -LIB_LIBS = \ - -lchemistryModel \ - -lfiniteVolume \ - -lODE\ - -lreactionThermophysicalModels diff --git a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModel.C b/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModel.C deleted file mode 100644 index 236799306b..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModel.C +++ /dev/null @@ -1,98 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "basicSolidChemistryModel.H" -#include "fvMesh.H" -#include "Time.H" - -/* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */ - -namespace Foam -{ - defineTypeNameAndDebug(basicSolidChemistryModel, 0); - defineRunTimeSelectionTable(basicSolidChemistryModel, thermo); -} - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -Foam::basicSolidChemistryModel::basicSolidChemistryModel -( - solidReactionThermo& thermo -) -: - basicChemistryModel(thermo), - solidThermo_(thermo) -{} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -Foam::basicSolidChemistryModel::~basicSolidChemistryModel() -{} - - -const Foam::DimensionedField& -Foam::basicSolidChemistryModel::RR(const label i) const -{ - NotImplemented; - return (volScalarField::Internal::null()); -} - - -Foam::DimensionedField& -Foam::basicSolidChemistryModel::RR(const label i) -{ - NotImplemented; - - return dynamic_cast - ( - const_cast - ( - volScalarField::Internal::null() - ) - ); -} - - -Foam::tmp> -Foam::basicSolidChemistryModel::calculateRR -( - const label reactionI, - const label speciei -) const -{ - NotImplemented; - - return dynamic_cast&> - ( - const_cast - ( - volScalarField::Internal::null() - ) - ); -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModel.H b/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModel.H deleted file mode 100644 index 57cb170761..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModel.H +++ /dev/null @@ -1,187 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::basicSolidChemistryModel - -Description - Chemistry model for solid thermodynamics - -SourceFiles - basicSolidChemistryModelI.H - basicSolidChemistryModel.C - newChemistrySolidModel.C - -\*---------------------------------------------------------------------------*/ - -#ifndef basicSolidChemistryModel_H -#define basicSolidChemistryModel_H - -#include "basicChemistryModel.H" -#include "autoPtr.H" -#include "runTimeSelectionTables.H" -#include "solidReactionThermo.H" - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes -class fvMesh; - -/*---------------------------------------------------------------------------*\ - class basicSolidChemistryModel Declaration -\*---------------------------------------------------------------------------*/ - -class basicSolidChemistryModel -: - public basicChemistryModel -{ -protected: - - // Protected data - - //- Solid thermo - solidReactionThermo& solidThermo_; - - -public: - - //- Runtime type information - TypeName("basicSolidChemistryModel"); - - - //- Thermo type - typedef solidReactionThermo reactionThermo; - - - //- Declare run-time constructor selection tables - declareRunTimeSelectionTable - ( - autoPtr, - basicSolidChemistryModel, - thermo, - (solidReactionThermo& thermo), - (thermo) - ); - - - // Constructors - - //- Construct from thermo - basicSolidChemistryModel(solidReactionThermo& thermo); - - //- Construct as copy (not implemented) - basicSolidChemistryModel(const basicSolidChemistryModel&); - - - //- Selector - static autoPtr New(solidReactionThermo& thermo); - - - //- Destructor - virtual ~basicSolidChemistryModel(); - - - // Member Functions - - //- Return access to the solid thermo package - inline solidReactionThermo& solidThermo(); - - //- Return const access to the solid thermo package - inline const solidReactionThermo& solidThermo() const; - - //- Return total gases mass source term [kg/m^3/s] - virtual tmp RRg() const = 0; - - //- Return total solids mass source term [kg/m^3/s] - virtual tmp RRs() const = 0; - - //- Return chemical source terms for solids [kg/m^3/s] - virtual const volScalarField::Internal& RRs - ( - const label i - ) const = 0; - - //- Return chemical source terms for gases [kg/m^3/s] - virtual const volScalarField::Internal& RRg - ( - const label i - ) const = 0; - - //- Returns the reaction rate of the speciei in reactionI - virtual tmp calculateRR - ( - const label reactionI, - const label speciei - ) const; - - //- Return sensible enthalpy for gas i [J/Kg] - virtual tmp gasHs - ( - const volScalarField& p, - const volScalarField& T, - const label i - ) const = 0; - - //- Return specie Table for gases - virtual const speciesTable& gasTable() const = 0; - - //- Set reacting status of cell, celli - virtual void setCellReacting(const label celli, const bool active) = 0; - - //- Calculates the reaction rates - virtual void calculate() = 0; - - //- Return const access to the total source terms - virtual const volScalarField::Internal& RR - ( - const label i - ) const; - - //- Return non-const access to the total source terms - virtual volScalarField::Internal& RR(const label i); - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const basicSolidChemistryModel&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#include "basicSolidChemistryModelI.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModelI.H b/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModelI.H deleted file mode 100644 index 5946c1db20..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModelI.H +++ /dev/null @@ -1,41 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -inline Foam::solidReactionThermo& Foam::basicSolidChemistryModel::solidThermo() -{ - return solidThermo_; -} - - -inline const Foam::solidReactionThermo& -Foam::basicSolidChemistryModel::solidThermo() const -{ - return solidThermo_; -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModelNew.C b/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModelNew.C deleted file mode 100644 index 068b811fdb..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModelNew.C +++ /dev/null @@ -1,168 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "basicSolidChemistryModel.H" - -// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // - -Foam::autoPtr -Foam::basicSolidChemistryModel::New(solidReactionThermo& thermo) -{ - IOdictionary chemistryDict - ( - IOobject - ( - thermo.phasePropertyName("chemistryProperties"), - thermo.db().time().constant(), - thermo.db(), - IOobject::MUST_READ, - IOobject::NO_WRITE, - false - ) - ); - - const dictionary& chemistryTypeDict - ( - chemistryDict.subDict("chemistryType") - ); - - Info<< "Selecting chemistry type " << chemistryTypeDict << endl; - - const int nCmpt = 13; - const char* cmptNames[nCmpt] = - { - "chemistrySolver", - "chemistryThermo", - "baseChemistry", - "transport", - "thermo", - "equationOfState", - "specie", - "energy", - "transport", - "thermo", - "equationOfState", - "specie", - "energy" - }; - - IOdictionary thermoDict - ( - IOobject - ( - basicThermo::dictName, - thermo.db().time().constant(), - thermo.db(), - IOobject::MUST_READ_IF_MODIFIED, - IOobject::NO_WRITE, - false - ) - ); - - const dictionary& solidThermoTypeDict(thermoDict.subDict("thermoType")); - word solidThermoTypeName - ( - word(solidThermoTypeDict.lookup("transport")) + '<' - + word(solidThermoTypeDict.lookup("thermo")) + '<' - + word(solidThermoTypeDict.lookup("equationOfState")) + '<' - + word(solidThermoTypeDict.lookup("specie")) + ">>," - + word(solidThermoTypeDict.lookup("energy")) + ">" - ); - - const dictionary& gasThermoTypeDict(thermoDict.subDict("gasThermoType")); - word gasThermoTypeName - ( - word(gasThermoTypeDict.lookup("transport")) + '<' - + word(gasThermoTypeDict.lookup("thermo")) + '<' - + word(gasThermoTypeDict.lookup("equationOfState")) + '<' - + word(gasThermoTypeDict.lookup("specie")) + ">>," - + word(gasThermoTypeDict.lookup("energy")) + ">" - ); - - // Construct the name of the chemistry type from the components - word chemistryTypeName - ( - word(chemistryTypeDict.lookup("chemistrySolver")) + '<' - + word(chemistryTypeDict.lookup("chemistryThermo")) + '<' - + typeName + ',' - + solidThermoTypeName + ',' + gasThermoTypeName + ">>" - ); - - Info<< "chemistryTypeName " << chemistryTypeName << endl; - - thermoConstructorTable::iterator cstrIter = - thermoConstructorTablePtr_->find(chemistryTypeName); - - if (cstrIter == thermoConstructorTablePtr_->end()) - { - FatalErrorInFunction - << "Unknown " << typeName << " type " << nl - << "chemistryType" << chemistryTypeDict << nl << nl - << "Valid " << typeName << " types are:" - << nl << nl; - - // Get the list of all the suitable chemistry packages available - wordList validChemistryTypeNames - ( - thermoConstructorTablePtr_->sortedToc() - ); - Info<< validChemistryTypeNames << endl; - - // Build a table of the thermo packages constituent parts - // Note: row-0 contains the names of constituent parts - List validChemistryTypeNameCmpts - ( - validChemistryTypeNames.size() + 1 - ); - - validChemistryTypeNameCmpts[0].setSize(nCmpt); - forAll(validChemistryTypeNameCmpts[0], j) - { - validChemistryTypeNameCmpts[0][j] = cmptNames[j]; - } - - // Split the thermo package names into their constituent parts - forAll(validChemistryTypeNames, i) - { - validChemistryTypeNameCmpts[i+1] = basicThermo::splitThermoName - ( - validChemistryTypeNames[i], - nCmpt - ); - } - - // Print the table of available packages - // in terms of their constituent parts - printTable(validChemistryTypeNameCmpts, FatalError); - - FatalError<< exit(FatalError); - } - - return - autoPtr(cstrIter()(thermo)); -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModels.C b/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModels.C deleted file mode 100644 index 76dd54f80e..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/basicSolidChemistryModel/basicSolidChemistryModels.C +++ /dev/null @@ -1,104 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -InClass - Foam::basicSolidChemistryModel - -Description - Creates solid chemistry model instances templated on the type of - solid thermodynamics - -\*---------------------------------------------------------------------------*/ - -#include "makeSolidChemistryModel.H" - -#include "pyrolysisChemistryModel.H" -#include "basicSolidChemistryModel.H" -#include "solidChemistryModel.H" -#include "solidThermoPhysicsTypes.H" -#include "thermoPhysicsTypes.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// hConstSolidThermoPhysics - -makeSolidChemistryModel -( - solidChemistryModel, - pyrolysisChemistryModel, - basicSolidChemistryModel, - hConstSolidThermoPhysics -); - -makeSolidGasChemistryModel -( - solidChemistryModel, - pyrolysisChemistryModel, - basicSolidChemistryModel, - hConstSolidThermoPhysics, - gasHThermoPhysics -); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// hPowerSolidThermoPhysics - -makeSolidChemistryModel -( - solidChemistryModel, - pyrolysisChemistryModel, - basicSolidChemistryModel, - hPowerSolidThermoPhysics -); - -makeSolidGasChemistryModel -( - solidChemistryModel, - pyrolysisChemistryModel, - basicSolidChemistryModel, - hPowerSolidThermoPhysics, - gasHThermoPhysics -); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -// hExpKappaConstSolidThermoPhysics - -makeSolidChemistryModel -( - solidChemistryModel, - pyrolysisChemistryModel, - basicSolidChemistryModel, - hExpKappaConstSolidThermoPhysics -); - -makeSolidGasChemistryModel -( - solidChemistryModel, - pyrolysisChemistryModel, - basicSolidChemistryModel, - hExpKappaConstSolidThermoPhysics, - gasHThermoPhysics -); - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/makeSolidChemistryModel.H b/src/thermophysicalModels/solidChemistryModel/makeSolidChemistryModel.H deleted file mode 100644 index a8a667e375..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/makeSolidChemistryModel.H +++ /dev/null @@ -1,69 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Description - Macros for instantiating solid chemistry models - -\*---------------------------------------------------------------------------*/ - -#ifndef makeSolidChemistryModel_H -#define makeSolidChemistryModel_H - -#include "solidChemistryModel.H" -#include "addToRunTimeSelectionTable.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#define makeSolidChemistryModel(sChemistry, SS, Comp, SThermo) \ - \ - typedef Foam::sChemistry \ - sChemistry##Comp##SThermo; \ - \ - defineTemplateTypeNameAndDebugWithName \ - ( \ - sChemistry##Comp##SThermo, \ - (Foam::word(sChemistry##Comp##SThermo::typeName_()) + "<"#Comp"," \ - + SThermo::typeName() + ">").c_str(), \ - 0 \ - ); - - -#define makeSolidGasChemistryModel(sChemistry, SS, Comp, SThermo, GThermo) \ - \ - typedef Foam::SS \ - SS##Comp##SThermo##GThermo; \ - \ - defineTemplateTypeNameAndDebugWithName \ - ( \ - SS##Comp##SThermo##GThermo, \ - (Foam::word(SS##Comp##SThermo##GThermo::typeName_()) + "<"#Comp"," \ - + SThermo::typeName() + "," + GThermo::typeName() + ">").c_str(), \ - 0 \ - ); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModel.C b/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModel.C deleted file mode 100644 index c8c3e3aaa3..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModel.C +++ /dev/null @@ -1,664 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "pyrolysisChemistryModel.H" -#include "SolidReaction.H" -#include "basicThermo.H" - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -template -Foam::pyrolysisChemistryModel:: -pyrolysisChemistryModel -( - typename CompType::reactionThermo& thermo -) -: - solidChemistryModel(thermo), - pyrolisisGases_ - ( - dynamic_cast&> - ( - this->reactions_[0] - ).gasSpecies() - ), - gasThermo_(pyrolisisGases_.size()), - nGases_(pyrolisisGases_.size()), - nSpecie_(this->Ys_.size() + nGases_), - RRg_(nGases_), - Ys0_(this->nSolids_) -{ - // create the fields for the chemistry sources - forAll(this->RRs_, fieldi) - { - IOobject header - ( - this->Ys_[fieldi].name() + "0", - this->mesh().time().timeName(), - this->mesh(), - IOobject::NO_READ - ); - - // check if field exists and can be read - if (header.typeHeaderOk(true)) - { - Ys0_.set - ( - fieldi, - new volScalarField - ( - IOobject - ( - this->Ys_[fieldi].name() + "0", - this->mesh().time().timeName(), - this->mesh(), - IOobject::MUST_READ, - IOobject::AUTO_WRITE - ), - this->mesh() - ) - ); - } - else - { - volScalarField Y0Default - ( - IOobject - ( - "Y0Default", - this->mesh().time().timeName(), - this->mesh(), - IOobject::MUST_READ, - IOobject::NO_WRITE - ), - this->mesh() - ); - - Ys0_.set - ( - fieldi, - new volScalarField - ( - IOobject - ( - this->Ys_[fieldi].name() + "0", - this->mesh().time().timeName(), - this->mesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - Y0Default - ) - ); - - // Calculate initial values of Ysi0 = rho*delta*Yi - Ys0_[fieldi].primitiveFieldRef() = - this->solidThermo().rho() - *max(this->Ys_[fieldi], scalar(0.001))*this->mesh().V(); - } - } - - forAll(RRg_, fieldi) - { - RRg_.set - ( - fieldi, - new volScalarField::Internal - ( - IOobject - ( - "RRg." + pyrolisisGases_[fieldi], - this->mesh().time().timeName(), - this->mesh(), - IOobject::NO_READ, - IOobject::NO_WRITE - ), - this->mesh(), - dimensionedScalar(dimMass/dimVolume/dimTime, 0) - ) - ); - } - - forAll(gasThermo_, gasI) - { - dictionary thermoDict = - this->mesh().template lookupObject - ( - basicThermo::dictName - ).subDict(pyrolisisGases_[gasI]); - - gasThermo_.set - ( - gasI, - new GasThermo(thermoDict) - ); - } - - Info<< "pyrolysisChemistryModel: " << nl; - Info<< indent << "Number of solids = " << this->nSolids_ << nl; - Info<< indent << "Number of gases = " << nGases_ << nl; - forAll(this->reactions_, i) - { - Info<< dynamic_cast&> - ( - this->reactions_[i] - ) << nl; - } -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template -Foam::pyrolysisChemistryModel:: -~pyrolysisChemistryModel() -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -template -Foam::scalarField Foam:: -pyrolysisChemistryModel::omega -( - const scalar p, - const scalar T, - const scalarField& c, - const label li, - const bool updateC0 -) const -{ - scalar pf, cf, pr, cr; - label lRef, rRef; - - scalarField om(nEqns(), 0.0); - - forAll(this->reactions_, i) - { - const SolidReaction& R = - dynamic_cast&> - ( - this->reactions_[i] - ); - - scalar omegai = omega - ( - R, p, T, c, li, pf, cf, lRef, pr, cr, rRef - ); - scalar rhoL = 0.0; - forAll(R.lhs(), s) - { - label si = R.lhs()[s].index; - om[si] -= omegai; - rhoL = this->solidThermo_[si].rho(p, T); - } - scalar sr = 0.0; - forAll(R.rhs(), s) - { - label si = R.rhs()[s].index; - scalar rhoR = this->solidThermo_[si].rho(p, T); - sr = rhoR/rhoL; - om[si] += sr*omegai; - - if (updateC0) - { - Ys0_[si][li] += sr*omegai; - } - } - forAll(R.grhs(), g) - { - label gi = R.grhs()[g].index; - om[gi + this->nSolids_] += (1.0 - sr)*omegai; - } - } - - return om; -} - - -template -Foam::scalar -Foam::pyrolysisChemistryModel::omega -( - const Reaction& R, - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalar& pf, - scalar& cf, - label& lRef, - scalar& pr, - scalar& cr, - label& rRef -) const -{ - scalarField c1(nSpecie_, 0.0); - - for (label i=0; i -Foam::scalar Foam::pyrolysisChemistryModel:: -omegaI -( - const label index, - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalar& pf, - scalar& cf, - label& lRef, - scalar& pr, - scalar& cr, - label& rRef -) const -{ - - const Reaction& R = this->reactions_[index]; - scalar w = omega(R, p, T, c, li, pf, cf, lRef, pr, cr, rRef); - return(w); -} - - -template -void Foam::pyrolysisChemistryModel:: -derivatives -( - const scalar time, - const scalarField& c, - const label li, - scalarField& dcdt -) const -{ - const scalar T = c[nSpecie_]; - const scalar p = c[nSpecie_ + 1]; - - dcdt = 0.0; - - dcdt = omega(p, T, c, li); - - // Total mass concentration - scalar cTot = 0.0; - for (label i=0; inSolids_; i++) - { - cTot += c[i]; - } - - scalar newCp = 0.0; - scalar newhi = 0.0; - for (label i=0; inSolids_; i++) - { - scalar dYidt = dcdt[i]/cTot; - scalar Yi = c[i]/cTot; - newCp += Yi*this->solidThermo_[i].Cp(p, T); - newhi -= dYidt*this->solidThermo_[i].Hc(); - } - - scalar dTdt = newhi/newCp; - scalar dtMag = min(500.0, mag(dTdt)); - dcdt[nSpecie_] = dTdt*dtMag/(mag(dTdt) + 1.0e-10); - - // dp/dt = ... - dcdt[nSpecie_ + 1] = 0.0; -} - - -template -void Foam::pyrolysisChemistryModel:: -jacobian -( - const scalar t, - const scalarField& c, - const label li, - scalarField& dcdt, - scalarSquareMatrix& dfdc -) const -{ - const scalar T = c[nSpecie_]; - const scalar p = c[nSpecie_ + 1]; - - scalarField c2(nSpecie_, 0.0); - - for (label i=0; inSolids_; i++) - { - c2[i] = max(c[i], 0.0); - } - - for (label i=0; ireactions_.size(); ri++) - { - const Reaction& R = this->reactions_[ri]; - - scalar kf0 = R.kf(p, T, c2, li); - - forAll(R.lhs(), j) - { - label sj = R.lhs()[j].index; - scalar kf = kf0; - forAll(R.lhs(), i) - { - label si = R.lhs()[i].index; - scalar exp = R.lhs()[i].exponent; - if (i == j) - { - if (exp < 1.0) - { - if (c2[si] > small) - { - kf *= exp*pow(c2[si], exp - 1.0); - } - else - { - kf = 0.0; - } - } - else - { - kf *= exp*pow(c2[si], exp - 1.0); - } - } - else - { - Info<< "Solid reactions have only elements on slhs" - << endl; - kf = 0.0; - } - } - - forAll(R.lhs(), i) - { - label si = R.lhs()[i].index; - dfdc[si][sj] -= kf; - } - forAll(R.rhs(), i) - { - label si = R.rhs()[i].index; - dfdc[si][sj] += kf; - } - } - } - - // calculate the dcdT elements numerically - scalar delta = 1.0e-8; - scalarField dcdT0 = omega(p , T - delta, c2, li); - scalarField dcdT1 = omega(p, T + delta, c2, li); - - for (label i=0; i -Foam::label Foam:: -pyrolysisChemistryModel::nEqns() const -{ - // nEqns = number of solids + gases + temperature + pressure - return (nSpecie_ + 2); -} - - -template -void Foam::pyrolysisChemistryModel:: -calculate() -{ - if (!this->chemistry_) - { - return; - } - - const volScalarField rho - ( - IOobject - ( - "rho", - this->time().timeName(), - this->mesh(), - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->solidThermo().rho() - ); - - forAll(this->RRs_, i) - { - this->RRs_[i].field() = 0.0; - } - - forAll(RRg_, i) - { - RRg_[i].field() = 0.0; - } - - forAll(rho, celli) - { - const scalar delta = this->mesh().V()[celli]; - - if (this->reactingCells_[celli]) - { - scalar rhoi = rho[celli]; - scalar Ti = this->solidThermo().T()[celli]; - scalar pi = this->solidThermo().p()[celli]; - - scalarField c(nSpecie_, 0.0); - for (label i=0; inSolids_; i++) - { - c[i] = rhoi*this->Ys_[i][celli]*delta; - } - - const scalarField dcdt = omega(pi, Ti, c, celli, true); - - forAll(this->RRs_, i) - { - this->RRs_[i][celli] = dcdt[i]/delta; - } - - forAll(RRg_, i) - { - RRg_[i][celli] = dcdt[this->nSolids_ + i]/delta; - } - } - } -} - - -template -Foam::scalar -Foam::pyrolysisChemistryModel::solve -( - const scalar deltaT -) -{ - scalar deltaTMin = great; - - if (!this->chemistry_) - { - return deltaTMin; - } - - const volScalarField rho - ( - IOobject - ( - "rho", - this->time().timeName(), - this->mesh(), - IOobject::NO_READ, - IOobject::NO_WRITE, - false - ), - this->solidThermo().rho() - ); - - forAll(this->RRs_, i) - { - this->RRs_[i].field() = 0.0; - } - forAll(RRg_, i) - { - RRg_[i].field() = 0.0; - } - - const scalarField& T = this->solidThermo().T(); - const scalarField& p = this->solidThermo().p(); - - scalarField c(nSpecie_, 0.0); - scalarField c0(nSpecie_, 0.0); - scalarField dc(nSpecie_, 0.0); - scalarField delta(this->mesh().V()); - - forAll(rho, celli) - { - if (this->reactingCells_[celli]) - { - scalar rhoi = rho[celli]; - scalar pi = p[celli]; - scalar Ti = T[celli]; - - for (label i=0; inSolids_; i++) - { - c[i] = rhoi*this->Ys_[i][celli]*delta[celli]; - } - - c0 = c; - - // Initialise time progress - scalar timeLeft = deltaT; - - // calculate the chemical source terms - while (timeLeft > small) - { - scalar dt = timeLeft; - this->solve(pi, Ti, c, celli, dt, this->deltaTChem_[celli]); - timeLeft -= dt; - } - - deltaTMin = min(this->deltaTChem_[celli], deltaTMin); - dc = c - c0; - - forAll(this->RRs_, i) - { - this->RRs_[i][celli] = dc[i]/(deltaT*delta[celli]); - } - - forAll(RRg_, i) - { - RRg_[i][celli] = dc[this->nSolids_ + i]/(deltaT*delta[celli]); - } - - // Update Ys0_ - dc = omega(pi, Ti, c0, celli, true); - } - } - - // Don't allow the time-step to change more than a factor of 2 - deltaTMin = min(deltaTMin, 2*deltaT); - - return deltaTMin; -} - - -template -Foam::tmp -Foam::pyrolysisChemistryModel::gasHs -( - const volScalarField& p, - const volScalarField& T, - const label index -) const -{ - tmp tHs - ( - volScalarField::New - ( - "Hs_" + pyrolisisGases_[index], - this->mesh_, - dimensionedScalar(dimEnergy/dimMass, 0) - ) - ); - - volScalarField::Internal& gasHs = tHs.ref(); - - const GasThermo& mixture = gasThermo_[index]; - - forAll(gasHs, celli) - { - gasHs[celli] = mixture.Hs(p[celli], T[celli]); - } - - return tHs; -} - - -template -void Foam::pyrolysisChemistryModel::solve -( - scalar& p, - scalar& T, - scalarField& c, - const label li, - scalar& deltaT, - scalar& subDeltaT -) const -{ - NotImplemented; -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModel.H b/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModel.H deleted file mode 100644 index e0c3f91c1c..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModel.H +++ /dev/null @@ -1,256 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::pyrolysisChemistryModel - -Description - Pyrolysis chemistry model. It includes gas phase in the solid - reaction. - -SourceFiles - pyrolysisChemistryModelI.H - pyrolysisChemistryModel.C - -\*---------------------------------------------------------------------------*/ - -#ifndef pyrolysisChemistryModel_H -#define pyrolysisChemistryModel_H - -#include "volFieldsFwd.H" -#include "DimensionedField.H" -#include "solidChemistryModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes -class fvMesh; - -/*---------------------------------------------------------------------------*\ - Class pyrolysisChemistryModel Declaration -\*---------------------------------------------------------------------------*/ - -template -class pyrolysisChemistryModel -: - public solidChemistryModel -{ -protected: - - //- List of gas species present in reaction system - speciesTable pyrolisisGases_; - - //- Thermodynamic data of gases - PtrList gasThermo_; - - //- Number of gas species - label nGases_; - - //- Number of components being solved by ODE - label nSpecie_; - - //- List of reaction rate per gas [kg/m^3/s] - PtrList RRg_; - - - // Protected Member Functions - - //- Write access to source terms for gases - inline PtrList& RRg(); - - -private: - - //- List of accumulative solid concentrations - mutable PtrList Ys0_; - - -public: - - //- Runtime type information - TypeName("pyrolysis"); - - - // Constructors - - //- Construct from thermo - pyrolysisChemistryModel(typename CompType::reactionThermo& thermo); - - - //- Destructor - virtual ~pyrolysisChemistryModel(); - - - // Member Functions - - //- Thermodynamic data of gases - inline const PtrList& gasThermo() const; - - //- Gases table - inline const speciesTable& gasTable() const; - - //- The number of solids - inline label nSpecie() const; - - //- The number of solids - inline label nGases() const; - - - //- dc/dt = omega, rate of change in concentration, for each species - virtual scalarField omega - ( - const scalar p, - const scalar T, - const scalarField& c, - const label li, - const bool updateC0 = false - ) const; - - //- Return the reaction rate for reaction r - // NOTE: Currently does not calculate reference specie and - // characteristic times (pf, cf,l Ref, etc.) - virtual scalar omega - ( - const Reaction& r, - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalar& pf, - scalar& cf, - label& lRef, - scalar& pr, - scalar& cr, - label& rRef - ) const; - - - //- Return the reaction rate for iReaction - // NOTE: Currently does not calculate reference specie and - // characteristic times (pf, cf,l Ref, etc.) - virtual scalar omegaI - ( - label iReaction, - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalar& pf, - scalar& cf, - label& lRef, - scalar& pr, - scalar& cr, - label& rRef - ) const; - - - //- Calculates the reaction rates - virtual void calculate(); - - - // Chemistry model functions - - //- Return const access to the chemical source terms for gases - inline const volScalarField::Internal& RRg - ( - const label i - ) const; - - //- Return total gas source term - inline tmp RRg() const; - - //- Return sensible enthalpy for gas i [J/Kg] - virtual tmp gasHs - ( - const volScalarField& p, - const volScalarField& T, - const label i - ) const; - - //- Solve the reaction system for the given time step - // and return the characteristic time - virtual scalar solve(const scalar deltaT); - - - // ODE functions (overriding abstract functions in ODE.H) - - //- Number of ODE's to solve - virtual label nEqns() const; - - virtual void derivatives - ( - const scalar t, - const scalarField& c, - const label li, - scalarField& dcdt - ) const; - - virtual void jacobian - ( - const scalar t, - const scalarField& c, - const label li, - scalarField& dcdt, - scalarSquareMatrix& dfdc - ) const; - - virtual void solve - ( - scalar& p, - scalar& T, - scalarField& c, - const label li, - scalar& deltaT, - scalar& subDeltaT - ) const; - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const pyrolysisChemistryModel&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - #include "pyrolysisChemistryModelI.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#ifdef NoRepository - #include "pyrolysisChemistryModel.C" -#endif - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModelI.H b/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModelI.H deleted file mode 100644 index a5dbcc79a9..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/pyrolysisChemistryModel/pyrolysisChemistryModelI.H +++ /dev/null @@ -1,105 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "volFields.H" - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -template -inline Foam::PtrList>& -Foam::pyrolysisChemistryModel::RRg() -{ - return RRg_; -} - - -template -inline const Foam::PtrList& -Foam::pyrolysisChemistryModel:: -gasThermo() const -{ - return gasThermo_; -} - - -template -inline const Foam::speciesTable& -Foam::pyrolysisChemistryModel:: -gasTable() const -{ - return pyrolisisGases_; -} - - -template -inline Foam::label -Foam::pyrolysisChemistryModel:: -nSpecie() const -{ - return nSpecie_; -} - - -template -inline const Foam::DimensionedField& -Foam::pyrolysisChemistryModel::RRg -( - const label i -) const -{ - return RRg_[i]; -} - - -template -inline Foam::tmp> -Foam::pyrolysisChemistryModel:: -RRg() const -{ - tmp tRRg - ( - volScalarField::Internal::New - ( - "RRg", - this->mesh(), - dimensionedScalar(dimMass/dimVolume/dimTime, 0) - ) - ); - - if (this->chemistry_) - { - volScalarField::Internal& RRg = tRRg.ref(); - for (label i=0; i < nGases_; i++) - { - RRg += RRg_[i]; - } - } - - return tRRg; -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModel.C b/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModel.C deleted file mode 100644 index a43400750c..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModel.C +++ /dev/null @@ -1,158 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "solidChemistryModel.H" -#include "multiComponentMixture.H" - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -template -Foam::solidChemistryModel::solidChemistryModel -( - typename CompType::reactionThermo& thermo -) -: - CompType(thermo), - ODESystem(), - Ys_(this->solidThermo().composition().Y()), - solidThermo_ - ( - dynamic_cast&> - ( - this->solidThermo() - ).speciesData() - ), - reactions_ - ( - dynamic_cast&> - ( - this->solidThermo() - ).species(), - solidThermo_, - this->mesh(), - *this - ), - nSolids_(Ys_.size()), - nReaction_(reactions_.size()), - RRs_(nSolids_), - reactingCells_(this->mesh().nCells(), true) -{ - // create the fields for the chemistry sources - forAll(RRs_, fieldi) - { - RRs_.set - ( - fieldi, - new volScalarField::Internal - ( - IOobject - ( - "RRs." + Ys_[fieldi].name(), - this->mesh().time().timeName(), - this->mesh(), - IOobject::NO_READ, - IOobject::NO_WRITE - ), - this->mesh(), - dimensionedScalar(dimMass/dimVolume/dimTime, 0) - ) - ); - } -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -template -Foam::solidChemistryModel:: -~solidChemistryModel() -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -template -Foam::scalar Foam::solidChemistryModel::solve -( - const scalarField& deltaT -) -{ - NotImplemented; - return 0; -} - - -template -Foam::tmp -Foam::solidChemistryModel::tc() const -{ - NotImplemented; - return volScalarField::null(); -} - - -template -Foam::tmp -Foam::solidChemistryModel::Qdot() const -{ - tmp tQdot - ( - volScalarField::New - ( - "Qdot", - this->mesh_, - dimensionedScalar(dimEnergy/dimVolume/dimTime, 0) - ) - ); - - if (this->chemistry_) - { - scalarField& Qdot = tQdot.ref(); - - forAll(Ys_, i) - { - forAll(Qdot, celli) - { - scalar hf = solidThermo_[i].Hc(); - Qdot[celli] -= hf*RRs_[i][celli]; - } - } - } - - return tQdot; -} - - -template -void Foam::solidChemistryModel::setCellReacting -( - const label celli, - const bool active -) -{ - reactingCells_[celli] = active; -} - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModel.H b/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModel.H deleted file mode 100644 index 5d2bd51386..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModel.H +++ /dev/null @@ -1,258 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::solidChemistryModel - -Description - Extends base solid chemistry model by adding a thermo package, and ODE - functions. - Introduces chemistry equation system and evaluation of chemical source - terms. - -SourceFiles - solidChemistryModelI.H - solidChemistryModel.C - -\*---------------------------------------------------------------------------*/ - -#ifndef solidChemistryModel_H -#define solidChemistryModel_H - -#include "ReactionList.H" -#include "ODESystem.H" -#include "volFields.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of classes -class fvMesh; - -/*---------------------------------------------------------------------------*\ - Class solidChemistryModel Declaration -\*---------------------------------------------------------------------------*/ - -template -class solidChemistryModel -: - public CompType, - public ODESystem -{ -protected: - - //- Reference to solid mass fractions - PtrList& Ys_; - - //- Thermodynamic data of solids - const PtrList& solidThermo_; - - //- Reactions - const ReactionList reactions_; - - //- Number of solid components - label nSolids_; - - //- Number of solid reactions - label nReaction_; - - //- List of reaction rate per solid [kg/m^3/s] - PtrList RRs_; - - //- List of active reacting cells - List reactingCells_; - - - // Protected Member Functions - - //- Write access to source terms for solids - inline PtrList& RRs(); - - //- Set reacting status of cell, celli - void setCellReacting(const label celli, const bool active); - - -public: - - //- Runtime type information - TypeName("solidChemistryModel"); - - - // Constructors - - //- Construct from thermo - solidChemistryModel(typename CompType::reactionThermo& thermo); - - //- Disallow default bitwise copy construction - solidChemistryModel(const solidChemistryModel&); - - - //- Destructor - virtual ~solidChemistryModel(); - - - // Member Functions - - //- The reactions - inline const PtrList>& reactions() const; - - //- The number of reactions - inline label nReaction() const; - - - //- dc/dt = omega, rate of change in concentration, for each species - virtual scalarField omega - ( - const scalar p, - const scalar T, - const scalarField& c, - const label li, - const bool updateC0 = false - ) const = 0; - - //- Return the reaction rate for reaction r and the reference - // species and charateristic times - virtual scalar omega - ( - const Reaction& r, - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalar& pf, - scalar& cf, - label& lRef, - scalar& pr, - scalar& cr, - label& rRef - ) const = 0; - - - //- Return the reaction rate for iReaction and the reference - // species and charateristic times - virtual scalar omegaI - ( - label iReaction, - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalar& pf, - scalar& cf, - label& lRef, - scalar& pr, - scalar& cr, - label& rRef - ) const = 0; - - //- Calculates the reaction rates - virtual void calculate() = 0; - - - // Solid Chemistry model functions - - //- Return const access to the chemical source terms for solids - inline const volScalarField::Internal& RRs - ( - const label i - ) const; - - //- Return total solid source term - inline tmp RRs() const; - - //- Solve the reaction system for the given time step - // and return the characteristic time - virtual scalar solve(const scalar deltaT) = 0; - - //- Solve the reaction system for the given time step - // and return the characteristic time - virtual scalar solve(const scalarField& deltaT); - - //- Return the chemical time scale - virtual tmp tc() const; - - //- Return the heat release rate [kg/m/s^3] - virtual tmp Qdot() const; - - - // ODE functions (overriding abstract functions in ODE.H) - - //- Number of ODE's to solve - virtual label nEqns() const = 0; - - virtual void derivatives - ( - const scalar t, - const scalarField& c, - const label li, - scalarField& dcdt - ) const = 0; - - virtual void jacobian - ( - const scalar t, - const scalarField& c, - const label li, - scalarField& dcdt, - scalarSquareMatrix& dfdc - ) const = 0; - - virtual void solve - ( - scalar& p, - scalar& T, - scalarField& c, - const label li, - scalar& deltaT, - scalar& subDeltaT - ) const = 0; - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const solidChemistryModel&) = delete; -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - #include "solidChemistryModelI.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#ifdef NoRepository - #include "solidChemistryModel.C" -#endif - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModelI.H b/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModelI.H deleted file mode 100644 index a5a9644dff..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/solidChemistryModel/solidChemistryModelI.H +++ /dev/null @@ -1,91 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "volFields.H" - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -template -inline Foam::PtrList>& -Foam::solidChemistryModel::RRs() -{ - return RRs_; -} - -template -inline const Foam::PtrList>& -Foam::solidChemistryModel::reactions() const -{ - return reactions_; -} - - -template -inline Foam::label -Foam::solidChemistryModel:: -nReaction() const -{ - return nReaction_; -} - - -template -inline const Foam::DimensionedField& -Foam::solidChemistryModel::RRs -( - const label i -) const -{ - return RRs_[i]; -} - - -template -inline Foam::tmp> -Foam::solidChemistryModel::RRs() const -{ - tmp tRRs - ( - volScalarField::Internal::New - ( - "RRs", - this->mesh(), - dimensionedScalar(dimMass/dimVolume/dimTime, 0) - ) - ); - - if (this->chemistry_) - { - volScalarField::Internal& RRs = tRRs.ref(); - for (label i=0; i < nSolids_; i++) - { - RRs += RRs_[i]; - } - } - return tRRs; -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolverType.H b/src/thermophysicalModels/solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolverType.H deleted file mode 100644 index 82fb7c4bb0..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolverType.H +++ /dev/null @@ -1,97 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Description - Macros for instantiating solid chemistry models based on compressibility - and transport types - -\*---------------------------------------------------------------------------*/ - -#ifndef makeSolidChemistrySolverType_H -#define makeSolidChemistrySolverType_H - -#include "addToRunTimeSelectionTable.H" - -#include "noChemistrySolver.H" -#include "EulerImplicit.H" -#include "ode.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#define makeSolidChemistrySolverType(SS, Schem, Comp, SThermo, GThermo) \ - \ - typedef SS> \ - SS##Schem##Comp##SThermo##GThermo; \ - \ - defineTemplateTypeNameAndDebugWithName \ - ( \ - SS##Schem##Comp##SThermo##GThermo, \ - (#SS"<" + word(Schem::typeName_()) \ - + "<"#Comp"," + SThermo::typeName() \ - + "," + GThermo::typeName() + ">>").c_str(), \ - 0 \ - ); \ - \ - addToRunTimeSelectionTable \ - ( \ - Comp, \ - SS##Schem##Comp##SThermo##GThermo, \ - thermo \ - ); - - -#define makeSolidChemistrySolverTypes(SolidChem, Comp, SThermo, GThermo) \ - \ - makeSolidChemistrySolverType \ - ( \ - noChemistrySolver, \ - SolidChem, \ - Comp, \ - SThermo, \ - GThermo \ - ); \ - \ - makeSolidChemistrySolverType \ - ( \ - ode, \ - SolidChem, \ - Comp, \ - SThermo, \ - GThermo \ - ); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolvers.C b/src/thermophysicalModels/solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolvers.C deleted file mode 100644 index 8c92c24175..0000000000 --- a/src/thermophysicalModels/solidChemistryModel/solidChemistrySolver/makeSolidChemistrySolvers.C +++ /dev/null @@ -1,63 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "makeSolidChemistrySolverType.H" -#include "solidThermoPhysicsTypes.H" -#include "thermoPhysicsTypes.H" - -#include "pyrolysisChemistryModel.H" -#include "basicSolidChemistryModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - makeSolidChemistrySolverTypes - ( - pyrolysisChemistryModel, - basicSolidChemistryModel, - hConstSolidThermoPhysics, - gasHThermoPhysics - ) - - makeSolidChemistrySolverTypes - ( - pyrolysisChemistryModel, - basicSolidChemistryModel, - hPowerSolidThermoPhysics, - gasHThermoPhysics - ) - - makeSolidChemistrySolverTypes - ( - pyrolysisChemistryModel, - basicSolidChemistryModel, - hExpKappaConstSolidThermoPhysics, - gasHThermoPhysics - ) -} - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/thermophysicalModels/solidSpecie/Make/files b/src/thermophysicalModels/solidSpecie/Make/files deleted file mode 100644 index 403c148358..0000000000 --- a/src/thermophysicalModels/solidSpecie/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -reaction/reactions/makeSolidReactions.C - -LIB = $(FOAM_LIBBIN)/libsolidSpecie diff --git a/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReaction.C b/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReaction.C deleted file mode 100644 index a0d770cd08..0000000000 --- a/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReaction.C +++ /dev/null @@ -1,192 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "SolidReaction.H" -#include "DynamicList.H" - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -template -Foam::SolidReaction::SolidReaction -( - const Reaction& reaction, - const speciesTable& pyrolisisGases, - const List& glhs, - const List& grhs -) -: - Reaction(reaction), - pyrolisisGases_(pyrolisisGases), - glhs_(glhs), - grhs_(grhs) -{} - - -template -Foam::SolidReaction::SolidReaction -( - const SolidReaction& r, - const speciesTable& pyrolisisGases -) -: - Reaction(r), - pyrolisisGases_(pyrolisisGases), - glhs_(r.glhs_), - grhs_(r.grhs_) -{} - - -template -Foam::SolidReaction::SolidReaction -( - const speciesTable& species, - const HashPtrTable& thermoDatabase, - const dictionary& dict -) -: - Reaction(species, thermoDatabase, dict), - pyrolisisGases_(dict.parent().parent().lookup("gaseousSpecies")), - glhs_(), - grhs_() -{ - specieCoeffs::setLRhs - ( - IStringStream(dict.lookup("reaction"))(), - pyrolisisGases_, - glhs_, - grhs_ - ); -} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -template -const Foam::List& -Foam::SolidReaction::glhs() const -{ - return glhs_; -} - - -template -const Foam::List& -Foam::SolidReaction::grhs() const -{ - return grhs_; -} - - -template -const Foam::speciesTable& Foam::SolidReaction:: -gasSpecies() const -{ - return pyrolisisGases_; -} - - -template -void Foam::SolidReaction::write(Ostream& os) const -{ - OStringStream reaction; - writeEntry(os, "reaction", solidReactionStr(reaction)); -} - - -template -Foam::string Foam::SolidReaction::solidReactionStr -( - OStringStream& reaction -) const -{ - specieCoeffs::reactionStr(reaction, this->species(), this->lhs()); - if (glhs().size() > 0) - { - reaction << " + "; - solidReactionStrLeft(reaction); - } - reaction << " = "; - specieCoeffs::reactionStr(reaction, this->species(), this->rhs()); - if (grhs().size() > 0) - { - reaction << " + "; - solidReactionStrRight(reaction); - } - return reaction.str(); - -} - - -template -void Foam::SolidReaction::solidReactionStrLeft -( - OStringStream& reaction -) const -{ - for (label i = 0; i < glhs().size(); ++i) - { - if (i > 0) - { - reaction << " + "; - } - if (mag(glhs()[i].stoichCoeff - 1) > small) - { - reaction << glhs()[i].stoichCoeff; - } - reaction << gasSpecies()[glhs()[i].index]; - if (mag(glhs()[i].exponent - glhs()[i].stoichCoeff) > small) - { - reaction << "^" << glhs()[i].exponent; - } - } -} - - -template -void Foam::SolidReaction::solidReactionStrRight -( - OStringStream& reaction -) const -{ - - for (label i = 0; i < grhs().size(); ++i) - { - if (i > 0) - { - reaction << " + "; - } - if (mag(grhs()[i].stoichCoeff - 1) > small) - { - reaction << grhs()[i].stoichCoeff; - } - reaction << gasSpecies()[grhs()[i].index]; - if (mag(grhs()[i].exponent - grhs()[i].stoichCoeff) > small) - { - reaction << "^" << grhs()[i].exponent; - } - } -} - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReaction.H b/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReaction.H deleted file mode 100644 index fa65ee302d..0000000000 --- a/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReaction.H +++ /dev/null @@ -1,181 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::SolidReaction - -Description - - Read solid reactions of the type S1 = S2 + G1 - -SourceFiles - SolidReactionI.H - SolidReaction.C - -\*---------------------------------------------------------------------------*/ - -#ifndef SolidReaction_H -#define SolidReaction_H - -#include "speciesTable.H" -#include "Reaction.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of friend functions and operators -template -class SolidReaction; - -template -inline Ostream& operator<<(Ostream&, const SolidReaction&); - -/*---------------------------------------------------------------------------*\ - Class SolidReaction Declaration -\*---------------------------------------------------------------------------*/ - -template -class SolidReaction -: - public Reaction -{ - // Private Data - - //- List of gas species present in reaction system - speciesTable pyrolisisGases_; - - //- Gas specie index for the left-hand-side of the reaction - List glhs_; - - //- Gas specie index for the right-hand-side of the reaction - List grhs_; - - - // Private Member Functions - - - //- Return string representation of reaction - string solidReactionStr(OStringStream&) const; - - //- Return string representation of the left of the reaction - void solidReactionStrLeft(OStringStream&) const; - - //- Return string representation of the right of the reaction - void solidReactionStrRight(OStringStream&) const; - - -public: - - //- Runtime type information - TypeName("SolidReaction"); - - - // Constructors - - //- Construct from components - SolidReaction - ( - const Reaction& reaction, - const speciesTable& pyrolisisGases, - const List& glhs, - const List& grhs - ); - - - //- Construct as copy given new speciesTable - SolidReaction - ( - const SolidReaction&, - const speciesTable& pyrolisisGases - ); - - - //- Construct from dictionary - SolidReaction - ( - const speciesTable& species, - const HashPtrTable& thermoDatabase, - const dictionary& dict - ); - - - //- Destructor - virtual ~SolidReaction() - {} - - - // Member Functions - - // Access - - //- Access to the gas components of the left hand side - virtual const List& grhs() const; - - //- Access to the gas components of the right hand side - virtual const List& glhs() const; - - //- Access to gas specie list - virtual const speciesTable& gasSpecies() const; - - - //- Write - virtual void write(Ostream&) const; - - - // Member Operators - - //- Disallow default bitwise assignment - void operator=(const SolidReaction&) = delete; - - - // Ostream Operator - - friend Ostream& operator<< - ( - Ostream&, - const SolidReaction& - ); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#include "SolidReactionI.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#ifdef NoRepository - #include "SolidReaction.C" -#endif - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReactionI.H b/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReactionI.H deleted file mode 100644 index 1360933cfb..0000000000 --- a/src/thermophysicalModels/solidSpecie/reaction/SolidReaction/SolidReactionI.H +++ /dev/null @@ -1,52 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "SolidReaction.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * // - -template -inline Ostream& operator<< -( - Ostream& os, - const SolidReaction& r -) -{ - OStringStream reaction; - os << r.solidReactionStr(reaction)<< token::END_STATEMENT <. - -Class - Foam::solidArrheniusReactionRate - -Description - Arrhenius reaction rate for solids - -SourceFiles - solidArrheniusReactionRateI.H - -\*---------------------------------------------------------------------------*/ - -#ifndef solidArrheniusReactionRate_H -#define solidArrheniusReactionRate_H - -#include "scalarField.H" -#include "typeInfo.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// Forward declaration of friend functions and operators - -class solidArrheniusReactionRate; - -Ostream& operator<<(Ostream&, const solidArrheniusReactionRate&); - - -/*---------------------------------------------------------------------------*\ - Class solidArrheniusReactionRate Declaration -\*---------------------------------------------------------------------------*/ - -class solidArrheniusReactionRate -{ - // Private Data - - scalar A_; - scalar Ta_; - scalar Tcrit_; - - -public: - - // Constructors - - //- Construct from components - inline solidArrheniusReactionRate - ( - const scalar A, - const scalar Ta, - const scalar Tcrit - ); - - - //- Construct from dictionary - inline solidArrheniusReactionRate - ( - const speciesTable& species, - const dictionary& dict - ); - - - //- Destructor - virtual ~solidArrheniusReactionRate() - {} - - - // Member Functions - - //- Return the type name - static word type() - { - return "Arrhenius"; - } - - inline scalar operator() - ( - const scalar p, - const scalar T, - const scalarField& c, - const label li - ) const; - - inline scalar ddT - ( - const scalar p, - const scalar T, - const scalarField& c, - const label li - ) const; - - //- Third-body efficiencies (beta = 1-alpha) - // non-empty only for third-body reactions - // with enhanced molecularity (alpha != 1) - inline const List>& beta() const; - - //- Species concentration derivative of the pressure dependent term - // By default this value is 1 as it multiplies the third-body term - inline void dcidc - ( - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalarField& dcidc - ) const; - - //- Temperature derivative of the pressure dependent term - // By default this value is 0 since ddT of molecularity is approx.0 - inline scalar dcidT - ( - const scalar p, - const scalar T, - const scalarField& c, - const label li - ) const; - - - //- Write to stream - inline void write(Ostream& os) const; - - - // Ostream Operator - - inline friend Ostream& operator<< - ( - Ostream&, - const solidArrheniusReactionRate& - ); -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#include "solidArrheniusReactionRateI.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidSpecie/reaction/reactionRate/solidArrheniusReactionRate/solidArrheniusReactionRateI.H b/src/thermophysicalModels/solidSpecie/reaction/reactionRate/solidArrheniusReactionRate/solidArrheniusReactionRateI.H deleted file mode 100644 index 0c9035e3e2..0000000000 --- a/src/thermophysicalModels/solidSpecie/reaction/reactionRate/solidArrheniusReactionRate/solidArrheniusReactionRateI.H +++ /dev/null @@ -1,143 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -inline Foam::solidArrheniusReactionRate::solidArrheniusReactionRate -( - const scalar A, - const scalar Ta, - const scalar Tcrit - // const scalar nReact -) -: - A_(A), - Ta_(Ta), - Tcrit_(Tcrit) -{} - - -inline Foam::solidArrheniusReactionRate::solidArrheniusReactionRate -( - const speciesTable&, - const dictionary& dict -) -: - A_(readScalar(dict.lookup("A"))), - Ta_(readScalar(dict.lookup("Ta"))), - Tcrit_(readScalar(dict.lookup("Tcrit"))) -{} - - -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - -inline Foam::scalar Foam::solidArrheniusReactionRate::operator() -( - const scalar, - const scalar T, - const scalarField&, - const label li -) const -{ - if (T < Tcrit_) - { - return 0; - } - else - { - return A_*exp(-Ta_/T); - } -} - - -inline Foam::scalar Foam::solidArrheniusReactionRate::ddT -( - const scalar p, - const scalar T, - const scalarField&, - const label li -) const -{ - if (T < Tcrit_) - { - return 0; - } - else - { - return A_*exp(-Ta_/T)*Ta_/sqr(T); - } -} - - -inline const Foam::List>& -Foam::solidArrheniusReactionRate::beta() const -{ - return NullObjectRef>>(); -} - - -inline void Foam::solidArrheniusReactionRate::dcidc -( - const scalar p, - const scalar T, - const scalarField& c, - const label li, - scalarField& dcidc -) const -{} - - -inline Foam::scalar Foam::solidArrheniusReactionRate::dcidT -( - const scalar p, - const scalar T, - const scalarField& c, - const label li -) const -{ - return 0; -} - - -inline void Foam::solidArrheniusReactionRate::write(Ostream& os) const -{ - writeEntry(os, "A", A_); - writeEntry(os, "Ta", Ta_); - writeEntry(os, "Tcrit", Tcrit_); -} - - -inline Foam::Ostream& Foam::operator<< -( - Ostream& os, - const solidArrheniusReactionRate& arr -) -{ - arr.write(os); - return os; -} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidSpecie/reaction/reactions/makeSolidReaction.H b/src/thermophysicalModels/solidSpecie/reaction/reactions/makeSolidReaction.H deleted file mode 100644 index 2d0cdb83fb..0000000000 --- a/src/thermophysicalModels/solidSpecie/reaction/reactions/makeSolidReaction.H +++ /dev/null @@ -1,91 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -InClass - Foam::makeSolidReaction - -Description - Macros for instantiating reactions for solid - -\*---------------------------------------------------------------------------*/ - -#ifndef makeSolidReaction_H -#define makeSolidReaction_H - -#include "SolidReaction.H" -#include "IrreversibleReaction.H" -#include "Reaction.H" - -#include "addToRunTimeSelectionTable.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#define makeSolidReaction(ReactionType, Thermo, ReactionRate) \ - \ - typedef SolidReaction SolidReaction##Thermo; \ - \ - typedef Reaction Reaction##Thermo; \ - \ - typedef ReactionType \ - ReactionType##Thermo##ReactionRate; \ - \ - defineTemplateRunTimeSelectionTable(Reaction##Thermo, dictionary); \ - defineTemplateRunTimeSelectionTable(Reaction##Thermo, objectRegistry); \ - \ - defineTemplateTypeNameAndDebug(SolidReaction##Thermo, 0); \ - defineTemplateTypeNameAndDebug(Reaction##Thermo, 0); \ - \ - template<> \ - const word ReactionType##Thermo##ReactionRate::typeName \ - ( \ - ReactionType::typeName_() \ - + ReactionRate::type() \ - + SolidReaction##Thermo::typeName_() \ - ); \ - \ - addToRunTimeSelectionTable \ - ( \ - Reaction##Thermo, \ - ReactionType##Thermo##ReactionRate, \ - dictionary \ - ); - -#define makeSolidIRReactions(Thermo, ReactionRate) \ - \ - makeSolidReaction(IrreversibleReaction, Thermo, ReactionRate) - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidSpecie/reaction/reactions/makeSolidReactions.C b/src/thermophysicalModels/solidSpecie/reaction/reactions/makeSolidReactions.C deleted file mode 100644 index c72412df0d..0000000000 --- a/src/thermophysicalModels/solidSpecie/reaction/reactions/makeSolidReactions.C +++ /dev/null @@ -1,55 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "makeSolidReaction.H" -#include "solidArrheniusReactionRate.H" -#include "solidThermoPhysicsTypes.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -// * * * * * * * * * * * * * Make Solid reactions * * * * * * * * * * * * // - -makeSolidIRReactions(hConstSolidThermoPhysics, solidArrheniusReactionRate) - -makeSolidIRReactions -( - hPowerSolidThermoPhysics, - solidArrheniusReactionRate -) - -makeSolidIRReactions -( - hExpKappaConstSolidThermoPhysics, - solidArrheniusReactionRate -) - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidThermo/Make/files b/src/thermophysicalModels/solidThermo/Make/files index b7e2eb623b..ab79d43bd5 100644 --- a/src/thermophysicalModels/solidThermo/Make/files +++ b/src/thermophysicalModels/solidThermo/Make/files @@ -1,7 +1,4 @@ solidThermo/solidThermo.C solidThermo/solidThermos.C -solidReactionThermo/solidReactionThermo.C -solidReactionThermo/solidReactionThermos.C - LIB = $(FOAM_LIBBIN)/libsolidThermo diff --git a/src/thermophysicalModels/solidThermo/Make/options b/src/thermophysicalModels/solidThermo/Make/options index d3e1cb87ce..94b1dc005d 100644 --- a/src/thermophysicalModels/solidThermo/Make/options +++ b/src/thermophysicalModels/solidThermo/Make/options @@ -10,6 +10,5 @@ LIB_LIBS = \ -lmeshTools \ -lfiniteVolume \ -lspecie \ - -lsolidSpecie \ -lfluidThermophysicalModels \ -lreactionThermophysicalModels diff --git a/src/thermophysicalModels/solidThermo/solidReactionThermo/makeReactingSolidThermo.H b/src/thermophysicalModels/solidThermo/solidReactionThermo/makeReactingSolidThermo.H deleted file mode 100644 index a04795a533..0000000000 --- a/src/thermophysicalModels/solidThermo/solidReactionThermo/makeReactingSolidThermo.H +++ /dev/null @@ -1,127 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -InClass - Foam::solidThermo - -Description - Macros for creating reacting solid thermo packages - -\*---------------------------------------------------------------------------*/ - -#ifndef makeReactingSolidThermo_H -#define makeReactingSolidThermo_H - -#include "addToRunTimeSelectionTable.H" -#include "SpecieMixture.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -#define makeSolidReactionMixtureThermo(BaseThermo,Cthermo,Mixture,ThermoPhys) \ - \ -typedef SpecieMixture \ - < \ - Mixture \ - < \ - ThermoPhys \ - > \ - > SpecieMixture##Mixture##ThermoPhys; \ - \ -typedef \ - heThermo \ - < \ - BaseThermo, \ - SpecieMixture##Mixture##ThermoPhys \ - > heThermo##Mixture##ThermoPhys; \ - \ -typedef \ - Cthermo \ - < \ - BaseThermo, \ - SpecieMixture##Mixture##ThermoPhys \ - > Cthermo##Mixture##ThermoPhys; \ - \ - \ -defineTemplateTypeNameAndDebugWithName \ -( \ - Cthermo##Mixture##ThermoPhys, \ - ( \ - #Cthermo"<"#Mixture"<" \ - + ThermoPhys::typeName() \ - + ">>" \ - ).c_str(), \ - 0 \ -); \ - \ -addToRunTimeSelectionTable \ -( \ - basicThermo, \ - Cthermo##Mixture##ThermoPhys, \ - fvMesh \ -); \ - \ -addToRunTimeSelectionTable \ -( \ - BaseThermo, \ - Cthermo##Mixture##ThermoPhys, \ - fvMesh \ -); \ - \ -addToRunTimeSelectionTable \ -( \ - BaseThermo, \ - Cthermo##Mixture##ThermoPhys, \ - dictionary \ -); - - -#define makeReactingSolidThermo(BaseThermo,CThermo,Mixture,Transport,Type,Thermo,EqnOfState,Specie) \ - \ -typedef \ - Transport \ - < \ - species::thermo \ - < \ - Thermo \ - < \ - EqnOfState \ - < \ - Specie \ - > \ - >, \ - Type \ - > \ - > Transport##Type##Thermo##EqnOfState##Specie; \ - \ -makeSolidReactionMixtureThermo \ -( \ - BaseThermo, \ - CThermo, \ - Mixture, \ - Transport##Type##Thermo##EqnOfState##Specie \ -); - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermo.C b/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermo.C deleted file mode 100644 index 3b2f14a701..0000000000 --- a/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermo.C +++ /dev/null @@ -1,91 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "solidReactionThermo.H" -#include "fvMesh.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - defineTypeNameAndDebug(solidReactionThermo, 0); - defineRunTimeSelectionTable(solidReactionThermo, fvMesh); - defineRunTimeSelectionTable(solidReactionThermo, dictionary); -} - - -// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // - -Foam::solidReactionThermo::solidReactionThermo -( - const fvMesh& mesh, - const word& phaseName -) -: - solidThermo(mesh, phaseName) -{} - - -Foam::solidReactionThermo::solidReactionThermo -( - const fvMesh& mesh, - const dictionary& dict, - const word& phaseName -) -: - solidThermo(mesh, dict, phaseName) -{} - - -// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // - -Foam::autoPtr Foam::solidReactionThermo::New -( - const fvMesh& mesh, - const word& phaseName -) -{ - return basicThermo::New(mesh, phaseName); -} - - -Foam::autoPtr Foam::solidReactionThermo::New -( - const fvMesh& mesh, - const dictionary& dict, - const word& phaseName -) -{ - return basicThermo::New(mesh, dict, phaseName); -} - - -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -Foam::solidReactionThermo::~solidReactionThermo() -{} - - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermo.H b/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermo.H deleted file mode 100644 index 0f75255307..0000000000 --- a/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermo.H +++ /dev/null @@ -1,143 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Class - Foam::solidReactionThermo - -Description - Foam::solidReactionThermo - -SourceFiles - solidReactionThermo.C - -\*---------------------------------------------------------------------------*/ - -#ifndef solidReactionThermo_H -#define solidReactionThermo_H - -#include "basicSpecieMixture.H" -#include "solidThermo.H" -#include "autoPtr.H" -#include "runTimeSelectionTables.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -/*---------------------------------------------------------------------------*\ - Class solidReactionThermo Declaration -\*---------------------------------------------------------------------------*/ - - -class solidReactionThermo -: - public solidThermo -{ - -public: - - //- Runtime type information - TypeName("solidReactionThermo"); - - - //- Declare run-time constructor selection tables - declareRunTimeSelectionTable - ( - autoPtr, - solidReactionThermo, - fvMesh, - (const fvMesh& mesh, const word& phaseName), - (mesh, phaseName) - ); - - // Declare run-time constructor selection tables - declareRunTimeSelectionTable - ( - autoPtr, - solidReactionThermo, - dictionary, - (const fvMesh& mesh, const dictionary& dict, const word& phaseName), - (mesh, dict, phaseName) - ); - - // Constructors - - //- Construct from mesh and phase name - solidReactionThermo - ( - const fvMesh&, - const word& phaseName - ); - - //- Construct from mesh, dictionary and phase name - solidReactionThermo - ( - const fvMesh&, - const dictionary&, - const word& phaseName - ); - - - // Selectors - - //- Standard selection based on fvMesh - static autoPtr New - ( - const fvMesh&, - const word& phaseName=word::null - ); - - //- Standard selection based on fvMesh amd dictionary - static autoPtr New - ( - const fvMesh&, - const dictionary&, - const word& phaseName=word::null - ); - - - //- Destructor - virtual ~solidReactionThermo(); - - - // Member Functions - - //- Return the composition of the multi-component mixture - virtual basicSpecieMixture& composition() = 0; - - //- Return the composition of the multi-component mixture - virtual const basicSpecieMixture& composition() const = 0; - -}; - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -#endif - -// ************************************************************************* // diff --git a/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermos.C b/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermos.C deleted file mode 100644 index f006aea9a8..0000000000 --- a/src/thermophysicalModels/solidThermo/solidReactionThermo/solidReactionThermos.C +++ /dev/null @@ -1,81 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "makeReactingSolidThermo.H" -#include "solidReactionThermo.H" -#include "heSolidThermo.H" - -#include "specie.H" -#include "rhoConst.H" -#include "hConstThermo.H" -#include "hPowerThermo.H" -#include "constIsoSolidTransport.H" -#include "constAnIsoSolidTransport.H" -#include "exponentialSolidTransport.H" - -#include "multiComponentMixture.H" - -#include "sensibleEnthalpy.H" -#include "thermo.H" - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -namespace Foam -{ - -/* * * * * * * * * * * * * * * * * Enthalpy-based * * * * * * * * * * * * * */ - -makeReactingSolidThermo -( - solidReactionThermo, - heSolidThermo, - multiComponentMixture, - constIsoSolidTransport, - sensibleEnthalpy, - hConstThermo, - rhoConst, - specie -); - - -makeReactingSolidThermo -( - solidReactionThermo, - heSolidThermo, - multiComponentMixture, - constIsoSolidTransport, - sensibleEnthalpy, - hPowerThermo, - rhoConst, - specie -); - - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -} // End namespace Foam - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/C3H8 b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/C3H8 deleted file mode 100644 index 1ff1a5f7d8..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/C3H8 +++ /dev/null @@ -1,61 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object C3H8; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - ground - { - type zeroGradient; - } - - side - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - inlet - { - type totalFlowRateAdvectiveDiffusive; - value uniform 1; - } - - region0_to_pyrolysisRegion_coupledWall - { - type totalFlowRateAdvectiveDiffusive; - massFluxFraction 1.0; - value $internalField; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/IDefault b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/IDefault deleted file mode 100644 index 9d25a9c60c..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/IDefault +++ /dev/null @@ -1,46 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object IDefault; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 0 -3 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - - region0_to_pyrolysisRegion_coupledWall - { - type greyDiffusiveRadiation; - emissivityMode solidRadiation; - emissivity uniform 1.0; - value uniform 0; - } - - frontAndBack - { - type cyclic; - } - - ".*" - { - type greyDiffusiveRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/N2 b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/N2 deleted file mode 100644 index 67066645e6..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/N2 +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object N2; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.76699; - -boundaryField -{ - - outlet - { - type calculated; - value $internalField; - } - - ground - { - type calculated; - value $internalField; - } - - side - { - type calculated; - value $internalField; - } - - inlet - { - type calculated; - value $internalField; - } - - region0_to_pyrolysisRegion_coupledWall - { - type calculated; - value $internalField; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/O2 b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/O2 deleted file mode 100644 index b1078dd3fe..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/O2 +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object O2; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.23301; - -boundaryField -{ - - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - ground - { - type zeroGradient; - } - - side - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - inlet - { - type fixedValue; - value uniform 0; - } - - region0_to_pyrolysisRegion_coupledWall - { - type totalFlowRateAdvectiveDiffusive; - massFluxFraction 0.0; - value $internalField; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/T b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/T deleted file mode 100644 index c0136b1442..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/T +++ /dev/null @@ -1,64 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object T; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 1 0 0 0]; - -internalField uniform 298; - -boundaryField -{ - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - ground - { - type zeroGradient; - } - - side - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - inlet - { - type fixedValue; - value $internalField; - } - - region0_to_pyrolysisRegion_coupledWall - { - type filmPyrolysisRadiativeCoupledMixed; - pyrolysisRegion pyrolysisRegion; - filmRegion filmRegion; - Tnbr T; - qrNbr none; - qr qr; - filmDeltaDry 0.0; - filmDeltaWet 2e-4; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/U b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/U deleted file mode 100644 index 270e2d5d28..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/U +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volVectorField; - location "0"; - object U; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -1 0 0 0 0]; - -internalField uniform (0 0 0); - -boundaryField -{ - - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - ground - { - type fixedValue; - value $internalField; - } - - side - { - type pressureInletOutletVelocity; - value $internalField; - } - - inlet - { - type flowRateInletVelocity; - massFlowRate constant 0.01; - value uniform (0 0 0); - } - - region0_to_pyrolysisRegion_coupledWall - { - type mappedFlowRate; - nbrPhi phiGas; - value uniform (0 0 0); - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/Ydefault b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/Ydefault deleted file mode 100644 index cf005a9131..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/Ydefault +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object Ydefault; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.0; - -boundaryField -{ - - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - ground - { - type zeroGradient; - } - - side - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - inlet - { - type fixedValue; - value uniform 0; - } - - region0_to_pyrolysisRegion_coupledWall - { - type totalFlowRateAdvectiveDiffusive; - massFluxFraction 0.0; - value $internalField; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/alphat b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/alphat deleted file mode 100644 index d4a129e321..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/alphat +++ /dev/null @@ -1,56 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object alphat; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -1 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - outlet - { - type calculated; - value uniform 0; - } - - ground - { - type compressible::alphatWallFunction; - value uniform 0; - } - - side - { - type calculated; - value uniform 0; - } - - inlet - { - type calculated; - value uniform 0; - } - - region0_to_pyrolysisRegion_coupledWall - { - type compressible::alphatWallFunction; - value uniform 0; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/Tf b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/Tf deleted file mode 100644 index b68c46499e..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/Tf +++ /dev/null @@ -1,62 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - - version 2.0; - format ascii; - class volScalarField; - location "0/filmRegion"; - object Tf; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 1 0 0 0]; - -internalField uniform 298; - -boundaryField -{ - region0_to_filmRegion_coupledWall // Patch to pyrolysis - { - type mappedField; - sampleRegion pyrolysisRegion; - sampleMode nearestPatchFace; - samplePatch region0_to_pyrolysisRegion_coupledWall; - offset (0 0 0); - field T; - setAverage no; - average 0; - value uniform 298; - } - - coupledWall_top // Patch to Region0 - { - type zeroGradient; - } - - "side.*" - { - type inletOutlet; - inletValue uniform 298; - value uniform 298; - } - - outlet - { - type zeroGradient; - } - - inlet - { - type fixedValue; - value uniform 298.0; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/Uf b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/Uf deleted file mode 100644 index 9915ea6ebc..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/Uf +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volVectorField; - location "0/filmRegion"; - object Uf; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -1 0 0 0 0]; - -internalField uniform (0 0 0); - -boundaryField -{ - coupledWall_top // Patch to Region0 - { - type slip; - } - - region0_to_filmRegion_coupledWall // Patch to pyrolysis - { - type noSlip; - } - - outlet - { - type zeroGradient; - } - - "side.*" - { - type noSlip; - } - - inlet - { - type fixedValue; - rho rhof; - value uniform (0 0 -0.01); - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/deltaf b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/deltaf deleted file mode 100644 index b38a538bab..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/filmRegion/deltaf +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0/filmRegion"; - object deltaf; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 0 0 0 0 0]; - -internalField uniform 1e-6; - -boundaryField -{ - coupledWall_top - { - type zeroGradient; - } - - region0_to_filmRegion_coupledWall - { - type zeroGradient; - } - - "side.*" - { - type zeroGradient; - } - - inlet - { - type fixedValue; - value uniform 6e-4; - } - - outlet - { - type zeroGradient; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/k b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/k deleted file mode 100644 index ecb8bdc7ef..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/k +++ /dev/null @@ -1,55 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object k; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - -dimensions [0 2 -2 0 0 0 0]; - -internalField uniform 1e-5; - -boundaryField -{ - outlet - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - ground - { - type zeroGradient; - } - - side - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - inlet - { - type fixedValue; - value $internalField; - } - region0_to_pyrolysisRegion_coupledWall - { - type zeroGradient; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/nut b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/nut deleted file mode 100644 index 8b7294c9ff..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/nut +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - location "0"; - class volScalarField; - object nut; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - -dimensions [0 2 -1 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - outlet - { - type calculated; - value uniform 0; - } - - ground - { - type nutUSpaldingWallFunction; - value uniform 0; - } - - side - { - type calculated; - value uniform 0; - } - - inlet - { - type calculated; - value uniform 0; - } - - region0_to_pyrolysisRegion_coupledWall - { - type nutUSpaldingWallFunction; - value uniform 0; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/p b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/p deleted file mode 100644 index c719c05fb6..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/p +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object p; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 101325; - -boundaryField -{ - - outlet - { - type calculated; - value $internalField; - } - - ground - { - type calculated; - value $internalField; - } - - side - { - type calculated; - value $internalField; - } - - inlet - { - type calculated; - value $internalField; - } - region0_to_pyrolysisRegion_coupledWall - { - type calculated; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/p_rgh b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/p_rgh deleted file mode 100644 index 9526145ca5..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/p_rgh +++ /dev/null @@ -1,49 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object p_rgh; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - "(side|outlet)" - { - type prghTotalHydrostaticPressure; - p0 $internalField; - value $internalField; - } - - ground - { - type fixedFluxPressure; - } - - inlet - { - type fixedFluxPressure; - } - - region0_to_pyrolysisRegion_coupledWall - { - type fixedFluxPressure; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/ph_rgh.orig b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/ph_rgh.orig deleted file mode 100644 index 541436b5be..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/ph_rgh.orig +++ /dev/null @@ -1,55 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object ph_rgh; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - outlet - { - type fixedValue; - value $internalField; - } - - side - { - type fixedFluxPressure; - value $internalField; - } - - ground - { - type fixedFluxPressure; - } - - inlet - { - type fixedFluxPressure; - value $internalField; - } - - region0_to_pyrolysisRegion_coupledWall - { - type fixedFluxPressure; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/T b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/T deleted file mode 100644 index b289370af2..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/T +++ /dev/null @@ -1,54 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0/pyrolysisRegion"; - object T; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 1 0 0 0]; - -internalField uniform 298; - -boundaryField -{ - coupledWall_top - { - type zeroGradient; - } - - coupledWall_side - { - type empty; - } - - region0_to_pyrolysisRegion_coupledWall - { - type filmPyrolysisRadiativeCoupledMixed; - pyrolysisRegion pyrolysisRegion; - filmRegion filmRegion; - Tnbr T; - qrNbr qr; - qr none; - filmDeltaDry 0.0; - filmDeltaWet 2e-4; - value uniform 298; - } - oneDEmptyPatch - { - type empty; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/Y0Default b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/Y0Default deleted file mode 100644 index a95e5e6e1c..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/Y0Default +++ /dev/null @@ -1,40 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0/pyrolysisRegion"; - object Ydefault; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - coupledWall_top - { - type zeroGradient; - } - region0_to_pyrolysisRegion_coupledWall - { - type zeroGradient; - } - oneDEmptyPatch - { - type empty; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/char b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/char deleted file mode 100644 index 9d7d13eb5d..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/char +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0/pyrolysisRegion"; - object Ychar; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - coupledWall_top - { - type zeroGradient; - } - - region0_to_pyrolysisRegion_coupledWall - { - type zeroGradient; - } - - oneDEmptyPatch - { - type empty; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/p b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/p deleted file mode 100644 index cf16473e40..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/p +++ /dev/null @@ -1,32 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object p; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 1e5; - -boundaryField -{ - - ".*" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/qr b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/qr deleted file mode 100644 index edc6cf33b8..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/qr +++ /dev/null @@ -1,49 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object qr; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 0 -3 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - coupledWall_top - { - type zeroGradient; - } - - coupledWall_side - { - type empty; - } - - region0_to_pyrolysisRegion_coupledWall - { - type mappedField; - sampleRegion region0; - sampleMode nearestPatchFace; - samplePatch region0_to_pyrolysisRegion_coupledWall; - offset (0 0 0); - field qr; // this is the name of qr field in region0 - setAverage no; - average 0; - value uniform 0; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/wood b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/wood deleted file mode 100644 index 06a70f393b..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/0/pyrolysisRegion/wood +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0/pyrolysisRegion"; - object wood; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 1; - -boundaryField -{ - coupledWall_top - { - type zeroGradient; - } - region0_to_pyrolysisRegion_coupledWall - { - type zeroGradient; - } - oneDEmptyPatch - { - type empty; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean deleted file mode 100755 index 615ace08b7..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allclean +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - -# Source tutorial clean functions -. $WM_PROJECT_DIR/bin/tools/CleanFunctions - -cleanCase - -rm -f 0/ph_rgh -rm -rf constant/filmRegion/polyMesh -rm -rf constant/pyrolysisRegion/polyMesh -rm -rf system/pyrolysisRegion/filmRegion - -#------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun deleted file mode 100755 index aa0ef5631f..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/Allrun +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions - -# create the underlying block mesh -runApplication blockMesh - -# create faceSet for burner inlet and faceZone for coupled wall -runApplication topoSet - -# create burner inlet -runApplication createPatch -overwrite - -# extrude Film -runApplication extrudeToRegionMesh -dict system/extrudeToRegionMeshDictFilm -overwrite - -rm log.extrudeToRegionMesh - -# extrude pyrolysis -runApplication extrudeToRegionMesh -dict system/extrudeToRegionMeshDictPyr -overwrite - -# change samplePatch in the boundary to coupled patch betwee region0 and -# pyrolysis -foamDictionary constant/filmRegion/polyMesh/boundary \ - -entry entry0/region0_to_filmRegion_coupledWall/samplePatch \ - -set region0_to_pyrolysisRegion_coupledWall - -# create faceSets for inlet, outlet, sides for the Film -rm log.topoSet -runApplication topoSet -region filmRegion - -rm log.createPatch -# create actual patches -runApplication createPatch -region filmRegion -overwrite - -# Run -runApplication $(getApplication) - -paraFoam -touchAll - -#------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/additionalControls b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/additionalControls deleted file mode 100644 index 8000925363..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/additionalControls +++ /dev/null @@ -1,20 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object additionalControls; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvePrimaryRegion true; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/combustionProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/combustionProperties deleted file mode 100644 index c9e8b0f415..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/combustionProperties +++ /dev/null @@ -1,28 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object combustionProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -combustionModel infinitelyFastChemistry; - -infinitelyFastChemistryCoeffs -{ - semiImplicit no; - C 10; -} - -#include "reaction" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/g b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/g deleted file mode 100644 index 90b046ec4f..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/g +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class uniformDimensionedVectorField; - location "constant"; - object g; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -2 0 0 0 0]; -value (0 0 -9.8); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pRef b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pRef deleted file mode 100644 index e34357eed1..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pRef +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class uniformDimensionedScalarField; - location "constant"; - object pRef; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; -value 101325; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/chemistryProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/chemistryProperties deleted file mode 100644 index 3e34575142..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/chemistryProperties +++ /dev/null @@ -1,36 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object chemistryProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -chemistryType -{ - chemistrySolver ode; - chemistryThermo pyrolysis; -} - -chemistry on; - -initialChemicalTimeStep 1e-07; - -odeCoeffs -{ - solver seulex; - eps 0.05; -} - -#include "reactions" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/radiationProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/radiationProperties deleted file mode 100644 index 4746cb1580..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/radiationProperties +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object radiationProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -radiationModel opaqueSolid; - -absorptionEmissionModel greyMeanSolid; - - -greyMeanSolidCoeffs -{ - wood - { - absorptivity 0.17; - emissivity 0.17; - } - - char - { - absorptivity 0.85; - emissivity 0.85; - } -} - -scatterModel none; - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/reactions b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/reactions deleted file mode 100644 index 201faa3326..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/reactions +++ /dev/null @@ -1,36 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object reactions; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -gaseousSpecies -( - gas -); - -reactions -{ - charReaction - { - type irreversibleArrheniusSolidReaction; - reaction "wood^4.86 = char + gas"; - A 7.83e10; - Ta 15274.57; - Tcrit 400; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/thermo.solid b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/thermo.solid deleted file mode 100644 index b2528e06fc..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/thermo.solid +++ /dev/null @@ -1,66 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format binary; - class dictionary; - location "constant"; - object thermo.solid; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -species -( - wood - char -); - -wood -{ - specie - { - molWeight 100; - } - transport - { - kappa 0.135; - } - thermodynamics - { - Cp 696; - Hf -1.41e6; - } - equationOfState - { - rho 114.7; - } -}; - -char -{ - specie - { - molWeight 50; - } - transport - { - kappa 0.4; - } - thermodynamics - { - Cp 611; - Hf 0; - } - equationOfState - { - rho 11.5; - } -}; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/thermophysicalProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/thermophysicalProperties deleted file mode 100644 index 155ac79cba..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisRegion/thermophysicalProperties +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object thermophysicalProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -thermoType -{ - type heSolidThermo; - mixture multiComponentMixture; - transport constIso; - thermo hConst; - equationOfState rhoConst; - specie specie; - energy sensibleEnthalpy; -} - -gasThermoType -{ - transport sutherland; - thermo janaf; - equationOfState perfectGas; - specie specie; - energy sensibleEnthalpy; -} - -gas -{ - specie - { - molWeight 18.0153; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.20100e-10 -6.39162e-15 -29899.2 6.86282 ); - lowCpCoeffs ( 3.38684 0.00347498 -6.35470e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -#include "thermo.solid" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisZones b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisZones deleted file mode 100644 index 3b43585b4f..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/pyrolysisZones +++ /dev/null @@ -1,43 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format binary; - class dictionary; - location "constant"; - object pyrolysisProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -pyrolysis -{ - active true; - - pyrolysisModel reactingOneDim; - - regionName pyrolysisRegion; - - reactingOneDimCoeffs - { - filmCoupled true; - - gasHSource true; - qrHSource false; - - radFluxName qr; - - moveMesh false; // true; - minimumDelta 1e-6; - - useChemistrySolvers true; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/radiationProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/radiationProperties deleted file mode 100644 index 4700e24799..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/radiationProperties +++ /dev/null @@ -1,50 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object radiationProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -radiation on; - -radiationModel fvDOM; - - -fvDOMCoeffs -{ - nPhi 2; // azimuthal angles in PI/2 on X-Y.(from Y to X) - nTheta 2; // polar angles in PI (from Z to X-Y plane) - tolerance 1e-2; // convergence tolerance for radiation iteration - maxIter 3; // maximum number of iterations -} - -// Number of flow iterations per radiation iteration -solverFreq 10; - -absorptionEmissionModel constant; - -constantCoeffs -{ - absorptivity 0.1; - emissivity 0.1; - E 0; -} - - -scatterModel none; - - -sootModel none; - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reactingCloud1Positions b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reactingCloud1Positions deleted file mode 100644 index b360083207..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reactingCloud1Positions +++ /dev/null @@ -1,20 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class vectorField; - location "constant"; - object reactingCloud1Positions; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -( - -) -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reactingCloud1Properties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reactingCloud1Properties deleted file mode 100644 index 0af2e8b666..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reactingCloud1Properties +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object reactingCloud1Properties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solution -{ - active false; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reaction b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reaction deleted file mode 100644 index 9e1f06409c..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/reaction +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -reaction -{ - type irreversibleinfiniteReaction; - reaction "C3H8 + 5O2 + 18.8N2 = 3CO2 + 4H2O + 18.8N2"; -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/surfaceFilmProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/surfaceFilmProperties deleted file mode 100644 index 038da998d3..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/surfaceFilmProperties +++ /dev/null @@ -1,84 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object SurfaceFilmProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -active true; - -surfaceFilmModel thermoSingleLayer; - -regionName filmRegion; - -thermoSingleLayerCoeffs -{ - filmThermoModel liquid; - liquidCoeffs - { - useReferenceValues no; - liquid H2O; - } - filmViscosityModel liquid; - - hydrophilic no; - deltaWet 1e-4; - - turbulence laminar; - laminarCoeffs - { - Cf 0.005; - } - - radiationModel none; - standardRadiationCoeffs - { - beta 0.75; - kappaBar 0.25; - } - - upperSurfaceModels - { - heatTransferModel constant; - constantCoeffs - { - c0 10; - } - } - - lowerSurfaceModels - { - heatTransferModel constant; - constantCoeffs - { - c0 100; - } - } - - injectionModels - (); - - forces - ( - thermocapillary - ); - - phaseChangeModel standardPhaseChange; - - standardPhaseChangeCoeffs - { - Tb 373; - deltaMin 1e-8; - L 1.0; - } -} diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/thermo.compressibleGas b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/thermo.compressibleGas deleted file mode 100644 index 2bc9bfa37f..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/thermo.compressibleGas +++ /dev/null @@ -1,121 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -species -( - O2 - H2O - C3H8 - CO2 - N2 -); - -O2 -{ - specie - { - molWeight 31.9988; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 ); - lowCpCoeffs ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -H2O -{ - specie - { - molWeight 18.0153; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.201e-10 -6.39162e-15 -29899.2 6.86282 ); - lowCpCoeffs ( 3.38684 0.00347498 -6.3547e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -CO2 -{ - specie - { - molWeight 44.01; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 4.45362 0.00314017 -1.27841e-06 2.394e-10 -1.66903e-14 -48967 -0.955396 ); - lowCpCoeffs ( 2.27572 0.00992207 -1.04091e-05 6.86669e-09 -2.11728e-12 -48373.1 10.1885 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -N2 -{ - specie - { - molWeight 28.0134; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 2.92664 0.00148798 -5.68476e-07 1.0097e-10 -6.75335e-15 -922.798 5.98053 ); - lowCpCoeffs ( 3.29868 0.00140824 -3.96322e-06 5.64152e-09 -2.44486e-12 -1020.9 3.95037 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -C3H8 -{ - specie - { - molWeight 44.0962; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 7.5341368 0.018872239 -6.2718491e-06 9.1475649e-10 -4.7838069e-14 -16467.516 -17.892349 ); - lowCpCoeffs ( 0.93355381 0.026424579 6.1059727e-06 -2.1977499e-08 9.5149253e-12 -13958.52 19.201691 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/thermophysicalProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/thermophysicalProperties deleted file mode 100644 index 5232401d34..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/thermophysicalProperties +++ /dev/null @@ -1,45 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object thermophysicalProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -thermoType -{ - type hePsiThermo; - mixture multiComponentMixture; - transport sutherland; - thermo janaf; - energy sensibleEnthalpy; - equationOfState perfectGas; - specie specie; -} - -inertSpecie N2; - -fuel C3H8; - -#include "thermo.compressibleGas" - -liquids -{ - H2O - {} -} - -solids -{ -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/turbulenceProperties b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/turbulenceProperties deleted file mode 100644 index 842816109b..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/constant/turbulenceProperties +++ /dev/null @@ -1,100 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object turbulenceProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -simulationType LES; - -LES -{ - LESModel kEqn; - - delta cubeRootVol; - - turbulence on; - - printCoeffs on; - - kEqnCoeffs - { - Prt 1; - } - - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - PrandtlCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; - } - - Cdelta 0.158; - } - - vanDriestCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; - } - - Aplus 26; - Cdelta 0.158; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/blockMeshDict b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/blockMeshDict deleted file mode 100644 index 3eaba6c97c..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/blockMeshDict +++ /dev/null @@ -1,87 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 2) - (1 0 2) - (1 1 2) - (0 1 2) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (10 20 20) simpleGrading (1 1 1) -); - -edges -( -); - -boundary -( - side - { - type patch; - faces - ( - (1 2 6 5) - (0 1 5 4) - (7 6 2 3) - ); - } - - outlet - { - type patch; - faces - ( - (4 5 6 7) - ); - } - - ground - { - type wall; - faces - ( - (0 3 2 1) - ); - } - - coupledWallTmp - { - type wall; - faces - ( - (0 4 7 3) - ); - } - -); - -mergePatchPairs -( -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/controlDict b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/controlDict deleted file mode 100644 index 09a23e6f72..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/controlDict +++ /dev/null @@ -1,59 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object controlDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -application fireFoam; - -startFrom startTime; - -startTime 0; - -stopAt endTime; - -endTime 10; - -deltaT 0.005; - -writeControl adjustableRunTime; - -writeInterval 1; - -purgeWrite 0; - -writeFormat ascii; - -writePrecision 6; - -writeCompression off; - -timeFormat general; - -timePrecision 6; - -graphFormat raw; - -runTimeModifiable yes; - -adjustTimeStep yes; - -maxCo 1.0; - -maxDi 0.25; - -maxDeltaT 0.01; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/createPatchDict b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/createPatchDict deleted file mode 100644 index 29fdee17a5..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/createPatchDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object createPatchDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -pointSync false; - -// Patches to create. -patches -( - { - // Name of new patch - name inlet; - - // Type of new patch - patchInfo - { - type patch; - } - - // How to construct: either from 'patches' or 'set' - constructFrom set; - - // If constructFrom = set : name of faceSet - set f0; - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/extrudeToRegionMeshDictFilm b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/extrudeToRegionMeshDictFilm deleted file mode 100644 index df854dacd1..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/extrudeToRegionMeshDictFilm +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object extrudeToRegionMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -region filmRegion; - -faceZones (coupledWall); - -oneD false; - -sampleMode nearestPatchFace; - -extrudeModel linearNormal; - -nLayers 1; - -expansionRatio 1; - -adaptMesh false; // leave primary region patches intact - -linearNormalCoeffs -{ - thickness 0.001; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/extrudeToRegionMeshDictPyr b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/extrudeToRegionMeshDictPyr deleted file mode 100644 index 49e4e68b7e..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/extrudeToRegionMeshDictPyr +++ /dev/null @@ -1,40 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object extrudeToRegionMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -region pyrolysisRegion; - -faceZones (coupledWall); - -oneD true; - -sampleMode nearestPatchFace; - -extrudeModel linearNormal; - -oneDPolyPatchType empty; - -nLayers 8; - -expansionRatio 1; - -adaptMesh true; // directMapped for both - -linearNormalCoeffs -{ - thickness 0.0039; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/createPatchDict b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/createPatchDict deleted file mode 100644 index 2e001d1b20..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/createPatchDict +++ /dev/null @@ -1,72 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object createPatchDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -pointSync false; - -patches -( - { - name outlet; - - patchInfo - { - type patch; - } - - constructFrom set; - - set f0; - } - { - name side1; - - patchInfo - { - type patch; - } - - constructFrom set; - - set f1; - } - { - name inlet; - - patchInfo - { - type patch; - } - - constructFrom set; - - set f2; - } - { - name side2; - - patchInfo - { - type patch; - } - - constructFrom set; - - set f3; - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/fvSchemes b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/fvSchemes deleted file mode 100644 index d2b56aa249..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/fvSchemes +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system/wallFilmRegion"; - object fvSchemes; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -divSchemes -{ - default none; - div(phi,Uf) Gauss upwind; - div(phid,deltaf) Gauss upwind; - div(phi,hf) Gauss upwind; -} - -gradSchemes -{ - default Gauss linear; -} - -laplacianSchemes -{ - default Gauss linear uncorrected; -} - -snGradSchemes -{ - default uncorrected; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/fvSolution b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/fvSolution deleted file mode 100644 index a29509391c..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/fvSolution +++ /dev/null @@ -1,57 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system/wallFilmRegion"; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - hf - { - solver PBiCGStab; - preconditioner DILU; - tolerance 0; - relTol 1e-3; - } - "(Uf|deltaf\*rhof)" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-10; - relTol 0; - } - deltaf - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-10; - relTol 0; - } -} - - -PISO -{ - momentumPredictor yes; - nOuterCorr 1; - nCorr 1; - nNonOrthCorr 0; - dfMin 1e-10; -} - - -relaxationFactors -{} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/topoSetDict b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/topoSetDict deleted file mode 100644 index 56ae8a283e..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/filmRegion/topoSetDict +++ /dev/null @@ -1,66 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object topoSetDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -actions -( - { - name f0; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-1 -0.00001 -0.00001) (1 1.00001 0.00001); - } - } - - - { - name f1; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-1 0.99999 -0.00001) (1 1.00001 2.00001); - } - } - - { - name f2; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-1 -0.00001 1.99999) (1 1.00001 2.00001); - } - } - - { - name f3; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-1 -0.00001 -0.00001) (1 0.00001 2.00001); - } - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/fvSchemes b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/fvSchemes deleted file mode 100644 index a113549d28..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/fvSchemes +++ /dev/null @@ -1,68 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system"; - object fvSchemes; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss LUST grad(U); - div(phi,k) Gauss limitedLinear 1; - div(phi,K) Gauss limitedLinear 1; - div(phi,Yi_h) Gauss multivariateSelection - { - O2 limitedLinear01 1; - N2 limitedLinear01 1; - CH4 limitedLinear01 1; - C3H8 limitedLinear01 1; - CORRUGATED limitedLinear01 1; - CH2O limitedLinear01 1; - H2O limitedLinear01 1; - CO2 limitedLinear01 1; - h limitedLinear 1; - }; - - div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; - div(phiU,p) Gauss linear; - div(Ji,Ii_h) Gauss upwind; -} - -laplacianSchemes -{ - default Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/fvSolution b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/fvSolution deleted file mode 100644 index 90e577b165..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/fvSolution +++ /dev/null @@ -1,104 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system"; - object fvSolution; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - rho - { - solver PCG; - preconditioner DIC; - tolerance 0; - relTol 0.1; - }; - - rhoFinal - { - $rho; - tolerance 1e-6; - relTol 0; - }; - - p_rgh - { - solver GAMG; - tolerance 1e-5; - relTol 0.01; - smoother GaussSeidel; - }; - - p_rghFinal - { - solver GAMG; - tolerance 1e-6; - relTol 0; - smoother GaussSeidel; - // nCellsInCoarsestLevel 1; - }; - - ph_rgh - { - $p_rgh; - } - - "(U|Yi|h|k)" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-8; - relTol 0.1; - }; - - "(U|Yi|h|k)Final" - { - $U; - tolerance 1e-8; - relTol 0; - }; - - "Ii.*" - { - solver GAMG; - tolerance 1e-4; - relTol 0; - smoother DILU; - maxIter 20; - } -} - -PIMPLE -{ - momentumPredictor yes; - nOuterCorrectors 1; - nCorrectors 2; - nNonOrthogonalCorrectors 0; - - hydrostaticInitialization yes; - nHydrostaticCorrectors 5; -} - -relaxationFactors -{ - equations - { - "(U|k).*" 1; - "(C3H8|O2|H2O|CO2|h).*" 1; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/pyrolysisRegion/fvSchemes b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/pyrolysisRegion/fvSchemes deleted file mode 100644 index 026d1bc9d6..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/pyrolysisRegion/fvSchemes +++ /dev/null @@ -1,50 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSchemes; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; -} - -laplacianSchemes -{ - default none; - laplacian(thermo:alpha,h) Gauss linear uncorrected; - laplacian(kappa,T) Gauss harmonic uncorrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default uncorrected; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/pyrolysisRegion/fvSolution b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/pyrolysisRegion/fvSolution deleted file mode 100644 index f3739e6e22..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/pyrolysisRegion/fvSolution +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - h - { - solver PCG; - preconditioner DIC; - tolerance 1e-06; - relTol 0; - } - - "Yi" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-06; - relTol 0; - } - - "rho|rhot" - { - solver PCG; - preconditioner DIC; - tolerance 0; - relTol 0; - }; - -} - -SIMPLE -{ - nNonOrthCorr 0; -} - -relaxationFactors -{ - equations - { - h 1; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/topoSetDict b/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/topoSetDict deleted file mode 100644 index 6a6a1f2b0d..0000000000 --- a/tutorials/combustion/fireFoam/LES/flameSpreadWaterSuppressionPanel/system/topoSetDict +++ /dev/null @@ -1,55 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object topoSetDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -actions -( - { - name f0; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-0.1 -2.1 -0.1)(0.201 2.51 0.01); - } - } - - - { - name coupledWall; - type faceSet; - action new; - source patchToFace; - sourceInfo - { - name coupledWallTmp; - } - } - - { - name coupledWall; - type faceZoneSet; - action new; - source setToFaceZone; - sourceInfo - { - faceSet coupledWall; - } - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/C3H8 b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/C3H8 deleted file mode 100644 index bb5dde74d6..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/C3H8 +++ /dev/null @@ -1,53 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object C3H8; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - top - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - ground - { - type zeroGradient; - value $internalField; - } - sides - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - burner - { - type totalFlowRateAdvectiveDiffusive; - value uniform 1.0; - } - "(region0_to.*)" - { - type totalFlowRateAdvectiveDiffusive; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/G b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/G deleted file mode 100644 index d765ab8cbb..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/G +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object G; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 0 -3 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ".*" - { - type MarshakRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } - - "(region0_to.*)" - { - type MarshakRadiation; - emissivityMode solidRadiation; - value uniform 0; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/IDefault b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/IDefault deleted file mode 100644 index e4c7ce0268..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/IDefault +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object IDefault; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 0 -3 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ".*" - { - type greyDiffusiveRadiation; - emissivityMode lookup; - emissivity uniform 1.0; - value uniform 0; - } - "(region0_to.*)" - { - type greyDiffusiveRadiation; - emissivityMode solidRadiation; - value uniform 0; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/N2 b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/N2 deleted file mode 100644 index 227c223a86..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/N2 +++ /dev/null @@ -1,54 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object N2; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.76699; - -boundaryField -{ - top - { - type calculated; - value $internalField; - } - - ground - { - type calculated; - value $internalField; - } - - sides - { - type calculated; - value $internalField; - } - - burner - { - type calculated; - value $internalField; - } - - "(region0_to.*)" - { - type calculated; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/O2 b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/O2 deleted file mode 100644 index 09f679e557..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/O2 +++ /dev/null @@ -1,55 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object O2; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.23301; - -boundaryField -{ - top - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - ground - { - type zeroGradient; - } - - sides - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - burner - { - type fixedValue; - value uniform 0; - } - - "(region0_to.*)" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/T b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/T deleted file mode 100644 index 63c78767a6..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/T +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object T; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 1 0 0 0]; - -internalField uniform 298.15; - -boundaryField -{ - ground - { - type zeroGradient; - } - - top - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - burner - { - type fixedValue; - value $internalField; - } - - sides - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - "(region0_to.*)" - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - qrNbr none; - qr qr; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/U b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/U deleted file mode 100644 index 5d68f8bf43..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/U +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volVectorField; - location "0"; - object U; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -1 0 0 0 0]; - -internalField uniform (0 0 0); - -boundaryField -{ - ground - { - type fixedValue; - value $internalField; - } - - burner - { - type flowRateInletVelocity; - massFlowRate constant 0.001294; //60kW C3H8 - value uniform (0 0 0); - } - - "(top|sides)" - { - type pressureInletOutletVelocity; - value $internalField; - } - - "(region0_to.*)" - { - type mappedFlowRate; - nbrPhi phiGas; - value uniform (0 0 0); - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/Ydefault b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/Ydefault deleted file mode 100644 index 941c0ee63c..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/Ydefault +++ /dev/null @@ -1,56 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object Ydefault; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ground - { - type zeroGradient; - } - - top - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - burner - { - type fixedValue; - value uniform 0; - } - - sides - { - type inletOutlet; - inletValue $internalField; - value $internalField; - } - - "(region0_to.*)" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/alphat b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/alphat deleted file mode 100644 index 1818a936f4..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/alphat +++ /dev/null @@ -1,53 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object alphat; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -1 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ground - { - type compressible::alphatWallFunction; - value uniform 0; - } - - top - { - type zeroGradient; - } - - burner - { - type zeroGradient; - } - - sides - { - type zeroGradient; - } - - "(region0_to.*)" - { - type compressible::alphatWallFunction; - value uniform 0; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/k b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/k deleted file mode 100644 index d14294be79..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/k +++ /dev/null @@ -1,56 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object k; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 2 -2 0 0 0 0]; - -internalField uniform 1e-05; - -boundaryField -{ - ground - { - type zeroGradient; - } - - top - { - type inletOutlet; - inletValue uniform 1e-05; - value uniform 1e-05; - } - - burner - { - type fixedValue; - value uniform 1e-05; - } - - sides - { - type inletOutlet; - inletValue uniform 1e-05; - value uniform 1e-05; - } - - "(region0_to.*)" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/nut b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/nut deleted file mode 100644 index 1ee1c94897..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/nut +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object nut; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 2 -1 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ground - { - type fixedValue; - value uniform 0; - } - - top - { - type zeroGradient; - } - - burner - { - type zeroGradient; - } - - sides - { - type zeroGradient; - } - - "(region0_to.*)" - { - type nutUSpaldingWallFunction; - value uniform 0; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/p b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/p deleted file mode 100644 index 2be089a818..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/p +++ /dev/null @@ -1,56 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object p; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 101325; - -boundaryField -{ - ground - { - type calculated; - value $internalField; - } - - top - { - type calculated; - value $internalField; - } - - burner - { - type calculated; - value $internalField; - } - - sides - { - type calculated; - value $internalField; - } - - "(region0_to.*)" - { - type calculated; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/p_rgh b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/p_rgh deleted file mode 100644 index ee24bd2f22..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/p_rgh +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object p_rgh; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ground - { - type fixedFluxPressure; - value $internalField; - } - - burner - { - type fixedFluxPressure; - value $internalField; - } - - "(top|sides)" - { - type prghTotalHydrostaticPressure; - p0 $internalField; - value $internalField; - } - - "(region0_to.*)" - { - type fixedFluxPressure; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/T b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/T deleted file mode 100644 index de828fc204..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/T +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object T; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 1 0 0 0]; - -internalField uniform 298.15; - -boundaryField -{ - - ".*" - { - type zeroGradient; - } - - fRight_zone_side - { - type wedge; - } - - fLeft_zone_side - { - type wedge; - } - - "(region0_to.*)" - { - type compressible::turbulentTemperatureRadCoupledMixed; - Tnbr T; - qrNbr qr; - qr none; - value uniform 298.15; - } - -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/Y0Default b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/Y0Default deleted file mode 100644 index ab8ee6ecf6..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/Y0Default +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object Ydefault; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - - ".*" - { - type zeroGradient; - } - - fRight_zone_side - { - type wedge; - } - - fLeft_zone_side - { - type wedge; - } - - "(region0_to.*)" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/char b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/char deleted file mode 100644 index 387311f8bd..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/char +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object char; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.5; - -boundaryField -{ - - ".*" - { - type zeroGradient; - } - - fRight_zone_side - { - type wedge; - } - - fLeft_zone_side - { - type wedge; - } - - "(region0_to.*)" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/p b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/p deleted file mode 100644 index cf16473e40..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/p +++ /dev/null @@ -1,32 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object p; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 1e5; - -boundaryField -{ - - ".*" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/qr b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/qr deleted file mode 100644 index 557ff4ede9..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/qr +++ /dev/null @@ -1,67 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object qr; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 0 -3 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ".*" - { - type zeroGradient; - } - - fRight_zone_side - { - type wedge; - } - - fLeft_zone_side - { - type wedge; - } - - region0_to_panelRegion_fLeft_zone - { - type mappedField; - sampleRegion region0; - sampleMode nearestPatchFace; - samplePatch region0_to_panelRegion_fLeft_zone; - offset (0 0 0); - field qr; - setAverage no; - average 0; - value uniform 0; - } - - region0_to_panelRegion_fRight_zone - { - type mappedField; - sampleRegion region0; - sampleMode nearestPatchFace; - samplePatch region0_to_panelRegion_fRight_zone; - offset (0 0 0); - field qr; - setAverage no; - average 0; - value uniform 0; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/wood b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/wood deleted file mode 100644 index 88769ecd00..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/panelRegion/wood +++ /dev/null @@ -1,46 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object wood; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0.5; - -boundaryField -{ - ".*" - { - type zeroGradient; - } - - fRight_zone_side - { - type wedge; - } - - fLeft_zone_side - { - type wedge; - } - - "(region0_to.*)" - { - type zeroGradient; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/ph_rgh.orig b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/ph_rgh.orig deleted file mode 100644 index 65947f1610..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/0/ph_rgh.orig +++ /dev/null @@ -1,56 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - location "0"; - object ph_rgh; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - ground - { - type fixedFluxPressure; - value $internalField; - } - - burner - { - type fixedFluxPressure; - value $internalField; - } - - top - { - type fixedValue; - value $internalField; - } - - sides - { - type fixedFluxPressure; - value $internalField; - } - - "(region0_to.*)" - { - type fixedFluxPressure; - value $internalField; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean deleted file mode 100755 index ed4bd14d20..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allclean +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - -# Source tutorial clean functions -. $WM_PROJECT_DIR/bin/tools/CleanFunctions - -cleanCase - -rm -f 0/ph_rgh -rm -rf constant/panelRegion/polyMesh -rm -f 0/polyMesh/cellMap -rm -f constant/polyMesh/boundary - -#------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun deleted file mode 100755 index 6f6a29113d..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/Allrun +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions - -# Set application name -application=$(getApplication) - -runApplication blockMesh - -runApplication -s cRefine \ - topoSet -dict system/cRefine.topoSetDict - -runApplication refineMesh -overwrite -dict system/refineMeshDict - -runApplication -s f \ - topoSet -dict system/f.topoSetDict - -# create the pyrolysis region. -runApplication extrudeToRegionMesh -overwrite - - -runApplication -s fBurner \ - topoSet -dict system/fBurner.topoSetDict - -runApplication createPatch -overwrite - -runApplication -s master \ - decomposePar -force - -runApplication -s panelRegion \ - decomposePar -region panelRegion - -runApplication -s fields \ - decomposePar -fields - -runParallel $(getApplication) - -paraFoam -touch -paraFoam -touch -region panelRegion - - -#------------------------------------------------------------------------------ diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/additionalControls b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/additionalControls deleted file mode 100644 index 8000925363..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/additionalControls +++ /dev/null @@ -1,20 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object additionalControls; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvePrimaryRegion true; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/combustionProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/combustionProperties deleted file mode 100644 index b5d404d0b4..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/combustionProperties +++ /dev/null @@ -1,28 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object combustionProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -combustionModel infinitelyFastChemistry; - -infinitelyFastChemistryCoeffs -{ - C 10; - semiImplicit false; -} - -#include "reaction" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/g b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/g deleted file mode 100644 index a4d5bff9d1..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/g +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class uniformDimensionedVectorField; - location "constant"; - object g; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -2 0 0 0 0]; -value (0 -9.80665 0); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/hRef b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/hRef deleted file mode 100644 index 5e5f59fbf6..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/hRef +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class uniformDimensionedScalarField; - location "constant"; - object hRef; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 0 0 0 0 0]; -value 4.2; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/pRef b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/pRef deleted file mode 100644 index e34357eed1..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/pRef +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class uniformDimensionedScalarField; - location "constant"; - object pRef; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; -value 101325; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/chemistryProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/chemistryProperties deleted file mode 100644 index d5cddcc2ae..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/chemistryProperties +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object chemistryProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -chemistryType -{ - chemistrySolver ode; - chemistryThermo pyrolysis; -} - -chemistry on; - -initialChemicalTimeStep 1e-07; - -odeCoeffs -{ - solver seulex; - absTol 1e-8; - relTol 0.01; -} - -#include "reactions" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/radiationProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/radiationProperties deleted file mode 100644 index 222a9349c7..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/radiationProperties +++ /dev/null @@ -1,43 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object radiationProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -radiation on; - -radiationModel opaqueSolid; - -absorptionEmissionModel greyMeanSolid; - -greyMeanSolidCoeffs -{ - wood - { - absorptivity 0.17; - emissivity 0.17; - } - - char - { - absorptivity 0.85; - emissivity 0.85; - } -} - -scatterModel none; - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/reactions b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/reactions deleted file mode 100644 index 201faa3326..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/reactions +++ /dev/null @@ -1,36 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object reactions; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -gaseousSpecies -( - gas -); - -reactions -{ - charReaction - { - type irreversibleArrheniusSolidReaction; - reaction "wood^4.86 = char + gas"; - A 7.83e10; - Ta 15274.57; - Tcrit 400; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/thermo.solid b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/thermo.solid deleted file mode 100644 index b2528e06fc..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/thermo.solid +++ /dev/null @@ -1,66 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format binary; - class dictionary; - location "constant"; - object thermo.solid; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -species -( - wood - char -); - -wood -{ - specie - { - molWeight 100; - } - transport - { - kappa 0.135; - } - thermodynamics - { - Cp 696; - Hf -1.41e6; - } - equationOfState - { - rho 114.7; - } -}; - -char -{ - specie - { - molWeight 50; - } - transport - { - kappa 0.4; - } - thermodynamics - { - Cp 611; - Hf 0; - } - equationOfState - { - rho 11.5; - } -}; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/thermophysicalProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/thermophysicalProperties deleted file mode 100644 index 6074fc8d06..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/panelRegion/thermophysicalProperties +++ /dev/null @@ -1,61 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object thermophysicalProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -thermoType -{ - type heSolidThermo; - mixture multiComponentMixture; - transport constIso; - thermo hConst; - equationOfState rhoConst; - specie specie; - energy sensibleEnthalpy; -} - -gasThermoType -{ - transport sutherland; - thermo janaf; - equationOfState perfectGas; - specie specie; - energy sensibleEnthalpy; -} - - -gas -{ - specie - { - molWeight 18.0153; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.20100e-10 -6.39162e-15 -29899.2 6.86282 ); - lowCpCoeffs ( 3.38684 0.00347498 -6.35470e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -#include "thermo.solid" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/pyrolysisZones b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/pyrolysisZones deleted file mode 100644 index 4726d0d41b..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/pyrolysisZones +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format binary; - class dictionary; - location "constant"; - object pyrolysisZones; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -pyrolysis -{ - active true; - - pyrolysisModel reactingOneDim; - - regionName panelRegion; - - reactingOneDimCoeffs - { - gasHSource false; // Energy source term due to pyrolysis gas - qrHSource false; // Energy source term due in depht radiation - minimumDelta 1e-12; - - reactionDeltaMin 1e-12; - - moveMesh false; - } - - infoOutput true; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/radiationProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/radiationProperties deleted file mode 100644 index 7ec023c739..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/radiationProperties +++ /dev/null @@ -1,192 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object radiationProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -radiation on; - -radiationModel fvDOM; - -fvDOMCoeffs -{ - nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X) - nTheta 6; // polar angles in PI (from Z to X-Y plane) - tolerance 0.05; // convergence tolerance for radiation iteration - maxIter 3; // maximum number of iterations -} - -// Number of flow iterations per radiation iteration -solverFreq 10; - -absorptionEmissionModel constant; - -constantCoeffs -{ - absorptivity 0.01; - emissivity 0.01; - E 0; -} - -greyMeanCombustionCoeffs -{ - lookUpTableFileName none; - - EhrrCoeff 0.2; - - CO2 - { - Tcommon 200; // Common Temp - invTemp true; // Is the polynomio using inverse temperature. - Tlow 200; // Low Temp - Thigh 2500; // High Temp - - loTcoeffs // coefss for T < Tcommon - ( - 0 // a0 + - 0 // a1*T + - 0 // a2*T^(+/-)2 + - 0 // a3*T^(+/-)3 + - 0 // a4*T^(+/-)4 + - 0 // a5*T^(+/-)5 + - ); - hiTcoeffs // coefss for T > Tcommon - ( - 18.741 - -121.31e3 - 273.5e6 - -194.05e9 - 56.31e12 - -5.8169e15 - ); - - } - - H2O - { - Tcommon 200; - invTemp true; - Tlow 200; - Thigh 2500; - - loTcoeffs - ( - 0 - 0 - 0 - 0 - 0 - 0 - ); - hiTcoeffs - ( - -0.23093 - -1.12390e3 - 9.4153e6 - -2.99885e9 - 0.51382e12 - -1.868e10 - ); - } - - C3H8//CH4 - { - Tcommon 200; - Tlow 200; - Thigh 2000; - invTemp false; - - loTcoeffs - ( - 0 - 0 - 0 - 0 - 0 - 0 - ); - hiTcoeffs - ( - 6.6334 - -0.0035686 - 1.6682e-8 - 2.5611e-10 - -2.6558e-14 - 0 - ); - } - - O2 - { - Tcommon 200; - invTemp true; - Tlow 200; - Thigh 2500; - - loTcoeffs - ( - 0 - 0 - 0 - 0 - 0 - 0 - ); - hiTcoeffs - ( - 0.1 - 0 - 0 - 0 - 0 - 0 - ); - } - - - N2 - { - Tcommon 200; - invTemp true; - Tlow 200; - Thigh 2500; - - loTcoeffs - ( - 0 - 0 - 0 - 0 - 0 - 0 - ); - hiTcoeffs - ( - 0.1 - 0 - 0 - 0 - 0 - 0 - ); - } - -} - -scatterModel none; - -sootModel none; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/reactingCloud1Properties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/reactingCloud1Properties deleted file mode 100644 index 0af2e8b666..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/reactingCloud1Properties +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object reactingCloud1Properties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solution -{ - active false; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/reaction b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/reaction deleted file mode 100644 index a1f132ddaf..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/reaction +++ /dev/null @@ -1,15 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -reaction -{ - type irreversibleinfiniteReaction; - reaction "C3H8 + 5O2 + 18.8N2 = 3CO2 + 4H2O + 18.8N2"; -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/surfaceFilmProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/surfaceFilmProperties deleted file mode 100644 index a601df66e9..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/surfaceFilmProperties +++ /dev/null @@ -1,22 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object SurfaceFilmProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -surfaceFilmModel none; - -regionName none; - -active false; diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/thermo.compressibleGas b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/thermo.compressibleGas deleted file mode 100644 index 64fbd0076a..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/thermo.compressibleGas +++ /dev/null @@ -1,121 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -species -( - O2 - H2O - C3H8 - CO2 - N2 -); - -O2 -{ - specie - { - molWeight 31.9988; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 ); - lowCpCoeffs ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -H2O -{ - specie - { - molWeight 18.0153; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.201e-10 -6.39162e-15 -29899.2 6.86282 ); - lowCpCoeffs ( 3.38684 0.00347498 -6.3547e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -C3H8 -{ - specie - { - molWeight 44.01; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 7.5341368 0.018872239 -6.2718491e-06 9.1475649e-10 -4.7838069e-14 -16467.516 -17.892349 ); - lowCpCoeffs ( 0.93355381 0.026424579 6.1059727e-06 -2.1977499e-08 9.5149253e-12 -13958.52 19.201691 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -CO2 -{ - specie - { - molWeight 44.01; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 4.45362 0.00314017 -1.27841e-06 2.394e-10 -1.66903e-14 -48967 -0.955396 ); - lowCpCoeffs ( 2.27572 0.00992207 -1.04091e-05 6.86669e-09 -2.11728e-12 -48373.1 10.1885 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} - -N2 -{ - specie - { - molWeight 28.0134; - } - thermodynamics - { - Tlow 200; - Thigh 5000; - Tcommon 1000; - highCpCoeffs ( 2.92664 0.00148798 -5.68476e-07 1.0097e-10 -6.75335e-15 -922.798 5.98053 ); - lowCpCoeffs ( 3.29868 0.00140824 -3.96322e-06 5.64152e-09 -2.44486e-12 -1020.9 3.95037 ); - } - transport - { - As 1.67212e-06; - Ts 170.672; - } -} diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/thermophysicalProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/thermophysicalProperties deleted file mode 100644 index e70c24f686..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/thermophysicalProperties +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object thermophysicalProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -thermoType -{ - type hePsiThermo; - mixture multiComponentMixture; - transport sutherland; - thermo janaf; - energy sensibleEnthalpy; - equationOfState perfectGas; - specie specie; -} - -inertSpecie N2; - -fuel C3H8; - -#include "thermo.compressibleGas" - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/turbulenceProperties b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/turbulenceProperties deleted file mode 100644 index 842816109b..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/constant/turbulenceProperties +++ /dev/null @@ -1,100 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ - -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object turbulenceProperties; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -simulationType LES; - -LES -{ - LESModel kEqn; - - delta cubeRootVol; - - turbulence on; - - printCoeffs on; - - kEqnCoeffs - { - Prt 1; - } - - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - PrandtlCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; - } - - Cdelta 0.158; - } - - vanDriestCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; - } - - Aplus 26; - Cdelta 0.158; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - maxDeltaRatio 1.1; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/blockMeshDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/blockMeshDict deleted file mode 100644 index d603fcf2dd..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/blockMeshDict +++ /dev/null @@ -1,77 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (-0.15 0 -0.6) - ( 0.15 0 -0.6) - ( 0.15 4.2 -0.6) - (-0.15 4.2 -0.6) - (-0.15 0 0.6) - ( 0.15 0 0.6) - ( 0.15 4.2 0.6) - (-0.15 4.2 0.6) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (16 124 24) simpleGrading (1 1 1) -); - -edges -( -); - -boundary -( - ground - { - type wall; - faces - ( - (0 1 5 4) - ); - } - - sides - { - type patch; - faces - ( - (1 2 6 5) - (0 3 2 1) - (0 4 7 3) - (6 7 4 5) - ); - } - - top - { - type patch; - faces - ( - (7 6 2 3) - ); - } -); - -mergePatchPairs -( -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/cRefine.topoSetDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/cRefine.topoSetDict deleted file mode 100644 index c4af5fe207..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/cRefine.topoSetDict +++ /dev/null @@ -1,32 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object topoSetDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -actions -( - { - name refineCells; - type cellSet; - action new; - source boxToCell; - sourceInfo - { - box (-0.15 0.0 -0.3)(0.15 2.4 0.3); - } - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/controlDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/controlDict deleted file mode 100644 index cd7a8897ae..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/controlDict +++ /dev/null @@ -1,57 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object controlDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -application fireFoam; - -startFrom startTime; - -startTime 0; - -stopAt endTime; - -endTime 5; - -deltaT 0.03; - -writeControl adjustableRunTime; - -writeInterval 0.1; - -purgeWrite 0; - -writeFormat binary; - -writePrecision 12; - -writeCompression off; - -timeFormat general; - -timePrecision 6; - -graphFormat raw; - -runTimeModifiable yes; - -adjustTimeStep yes; - -maxCo 0.5; - -maxDi 0.25; - -maxDeltaT 0.02; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/createPatchDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/createPatchDict deleted file mode 100644 index 43168eba28..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/createPatchDict +++ /dev/null @@ -1,75 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object createPatchDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// This application/dictionary controls: -// - optional: create new patches from boundary faces (either given as -// a set of patches or as a faceSet) -// - always: order faces on coupled patches such that they are opposite. This -// is done for all coupled faces, not just for any patches created. -// - optional: synchronise points on coupled patches. - -// 1. Create cyclic: -// - specify where the faces should come from -// - specify the type of cyclic. If a rotational specify the rotationAxis -// and centre to make matching easier -// - always create both halves in one invocation with correct 'neighbourPatch' -// setting. -// - optionally pointSync true to guarantee points to line up. - -// 2. Correct incorrect cyclic: -// This will usually fail upon loading: -// "face 0 area does not match neighbour 2 by 0.0100005%" -// " -- possible face ordering problem." -// - in polyMesh/boundary file: -// - loosen matchTolerance of all cyclics to get case to load -// - or change patch type from 'cyclic' to 'patch' -// and regenerate cyclic as above - - -// Do a synchronisation of coupled points after creation of any patches. -// Note: this does not work with points that are on multiple coupled patches -// with transformations (i.e. cyclics). -pointSync false; - -// Optional: Write cyclic matches into .obj format; defaults to false. -writeCyclicMatch false; - -// Patches to create. -patches -( - { - // Name of new patch - name burner; - - // Dictionary to construct new patch from - patchInfo - { - type patch; - } - - // How to construct: either from 'patches' or 'set' - constructFrom set; - - // If constructFrom = patches : names of patches. Wildcards allowed. - // patches (periodic1); - - // If constructFrom = set : name of faceSet - set fBurner; - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/decomposeParDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/decomposeParDict deleted file mode 100644 index 18e01c683b..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/decomposeParDict +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system"; - object decomposeParDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 6; - -method simple; - -simpleCoeffs -{ - n (1 3 2); - delta 0.001; -} - -hierarchicalCoeffs -{ - n (1 2 2); - delta 0.001; - order xyz; -} - -manualCoeffs -{ - dataFile "cellDecomposition"; -} - -scotchCoeffs -{ -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/extrudeToRegionMeshDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/extrudeToRegionMeshDict deleted file mode 100644 index a01f6511ce..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/extrudeToRegionMeshDict +++ /dev/null @@ -1,40 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object extrudeToRegionMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -region panelRegion; - -faceZones (fRight_zone fLeft_zone); - -oneD true; - -sampleMode nearestPatchFace; - -oneDPolyPatchType empty; // wedge - -extrudeModel linearNormal; - -nLayers 5; - -expansionRatio 1; - -adaptMesh true; // mapped for both - -linearNormalCoeffs -{ - thickness 0.01; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/f.topoSetDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/f.topoSetDict deleted file mode 100644 index 79931a20c9..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/f.topoSetDict +++ /dev/null @@ -1,66 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object topoSetDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -actions -( - { - name fLeft; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-0.151 0 -0.3)(-0.14999 2.4 0.3); - } - } - { - name fRight; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (0.14999 0 -0.3)(0.151 2.4 0.3); - } - } - - { - name fRight_zone; - type faceZoneSet; - action new; - source setToFaceZone; - sourceInfo - { - faceSet fRight; - } - } - - { - name fLeft_zone; - type faceZoneSet; - action new; - source setToFaceZone; - sourceInfo - { - faceSet fLeft; - } - } - -); - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fBurner.topoSetDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fBurner.topoSetDict deleted file mode 100644 index 5239de827e..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fBurner.topoSetDict +++ /dev/null @@ -1,32 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object topoSetDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -actions -( - { - name fBurner; - type faceSet; - action new; - source boxToFace; - sourceInfo - { - box (-0.15 -0.001 -0.30) (0.15 0.001 0.30); - } - } -); - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fvSchemes b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fvSchemes deleted file mode 100644 index 99bc716079..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fvSchemes +++ /dev/null @@ -1,62 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system"; - object fvSchemes; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; - div(phi,U) Gauss LUST grad(U); - div(phi,K) Gauss limitedLinear 1; - div(phi,k) Gauss limitedLinear 1; - div(phi,Yi_h) Gauss multivariateSelection - { - O2 linearUpwind grad(O2); - N2 linearUpwind grad(N2); - C3H8 linearUpwind grad(C3H8); - H2O linearUpwind grad(H2O); - CO2 linearUpwind grad(CO2); - h linearUpwind grad(h); - }; - div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; - div(Ji,Ii_h) Gauss upwind; -} - -laplacianSchemes -{ - default Gauss linear corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fvSolution b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fvSolution deleted file mode 100644 index 82a6f9862e..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/fvSolution +++ /dev/null @@ -1,102 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system"; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - "rho.*" - { - solver PCG; - preconditioner DIC; - tolerance 1e-6; - relTol 0; - }; - - p_rgh - { - solver GAMG; - tolerance 1e-6; - relTol 0.01; - smoother GaussSeidel; - }; - - p_rghFinal - { - $p_rgh; - relTol 0; - }; - - ph_rgh - { - $p_rgh; - } - - - "(U|Yi|k|h|omega)" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-6; - relTol 0.1; - nSweeps 1; - }; - - "(U|Yi|k|h|omega)Final" - { - $U; - relTol 0; - }; - - "Ii.*" - { - solver GAMG; - tolerance 1e-4; - relTol 0; - smoother symGaussSeidel; - maxIter 1; - nPostSweeps 1; - } - - "(G)Final" - { - solver PCG; - preconditioner DIC; - tolerance 1e-04; - relTol 0; - } -} - -PIMPLE -{ - momentumPredictor yes; - nOuterCorrectors 1; - nCorrectors 2; - nNonOrthogonalCorrectors 0; - - hydrostaticInitialization yes; - nHydrostaticCorrectors 5; -} - -relaxationFactors -{ - equations - { - ".*" 1; - } -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/decomposeParDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/decomposeParDict deleted file mode 100644 index 10afa94d1f..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/decomposeParDict +++ /dev/null @@ -1,53 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "system"; - object decomposeParDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -numberOfSubdomains 6; - - -method structured; - -structuredCoeffs -{ - method hierarchical; - patches (region0_to_panelRegion_fRight_zone region0_to_panelRegion_fLeft_zone); - - hierarchicalCoeffs - { - n (2 3 1); - delta 0.001; - order xyz; - } -} - - -hierarchicalCoeffs -{ - n (1 2 2); - delta 0.001; - order xyz; -} - -manualCoeffs -{ - dataFile "cellDecomposition"; -} - -metisCoeffs -{ -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/fvSchemes b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/fvSchemes deleted file mode 100644 index 5d0f40b476..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/fvSchemes +++ /dev/null @@ -1,50 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSchemes; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -ddtSchemes -{ - default Euler; -} - -gradSchemes -{ - default Gauss linear; -} - -divSchemes -{ - default none; -} - -laplacianSchemes -{ - default none; - laplacian(thermo:alpha,h) Gauss linear corrected; - laplacian(kappa,T) Gauss harmonic corrected; -} - -interpolationSchemes -{ - default linear; -} - -snGradSchemes -{ - default corrected; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/fvSolution b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/fvSolution deleted file mode 100644 index ca392f0715..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/panelRegion/fvSolution +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvSolution; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -solvers -{ - h - { - solver PCG; - preconditioner DIC; - tolerance 1e-6; - relTol 0; - } - - "Yi" - { - solver PBiCGStab; - preconditioner DILU; - tolerance 1e-06; - relTol 0; - } - - rho - { - solver PCG; - preconditioner DIC; - tolerance 0; - relTol 0; - }; - -} - -SIMPLE -{ - nNonOrthCorr 0; -} - -relaxationFactors -{ - equations - { - h 1; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/refineMeshDict b/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/refineMeshDict deleted file mode 100644 index ea12b3c3f9..0000000000 --- a/tutorials/combustion/fireFoam/LES/oppositeBurningPanels/system/refineMeshDict +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object refineMeshDict; -} - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -// Cells to refine; name of cell set -set refineCells; - -// Type of coordinate system: -// - global : coordinate system same for every cell. Usually aligned with -// x,y,z axis. Specify in globalCoeffs section below. -// - patchLocal : coordinate system different for every cell. Specify in -// patchLocalCoeffs section below. -//coordinateSystem global; -coordinateSystem global; - - -// .. and its coefficients. x,y in this case. (normal direction is calculated -// as tan1^tan2) -globalCoeffs -{ - tan1 (0 1 0); - tan2 (0 0 1); -} - -patchLocalCoeffs -{ - patch patchName; // Normal direction is facenormal of zero'th face of patch - tan1 (0 1 0); - tan2 (0 0 1); -} - -// List of directions to refine -directions -( - tan1 - tan2 - normal -); - -// Whether to use hex topology. This will -// - if patchLocal: all cells on selected patch should be hex -// - split all hexes in 2x2x2 through the middle of edges. -useHexTopology true; - -// Cut purely geometric (will cut hexes through vertices) or take topology -// into account. Incompatible with useHexTopology -geometricCut false; - -// Write meshes from intermediate steps -writeMesh false; - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/constant/pyrolysisZones b/tutorials/combustion/fireFoam/LES/smallPoolFire2D/constant/pyrolysisZones deleted file mode 100644 index 8bc6577ff2..0000000000 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire2D/constant/pyrolysisZones +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format binary; - class dictionary; - location "constant"; - object pyrolysisZones; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -pyrolysis -{ - active false; - - pyrolysisModel none; - - regionName panelRegion; - - reactingOneDimCoeffs - { - radFluxName qr; - - minimumDelta 1e-8; - - moveMesh false; - } - - infoOutput false; -} - - -// ************************************************************************* // diff --git a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/constant/pyrolysisZones b/tutorials/combustion/fireFoam/LES/smallPoolFire3D/constant/pyrolysisZones deleted file mode 100644 index 8bc6577ff2..0000000000 --- a/tutorials/combustion/fireFoam/LES/smallPoolFire3D/constant/pyrolysisZones +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format binary; - class dictionary; - location "constant"; - object pyrolysisZones; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -pyrolysis -{ - active false; - - pyrolysisModel none; - - regionName panelRegion; - - reactingOneDimCoeffs - { - radFluxName qr; - - minimumDelta 1e-8; - - moveMesh false; - } - - infoOutput false; -} - - -// ************************************************************************* //