initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / thermophysicalModels / reactionThermo / mixtures / reactingMixture / reactingMixture.C
blob0247c643dfa4cbf72007e90d98979d969ca9f44a
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 \*---------------------------------------------------------------------------*/
27 #include "reactingMixture.H"
28 #include "fvMesh.H"
30 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
32 template<class ThermoType>
33 Foam::reactingMixture<ThermoType>::reactingMixture
35     const dictionary& thermoDict,
36     const fvMesh& mesh
39     autoPtr<chemistryReader<ThermoType> >
40     (
41         chemistryReader<ThermoType>::New(thermoDict)
42     ),
43     multiComponentMixture<ThermoType>
44     (
45         thermoDict,
46         autoPtr<chemistryReader<ThermoType> >::operator()().species(),
47         autoPtr<chemistryReader<ThermoType> >::operator()().speciesThermo(),
48         mesh
49     ),
50     PtrList<Reaction<ThermoType> >
51     (
52         autoPtr<chemistryReader<ThermoType> >::operator()().reactions(),
53         this->species_
54     )
56     autoPtr<chemistryReader<ThermoType> >::clear();
60 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
62 template<class ThermoType>
63 void Foam::reactingMixture<ThermoType>::read(const dictionary& thermoDict)
67 // ************************************************************************* //