Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
user_type_templates Directory Reference
Directory dependency graph for user_type_templates:
/home/runner/work/neko/neko/examples/programming/user_type_templates

Files

 
ax_helm_template.f90
 
fluid_pnpn_bc_template.f90
 
krylov_solver_template.f90
 
les_model_template.f90
 
point_zone_template.f90
 
preconditioner_template.f90
 
scalar_pnpn_bc_template.f90
 
scalar_scheme_template.f90
 
simulation_component_template.f90
 
source_term_template.f90
 
wall_model_template.f90

Detailed Description

User-type templates

Each file is a standalone module that demonstrates one of Neko's supported user-type injection points. Copy the file for the type you need, rename the file, module, derived type, JSON type name, and registration routine together, then add it to your makeneko command alongside the user file.

For example:

makeneko user.f90 my_source_term.f90

makeneko discovers each module_name_register_types routine and calls it at startup. The registration routine in every template is deliberately kept at the end of its module so it is easy to find.

The templates cover every type currently supported by factory-based injection:

The executable bodies are safe, minimal starting points rather than useful models: the LES and wall-model templates produce zero additional effects; the preconditioner and Ax templates are identities; and the Krylov, scalar Pn/Pn and fluid Pn/Pn boundary-condition templates stop with an explicit error until their solve and apply routines are implemented. Replace the marked TODO sections with the actual algorithm.