version 0.6.0
User routines

Topics

 User fields
 Define custom fields.
 
 User variables
 Define custom variables.
 

Functions

subroutine mod_user_compute_material_properties::user_compute_material_properties ()
 Compute user physical properties fields. More...
 
subroutine mod_initialize_user_fields_and_variables::initialize_user_fields_and_variables ()
 Initialize user fields and variables. More...
 
subroutine mod_user_post_process::user_post_process ()
 Post process user routine.
 
subroutine mod_user_reference_solution::user_reference_solution ()
 Reference solution user routine.
 

Detailed Description

The user directory provides several template Fortran routines, that allows to add one's own code into Notus. These routines are gathered into the following Fortran files:

Function Documentation

◆ initialize_user_fields_and_variables()

subroutine mod_initialize_user_fields_and_variables::initialize_user_fields_and_variables

This user subroutine helps to initialize user fields defined in user_fields module, as well as user variables defined in user_variables.

This routine is called before the time loop.

◆ user_compute_material_properties()

subroutine mod_user_compute_material_properties::user_compute_material_properties

This routine computes, at user convenience, the physical properties of the fluid defined on mesh cells (density, viscosity, etc.).

Interpolation of properties on other grids are not necessary in this routine. This is done at the end of compute_material_properties routine (and so, this done after the call of this routine) or directly during the discretization process.