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
6247f6a5
Commit
6247f6a5
authored
Dec 18, 2014
by
Henry
Browse files
Correct child parcel properties
Resolves bug-report
http://www.openfoam.org/mantisbt/view.php?id=1287
parent
38b60d68
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/spray/parcels/Templates/SprayParcel/SprayParcel.C
View file @
6247f6a5
...
...
@@ -253,7 +253,7 @@ void Foam::SprayParcel<ParcelType>::calcBreakup
const
vector
g
=
td
.
cloud
().
g
().
value
();
scalar
m
assChild
=
0
.
0
;
scalar
parcelM
assChild
=
0
.
0
;
scalar
dChild
=
0
.
0
;
if
(
...
...
@@ -279,24 +279,26 @@ void Foam::SprayParcel<ParcelType>::calcBreakup
Urmag
,
this
->
tMom
(),
dChild
,
m
assChild
parcelM
assChild
)
)
{
scalar
Re
=
rhoAv
*
Urmag
*
dChild
/
muAv
;
this
->
mass0
()
-=
massChild
;
// Add child parcel as copy of parent
SprayParcel
<
ParcelType
>*
child
=
new
SprayParcel
<
ParcelType
>
(
*
this
);
child
->
mass0
()
=
massChild
;
child
->
d
()
=
dChild
;
child
->
nParticle
()
=
massChild
/
(
this
->
rho
()
*
this
->
volume
(
dChild
));
child
->
d0
()
=
dChild
;
const
scalar
massChild
=
child
->
mass
();
child
->
mass0
()
=
massChild
;
child
->
nParticle
()
=
parcelMassChild
/
massChild
;
const
forceSuSp
Fcp
=
forces
.
calcCoupled
(
*
child
,
dt
,
massChild
,
Re
,
muAv
);
const
forceSuSp
Fncp
=
forces
.
calcNonCoupled
(
*
child
,
dt
,
massChild
,
Re
,
muAv
);
child
->
age
()
=
0
.
0
;
child
->
liquidCore
()
=
0
.
0
;
child
->
KHindex
()
=
1
.
0
;
child
->
y
()
=
td
.
cloud
().
breakup
().
y0
();
...
...
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