1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2011 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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::XiModels::algebraic
28 Simple algebraic model for Xi based on Gulders correlation
29 with a linear correction function to give a plausible profile for Xi.
30 See report TR/HGW/10 for details on the Weller two equations model.
31 See \link XiModel.H \endlink for more details on flame wrinkling modelling.
36 \*---------------------------------------------------------------------------*/
42 #include "XiEqModel.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 /*---------------------------------------------------------------------------*\
53 Class algebraic Declaration
54 \*---------------------------------------------------------------------------*/
64 autoPtr<XiEqModel> XiEqModel_;
65 autoPtr<XiGModel> XiGModel_;
68 // Private Member Functions
70 //- Disallow copy construct
71 algebraic(const algebraic&);
73 //- Disallow default bitwise assignment
74 void operator=(const algebraic&);
79 //- Runtime type information
80 TypeName("algebraic");
85 //- Construct from components
88 const dictionary& XiProperties,
89 const hhuCombustionThermo& thermo,
90 const compressible::RASModel& turbulence,
91 const volScalarField& Su,
92 const volScalarField& rho,
93 const volScalarField& b,
94 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);
113 //- Write fields of the XiEq model
114 virtual void writeFields()
116 XiEqModel_().writeFields();
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 } // End namespace XiModels
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 // ************************************************************************* //