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
7037f397
Commit
7037f397
authored
May 22, 2009
by
Andrew Heather
Browse files
added particle current time function
parent
e17ef8cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/basic/Particle/Particle.H
View file @
7037f397
...
...
@@ -365,6 +365,9 @@ public:
//- Return the impact model to be used, soft or hard (default).
inline
bool
softImpact
()
const
;
//- Return the particle current time
inline
scalar
currentTime
()
const
;
// Check
...
...
src/lagrangian/basic/Particle/ParticleI.H
View file @
7037f397
...
...
@@ -345,6 +345,15 @@ inline bool Particle<ParticleType>::softImpact() const
}
template
<
class
ParticleType
>
inline
scalar
Particle
<
ParticleType
>::
currentTime
()
const
{
return
cloud_
.
pMesh
().
time
().
value
()
+
stepFraction_
*
cloud_
.
pMesh
().
time
().
deltaT
().
value
();
}
template
<
class
ParticleType
>
inline
label
Particle
<
ParticleType
>::
patch
(
const
label
facei
)
const
{
...
...
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