Internal API of Simul#

See also

Documentation on fluidsim_core.solver.SimulCore which is the base class for snek5000.solvers.base.SimulNek.

classmethod SimulNek._set_internal_sections(params)[source]#

Set internal attributes to mark user sections and disable sections following InfoSolverNek.par_sections_disabled. The internal attributes _user and _enabled of Parameters are modified here.

classmethod SimulNek._complete_params_with_default(params)[source]#

A static method used to complete the params container.

The sections are:

  • general (mandatory)

  • problemtype

  • mesh

  • velocity

  • pressure (required for velocity)

  • temperature

  • scalar%%

  • cvode

When scalars are used, the keys of each scalar are defined under the section scalar%% varying between scalar01 and scalar99.

Internal API of InfoSolver#

See also

Documentation on fluidsim_core.info.InfoSolverCore which is the base class for snek5000.info.InfoSolverNek.

InfoSolverNek._init_root()[source]#

Defines class hierarchy (via classes) and some attributes

  • module_name - module of the Simul class

  • class_name - Simul class name

  • short_name - short name of the solver (and name used in the source code usr, par, re2, ma2 etc.)

  • par_sections - sections in the .par file

  • par_sections_disabled - sections to be disabled (i.e. removed while generating) in the .par file