How Bender’s User Interface works:
Let’s try to solve a simple problem - Couette flow of Navier-Stokes fluid. Actually only two files need to be created - a settings file and a problem file.
When these two files are prepared, preprocessing can be executed with a script called configure. This script does following:
Later, when you want to edit some parameter defined in the settings file, change the corresponding settings in the configuration file, which is usually called test.in. If you edit the configuration file, it is not necessary to recompile the C code nor need you to call python if you don’t change time step scheme.
Remember that if you add a parameter in the settings file or a new variable or a function in the problem file, you need to call make clean because of C header files. Then you can build C code with make and then execute as usually. See documentation in the configure script.
The easiest way to learn how to use Bender is probably going through example files in the examples directory.
The only module which is really necessary for using the user interface is the ui module. However, if you want, for example, to visualize grids, a good choice would be to have a look at documentation of the grids module. If you want to express explicitely time level of some variable in a time-discretized equation, you will need to have a look at the utils module. Although you won’t probably use it, there are also some settings in the pool module.
Note that when formulating problems, you can use any functionality of sympy, which is a python computer algebra system incorporated in the ui.
List of modules: