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

Implements the adjoint_minimum_dissipation_source_term_t type.

Data Types

type  adjoint_minimum_dissipation_source_term_t
 An adjoint source term for objectives of minimum dissipation. More...
 

Functions/Subroutines

subroutine adjoint_minimum_dissipation_source_term_init_from_json (this, json, fields, coef)
 The common constructor using a JSON object.
 
subroutine adjoint_minimum_dissipation_source_term_init_from_components (this, f_x, f_y, f_z, u, v, w, obj_scale, mask, if_mask, coef)
 The constructor from type components.
 
subroutine adjoint_minimum_dissipation_source_term_free (this)
 Destructor.
 
subroutine adjoint_minimum_dissipation_source_term_compute (this, t, tstep)
 Computes the source term and adds the result to fields.
 

Function/Subroutine Documentation

◆ adjoint_minimum_dissipation_source_term_compute()

subroutine adjoint_minimum_dissipation_source_term::adjoint_minimum_dissipation_source_term_compute ( class(adjoint_minimum_dissipation_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 175 of file adjoint_minimum_dissipation_source_term.f90.

◆ adjoint_minimum_dissipation_source_term_free()

subroutine adjoint_minimum_dissipation_source_term::adjoint_minimum_dissipation_source_term_free ( class(adjoint_minimum_dissipation_source_term_t), intent(inout this)
private

Definition at line 166 of file adjoint_minimum_dissipation_source_term.f90.

◆ adjoint_minimum_dissipation_source_term_init_from_components()

subroutine adjoint_minimum_dissipation_source_term::adjoint_minimum_dissipation_source_term_init_from_components ( class(adjoint_minimum_dissipation_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  u,
type(field_t), intent(in), target  v,
type(field_t), intent(in), target  w,
real(kind=rp)  obj_scale,
class(point_zone_t), intent(in), target  mask,
logical  if_mask,
type(coef_t)  coef 
)
private
Parameters
f_x,f_y,f_zthe RHS of the adjoint equations
u,v,wthe flow fields of the primal @obj_scale a scaling factor

Definition at line 119 of file adjoint_minimum_dissipation_source_term.f90.

◆ adjoint_minimum_dissipation_source_term_init_from_json()

subroutine adjoint_minimum_dissipation_source_term::adjoint_minimum_dissipation_source_term_init_from_json ( class(adjoint_minimum_dissipation_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 101 of file adjoint_minimum_dissipation_source_term.f90.