1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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::LiquidEvaporation
28 Liquid evaporation model
29 - uses ideal gas assumption
31 \*---------------------------------------------------------------------------*/
33 #ifndef LiquidEvaporation_H
34 #define LiquidEvaporation_H
36 #include "PhaseChangeModel.H"
37 #include "liquidMixtureProperties.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 /*---------------------------------------------------------------------------*\
44 Class LiquidEvaporation Declaration
45 \*---------------------------------------------------------------------------*/
47 template<class CloudType>
48 class LiquidEvaporation
50 public PhaseChangeModel<CloudType>
56 //- Global liquid properties data
57 const liquidMixtureProperties& liquids_;
59 //- List of active liquid names
60 List<word> activeLiquids_;
62 //- Mapping between liquid and carrier species
63 List<label> liqToCarrierMap_;
65 //- Mapping between local and global liquid species
66 List<label> liqToLiqMap_;
69 // Protected Member Functions
71 //- Sherwood number as a function of Reynolds and Schmidt numbers
72 scalar Sh(const scalar Re, const scalar Sc) const;
74 //- Calculate the carrier phase component volume fractions at cellI
75 tmp<scalarField> calcXc(const label cellI) const;
80 //- Runtime type information
81 TypeName("liquidEvaporation");
86 //- Construct from dictionary
87 LiquidEvaporation(const dictionary& dict, CloudType& cloud);
90 LiquidEvaporation(const LiquidEvaporation<CloudType>& pcm);
92 //- Construct and return a clone
93 virtual autoPtr<PhaseChangeModel<CloudType> > clone() const
95 return autoPtr<PhaseChangeModel<CloudType> >
97 new LiquidEvaporation<CloudType>(*this)
103 virtual ~LiquidEvaporation();
109 virtual void calculate
122 //- Return the enthalpy per unit mass
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 } // End namespace Foam
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
140 # include "LiquidEvaporation.C"
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 // ************************************************************************* //