Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fluidparticles
MigFlow
Commits
4fbc5d20
Commit
4fbc5d20
authored
Nov 09, 2018
by
Matthieu Constant
Browse files
fix velocity lmgc90 in 2D
parent
2de9ce1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/lmgc90Interface.py
View file @
4fbc5d20
...
...
@@ -41,7 +41,7 @@ class ParticleProblem(object):
- iterate() : do one time iteration
- position() : give back position of all spher
- velocity() : give back
position
of all spher
- velocity() : give back
velocity
of all spher
- externalForces() : update external forces on particles
- getMeanRadius() : return the mean radius of particles
...
...
@@ -253,9 +253,9 @@ class ParticleProblem(object):
elif
self
.
_dim
==
2
:
for
i
in
range
(
self
.
_nbDisk
):
self
.
_
position
[
i
,:]
=
chipy
.
RBDY2_GetBodyVector
(
'
Coor
_'
,
int
(
self
.
_d2bMap
[
i
,
0
]))
self
.
_
position
[
i
,
2
]
=
0.
return
self
.
_
position
[:,:
2
]
self
.
_
velocity
[
i
,:]
=
chipy
.
RBDY2_GetBodyVector
(
'
V___
_'
,
int
(
self
.
_d2bMap
[
i
,
0
]))
self
.
_
velocity
[
i
,
2
]
=
0.
return
self
.
_
velocity
[:,:
2
]
def
externalForces
(
self
):
...
...
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