Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
4ae925db
Commit
4ae925db
authored
Jan 10, 2011
by
Andrew Heather
Browse files
ENH: Updated particle surface thermo props
parent
a843d76a
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/parcels/Templates/ReactingMultiphaseParcel/ReactingMultiphaseParcel.C
View file @
4ae925db
...
...
@@ -228,12 +228,12 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
// Calc surface values
// ~~~~~~~~~~~~~~~~~~~
scalar
Ts
,
rhos
,
mus
,
Pr
,
kappa
;
scalar
Ts
,
rhos
,
mus
,
Pr
s
,
kappa
s
;
ThermoParcel
<
ParcelType
>::
calcSurfaceValues
(
td
,
cellI
,
T0
,
Ts
,
rhos
,
mus
,
Pr
,
kappa
);
calcSurfaceValues
(
td
,
cellI
,
T0
,
Ts
,
rhos
,
mus
,
Pr
s
,
kappa
s
);
// Reynolds number
scalar
Re
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
scalar
Re
s
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
// Sources
...
...
@@ -273,7 +273,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
td
,
dt
,
cellI
,
Re
,
Re
s
,
Ts
,
mus
/
rhos
,
d0
,
...
...
@@ -316,7 +316,8 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
);
// Correct surface values due to emitted species
this
->
correctSurfaceValues
(
td
,
cellI
,
Ts
,
Cs
,
rhos
,
mus
,
Pr
,
kappa
);
this
->
correctSurfaceValues
(
td
,
cellI
,
Ts
,
Cs
,
rhos
,
mus
,
Prs
,
kappas
);
Res
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
// Surface reactions
...
...
@@ -374,9 +375,9 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
td
,
dt
,
cellI
,
Re
,
Pr
,
kappa
,
Re
s
,
Pr
s
,
kappa
s
,
d0
,
rho0
,
T0
,
...
...
@@ -399,7 +400,7 @@ void Foam::ReactingMultiphaseParcel<ParcelType>::calc
td
,
dt
,
cellI
,
Re
,
Re
s
,
mus
,
d0
,
U0
,
...
...
src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcel.C
View file @
4ae925db
...
...
@@ -130,8 +130,8 @@ void Foam::ReactingParcel<ParcelType>::correctSurfaceValues
const
scalarField
&
Cs
,
scalar
&
rhos
,
scalar
&
mus
,
scalar
&
Pr
,
scalar
&
kappa
scalar
&
Pr
s
,
scalar
&
kappa
s
)
{
// No correction if total concentration of emitted species is small
...
...
@@ -177,7 +177,7 @@ void Foam::ReactingParcel<ParcelType>::correctSurfaceValues
rhos
=
0
;
mus
=
0
;
kappa
=
0
;
kappa
s
=
0
;
scalar
Cps
=
0
;
scalar
sumYiSqrtW
=
0
;
scalar
sumYiCbrtW
=
0
;
...
...
@@ -190,7 +190,7 @@ void Foam::ReactingParcel<ParcelType>::correctSurfaceValues
rhos
+=
Xs
[
i
]
*
W
;
mus
+=
Ys
[
i
]
*
sqrtW
*
thermo
.
carrier
().
mu
(
i
,
T
);
kappa
+=
Ys
[
i
]
*
cbrtW
*
thermo
.
carrier
().
kappa
(
i
,
T
);
kappa
s
+=
Ys
[
i
]
*
cbrtW
*
thermo
.
carrier
().
kappa
(
i
,
T
);
Cps
+=
Xs
[
i
]
*
thermo
.
carrier
().
Cp
(
i
,
T
);
sumYiSqrtW
+=
Ys
[
i
]
*
sqrtW
;
...
...
@@ -199,8 +199,8 @@ void Foam::ReactingParcel<ParcelType>::correctSurfaceValues
rhos
*=
pc_
/
(
specie
::
RR
*
T
);
mus
/=
sumYiSqrtW
;
kappa
/=
sumYiCbrtW
;
Pr
=
Cps
*
mus
/
kappa
;
kappa
s
/=
sumYiCbrtW
;
Pr
s
=
Cps
*
mus
/
kappa
s
;
}
...
...
@@ -252,11 +252,11 @@ void Foam::ReactingParcel<ParcelType>::calc
// Calc surface values
// ~~~~~~~~~~~~~~~~~~~
scalar
Ts
,
rhos
,
mus
,
Pr
,
kappa
;
this
->
calcSurfaceValues
(
td
,
cellI
,
T0
,
Ts
,
rhos
,
mus
,
Pr
,
kappa
);
scalar
Ts
,
rhos
,
mus
,
Pr
s
,
kappa
s
;
this
->
calcSurfaceValues
(
td
,
cellI
,
T0
,
Ts
,
rhos
,
mus
,
Pr
s
,
kappa
s
);
// Reynolds number
scalar
Re
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
scalar
Re
s
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
// Sources
...
...
@@ -296,7 +296,7 @@ void Foam::ReactingParcel<ParcelType>::calc
td
,
dt
,
cellI
,
Re
,
Re
s
,
Ts
,
mus
/
rhos
,
d0
,
...
...
@@ -313,7 +313,8 @@ void Foam::ReactingParcel<ParcelType>::calc
);
// Correct surface values due to emitted species
correctSurfaceValues
(
td
,
cellI
,
Ts
,
Cs
,
rhos
,
mus
,
Pr
,
kappa
);
correctSurfaceValues
(
td
,
cellI
,
Ts
,
Cs
,
rhos
,
mus
,
Prs
,
kappas
);
Res
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
// Update particle component mass and mass fractions
scalar
mass1
=
updateMassFraction
(
mass0
,
dMassPC
,
Y_
);
...
...
@@ -330,9 +331,9 @@ void Foam::ReactingParcel<ParcelType>::calc
td
,
dt
,
cellI
,
Re
,
Pr
,
kappa
,
Re
s
,
Pr
s
,
kappa
s
,
d0
,
rho0
,
T0
,
...
...
@@ -355,7 +356,7 @@ void Foam::ReactingParcel<ParcelType>::calc
td
,
dt
,
cellI
,
Re
,
Re
s
,
mus
,
d0
,
U0
,
...
...
src/lagrangian/intermediate/parcels/Templates/ReactingParcel/ReactingParcel.H
View file @
4ae925db
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -358,8 +358,8 @@ public:
const
scalarField
&
Cs
,
scalar
&
rhos
,
scalar
&
mus
,
scalar
&
Pr
,
scalar
&
kappa
scalar
&
Pr
s
,
scalar
&
kappa
s
);
//- Update parcel properties over the time interval
...
...
src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcel.C
View file @
4ae925db
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -108,7 +108,7 @@ void Foam::ThermoParcel<ParcelType>::calcSurfaceValues
scalar
&
rhos
,
scalar
&
mus
,
scalar
&
Pr
,
scalar
&
kappa
scalar
&
kappa
s
)
const
{
// Surface temperature using two thirds rule
...
...
@@ -144,7 +144,7 @@ void Foam::ThermoParcel<ParcelType>::calcSurfaceValues
mus
=
td
.
muInterp
().
interpolate
(
this
->
position
(),
tetIs
)
/
TRatio
;
Pr
=
td
.
cloud
().
constProps
().
Pr
();
kappa
=
Cpc_
*
mus
/
Pr
;
kappa
s
=
Cpc_
*
mus
/
Pr
;
}
...
...
@@ -170,8 +170,8 @@ void Foam::ThermoParcel<ParcelType>::calc
// Calc surface values
// ~~~~~~~~~~~~~~~~~~~
scalar
Ts
,
rhos
,
mus
,
Pr
,
kappa
;
calcSurfaceValues
(
td
,
cellI
,
T0
,
Ts
,
rhos
,
mus
,
Pr
,
kappa
);
scalar
Ts
,
rhos
,
mus
,
Pr
,
kappa
s
;
calcSurfaceValues
(
td
,
cellI
,
T0
,
Ts
,
rhos
,
mus
,
Pr
,
kappa
s
);
// Reynolds number
scalar
Re
=
this
->
Re
(
U0
,
d0
,
rhos
,
mus
);
...
...
@@ -209,7 +209,7 @@ void Foam::ThermoParcel<ParcelType>::calc
cellI
,
Re
,
Pr
,
kappa
,
kappa
s
,
d0
,
rho0
,
T0
,
...
...
src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcel.H
View file @
4ae925db
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -381,7 +381,7 @@ public:
scalar
&
rhos
,
scalar
&
mus
,
scalar
&
Pr
,
scalar
&
kappa
scalar
&
kappa
s
)
const
;
//- Update parcel properties over the time interval
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment