code-saturne / code_saturne

code_saturne public mirror
https://www.code-saturne.org
GNU General Public License v2.0
223 stars 82 forks source link

Free surface BC #27

Closed LucianoGarelli closed 5 years ago

LucianoGarelli commented 5 years ago

In some case the Free surface BC is set in the XML file as _fixedboundary, so the boundary is not moved with the surface velocity. I attach a case where the BC_4 is set as: <boundary label="BC_4" name="3" nature="free_surface">TOP</boundary> After saving any modification (time step, number of iter, etc) through the GUI the following block of code is inserted in the XML file

<wall field_id="none" label="BC_4">
<ale choice="fixed_boundary"/>
</wall>

As result the free surface doesn't move. If this block of code is removed from the XML the free surface move correctly. The version of CS used is 5.0.9 in linux (ubuntu 17.1). Is attached the test case.

test_case.zip

YvanFournier commented 5 years ago

Fixed in v5.2.2 and v5.0.10; not present in v5.3 and v6 branches.

Extra block is still present in XML (removing it would require further cleanup), but reader now gives priority to free surface type.