mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
1) rPolynomial Eq of State 2) externalForce and softWall in rigidBodyDynamics INT: Several minor bug fixes plus
110 lines
2.9 KiB
C++
110 lines
2.9 KiB
C++
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | www.openfoam.com
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Copyright (C) 2011-2015 OpenFOAM Foundation
|
|
-------------------------------------------------------------------------------
|
|
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/>.
|
|
|
|
Class
|
|
Foam::compressibilityModels::Wallis
|
|
|
|
Description
|
|
Wallis compressibility model.
|
|
|
|
SourceFiles
|
|
Wallis.C
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#ifndef Wallis_H
|
|
#define Wallis_H
|
|
|
|
#include "barotropicCompressibilityModel.H"
|
|
#include "dimensionedScalar.H"
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
namespace Foam
|
|
{
|
|
namespace compressibilityModels
|
|
{
|
|
|
|
/*---------------------------------------------------------------------------*\
|
|
Class Wallis Declaration
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
class Wallis
|
|
:
|
|
public barotropicCompressibilityModel
|
|
{
|
|
// Private data
|
|
|
|
dimensionedScalar pSat_;
|
|
dimensionedScalar psiv_;
|
|
dimensionedScalar psil_;
|
|
|
|
dimensionedScalar rhovSat_;
|
|
dimensionedScalar rholSat_;
|
|
|
|
|
|
public:
|
|
|
|
//- Runtime type information
|
|
TypeName("Wallis");
|
|
|
|
|
|
// Constructors
|
|
|
|
//- Construct from components
|
|
Wallis
|
|
(
|
|
const dictionary& compressibilityProperties,
|
|
const volScalarField& gamma,
|
|
const word& psiName = "psi"
|
|
);
|
|
|
|
|
|
//- Destructor
|
|
~Wallis()
|
|
{}
|
|
|
|
|
|
// Member Functions
|
|
|
|
//- Correct the Wallis compressibility
|
|
void correct();
|
|
|
|
//- Read transportProperties dictionary
|
|
bool read(const dictionary& compressibilityProperties);
|
|
};
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
} // End namespace compressibilityModels
|
|
} // End namespace Foam
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
#endif
|
|
|
|
// ************************************************************************* //
|