mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: basicThermo: have runtime selection table
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -33,9 +33,10 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "calc.H"
|
||||
#include "basicPsiThermo.H"
|
||||
#include "basicThermo.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
{
|
||||
bool writeResults = !args.optionFound("noWrite");
|
||||
@ -74,9 +75,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
)
|
||||
{
|
||||
// thermophysical Mach
|
||||
autoPtr<basicPsiThermo> thermo
|
||||
autoPtr<basicThermo> thermo
|
||||
(
|
||||
basicPsiThermo::New(mesh)
|
||||
basicThermo::New(mesh)
|
||||
);
|
||||
|
||||
volScalarField Cp(thermo->Cp());
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
{
|
||||
volVectorField U(Uheader, mesh);
|
||||
|
||||
autoPtr<basicPsiThermo> thermo
|
||||
autoPtr<basicThermo> thermo
|
||||
(
|
||||
basicPsiThermo::New(mesh)
|
||||
basicThermo::New(mesh)
|
||||
);
|
||||
|
||||
volScalarField Cp = thermo->Cp();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -39,7 +39,7 @@ Description
|
||||
#include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H"
|
||||
#include "incompressible/RAS/RASModel/RASModel.H"
|
||||
#include "incompressible/LES/LESModel/LESModel.H"
|
||||
#include "basicPsiThermo.H"
|
||||
#include "basicThermo.H"
|
||||
#include "compressible/RAS/RASModel/RASModel.H"
|
||||
#include "compressible/LES/LESModel/LESModel.H"
|
||||
|
||||
@ -204,7 +204,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
{
|
||||
IOdictionary RASProperties(RASPropertiesHeader);
|
||||
|
||||
autoPtr<basicPsiThermo> thermo(basicPsiThermo::New(mesh));
|
||||
autoPtr<basicThermo> thermo(basicThermo::New(mesh));
|
||||
|
||||
volScalarField rho
|
||||
(
|
||||
@ -252,7 +252,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
{
|
||||
IOdictionary LESProperties(LESPropertiesHeader);
|
||||
|
||||
autoPtr<basicPsiThermo> thermo(basicPsiThermo::New(mesh));
|
||||
autoPtr<basicThermo> thermo(basicThermo::New(mesh));
|
||||
|
||||
volScalarField rho
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user