DeepLagrangianFluids icon indicating copy to clipboard operation
DeepLagrangianFluids copied to clipboard

[Question] - Wall boundary condition

Open bakhtiyar-k opened this issue 2 years ago • 8 comments

Hello. I have a question about the walls during ground-truth simulations. Do you perform simulations with plane walls or walls represented as particles?

bakhtiyar-k avatar Oct 16 '22 05:10 bakhtiyar-k

Everything is represented with particles.

benjaminum avatar Oct 19 '22 06:10 benjaminum

So you convert the wall surface to static particles, introduce fluid particles, then run simulations with splishsplash to gather data. Compress the data and finally supply it as input to the network. Is it correct?

bakhtiyar-k avatar Oct 19 '22 07:10 bakhtiyar-k

yes

benjaminum avatar Oct 19 '22 12:10 benjaminum

Thank you

bakhtiyar-k avatar Oct 19 '22 12:10 bakhtiyar-k

Still a bit confused. In the code, there is the run_simulator function that uses a scene.json file and an output directory. The json file contains information about fluids in .bgeo (particle data) and a rigid body in .obj (geometry data) format, so in simulations, fluid particles hit geometry planes, not static particles?

bakhtiyar-k avatar Oct 29 '22 13:10 bakhtiyar-k

The geometry in the .obj is converted to particles here https://github.com/isl-org/DeepLagrangianFluids/blob/d651c6fdf2aca3fac9abe3693b20981b191b4769/scripts/run_network.py#L45

benjaminum avatar Nov 01 '22 07:11 benjaminum

yes, but it is for a trained network, right?

I mean in the data generation stage, https://github.com/isl-org/DeepLagrangianFluids/blob/d651c6fdf2aca3fac9abe3693b20981b191b4769/datasets/create_physics_scenes.py#L430
scenes are run with fluid particles interacting with each other and with boundary planes that are not converted to particles yet?

bakhtiyar-k avatar Nov 01 '22 07:11 bakhtiyar-k

After a scene was created, we have data only of fluid particles? The .bgeo geometry file is later converted to particles https://github.com/isl-org/DeepLagrangianFluids/blob/d651c6fdf2aca3fac9abe3693b20981b191b4769/datasets/create_physics_records.py#L19 and added to the feat_dict ?
https://github.com/isl-org/DeepLagrangianFluids/blob/d651c6fdf2aca3fac9abe3693b20981b191b4769/datasets/create_physics_records.py#L56

bakhtiyar-k avatar Nov 01 '22 07:11 bakhtiyar-k