mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reactingEulerFoam::IsothermalPhaseModel: Added support for isothermal compressible flow
Based on patch contributed by Ronald Oertel, HZDR Resolves bug-report https://bugs.openfoam.org/view.php?id=2583
This commit is contained in:
committed by
Andrew Heather
parent
7e408dd242
commit
1f967d5cd8
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -60,6 +60,13 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::~AnisothermalPhaseModel()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class BasePhaseModel>
|
||||||
|
bool Foam::AnisothermalPhaseModel<BasePhaseModel>::compressible() const
|
||||||
|
{
|
||||||
|
return !this->thermo().incompressible();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class BasePhaseModel>
|
template<class BasePhaseModel>
|
||||||
void Foam::AnisothermalPhaseModel<BasePhaseModel>::correctKinematics()
|
void Foam::AnisothermalPhaseModel<BasePhaseModel>::correctKinematics()
|
||||||
{
|
{
|
||||||
@ -156,13 +163,6 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::heEqn()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class BasePhaseModel>
|
|
||||||
bool Foam::AnisothermalPhaseModel<BasePhaseModel>::compressible() const
|
|
||||||
{
|
|
||||||
return !this->thermo().incompressible();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class BasePhaseModel>
|
template<class BasePhaseModel>
|
||||||
const Foam::volScalarField&
|
const Foam::volScalarField&
|
||||||
Foam::AnisothermalPhaseModel<BasePhaseModel>::K() const
|
Foam::AnisothermalPhaseModel<BasePhaseModel>::K() const
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -85,6 +85,9 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
|
//- Return true if the phase is compressible otherwise false
|
||||||
|
virtual bool compressible() const;
|
||||||
|
|
||||||
//- Correct the kinematics
|
//- Correct the kinematics
|
||||||
virtual void correctKinematics();
|
virtual void correctKinematics();
|
||||||
|
|
||||||
@ -94,12 +97,6 @@ public:
|
|||||||
//- Return the enthalpy equation
|
//- Return the enthalpy equation
|
||||||
virtual tmp<fvScalarMatrix> heEqn();
|
virtual tmp<fvScalarMatrix> heEqn();
|
||||||
|
|
||||||
|
|
||||||
// Compressibility (variable density)
|
|
||||||
|
|
||||||
//- Return true if the phase is compressible otherwise false
|
|
||||||
virtual bool compressible() const;
|
|
||||||
|
|
||||||
//- Return the phase kinetic energy
|
//- Return the phase kinetic energy
|
||||||
virtual const volScalarField& K() const;
|
virtual const volScalarField& K() const;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -49,6 +49,13 @@ Foam::IsothermalPhaseModel<BasePhaseModel>::~IsothermalPhaseModel()
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class BasePhaseModel>
|
||||||
|
bool Foam::IsothermalPhaseModel<BasePhaseModel>::compressible() const
|
||||||
|
{
|
||||||
|
return !this->thermo().incompressible();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class BasePhaseModel>
|
template<class BasePhaseModel>
|
||||||
void Foam::IsothermalPhaseModel<BasePhaseModel>::correctThermo()
|
void Foam::IsothermalPhaseModel<BasePhaseModel>::correctThermo()
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -71,6 +71,9 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
|
//- Return true if the phase is compressible otherwise false
|
||||||
|
virtual bool compressible() const;
|
||||||
|
|
||||||
//- Correct the thermodynamics
|
//- Correct the thermodynamics
|
||||||
virtual void correctThermo();
|
virtual void correctThermo();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user