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
0647c7df
Commit
0647c7df
authored
Nov 11, 2010
by
Andrew Heather
Browse files
ENH: Added write access to particle origId and origProc
parent
8b20d01a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/basic/Particle/Particle.H
View file @
0647c7df
...
...
@@ -517,12 +517,18 @@ public:
//- Return the fraction of time-step completed
inline
scalar
stepFraction
()
const
;
//- Return the originating processor id
//- Return
const access to
the originating processor id
inline
label
origProc
()
const
;
//- Return the particle id on originating processor
//- Return the originating processor id for manipulation
inline
label
&
origProc
();
//- Return const access to the particle id on originating processor
inline
label
origId
()
const
;
//- Return the particle id on originating processor for manipulation
inline
label
&
origId
();
// Track
...
...
src/lagrangian/basic/Particle/ParticleI.H
View file @
0647c7df
...
...
@@ -1117,6 +1117,13 @@ inline Foam::label Foam::Particle<ParticleType>::origProc() const
}
template
<
class
ParticleType
>
inline
Foam
::
label
&
Foam
::
Particle
<
ParticleType
>::
origProc
()
{
return
origProc_
;
}
template
<
class
ParticleType
>
inline
Foam
::
label
Foam
::
Particle
<
ParticleType
>::
origId
()
const
{
...
...
@@ -1124,6 +1131,13 @@ inline Foam::label Foam::Particle<ParticleType>::origId() const
}
template
<
class
ParticleType
>
inline
Foam
::
label
&
Foam
::
Particle
<
ParticleType
>::
origId
()
{
return
origId_
;
}
template
<
class
ParticleType
>
inline
bool
Foam
::
Particle
<
ParticleType
>::
softImpact
()
const
{
...
...
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