Loading...
Searching...
No Matches
setRegionSolidFields.H
Go to the documentation of this file.
1solidThermo& thermo = thermos[i];
2
3tmp<volScalarField> trho = thermo.rho();
4const volScalarField& rho = trho();
5
6tmp<volScalarField> tcp = thermo.Cp();
7const volScalarField& cp = tcp();
8
9tmp<volSymmTensorField> taniAlpha;
10if (!thermo.isotropic())
11{
12 volSymmTensorField& aniAlpha = aniAlphas[i];
13 tmp<volVectorField> tkappaByCp = thermo.Kappa()/cp;
14 const coordinateSystem& coodSys = coordinates[i];
15
16 aniAlpha.primitiveFieldRef() =
17 coodSys.transformPrincipal
18 (
19 mesh.cellCentres(),
20 tkappaByCp()
21 );
22
23 aniAlpha.correctBoundaryConditions();
24
25 taniAlpha = tmp<volSymmTensorField>
26 (
27 new volSymmTensorField(aniAlpha)
28 );
29}
30
31
32volScalarField& h = thermo.he();
33
34const volScalarField& betav = betavSolid[i];
35
36fv::options& fvOptions = solidHeatSources[i];
fv::options & fvOptions
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
dynamicFvMesh & mesh
PtrList< coordinateSystem > coordinates(solidRegions.size())
PtrList< solidThermo > thermos(solidRegions.size())
PtrList< volSymmTensorField > aniAlphas(solidRegions.size())
PtrList< volScalarField > betavSolid(solidRegions.size())
PtrList< fv::options > solidHeatSources(solidRegions.size())
tmp< volScalarField > tcp
tmp< volScalarField > trho
volScalarField & h
tmp< volSymmTensorField > taniAlpha
const volScalarField & betav
const volScalarField & cp