initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / combustion / PDRFoam / XiModels / transport / transport.H
blob71db2b7e57ff2fb641fd85f63d36d186d6ae6b58
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::XiModels::transport
28 Description
29     Simple transport model for Xi based on Gulders correlation
30     with a linear correction function to give a plausible profile for Xi.
31     See report TR/HGW/10 for details on the Weller two equations model.
32     See \link XiModel.H \endlink for more details on flame wrinkling modelling.
34 SourceFiles
35     transport.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef transport_H
40 #define transport_H
42 #include "XiModel.H"
43 #include "XiEqModel.H"
44 #include "XiGModel.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 namespace Foam
50 namespace XiModels
53 /*---------------------------------------------------------------------------*\
54                           Class transport Declaration
55 \*---------------------------------------------------------------------------*/
57 class transport
59     public XiModel
61     // Private data
63         scalar XiShapeCoef;
65         autoPtr<XiEqModel> XiEqModel_;
66         autoPtr<XiGModel> XiGModel_;
69     // Private Member Functions
71         //- Disallow copy construct
72         transport(const transport&);
74         //- Disallow default bitwise assignment
75         void operator=(const transport&);
78 public:
80     //- Runtime type information
81     TypeName("transport");
84     // Constructors
86         //- Construct from components
87         transport
88         (
89             const dictionary& XiProperties,
90             const hhuCombustionThermo& thermo,
91             const compressible::RASModel& turbulence,
92             const volScalarField& Su,
93             const volScalarField& rho,
94             const volScalarField& b,
95             const surfaceScalarField& phi
96         );
99     // Destructor
101         virtual ~transport();
104     // Member Functions
106         //- Return the flame diffusivity
107         virtual tmp<volScalarField> Db() const;
109         //- Add Xi to the multivariateSurfaceInterpolationScheme table
110         virtual void addXi
111         (
112             multivariateSurfaceInterpolationScheme<scalar>::fieldTable& fields
113         )
114         {
115             fields.add(Xi_);
116         }
118         //- Correct the flame-wrinking Xi
119         virtual void correct()
120         {
121             notImplemented("transport::correct()");
122         }
124         //- Correct the flame-wrinking Xi using the given convection scheme
125         virtual void correct(const fv::convectionScheme<scalar>& mvConvection);
127         //- Update properties from given dictionary
128         virtual bool read(const dictionary& XiProperties);
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace XiModels
135 } // End namespace Foam
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 #endif
141 // ************************************************************************* //