constAnIsoSolidTransportI.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 -------------------------------------------------------------------------------
10 License
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 
26 \*---------------------------------------------------------------------------*/
27 
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29 
30 template<class Thermo>
32 (
33  const Thermo& t,
34  const vector kappa
35 )
36 :
37  Thermo(t),
38  kappa_(kappa)
39 {}
40 
41 
42 template<class Thermo>
44 (
45  const word& name,
46  const constAnIsoSolidTransport& ct
47 )
48 :
49  Thermo(name, ct),
50  kappa_(ct.kappa_)
51 {}
52 
53 
54 template<class Thermo>
57 (
58  const dictionary& dict
59 )
60 {
62 }
63 
64 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
65 
66 template<class Thermo>
68 kappa(const scalar p, const scalar T) const
69 {
70  return mag(kappa_);
71 }
72 
73 template<class Thermo>
75 Kappa(const scalar p, const scalar T) const
76 {
77  return kappa_;
78 }
79 
80 
81 template<class Thermo>
83 mu(const scalar p, const scalar T) const
84 {
86  return 0;
87 }
88 
89 
90 template<class Thermo>
92 alphah(const scalar p, const scalar T) const
93 {
94  return kappa_/this->Cp(p, T);
95 }
96 
97 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
98 
99 template<class Thermo>
101 (
103 )
104 {
105  scalar Y1 = this->Y();
106 
107  Y1 /= this->Y();
108  scalar Y2 = ct.Y()/this->Y();
109 
110  kappa_ = Y1*kappa_ + Y2*ct.kappa_;
111 }
112 
113 
114 // * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
115 
116 
117 template<class Thermo>
118 inline Foam::constAnIsoSolidTransport<Thermo> Foam::operator*
119 (
120  const scalar s,
122 )
123 {
125  (
126  s*static_cast<const Thermo&>(ct),
127  ct.kappa_
128  );
129 }
130 
131 // ************************************************************************* //
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
s
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Definition: gmvOutputSpray.H:25
Foam::constAnIsoSolidTransport
Constant properties Transport package. Templated into a given Thermodynamics package (needed for ther...
Definition: constAnIsoSolidTransport.H:50
Foam::constant::electromagnetic::kappa
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:517
Foam::constAnIsoSolidTransport::alphah
vector alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
Definition: constAnIsoSolidTransportI.H:92
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::constAnIsoSolidTransport::New
static autoPtr< constAnIsoSolidTransport > New(const dictionary &dict)
Definition: constAnIsoSolidTransportI.H:57
Foam::vector
Vector< scalar > vector
A scalar version of the templated Vector.
Definition: vector.H:51
Y
PtrList< volScalarField > & Y
Definition: createFieldRefs.H:7
Foam::constAnIsoSolidTransport::mu
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
Definition: constAnIsoSolidTransportI.H:83
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::constAnIsoSolidTransport::Kappa
vector Kappa(const scalar p, const scalar T) const
Un-isotropic thermal conductivity [W/mK].
Definition: constAnIsoSolidTransportI.H:75
Foam::Vector< scalar >
Foam::constAnIsoSolidTransport::kappa
scalar kappa(const scalar p, const scalar T) const
Isotropic thermal conductivity [W/mK].
Definition: constAnIsoSolidTransportI.H:68
Foam::mag
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Cp
const volScalarField & Cp
Definition: EEqn.H:7
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59