code-saturne / code_saturne

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

GUI scalar diffusivity #50

Closed LucianoGarelli closed 4 years ago

LucianoGarelli commented 4 years ago

In versión 6.1-alpha when adding a transported variable (scalar1) and then choose in the physical properties a variable/user_law diffusion coefficient value for this escalar the CS GUI close with the following error

_value userlaw is not in list ('constant', 'variable')

For fix this issue I change in: /src/gui/cs_gui.c if (cs_gui_strcmp(buff, "variable")) -> if (cs_gui_strcmp(buff, "user_law"))

and /model/DefineUserScalarsModel.py def setScalarDiffusivityChoice(self, scalar_name, choice): .... self.isInList(choice, ('constant', 'variable')) -> self.isInList(choice, ('constant', 'user_law'))

This fix the problem.

YvanFournier commented 4 years ago

Fixed in master and v6.0.

Thanks for the bug report and fix.