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 72 forks source link

AddLayers output empty with True input in SnappyHexMesh #430

Open ridhoutomo opened 1 year ago

ridhoutomo commented 1 year ago

Hi everyone,

I am wondering if the AddLayers function for boundary layer creation is working. I have tried to turn it on but I check with the SnappyHexMeshDict that the layers is true but no geometry is appended

Now, if I modify manually then running the snappyhexmesh via GH toggle, it will automatically delete and replace with a new one (even though I turn on write, then manually edit, then run).

Is there anything I need to do to fix it to read layers automatically for Boundary layer? Do I need to define anything previously before the SnappyHexMesh?

Thank you. Ridho

ridhoutomo commented 1 year ago

I actually tried by adding surface layers number in the geometry definition. It adds surface name to the addlayers

layers {

    core
    {

        nSurfaceLayers      7;

    }

}

For now, it is good thing that I don't need to modify manually. But, is this the only way to activate the BL? Thank you.

ymg2007 commented 1 year ago

Yeah,you are right. You can do some further simulation.