/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 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 . Class Foam::fixedRhoFvPatchScalarField Group grpInletBoundaryConditions Description Foam::fixedRhoFvPatchScalarField This boundary condition provides a fixed density inlet condition for compressible solvers, where the density of calculated using: \f[ \rho = \psi p \f] where \vartable p | pressure [Pa] \rho | density [kg/m3] \endvartable Usage \table Property | Description | Required | Default value p | Pressure field name | no | p psi | Compressibility field name | no | thermo:psi \endtable Example of the boundary condition specification: \verbatim { type fixedRho; } \endverbatim SourceFiles fixedRhoFvPatchScalarField.C \*---------------------------------------------------------------------------*/ #ifndef fixedRhoFvPatchScalargpuField_H #define fixedRhoFvPatchScalargpuField_H #include "fixedValueFvPatchgpuFields.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { /*---------------------------------------------------------------------------*\ Class fixedRhoFvPatchScalarField Declaration \*---------------------------------------------------------------------------*/ class fixedRhoFvPatchScalargpuField : public fixedValueFvPatchScalargpuField { private: // Private data //- Pressure field name, default = "p" word pName_; //- Compressibility field name, default = "thermo:psi" word psiName_; public: //- Runtime type information TypeName("fixedRho"); // Constructors //- Construct from patch and internal field fixedRhoFvPatchScalargpuField ( const gpufvPatch&, const DimensionedgpuField& ); //- Construct from patch, internal field and dictionary fixedRhoFvPatchScalargpuField ( const gpufvPatch&, const DimensionedgpuField&, const dictionary& ); //- Construct by mapping given fixedRhoFvPatchScalarField // onto a new patch fixedRhoFvPatchScalargpuField ( const fixedRhoFvPatchScalargpuField&, const gpufvPatch&, const DimensionedgpuField&, const fvPatchgpuFieldMapper& ); //- Construct as copy fixedRhoFvPatchScalargpuField ( const fixedRhoFvPatchScalargpuField& ); //- Construct and return a clone virtual tmp clone() const { return tmp ( new fixedRhoFvPatchScalargpuField(*this) ); } //- Construct as copy setting internal field reference fixedRhoFvPatchScalargpuField ( const fixedRhoFvPatchScalargpuField&, const DimensionedgpuField& ); //- Construct and return a clone setting internal field reference virtual tmp clone ( const DimensionedgpuField& iF ) const { return tmp ( new fixedRhoFvPatchScalargpuField(*this, iF) ); } // Member functions // Evaluation functions //- Update the coefficients associated with the patch field virtual void updateCoeffs(); //- Write virtual void write(Ostream&) const; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //