Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
Loading...
Searching...
No Matches
simple_brinkman_source_term Module Reference

Implements the simple_brinkman_source_term_t type.

Data Types

type  simple_brinkman_source_term_t
 A simple Brinkman source term. More...
 

Functions/Subroutines

subroutine simple_brinkman_source_term_init_from_json (this, json, fields, coef)
 The common constructor using a JSON object.
 
subroutine simple_brinkman_source_term_init_from_components (this, f_x, f_y, f_z, chi, u, v, w, coef)
 The constructor from type components.
 
subroutine simple_brinkman_source_term_free (this)
 Destructor.
 
subroutine simple_brinkman_source_term_compute (this, t, tstep)
 Computes the source term and adds the result to fields.
 

Function/Subroutine Documentation

◆ simple_brinkman_source_term_compute()

subroutine simple_brinkman_source_term::simple_brinkman_source_term_compute ( class(simple_brinkman_source_term_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
private
Parameters
tThe time value.
tstepThe current time-step.

Definition at line 138 of file simple_brinkman_source_term.f90.

◆ simple_brinkman_source_term_free()

subroutine simple_brinkman_source_term::simple_brinkman_source_term_free ( class(simple_brinkman_source_term_t), intent(inout this)
private

Definition at line 129 of file simple_brinkman_source_term.f90.

◆ simple_brinkman_source_term_init_from_components()

subroutine simple_brinkman_source_term::simple_brinkman_source_term_init_from_components ( class(simple_brinkman_source_term_t), intent(inout this,
type(field_t), intent(in), pointer  f_x,
type(field_t), intent(in), pointer  f_y,
type(field_t), intent(in), pointer  f_z,
type(field_t), intent(in), target  chi,
type(field_t), intent(in), target  u,
type(field_t), intent(in), target  v,
type(field_t), intent(in), target  w,
type(coef_t)  coef 
)
private
Parameters
f_x,f_y,f_zthe RHS of the equation (either primal or adjoint)
designthe design
u,v,wthe velocity field (either primal or adjoint)
coefThe SEM coeffs.

Definition at line 92 of file simple_brinkman_source_term.f90.

◆ simple_brinkman_source_term_init_from_json()

subroutine simple_brinkman_source_term::simple_brinkman_source_term_init_from_json ( class(simple_brinkman_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 
)
Parameters
jsonThe JSON object for the source.
fieldsA list of fields for adding the source values.
coefThe SEM coeffs.

Definition at line 73 of file simple_brinkman_source_term.f90.