Cell size (H) calculation in 2D
Dear all,
I noticed that there are different results for the cell size depending on the working plane (XZ, XY,..).
Settings:
dp = 0.0001
coefh = 1.5
according to the formula (2D) H = coefh * sqrt(2) *dp =0.000212. (XZ-plane → ok)
now I set up the project for the XY-plane instead of XZ. The result for H is 0.000260. Why?? For 3D it would be ok because of H = coefh*sqrt(3)*dp = 0.0002598.
And this caused other problems. In the end the simulation is not working in the XY-plane, only in the XZ-plane.
files:
https://www.dropbox.com/sh/lyf3zvwtbam3pt9/AAB_tB7PLvAvoHKf5kRkhxbna?dl=0
This case is based on the one used in the 'Pipe flow with floating particles - error after dp decrease' - discussion
http://dual.sphysics.org/vanilla/discussion/791/pipe-flow-with-floating-particles-error-after-dp-decrease#Item_1
Thanks!
I noticed that there are different results for the cell size depending on the working plane (XZ, XY,..).
Settings:
dp = 0.0001
coefh = 1.5
according to the formula (2D) H = coefh * sqrt(2) *dp =0.000212. (XZ-plane → ok)
now I set up the project for the XY-plane instead of XZ. The result for H is 0.000260. Why?? For 3D it would be ok because of H = coefh*sqrt(3)*dp = 0.0002598.
And this caused other problems. In the end the simulation is not working in the XY-plane, only in the XZ-plane.
files:
https://www.dropbox.com/sh/lyf3zvwtbam3pt9/AAB_tB7PLvAvoHKf5kRkhxbna?dl=0
This case is based on the one used in the 'Pipe flow with floating particles - error after dp decrease' - discussion
http://dual.sphysics.org/vanilla/discussion/791/pipe-flow-with-floating-particles-error-after-dp-decrease#Item_1
Thanks!
Comments
You can always create XZ cases and then change gravity if you need that.
Regards
Our 2D examples are just a cut of a 3D case!
To get around this: since I was already using an external forces file to accelerate particles in the X direction, I simply kept the gravity as -9.81 m/s^2 in the z-direction but added a constant +9.81 m/s^2 to the "LinearAccZ" column of my external forces file.
It seems to work as expected (judging by the forces output for the sides of a flume that runs along the x-axis; the z-forces are roughly equal in magnitude but opposite in direction), but if there's something wrong with doing it this way, I'd be glad to know.