CMU-CBML / HybridOctree_Hex

Automatic hexahedral mesh generation tool
BSD 3-Clause "New" or "Revised" License
23 stars 4 forks source link

Unable to generate results #4

Open zyyue99 opened 1 month ago

zyyue99 commented 1 month ago

Hello, thank you very much for providing the code! Can I ask you some questions about how the code works? May I ask why when I run the input model provided, there is no result for a long time, and I am forced to terminate the program because the memory is full?

gt2001 commented 1 month ago

You can set numbers in C_THRES and H_THRES in initialization.h bigger to make the code faster. This will leads to coarser mesh, but it may leave holes in the mesh if the object geometry has thin layers.

Regarding the code speed, I am writing a new version, which is 1000 times faster than the current version. It is expected to come out in September.

zyyue99 commented 1 month ago

You can set numbers in C_THRES and H_THRES in initialization.h bigger to make the code faster. This will leads to coarser mesh, but it may leave holes in the mesh if the object geometry has thin layers.

Regarding the code speed, I am writing a new version, which is 1000 times faster than the current version. It is expected to come out in September.

Thank you very much for your reply! But when I try to increase numbers in C_THRES and H_THRES, there is still no result for a long time, and I will always be in the hexgen.ConstructOctree() phase. May I ask how the data of more than 200 seconds of mesh generation given in your paper is achieved? In the implementation, I only changed the "model.raw" in the main.cpp file to the specific input model name. Is this correct? Thank you very much.

gt2001 commented 1 month ago

It depends on many factors (e.g., project settings, computer performance). Sorry that I forgot the parameter I set for that model ---- but C_THRES and H_THRES should be large. Also, please remember to turn on all the optimization options in the project setting interface, including but not limited to O3 optimization, OpenMP parallel computing, and compiling with Release mode instead of Debug mode. If you still couldn't solve the speed problem, you can Watch the repo, a much faster and more robust version will come out in two months.

zyyue99 commented 1 month ago

Alright, I will continue to try adjusting the parameters. Thank you very much for your patient responses, and I look forward to a faster and more robust version in the future!