mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reactingTwoPhaseEulerFoam: Renamed saturationPressureModel -> saturationModel
In preparation for adding the Tsat function
This commit is contained in:
@ -11,10 +11,10 @@ interfaceCompositionModels/interfaceCompositionModel/interfaceCompositionModel.C
|
|||||||
interfaceCompositionModels/interfaceCompositionModel/newInterfaceCompositionModel.C
|
interfaceCompositionModels/interfaceCompositionModel/newInterfaceCompositionModel.C
|
||||||
interfaceCompositionModels/InterfaceCompositionModel/InterfaceCompositionModels.C
|
interfaceCompositionModels/InterfaceCompositionModel/InterfaceCompositionModels.C
|
||||||
|
|
||||||
saturationPressureModels/saturationPressureModel/saturationPressureModel.C
|
saturationModels/saturationModel/saturationModel.C
|
||||||
saturationPressureModels/saturationPressureModel/newSaturationPressureModel.C
|
saturationModels/saturationModel/newSaturationPressureModel.C
|
||||||
saturationPressureModels/Antoine/Antoine.C
|
saturationModels/Antoine/Antoine.C
|
||||||
saturationPressureModels/AntoineExtended/AntoineExtended.C
|
saturationModels/AntoineExtended/AntoineExtended.C
|
||||||
saturationPressureModels/ArdenBuck/ArdenBuck.C
|
saturationModels/ArdenBuck/ArdenBuck.C
|
||||||
|
|
||||||
LIB = $(FOAM_LIBBIN)/libreactingEulerianInterfacialCompositionModels
|
LIB = $(FOAM_LIBBIN)/libreactingEulerianInterfacialCompositionModels
|
||||||
|
|||||||
@ -109,16 +109,16 @@ NonRandomTwoLiquid
|
|||||||
dict.subDict(species2Name_).lookup("beta")
|
dict.subDict(species2Name_).lookup("beta")
|
||||||
);
|
);
|
||||||
|
|
||||||
saturationPressureModel12_.reset
|
saturationModel12_.reset
|
||||||
(
|
(
|
||||||
saturationPressureModel::New
|
saturationModel::New
|
||||||
(
|
(
|
||||||
dict.subDict(species1Name_).subDict("interaction")
|
dict.subDict(species1Name_).subDict("interaction")
|
||||||
).ptr()
|
).ptr()
|
||||||
);
|
);
|
||||||
saturationPressureModel21_.reset
|
saturationModel21_.reset
|
||||||
(
|
(
|
||||||
saturationPressureModel::New
|
saturationModel::New
|
||||||
(
|
(
|
||||||
dict.subDict(species2Name_).subDict("interaction")
|
dict.subDict(species2Name_).subDict("interaction")
|
||||||
).ptr()
|
).ptr()
|
||||||
@ -181,8 +181,8 @@ update
|
|||||||
volScalarField alpha12(alpha12_ + Tf*beta12_);
|
volScalarField alpha12(alpha12_ + Tf*beta12_);
|
||||||
volScalarField alpha21(alpha21_ + Tf*beta21_);
|
volScalarField alpha21(alpha21_ + Tf*beta21_);
|
||||||
|
|
||||||
volScalarField tau12(saturationPressureModel12_->lnPSat(Tf));
|
volScalarField tau12(saturationModel12_->lnPSat(Tf));
|
||||||
volScalarField tau21(saturationPressureModel21_->lnPSat(Tf));
|
volScalarField tau21(saturationModel21_->lnPSat(Tf));
|
||||||
|
|
||||||
volScalarField G12(exp(- alpha12*tau12));
|
volScalarField G12(exp(- alpha12*tau12));
|
||||||
volScalarField G21(exp(- alpha21*tau21));
|
volScalarField G21(exp(- alpha21*tau21));
|
||||||
|
|||||||
@ -41,7 +41,7 @@ SourceFiles
|
|||||||
#define NonRandomTwoLiquid_H
|
#define NonRandomTwoLiquid_H
|
||||||
|
|
||||||
#include "InterfaceCompositionModel.H"
|
#include "InterfaceCompositionModel.H"
|
||||||
#include "saturationPressureModel.H"
|
#include "saturationModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -97,10 +97,10 @@ private:
|
|||||||
dimensionedScalar beta21_;
|
dimensionedScalar beta21_;
|
||||||
|
|
||||||
//- Interaction parameter model for species 1
|
//- Interaction parameter model for species 1
|
||||||
autoPtr<saturationPressureModel> saturationPressureModel12_;
|
autoPtr<saturationModel> saturationModel12_;
|
||||||
|
|
||||||
//- Interaction parameter model for species 2
|
//- Interaction parameter model for species 2
|
||||||
autoPtr<saturationPressureModel> saturationPressureModel21_;
|
autoPtr<saturationModel> saturationModel21_;
|
||||||
|
|
||||||
//- Composition model for species 1
|
//- Composition model for species 1
|
||||||
autoPtr<interfaceCompositionModel> speciesModel1_;
|
autoPtr<interfaceCompositionModel> speciesModel1_;
|
||||||
|
|||||||
@ -54,9 +54,9 @@ Foam::interfaceCompositionModels::Saturated<Thermo, OtherThermo>::Saturated
|
|||||||
(
|
(
|
||||||
this->thermo_.composition().species()[saturatedName_]
|
this->thermo_.composition().species()[saturatedName_]
|
||||||
),
|
),
|
||||||
saturationPressureModel_
|
saturationModel_
|
||||||
(
|
(
|
||||||
saturationPressureModel::New
|
saturationModel::New
|
||||||
(
|
(
|
||||||
dict.subDict("saturationPressure")
|
dict.subDict("saturationPressure")
|
||||||
)
|
)
|
||||||
@ -109,7 +109,7 @@ Foam::interfaceCompositionModels::Saturated<Thermo, OtherThermo>::Yf
|
|||||||
{
|
{
|
||||||
if (saturatedName_ == speciesName)
|
if (saturatedName_ == speciesName)
|
||||||
{
|
{
|
||||||
return wRatioByP()*saturationPressureModel_->pSat(Tf);
|
return wRatioByP()*saturationModel_->pSat(Tf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ Foam::interfaceCompositionModels::Saturated<Thermo, OtherThermo>::Yf
|
|||||||
|
|
||||||
return
|
return
|
||||||
this->thermo_.Y()[speciesIndex]
|
this->thermo_.Y()[speciesIndex]
|
||||||
*(scalar(1) - wRatioByP()*saturationPressureModel_->pSat(Tf))
|
*(scalar(1) - wRatioByP()*saturationModel_->pSat(Tf))
|
||||||
/max(scalar(1) - this->thermo_.Y()[saturatedIndex_], SMALL);
|
/max(scalar(1) - this->thermo_.Y()[saturatedIndex_], SMALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ Foam::interfaceCompositionModels::Saturated<Thermo, OtherThermo>::YfPrime
|
|||||||
{
|
{
|
||||||
if (saturatedName_ == speciesName)
|
if (saturatedName_ == speciesName)
|
||||||
{
|
{
|
||||||
return wRatioByP()*saturationPressureModel_->pSatPrime(Tf);
|
return wRatioByP()*saturationModel_->pSatPrime(Tf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -147,7 +147,7 @@ Foam::interfaceCompositionModels::Saturated<Thermo, OtherThermo>::YfPrime
|
|||||||
|
|
||||||
return
|
return
|
||||||
- this->thermo_.Y()[speciesIndex]
|
- this->thermo_.Y()[speciesIndex]
|
||||||
*wRatioByP()*saturationPressureModel_->pSatPrime(Tf)
|
*wRatioByP()*saturationModel_->pSatPrime(Tf)
|
||||||
/max(scalar(1) - this->thermo_.Y()[saturatedIndex_], SMALL);
|
/max(scalar(1) - this->thermo_.Y()[saturatedIndex_], SMALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,7 +37,7 @@ SourceFiles
|
|||||||
#define Saturated_H
|
#define Saturated_H
|
||||||
|
|
||||||
#include "InterfaceCompositionModel.H"
|
#include "InterfaceCompositionModel.H"
|
||||||
#include "saturationPressureModel.H"
|
#include "saturationModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ protected:
|
|||||||
label saturatedIndex_;
|
label saturatedIndex_;
|
||||||
|
|
||||||
//- Saturation pressure model
|
//- Saturation pressure model
|
||||||
autoPtr<saturationPressureModel> saturationPressureModel_;
|
autoPtr<saturationModel> saturationModel_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|||||||
@ -30,19 +30,19 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace saturationPressureModels
|
namespace saturationModels
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(Antoine, 0);
|
defineTypeNameAndDebug(Antoine, 0);
|
||||||
addToRunTimeSelectionTable(saturationPressureModel, Antoine, dictionary);
|
addToRunTimeSelectionTable(saturationModel, Antoine, dictionary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModels::Antoine::Antoine(const dictionary& dict)
|
Foam::saturationModels::Antoine::Antoine(const dictionary& dict)
|
||||||
:
|
:
|
||||||
saturationPressureModel(),
|
saturationModel(),
|
||||||
A_("A", dimless, dict.lookup("A")),
|
A_("A", dimless, dict.lookup("A")),
|
||||||
B_("B", dimTemperature, dict.lookup("B")),
|
B_("B", dimTemperature, dict.lookup("B")),
|
||||||
C_("C", dimTemperature, dict.lookup("C"))
|
C_("C", dimTemperature, dict.lookup("C"))
|
||||||
@ -51,14 +51,14 @@ Foam::saturationPressureModels::Antoine::Antoine(const dictionary& dict)
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModels::Antoine::~Antoine()
|
Foam::saturationModels::Antoine::~Antoine()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::Antoine::pSat
|
Foam::saturationModels::Antoine::pSat
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -70,7 +70,7 @@ Foam::saturationPressureModels::Antoine::pSat
|
|||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::Antoine::pSatPrime
|
Foam::saturationModels::Antoine::pSatPrime
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -80,7 +80,7 @@ Foam::saturationPressureModels::Antoine::pSatPrime
|
|||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::Antoine::lnPSat
|
Foam::saturationModels::Antoine::lnPSat
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::saturationPressureModels::Antoine
|
Foam::saturationModels::Antoine
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Antoine equation for the vapour pressure.
|
Antoine equation for the vapour pressure.
|
||||||
@ -42,13 +42,13 @@ SourceFiles
|
|||||||
#ifndef Antoine_H
|
#ifndef Antoine_H
|
||||||
#define Antoine_H
|
#define Antoine_H
|
||||||
|
|
||||||
#include "saturationPressureModel.H"
|
#include "saturationModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace saturationPressureModels
|
namespace saturationModels
|
||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -57,7 +57,7 @@ namespace saturationPressureModels
|
|||||||
|
|
||||||
class Antoine
|
class Antoine
|
||||||
:
|
:
|
||||||
public saturationPressureModel
|
public saturationModel
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace saturationPressureModels
|
} // End namespace saturationModels
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -30,12 +30,12 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace saturationPressureModels
|
namespace saturationModels
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(AntoineExtended, 0);
|
defineTypeNameAndDebug(AntoineExtended, 0);
|
||||||
addToRunTimeSelectionTable
|
addToRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
saturationPressureModel,
|
saturationModel,
|
||||||
AntoineExtended,
|
AntoineExtended,
|
||||||
dictionary
|
dictionary
|
||||||
);
|
);
|
||||||
@ -45,7 +45,7 @@ namespace saturationPressureModels
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModels::AntoineExtended::AntoineExtended
|
Foam::saturationModels::AntoineExtended::AntoineExtended
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
@ -59,14 +59,14 @@ Foam::saturationPressureModels::AntoineExtended::AntoineExtended
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModels::AntoineExtended::~AntoineExtended()
|
Foam::saturationModels::AntoineExtended::~AntoineExtended()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::AntoineExtended::pSat
|
Foam::saturationModels::AntoineExtended::pSat
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -79,7 +79,7 @@ Foam::saturationPressureModels::AntoineExtended::pSat
|
|||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::AntoineExtended::pSatPrime
|
Foam::saturationModels::AntoineExtended::pSatPrime
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -89,7 +89,7 @@ Foam::saturationPressureModels::AntoineExtended::pSatPrime
|
|||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::AntoineExtended::lnPSat
|
Foam::saturationModels::AntoineExtended::lnPSat
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::saturationPressureModels::AntoineExtended
|
Foam::saturationModels::AntoineExtended
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Extended Antoine equation for the vapour pressure.
|
Extended Antoine equation for the vapour pressure.
|
||||||
@ -49,7 +49,7 @@ SourceFiles
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace saturationPressureModels
|
namespace saturationModels
|
||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -105,7 +105,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace saturationPressureModels
|
} // End namespace saturationModels
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -30,10 +30,10 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace saturationPressureModels
|
namespace saturationModels
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(ArdenBuck, 0);
|
defineTypeNameAndDebug(ArdenBuck, 0);
|
||||||
addToRunTimeSelectionTable(saturationPressureModel, ArdenBuck, dictionary);
|
addToRunTimeSelectionTable(saturationModel, ArdenBuck, dictionary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ static const Foam::dimensionedScalar D("", Foam::dimTemperature, 257.14);
|
|||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::ArdenBuck::xByTC
|
Foam::saturationModels::ArdenBuck::xByTC
|
||||||
(
|
(
|
||||||
const volScalarField& TC
|
const volScalarField& TC
|
||||||
) const
|
) const
|
||||||
@ -57,22 +57,22 @@ Foam::saturationPressureModels::ArdenBuck::xByTC
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModels::ArdenBuck::ArdenBuck(const dictionary& dict)
|
Foam::saturationModels::ArdenBuck::ArdenBuck(const dictionary& dict)
|
||||||
:
|
:
|
||||||
saturationPressureModel()
|
saturationModel()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModels::ArdenBuck::~ArdenBuck()
|
Foam::saturationModels::ArdenBuck::~ArdenBuck()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::ArdenBuck::pSat
|
Foam::saturationModels::ArdenBuck::pSat
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -84,7 +84,7 @@ Foam::saturationPressureModels::ArdenBuck::pSat
|
|||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::ArdenBuck::pSatPrime
|
Foam::saturationModels::ArdenBuck::pSatPrime
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -98,7 +98,7 @@ Foam::saturationPressureModels::ArdenBuck::pSatPrime
|
|||||||
|
|
||||||
|
|
||||||
Foam::tmp<Foam::volScalarField>
|
Foam::tmp<Foam::volScalarField>
|
||||||
Foam::saturationPressureModels::ArdenBuck::lnPSat
|
Foam::saturationModels::ArdenBuck::lnPSat
|
||||||
(
|
(
|
||||||
const volScalarField& T
|
const volScalarField& T
|
||||||
) const
|
) const
|
||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::saturationPressureModels::ArdenBuck
|
Foam::saturationModels::ArdenBuck
|
||||||
|
|
||||||
Description
|
Description
|
||||||
ArdenBuck equation for the vapour pressure of steam.
|
ArdenBuck equation for the vapour pressure of steam.
|
||||||
@ -35,13 +35,13 @@ SourceFiles
|
|||||||
#ifndef ArdenBuck_H
|
#ifndef ArdenBuck_H
|
||||||
#define ArdenBuck_H
|
#define ArdenBuck_H
|
||||||
|
|
||||||
#include "saturationPressureModel.H"
|
#include "saturationModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
namespace saturationPressureModels
|
namespace saturationModels
|
||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
@ -50,7 +50,7 @@ namespace saturationPressureModels
|
|||||||
|
|
||||||
class ArdenBuck
|
class ArdenBuck
|
||||||
:
|
:
|
||||||
public saturationPressureModel
|
public saturationModel
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace saturationPressureModels
|
} // End namespace saturationModels
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -23,29 +23,29 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "saturationPressureModel.H"
|
#include "saturationModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Selector * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Selector * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::autoPtr<Foam::saturationPressureModel> Foam::saturationPressureModel::New
|
Foam::autoPtr<Foam::saturationModel> Foam::saturationModel::New
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
word saturationPressureModelType(dict.lookup("type"));
|
word saturationModelType(dict.lookup("type"));
|
||||||
|
|
||||||
Info<< "Selecting saturationPressureModel: "
|
Info<< "Selecting saturationModel: "
|
||||||
<< saturationPressureModelType << endl;
|
<< saturationModelType << endl;
|
||||||
|
|
||||||
dictionaryConstructorTable::iterator cstrIter =
|
dictionaryConstructorTable::iterator cstrIter =
|
||||||
dictionaryConstructorTablePtr_->find(saturationPressureModelType);
|
dictionaryConstructorTablePtr_->find(saturationModelType);
|
||||||
|
|
||||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||||
{
|
{
|
||||||
FatalErrorIn("saturationPressureModel::New")
|
FatalErrorIn("saturationModel::New")
|
||||||
<< "Unknown saturationPressureModelType type "
|
<< "Unknown saturationModelType type "
|
||||||
<< saturationPressureModelType << endl << endl
|
<< saturationModelType << endl << endl
|
||||||
<< "Valid saturationPressureModel types are : " << endl
|
<< "Valid saturationModel types are : " << endl
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
@ -23,26 +23,26 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "saturationPressureModel.H"
|
#include "saturationModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(saturationPressureModel, 0);
|
defineTypeNameAndDebug(saturationModel, 0);
|
||||||
defineRunTimeSelectionTable(saturationPressureModel, dictionary);
|
defineRunTimeSelectionTable(saturationModel, dictionary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModel::saturationPressureModel()
|
Foam::saturationModel::saturationModel()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::saturationPressureModel::~saturationPressureModel()
|
Foam::saturationModel::~saturationModel()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -22,18 +22,18 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::saturationPressureModel
|
Foam::saturationModel
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
saturationPressureModel.C
|
saturationModel.C
|
||||||
newSaturationPressureModel.C
|
newSaturationPressureModel.C
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef saturationPressureModel_H
|
#ifndef saturationModel_H
|
||||||
#define saturationPressureModel_H
|
#define saturationModel_H
|
||||||
|
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
@ -45,31 +45,31 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class saturationPressureModel Declaration
|
Class saturationModel Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class saturationPressureModel
|
class saturationModel
|
||||||
{
|
{
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- Disallow default bitwise copy construct
|
||||||
saturationPressureModel(const saturationPressureModel&);
|
saturationModel(const saturationModel&);
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- Disallow default bitwise assignment
|
||||||
void operator=(const saturationPressureModel&);
|
void operator=(const saturationModel&);
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("saturationPressureModel");
|
TypeName("saturationModel");
|
||||||
|
|
||||||
|
|
||||||
//- Declare runtime construction
|
//- Declare runtime construction
|
||||||
declareRunTimeSelectionTable
|
declareRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
autoPtr,
|
autoPtr,
|
||||||
saturationPressureModel,
|
saturationModel,
|
||||||
dictionary,
|
dictionary,
|
||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
@ -81,17 +81,17 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct null
|
//- Construct null
|
||||||
saturationPressureModel();
|
saturationModel();
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
//- Select null constructed
|
//- Select null constructed
|
||||||
static autoPtr<saturationPressureModel> New(const dictionary& dict);
|
static autoPtr<saturationModel> New(const dictionary& dict);
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~saturationPressureModel();
|
virtual ~saturationModel();
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
Reference in New Issue
Block a user