ladybug-tools / butterfly

:butterfly: A light python API for creating and running OpenFoam cases for CFD simulation.
http://ladybug-tools.github.io/butterfly.html
GNU General Public License v3.0
249 stars 71 forks source link

2D case: side boundary type when meshing in parallel #292

Open TheodoreGalanos opened 7 years ago

TheodoreGalanos commented 7 years ago

If the user selects parallel meshing when running a 2D case, the leftSide and rightSide patches should be set as wall and not empty.

Edit: Change should be in the constant/polyMesh/boundary file

mostaphaRoudsari commented 6 years ago

@TheodoreGalanos, why is this a thing? and should we set it back to empty after meshing?

TheodoreGalanos commented 6 years ago

@mostaphaRoudsari Not really sure why it happens, I think it's smth to do with how SHM is wired to work. But when in parallel, having empty will give you an error while snapping.

You can return it to empty afterwards or keep it as a wall (and assign slip boundary to sides). Either works, I'm not sure how each affects the solution I've yet to try.

mostaphaRoudsari commented 6 years ago

@TheodoreGalanos thanks! let me know which solution is the correct one to do and I can implement this.

TheodoreGalanos commented 6 years ago

@mostaphaRoudsari I think for now we can set them to wall for both meshing and running, since that seems to be ok based on my tests. I will try and run an older 2D case with empty today and see what happens.

TheodoreGalanos commented 6 years ago

See:

https://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/184728-snappyhexmesh-parallel-run-2d-mesh-motion-error.html

https://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/153591-snappy-fails-create-layers.html