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
e9497703
Commit
e9497703
authored
Nov 12, 2013
by
andy
Browse files
ENH: lagrangian - updated injection model
parent
5d0c0287
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InjectionModel/InjectionModel.C
View file @
e9497703
...
...
@@ -586,27 +586,25 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
pPtr
->
rho
()
);
const
scalar
mParcel0
=
pPtr
->
nParticle
()
*
pPtr
->
mass
();
if
(
!
pPtr
->
move
(
td
,
dt
))
{
massAdded
+=
mParcel0
;
delete
pPtr
;
}
else
if
(
pPtr
->
nParticle
()
>=
1
.
0
)
{
if
(
pPtr
->
nParticle
()
>=
1
.
0
)
parcelsAdded
++
;
massAdded
+=
pPtr
->
nParticle
()
*
pPtr
->
mass
();
if
(
pPtr
->
move
(
td
,
dt
))
{
td
.
cloud
().
addParticle
(
pPtr
);
massAdded
+=
mParcel0
;
parcelsAdded
++
;
}
else
{
delayedVolume
+=
pPtr
->
nParticle
()
*
pPtr
->
volume
();
delete
pPtr
;
}
}
else
{
delayedVolume
+=
pPtr
->
nParticle
()
*
pPtr
->
volume
();
delete
pPtr
;
}
}
}
}
...
...
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