mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
290 lines
7.5 KiB
C
290 lines
7.5 KiB
C
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
|
\\/ 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 <http://www.gnu.org/licenses/>.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#include "addToRunTimeSelectionTable.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#include "thermoPhysicsTypes.H"
|
|
|
|
#include "rhoConst.H"
|
|
#include "perfectFluid.H"
|
|
#include "Boussinesq.H"
|
|
|
|
#include "pureMixture.H"
|
|
#include "multiComponentMixture.H"
|
|
#include "reactingMixture.H"
|
|
#include "SpecieMixture.H"
|
|
|
|
#include "rhoThermo.H"
|
|
#include "rhoReactionThermo.H"
|
|
#include "heRhoThermo.H"
|
|
|
|
#include "solidThermo.H"
|
|
#include "heSolidThermo.H"
|
|
#include "solidThermoPhysicsTypes.H"
|
|
|
|
#include "kineticGasEvaporation.H"
|
|
#include "Lee.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
typedef
|
|
constTransport
|
|
<
|
|
species::thermo
|
|
<
|
|
hConstThermo
|
|
<
|
|
rhoConst<specie>
|
|
>,
|
|
sensibleEnthalpy
|
|
>
|
|
> constRhoHThermoPhysics;
|
|
|
|
|
|
typedef
|
|
constTransport
|
|
<
|
|
species::thermo
|
|
<
|
|
hConstThermo
|
|
<
|
|
Boussinesq<specie>
|
|
>,
|
|
sensibleEnthalpy
|
|
>
|
|
> BoussinesqFluidEThermoPhysics;
|
|
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
using namespace meltingEvaporationModels;
|
|
|
|
//NOTE: First thermo (from) and second otherThermo (to)
|
|
|
|
// kineticGasEvaporation model definitions
|
|
|
|
// From pure liquid (rhoConst) to a multi-component gas incomp phase
|
|
makeInterfaceContSpecieMixtureType
|
|
(
|
|
kineticGasEvaporation,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heRhoThermo,
|
|
rhoReactionThermo,
|
|
multiComponentMixture,
|
|
constIncompressibleGasHThermoPhysics
|
|
);
|
|
|
|
// From pure liquid (BoussinesqFluid) to a multi-component gas incomp
|
|
// phase
|
|
makeInterfaceContSpecieMixtureType
|
|
(
|
|
kineticGasEvaporation,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
BoussinesqFluidEThermoPhysics,
|
|
heRhoThermo,
|
|
rhoReactionThermo,
|
|
multiComponentMixture,
|
|
constIncompressibleGasHThermoPhysics
|
|
);
|
|
|
|
|
|
// From pure liquid (rhoConst) to pure gas (incompressible ideal gas)
|
|
makeInterfacePureType
|
|
(
|
|
kineticGasEvaporation,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constIncompressibleGasHThermoPhysics
|
|
);
|
|
|
|
// From pure liquid (const rho) to pure gas (rhoConst) gas
|
|
makeInterfacePureType
|
|
(
|
|
kineticGasEvaporation,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics
|
|
);
|
|
|
|
|
|
// From pure liquid (Boussinesq) to pure gas (incompressible ideal gas)
|
|
makeInterfacePureType
|
|
(
|
|
kineticGasEvaporation,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
BoussinesqFluidEThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constIncompressibleGasHThermoPhysics
|
|
);
|
|
|
|
// From pure liquid (Boussinesq) to pure gas (rho const)
|
|
makeInterfacePureType
|
|
(
|
|
kineticGasEvaporation,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
BoussinesqFluidEThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics
|
|
);
|
|
|
|
|
|
// Lee model definitions
|
|
|
|
// From pure phase (rho const) to phase (rho const)
|
|
makeInterfacePureType
|
|
(
|
|
Lee,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics
|
|
);
|
|
|
|
// From pure phase (rho const) to phase (Boussinesq)
|
|
makeInterfacePureType
|
|
(
|
|
Lee,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
BoussinesqFluidEThermoPhysics
|
|
);
|
|
|
|
|
|
// From pure phase (solidThermo) to phase (Boussinesq)
|
|
makeInterfacePureType
|
|
(
|
|
Lee,
|
|
heSolidThermo,
|
|
solidThermo,
|
|
pureMixture,
|
|
hConstSolidThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
BoussinesqFluidEThermoPhysics
|
|
);
|
|
|
|
// From pure phase (solidThermo) to phase (rho const)
|
|
makeInterfacePureType
|
|
(
|
|
Lee,
|
|
heSolidThermo,
|
|
solidThermo,
|
|
pureMixture,
|
|
hConstSolidThermoPhysics,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics
|
|
);
|
|
|
|
|
|
// From pure phase (const rho) to multi phase (incomp ideal gas)
|
|
makeInterfaceContSpecieMixtureType
|
|
(
|
|
Lee,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heRhoThermo,
|
|
rhoReactionThermo,
|
|
multiComponentMixture,
|
|
constIncompressibleGasHThermoPhysics
|
|
);
|
|
|
|
|
|
// From pure phase (Boussinesq) to phase (solidThermo)
|
|
makeInterfacePureType
|
|
(
|
|
Lee,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
BoussinesqFluidEThermoPhysics,
|
|
heSolidThermo,
|
|
solidThermo,
|
|
pureMixture,
|
|
hConstSolidThermoPhysics
|
|
);
|
|
|
|
// From pure phase (rho const) to phase (solidThermo)
|
|
makeInterfacePureType
|
|
(
|
|
Lee,
|
|
heRhoThermo,
|
|
rhoThermo,
|
|
pureMixture,
|
|
constRhoHThermoPhysics,
|
|
heSolidThermo,
|
|
solidThermo,
|
|
pureMixture,
|
|
hConstSolidThermoPhysics
|
|
);
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|