C2H5OH.H - OpenFOAM

OpenFOAM: API Guide  v2112 The open source CFD toolbox
C2H5OH.H Go to the documentation of this file. 1/*---------------------------------------------------------------------------*\ 2 ========= | 3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 \\ / O peration | 5 \\ / A nd | www.openfoam.com 6 \\/ M anipulation | 7------------------------------------------------------------------------------- 8 Copyright (C) 2011-2017 OpenFOAM Foundation 9------------------------------------------------------------------------------- 10License 11 This file is part of OpenFOAM. 12 13 OpenFOAM is free software: you can redistribute it and/or modify it 14 under the terms of the GNU General Public License as published by 15 the Free Software Foundation, either version 3 of the License, or 16 (at your option) any later version. 17 18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 21 for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. 25 26Class 27 Foam::C2H5OH 28 29Description 30 ethanol 31 32SourceFiles 33 C2H5OH.C 34 35\*---------------------------------------------------------------------------*/ 36 37#ifndef C2H5OH_H 38#define C2H5OH_H 39 40#include "liquidProperties.H" 41#include "NSRDSfunc0.H" 42#include "NSRDSfunc1.H" 43#include "NSRDSfunc2.H" 44#include "NSRDSfunc3.H" 45#include "NSRDSfunc4.H" 46#include "NSRDSfunc5.H" 47#include "NSRDSfunc6.H" 48#include "NSRDSfunc7.H" 49#include "NSRDSfunc14.H" 50#include "APIdiffCoefFunc.H" 51 52// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 53 54namespace Foam 55{ 56 57/*---------------------------------------------------------------------------*\ 58 Class C2H5OH Declaration 59\*---------------------------------------------------------------------------*/ 60 61class C2H5OH 62: 63 public liquidProperties 64{ 65 // Private data 66 67 NSRDSfunc5 rho_; 68 NSRDSfunc1 pv_; 69 NSRDSfunc6 hl_; 70 NSRDSfunc0 Cp_; 71 NSRDSfunc0 h_; 72 NSRDSfunc7 Cpg_; 73 NSRDSfunc4 B_; 74 NSRDSfunc1 mu_; 75 NSRDSfunc2 mug_; 76 NSRDSfunc0 kappa_; 77 NSRDSfunc2 kappag_; 78 NSRDSfunc0 sigma_; 79 APIdiffCoefFunc D_; 80 81 82public: 83 84 friend class liquidProperties; 85 86 //- Runtime type information 87 TypeName("C2H5OH"); 88 89 90 // Constructors 91 92 //- Construct null 93 C2H5OH(); 94 95 //- Construct from components 96 C2H5OH 97 ( 98 const liquidProperties& l, 99 const NSRDSfunc5& density, 100 const NSRDSfunc1& vapourPressure, 101 const NSRDSfunc6& heatOfVapourisation, 102 const NSRDSfunc0& heatCapacity, 103 const NSRDSfunc0& enthalpy, 104 const NSRDSfunc7& idealGasHeatCapacity, 105 const NSRDSfunc4& secondVirialCoeff, 106 const NSRDSfunc1& dynamicViscosity, 107 const NSRDSfunc2& vapourDynamicViscosity, 108 const NSRDSfunc0& thermalConductivity, 109 const NSRDSfunc2& vapourThermalConductivity, 110 const NSRDSfunc0& surfaceTension, 111 const APIdiffCoefFunc& vapourDiffussivity 112 ); 113 114 //- Construct from dictionary 115 C2H5OH(const dictionary& dict); 116 117 //- Construct and return clone 118 virtual autoPtr<liquidProperties> clone() const 119{ 120 return autoPtr<liquidProperties>::NewFrom<C2H5OH>(*this); 121 } 122 123 124 // Member Functions 125 126 //- Liquid density [kg/m^3] 127 inline scalar rho(scalar p, scalar T) const; 128 129 //- Vapour pressure [Pa] 130 inline scalar pv(scalar p, scalar T) const; 131 132 //- Heat of vapourisation [J/kg] 133 inline scalar hl(scalar p, scalar T) const; 134 135 //- Liquid heat capacity [J/(kg K)] 136 inline scalar Cp(scalar p, scalar T) const; 137 138 //- Liquid Enthalpy [J/(kg)] 139 inline scalar h(scalar p, scalar T) const; 140 141 //- Ideal gas heat capacity [J/(kg K)] 142 inline scalar Cpg(scalar p, scalar T) const; 143 144 //- Second Virial Coefficient [m^3/kg] 145 inline scalar B(scalar p, scalar T) const; 146 147 //- Liquid viscosity [Pa s] 148 inline scalar mu(scalar p, scalar T) const; 149 150 //- Vapour viscosity [Pa s] 151 inline scalar mug(scalar p, scalar T) const; 152 153 //- Liquid thermal conductivity [W/(m K)] 154 inline scalar kappa(scalar p, scalar T) const; 155 156 //- Vapour thermal conductivity [W/(m K)] 157 inline scalar kappag(scalar p, scalar T) const; 158 159 //- Surface tension [N/m] 160 inline scalar sigma(scalar p, scalar T) const; 161 162 //- Vapour diffusivity [m2/s] 163 inline scalar D(scalar p, scalar T) const; 164 165 //- Vapour diffusivity [m2/s] with specified binary pair 166 inline scalar D(scalar p, scalar T, scalar Wb) const; 167 168 169 // I-O 170 171 //- Write the function coefficients 172 void writeData(Ostream& os) const; 173 174 //- Ostream Operator 175 friend Ostream& operator<<(Ostream& os, const C2H5OH& l); 176}; 177 178 179Ostream& operator<<(Ostream& os, const C2H5OH& l); 180 181 182// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 183 184} // End namespace Foam 185 186// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 187 188#include "C2H5OHI.H" 189 190// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 191 192#endif 193 194// ************************************************************************* // APIdiffCoefFunc.H Bstatic const Foam::dimensionedScalar B("", Foam::dimless, 18.678) C2H5OHI.H NSRDSfunc0.H NSRDSfunc14.H NSRDSfunc1.H NSRDSfunc2.H NSRDSfunc3.H NSRDSfunc4.H NSRDSfunc5.H NSRDSfunc6.H NSRDSfunc7.H Foam::APIdiffCoefFuncAPI function for vapour mass diffusivity.Definition: APIdiffCoefFunc.H:56 Foam::C2H5OHethanolDefinition: C2H5OH.H:63 Foam::C2H5OH::Cpgscalar Cpg(scalar p, scalar T) constIdeal gas heat capacity [J/(kg K)].Definition: C2H5OHI.H:58 Foam::C2H5OH::writeDatavoid writeData(Ostream &os) constWrite the function coefficients.Definition: C2H5OH.C:142 Foam::C2H5OH::clonevirtual autoPtr< liquidProperties > clone() constConstruct and return clone.Definition: C2H5OH.H:117 Foam::C2H5OH::operator<<friend Ostream & operator<<(Ostream &os, const C2H5OH &l)Ostream Operator. Foam::C2H5OH::TypeNameTypeName("C2H5OH")Runtime type information. Foam::C2H5OH::kappascalar kappa(scalar p, scalar T) constLiquid thermal conductivity [W/(m K)].Definition: C2H5OHI.H:82 Foam::C2H5OH::mugscalar mug(scalar p, scalar T) constVapour viscosity [Pa s].Definition: C2H5OHI.H:76 Foam::C2H5OH::pvscalar pv(scalar p, scalar T) constVapour pressure [Pa].Definition: C2H5OHI.H:34 Foam::C2H5OH::C2H5OHC2H5OH()Construct null.Definition: C2H5OH.C:42 Foam::C2H5OH::hlscalar hl(scalar p, scalar T) constHeat of vapourisation [J/kg].Definition: C2H5OHI.H:40 Foam::C2H5OH::kappagscalar kappag(scalar p, scalar T) constVapour thermal conductivity [W/(m K)].Definition: C2H5OHI.H:88 Foam::NSRDSfunc0NSRDS function number 100.Definition: NSRDSfunc0.H:72 Foam::NSRDSfunc1NSRDS function number 101.Definition: NSRDSfunc1.H:72 Foam::NSRDSfunc2NSRDS function number 102.Definition: NSRDSfunc2.H:72 Foam::NSRDSfunc4NSRDS function number 104.Definition: NSRDSfunc4.H:72 Foam::NSRDSfunc5NSRDS function number 105.Definition: NSRDSfunc5.H:72 Foam::NSRDSfunc6NSRDS function number 106.Definition: NSRDSfunc6.H:72 Foam::NSRDSfunc7NSRDS-AICHE function number 107.Definition: NSRDSfunc7.H:72 Foam::OstreamAn Ostream is an abstract base class for all output systems (streams, files, token lists,...Definition: Ostream.H:62 Foam::autoPtrPointer management similar to std::unique_ptr, with some additional methods and type checking.Definition: autoPtr.H:66 Foam::dictionaryA list of keyword definitions, which are a keyword followed by a number of values (eg,...Definition: dictionary.H:126 Foam::liquidPropertiesThe thermophysical properties of a liquid.Definition: liquidProperties.H:54 pvolScalarField & pDefinition: createFieldRefs.H:8 Tconst volScalarField & TDefinition: createFieldRefs.H:2 muconst volScalarField & muDefinition: createFieldRefs.H:4 Cpconst volScalarField & CpDefinition: EEqn.H:7 osOBJstream os(runTime.globalPath()/outputName) liquidProperties.H FoamNamespace for OpenFOAM.Definition: atmBoundaryLayer.C:34 Foam::operator<<Ostream & operator<<(Ostream &, const boundaryPatch &p)Write boundaryPatch as dictionary entries (without surrounding braces)Definition: boundaryPatch.C:83 rhorhoDefinition: readInitialConditions.H:88 dictdictionary dictDefinition: searchingEngine.H:14 hvolScalarField & hDefinition: setRegionSolidFields.H:33 Dconst dimensionedScalar & DDefinition: solveBulkSurfactant.H:4 TypeName#define TypeName(TypeNameString)Declare a ClassName() with extra virtual type info.Definition: typeInfo.H:73
  • src
  • thermophysicalModels
  • thermophysicalProperties
  • liquidProperties
  • C2H5OH
  • C2H5OH.H
  • Generated by doxygen 1.9.5
  • OPENFOAM® is a registered trademark of OpenCFD Ltd.

Từ khóa » C2h5oh H