CMU-CBML / HybridOctree_Hex

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

提示错误 #3

Open lililii124 opened 5 months ago

lililii124 commented 5 months ago

Quicker_20240618_204103 Quicker_20240618_204103

gt2001 commented 4 months ago

I am not very sure why this error occurs. Are you running on a demo model I provided?

yuyuanzi-hub commented 1 month ago

Hello, thanks for author's work and your question. I just met the same problem, and have you solved it?

yuyuanzi-hub commented 1 month ago

image within the first loop, z is 3861 and zz is 61776, maybe this part causes the vector out of range

gt2001 commented 1 month ago

Thanks for your report. I recently received several reports that the code cannot finish normally. It seems that v1.3 has some problems. Can you try v1.2?

yuyuanzi-hub commented 1 month ago

Thank you for answering, will try

yuyuanzi-hub commented 1 month ago

Hello, I've tried v1.2 yesterday. It didn't create the the file of DualHexFileName, and the result was not complete. Maybe in this screenshot, these 2 file should be the same one? image image

gt2001 commented 1 month ago

Can you set progress=0 and run again? If progress > 0, and the checkpoint file is missing, it will report the file missing error.

yuyuanzi-hub commented 1 month ago

Yes, I just set it 0, and ran it again. But still, it didn't create a dualhex file. Besides, I want ask the code won't stop itself right? It gave lines of badElem. Thank you for your patience.

gt2001 commented 1 month ago

For the second question, it won't stop itself, you can just take the result file when you think it is enough good. For the first question, I tested the code again, it should be working normally. Can you check the function "RemoveOutsideElement" to see if it is working (especially the last line octreeMesh.WriteToVtk(fileName, BOX_LENGTH_RATIO, START_POINT);)? If this works, it should output dualHex.vtk

yuyuanzi-hub commented 1 month ago

I got you. Will check, thank you.

yuyuanzi-hub commented 1 month ago

It worked well. I'm looking forward to the faster version and hoping you are doing well. I also want to know how to generate the result like your paper, with inside cube?

gt2001 commented 1 month ago

I am glad you can replicate the result. The coming version focus on quality guarantee that ensures all positive Jacobian without optimization. The result is visualized with paraview box cutting and assigning different colors to inside and outside faces.

yuyuanzi-hub commented 1 month ago

Thank you for the settings in paraview.