Neko  0.8.1
A portable framework for high-order spectral element flow simulations
brinkman_source_term Module Reference

Implements the brinkman_source_term_t type. More...

Data Types

type  brinkman_source_term_t
 A Brinkman source term. The region and strength are controlled by assigning regions types and brinkman limits to the source term. More...
 

Functions/Subroutines

subroutine brinkman_source_term_init_from_json (this, json, fields, coef)
 The common constructor using a JSON object. More...
 
subroutine brinkman_source_term_free (this)
 Destructor. More...
 
subroutine brinkman_source_term_compute (this, t, tstep)
 Computes the source term and adds the result to fields. More...
 
subroutine init_boundary_mesh (this, json)
 Initializes the source term from a boundary mesh. More...
 
subroutine init_point_zone (this, json)
 Initializes the source term from a point zone. More...
 

Detailed Description

Implements the brinkman_source_term_t type.

Function/Subroutine Documentation

◆ brinkman_source_term_compute()

subroutine brinkman_source_term::brinkman_source_term_compute ( class(brinkman_source_term_t), intent(inout)  this,
real(kind=rp), intent(in)  t,
integer, intent(in)  tstep 
)
private

Computes the source term and adds the result to fields.

Parameters
tThe time value.
tstepThe current time-step.

Definition at line 201 of file brinkman_source_term.f90.

Here is the call graph for this function:

◆ brinkman_source_term_free()

subroutine brinkman_source_term::brinkman_source_term_free ( class(brinkman_source_term_t), intent(inout)  this)

Destructor.

Definition at line 191 of file brinkman_source_term.f90.

◆ brinkman_source_term_init_from_json()

subroutine brinkman_source_term::brinkman_source_term_init_from_json ( class(brinkman_source_term_t), intent(inout)  this,
type(json_file), intent(inout)  json,
type(field_list_t), intent(inout), target  fields,
type(coef_t), intent(inout)  coef 
)

The common constructor using a JSON object.

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 brinkman_source_term.f90.

Here is the call graph for this function:

◆ init_boundary_mesh()

subroutine brinkman_source_term::init_boundary_mesh ( class(brinkman_source_term_t), intent(inout)  this,
type(json_file), intent(inout)  json 
)

Initializes the source term from a boundary mesh.

Definition at line 220 of file brinkman_source_term.f90.

Here is the call graph for this function:

◆ init_point_zone()

subroutine brinkman_source_term::init_point_zone ( class(brinkman_source_term_t), intent(inout)  this,
type(json_file), intent(inout)  json 
)

Initializes the source term from a point zone.

Definition at line 358 of file brinkman_source_term.f90.

Here is the call graph for this function: