Commit 4fbc5d20 authored by Matthieu Constant's avatar Matthieu Constant
Browse files

fix velocity lmgc90 in 2D

parent 2de9ce1c
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment