Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] - Wall boundary condition #27

Open
bakhtiyar-k opened this issue Oct 16, 2022 · 8 comments
Open

[Question] - Wall boundary condition #27

bakhtiyar-k opened this issue Oct 16, 2022 · 8 comments

Comments

@bakhtiyar-k
Copy link

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

@benjaminum
Copy link
Collaborator

Everything is represented with particles.

@bakhtiyar-k
Copy link
Author

bakhtiyar-k commented Oct 19, 2022

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?

@benjaminum
Copy link
Collaborator

yes

@bakhtiyar-k
Copy link
Author

Thank you

@bakhtiyar-k
Copy link
Author

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?

@benjaminum
Copy link
Collaborator

The geometry in the .obj is converted to particles here

points, normals = obj_surface_to_particles(x['path'])

@bakhtiyar-k
Copy link
Author

bakhtiyar-k commented Nov 1, 2022

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

I mean in the data generation stage,

run_simulator(os.path.abspath(scene_output_path), sim_directory)

scenes are run with fluid particles interacting with each other and with boundary planes that are not converted to particles yet?

@bakhtiyar-k
Copy link
Author

After a scene was created, we have data only of fluid particles? The .bgeo geometry file is later converted to particles

box, box_normals = numpy_from_bgeo(os.path.join(scene_dir, 'box.bgeo'))

and added to the feat_dict ?
feat_dict['box'] = box.astype(np.float32)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants