Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
7d61b870
Commit
7d61b870
authored
Dec 07, 2016
by
Andrew Heather
Browse files
BUG: injectedParticle/Cloud updates
parent
87056a23
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/basic/injectedParticle/injectedParticle.C
View file @
7d61b870
...
...
@@ -33,4 +33,30 @@ namespace Foam
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam
::
injectedParticle
::
injectedParticle
(
const
injectedParticle
&
p
)
:
particle
(
p
),
tag_
(
p
.
tag_
),
soi_
(
p
.
soi_
),
d_
(
p
.
d_
),
U_
(
p
.
U_
)
{}
Foam
::
injectedParticle
::
injectedParticle
(
const
injectedParticle
&
p
,
const
polyMesh
&
mesh
)
:
particle
(
p
,
mesh
),
tag_
(
p
.
tag_
),
soi_
(
p
.
soi_
),
d_
(
p
.
d_
),
U_
(
p
.
U_
)
{}
// ************************************************************************* //
src/lagrangian/basic/injectedParticle/injectedParticleCloud.C
View file @
7d61b870
...
...
@@ -48,6 +48,16 @@ Foam::injectedParticleCloud::injectedParticleCloud
}
Foam
::
injectedParticleCloud
::
injectedParticleCloud
(
const
injectedParticleCloud
&
c
,
const
word
&
cloudName
)
:
Cloud
<
injectedParticle
>
(
c
.
pMesh
(),
cloudName
,
c
)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam
::
injectedParticleCloud
::~
injectedParticleCloud
()
...
...
src/lagrangian/basic/injectedParticle/injectedParticleCloud.H
View file @
7d61b870
...
...
@@ -69,7 +69,7 @@ public:
// Constructors
//-
//-
Construct from mesh and cloud name
injectedParticleCloud
(
const
polyMesh
&
mesh
,
...
...
@@ -77,6 +77,18 @@ public:
const
bool
readFields
=
true
);
//- Copy constructor with new name
injectedParticleCloud
(
const
injectedParticleCloud
&
c
,
const
word
&
name
);
//- Construct and return clone based on (this) with new name
virtual
autoPtr
<
injectedParticleCloud
>
clone
(
const
word
&
name
)
const
{
return
autoPtr
<
injectedParticleCloud
>
(
new
injectedParticleCloud
(
*
this
,
name
)
);
}
//- Destructor
virtual
~
injectedParticleCloud
();
...
...
src/lagrangian/basic/injectedParticle/injectedParticleIO.C
View file @
7d61b870
...
...
@@ -202,7 +202,7 @@ Foam::Ostream& Foam::operator<<
os
<<
static_cast
<
const
particle
&>
(
p
);
os
.
write
(
reinterpret_cast
<
const
char
*>
(
&
p
.
soi
_
),
reinterpret_cast
<
const
char
*>
(
&
p
.
tag
_
),
injectedParticle
::
sizeofFields
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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