Change the density of fluid in *custum_scene.py #273
-
the density of the fluid has already been defined from the custum_scene.py as 1000km/m^3 how could I change this attribute of the fluid, I tried to make a small change as complex_scene.py, but it shows some bugs "Process finished with exit code -1073741819 (0xC0000005)" `import pysplishsplash as sph def main():
if name == "main": by the way, is there any simply method to change the density from FluidBlock or FluidModel |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Instead of If you call
This is shorter but does not allow to change the parameters of a fluid model. Here is a corrected version of your code:
|
Beta Was this translation helpful? Give feedback.
-
Typically the thickness is 0. For particle based boundary handling a wall is just a thin geometry where the particles should not go through. For implicit boundary handling (volume maps or density maps) you can artificially increase the thickness of the wall by the key "mapThickness" in the scene file. See also here: https://splishsplash.readthedocs.io/en/latest/file_format.html#rigidbodies |
Beta Was this translation helpful? Give feedback.
Typically the thickness is 0. For particle based boundary handling a wall is just a thin geometry where the particles should not go through. For implicit boundary handling (volume maps or density maps) you can artificially increase the thickness of the wall by the key "mapThickness" in the scene file. See also here:
https://splishsplash.readthedocs.io/en/latest/file_format.html#rigidbodies