Neko 1.99.1
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
custom_types Module Reference

In this module we implement a custom source term, my_source_term and prep it for being recognized by Neko at run time. The source term doesn't really do anything, we just show how such a thing could be done.

Data Types

type  my_source_term_t
 

Functions/Subroutines

subroutine my_source_term_init_from_json (this, json, fields, coef, variable_name)
 The common constructor using a JSON object.
 
subroutine my_source_term_free (this)
 Destructor.
 
subroutine my_source_term_compute (this, time)
 Will just bring our greeting to the console.
 
subroutine, public custom_types_register_types ()
 
subroutine my_source_term_allocate (obj)
 

Function/Subroutine Documentation

◆ custom_types_register_types()

subroutine, public custom_types::custom_types_register_types

Definition at line 128 of file custom_types.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_source_term_allocate()

subroutine custom_types::my_source_term_allocate ( class(source_term_t), intent(inout), allocatable  obj)
private

Definition at line 141 of file custom_types.f90.

Here is the caller graph for this function:

◆ my_source_term_compute()

subroutine custom_types::my_source_term_compute ( class(my_source_term_t), intent(inout this,
type(time_state_t), intent(in time 
)
private
Parameters
timeThe time state.

Definition at line 116 of file custom_types.f90.

◆ my_source_term_free()

subroutine custom_types::my_source_term_free ( class(my_source_term_t), intent(inout this)
private

Definition at line 105 of file custom_types.f90.

◆ my_source_term_init_from_json()

subroutine custom_types::my_source_term_init_from_json ( class(my_source_term_t), intent(inout this,
type(json_file), intent(inout json,
type(field_list_t), intent(in), target  fields,
type(coef_t), intent(in), target  coef,
character(len=*), intent(in variable_name 
)
Parameters
jsonThe JSON object for the source.
fieldsA list of fields for adding the source values.
coefThe SEM coeffs.

Definition at line 83 of file custom_types.f90.