1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::XiModels::algebraic
29 Simple algebraic model for Xi based on Gulders correlation
30 with a linear correction function to give a plausible profile for Xi.
35 \*---------------------------------------------------------------------------*/
41 #include "XiEqModel.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class algebraic Declaration
53 \*---------------------------------------------------------------------------*/
63 autoPtr<XiEqModel> XiEqModel_;
64 autoPtr<XiGModel> XiGModel_;
67 // Private Member Functions
69 //- Disallow copy construct
70 algebraic(const algebraic&);
72 //- Disallow default bitwise assignment
73 void operator=(const algebraic&);
78 //- Runtime type information
79 TypeName("algebraic");
84 //- Construct from components
87 const dictionary& XiProperties,
88 const hhuCombustionThermo& thermo,
89 const compressible::RASModel& turbulence,
90 const volScalarField& Su,
91 const volScalarField& rho,
92 const volScalarField& b,
93 const surfaceScalarField& phi
104 //- Return the flame diffusivity
105 virtual tmp<volScalarField> Db() const;
107 //- Correct the flame-wrinking Xi
108 virtual void correct();
110 //- Update properties from given dictionary
111 virtual bool read(const dictionary& XiProperties);
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 } // End namespace XiModels
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 // ************************************************************************* //