From a65b189741e81fbc9986cf382cf085b4980359b8 Mon Sep 17 00:00:00 2001 From: sergio <sergio> Date: Fri, 6 Apr 2018 08:46:17 -0700 Subject: [PATCH] ENH: Adding thermo using polynomial transport, JANAF and ideal gas. This thermo is used with multiComponentMixture in rhoThermo type --- .../rhoReactionThermo/rhoReactionThermos.C | 18 ++++++++++- .../specie/include/thermoPhysicsTypes.H | 30 ++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/thermophysicalModels/reactionThermo/rhoReactionThermo/rhoReactionThermos.C b/src/thermophysicalModels/reactionThermo/rhoReactionThermo/rhoReactionThermos.C index a7431ca2007..0cd88be7c13 100644 --- a/src/thermophysicalModels/reactionThermo/rhoReactionThermo/rhoReactionThermos.C +++ b/src/thermophysicalModels/reactionThermo/rhoReactionThermo/rhoReactionThermos.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -260,6 +260,14 @@ makeReactionMixtureThermo icoPoly8EThermoPhysics ); +makeReactionMixtureThermo +( + rhoThermo, + rhoReactionThermo, + heRhoThermo, + multiComponentMixture, + icoPoly8TranspJanafEThermoPhysics +); // Multi-component reaction thermo @@ -365,6 +373,14 @@ makeReactionMixtureThermo icoPoly8HThermoPhysics ); +makeReactionMixtureThermo +( + rhoThermo, + rhoReactionThermo, + heRhoThermo, + multiComponentMixture, + icoPoly8TranspJanafHThermoPhysics +); // Multi-component reaction thermo diff --git a/src/thermophysicalModels/specie/include/thermoPhysicsTypes.H b/src/thermophysicalModels/specie/include/thermoPhysicsTypes.H index 04cecc04cef..29b692858f7 100644 --- a/src/thermophysicalModels/specie/include/thermoPhysicsTypes.H +++ b/src/thermophysicalModels/specie/include/thermoPhysicsTypes.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -120,6 +120,20 @@ namespace Foam 8 > icoPoly8HThermoPhysics; + typedef + polynomialTransport + < + species::thermo + < + janafThermo + < + perfectGas<specie> + >, + sensibleEnthalpy + >, + 8 + > icoPoly8TranspJanafHThermoPhysics; + // thermo physics types based on sensibleInternalEnergy typedef @@ -188,6 +202,20 @@ namespace Foam >, 8 > icoPoly8EThermoPhysics; + + typedef + polynomialTransport + < + species::thermo + < + janafThermo + < + perfectGas<specie> + >, + sensibleInternalEnergy + >, + 8 + > icoPoly8TranspJanafEThermoPhysics; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -- GitLab