Commit c249b22c by Jigyasa Watwani

moving by np.mean(u0)

parent 05217108
Showing with 1 additions and 1 deletions
...@@ -103,7 +103,7 @@ class MovingBoundaries(object): ...@@ -103,7 +103,7 @@ class MovingBoundaries(object):
u0, v0, rho0 = self.f0.split() u0, v0, rho0 = self.f0.split()
df.ALE.move(self.mesh, u0) df.ALE.move(self.mesh, np.mean(u0))
x_array[i] = self.mesh.coordinates()[:,0] x_array[i] = self.mesh.coordinates()[:,0]
return (x_array, u_array, v_array, rho_array) return (x_array, u_array, v_array, rho_array)
......
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 sign in to comment