FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

noCombustion.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 \*---------------------------------------------------------------------------*/
00025 
00026 #include "noCombustion.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00030 
00031 namespace Foam
00032 {
00033 namespace combustionModels
00034 {
00035     defineTypeNameAndDebug(noCombustion, 0);
00036     addToRunTimeSelectionTable
00037     (
00038         combustionModel,
00039         noCombustion,
00040         dictionary
00041     );
00042 };
00043 };
00044 
00045 
00046 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00047 
00048 Foam::combustionModels::noCombustion::noCombustion
00049 (
00050     const dictionary& combustionProperties,
00051     const hsCombustionThermo& thermo,
00052     const compressible::turbulenceModel& turbulence,
00053     const surfaceScalarField& phi,
00054     const volScalarField& rho
00055 )
00056 :
00057     combustionModel(combustionProperties, thermo, turbulence, phi, rho)
00058 {}
00059 
00060 
00061 // * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * * //
00062 
00063 Foam::combustionModels::noCombustion::~noCombustion()
00064 {}
00065 
00066 
00067 void Foam::combustionModels::noCombustion::correct()
00068 {}
00069 
00070 
00071 Foam::tmp<Foam::volScalarField>
00072 Foam::combustionModels::noCombustion::wFuelNorm() const
00073 {
00074     return tmp<Foam::volScalarField>
00075     (
00076         new volScalarField
00077         (
00078             IOobject
00079             (
00080                 "wFuelNorm",
00081                 mesh_.time().timeName(),
00082                 mesh_,
00083                 IOobject::NO_READ,
00084                 IOobject::NO_WRITE
00085             ),
00086             mesh_,
00087             dimensionedScalar("wFuelNorm", dimMass/dimTime/pow3(dimLength), 0.0)
00088         )
00089     );
00090 }
00091 
00092 
00093 bool Foam::combustionModels::noCombustion::read
00094 (
00095     const dictionary& combustionProperties
00096 )
00097 {
00098     return combustionModel::read(combustionProperties);
00099 }
00100 
00101 
00102 // ************************************************************************* //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines