The following sections illustrate subsets of a same example, combining high-level definitions (which are preferred), and lower-level setings where necessary.
This is assumed to be combined with the GUI or settings not specific to gas combustion, so wall and symmetry conditions are not shown here.
Using a fixed mass-flow rate, the main inlet conditions can be defined in cs_user_boundary_conditions_setup, as follows for a zone named "inlet":
Note that we have used a notebook variable here, allowing parametrization of the computation, but the mass flow should be fixed. For a variable mass flow rate, use cs_boundary_conditions_open_set_mass_flow_rate_by_func instead.
Not all definitions can yet be handled at the setup stage, so additional settings are needed in cs_user_boundary_conditions.
The following aliases (for conciseness of the downstream code) and initializations are used here:
Based on the inlet defined at the setup stage, the following additional settings can be used. Note that the inlet temperature is global to the module, but matches an inlet, so we choose to (re)set it here. These settings will be handled in the setup stage in a future version.
Since it is not yet possible to handle open boundary conditions with backflow conditions with the high level API (i.e. at the setup stage), the following example illustrates have this can be managed, on an example zone named "open":