synthetik-technologies / blastfoam

A CFD solver for multi-component compressible flow with application to high-explosive detonation, explosive safety and air blast
Other
219 stars 96 forks source link

setRefinedField on 3D using solids4foam tutorial #70

Open siddharthapaudel08 opened 1 year ago

siddharthapaudel08 commented 1 year ago

image Dear jheylmun,

This error can be seen while using setRefinedField on 3D domain. I think that only 2D domain will be simulated using solids4Foam as the error occurred on hexRef2D.c file. Can anyone help me to get through this?

Sincerely, Siddhartha Paudel

jheylmun commented 1 year ago

Hello, The dimension of the refinement is chosen based on the number of "geometric" dimensions which is determined from the patch types (wedge/empty). Running checkMesh (with the "-region" option for multiregion cases) will tell you how many geometric dimensions you have in you mesh. If you are using empty patches, the number of cell in the empty directions (directions normal to the empty or wedge patches) MUST be 1 otherwise you will see these errors. If you want to run a 3D case, you need to change the patch types from empty/wedge to some other patch type (wall, patch, symmetry, etc). This case uses default patches so you will need to add additional patches in the blockMeshDict file so that the undefined faces are not set to empty.

Thanks, Jeff