Codim-IPC icon indicating copy to clipboard operation
Codim-IPC copied to clipboard

About simulation time

Open MontaEllis opened this issue 1 year ago • 15 comments

Great job! I'm curious, how long will the code take to run? I've been running the garment simulation code for about half a day, and it's still going!

MontaEllis avatar Jul 03 '24 07:07 MontaEllis

Thanks! Most examples should finish running in one or several hours. See timing table here: Screen Shot 2024-07-03 at 09 41 12 https://github.com/KemengHuang/GPU_IPC has an efficient GPU implementation of our simulator, and it shuold be orders-of-magnitude faster.

liminchen avatar Jul 03 '24 13:07 liminchen

It appears that there is no Python version...

MontaEllis avatar Jul 03 '24 13:07 MontaEllis

It seems like the 5_garments demo will take a lot of time.

MontaEllis avatar Jul 03 '24 13:07 MontaEllis

Is it getting stuck at a specific frame or just generally slow? Our code is only tested on Ubuntu with MKL compiled CHOLMOD, so using different environment may also cause performance differences.

liminchen avatar Jul 04 '24 02:07 liminchen

How can I tell if it's stuck or not? I'm new to this and not very familiar with simulations. Your repository is my guide. I'm still learning and trying my best.

MontaEllis avatar Jul 04 '24 02:07 MontaEllis

So the simulator will output an obj file for the result of each frame, and you can take a look at the files, if the last output file was a long time ago, much longer than the adjacent time interval between earlier output files, then it means it get stuck at this frame.

You could also take screenshot of the command line output here.

If you are new to simulation, I guess you may find https://phys-sim-book.github.io/ and https://github.com/phys-sim-book/solid-sim-tutorial helpful.

liminchen avatar Jul 04 '24 03:07 liminchen

Thank you! I will read the physics simulation book carefully. Can I leave this issue open to ask more questions about garment simulation later?

MontaEllis avatar Jul 04 '24 03:07 MontaEllis

Actually, I'm trying to reimplement PhysAvatar, a nice project using your great C-IPC.

MontaEllis avatar Jul 04 '24 03:07 MontaEllis

Great! You can feel free to email me if you have followup questions. But note that sometimes I may be slow to reply :)

liminchen avatar Jul 04 '24 16:07 liminchen

Should we determine the pinned vertices ourselves in the garment demo?

MontaEllis avatar Jul 08 '24 02:07 MontaEllis

Yes, seams should be part of the input file, and dirichlet BC is set via python. Please see the example.

liminchen avatar Jul 09 '24 13:07 liminchen

When I run the code, the initial results seem very strange. Could you provide some advice?

input: image

image

results: image

MontaEllis avatar Jul 15 '24 14:07 MontaEllis

Also, I'm curious why the drape and stage are vertical?

MontaEllis avatar Jul 15 '24 14:07 MontaEllis

I believe I followed the same structure as the demo, but the face might be incorrect. How should the face pattern and body be combined?

image

MontaEllis avatar Jul 17 '24 10:07 MontaEllis

How do you achieve seams like this? I can't load it in Blender.

image

MontaEllis avatar Jul 25 '24 08:07 MontaEllis