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

Implements the adjoint_lube_source_term_t type.

Data Types

type  adjoint_lube_source_term_t
 A adjoint source term corresponding to an objective of. More...
 

Functions/Subroutines

subroutine adjoint_lube_source_term_init_from_json (this, json, fields, coef)
 The common constructor using a JSON object.
 
subroutine adjoint_lube_source_term_init_from_components (this, f_x, f_y, f_z, design, k, u, v, w, mask, if_mask, coef)
 The constructor from type components.
 
subroutine adjoint_lube_source_term_free (this)
 Destructor.
 
subroutine adjoint_lube_source_term_compute (this, t, tstep)
 Computes the source term and adds the result to fields.
 

Function/Subroutine Documentation

◆ adjoint_lube_source_term_compute()

subroutine adjoint_lube_source_term::adjoint_lube_source_term_compute ( class(adjoint_lube_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 181 of file adjoint_lube_source_term.f90.

◆ adjoint_lube_source_term_free()

subroutine adjoint_lube_source_term::adjoint_lube_source_term_free ( class(adjoint_lube_source_term_t), intent(inout this)
private

Definition at line 172 of file adjoint_lube_source_term.f90.

◆ adjoint_lube_source_term_init_from_components()

subroutine adjoint_lube_source_term::adjoint_lube_source_term_init_from_components ( class(adjoint_lube_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,
class(design_t), intent(in), target  design,
real(kind=rp)  k,
type(field_t), intent(in), target  u,
type(field_t), intent(in), target  v,
type(field_t), intent(in), target  w,
class(point_zone_t), intent(in), target  mask,
logical  if_mask,
type(coef_t), intent(in coef 
)
private
Parameters
f_x,f_y,f_zthe RHS of the adjoint
designthe design
Ka scale
u,v,wthe velocity fields of the primal

Definition at line 116 of file adjoint_lube_source_term.f90.

◆ adjoint_lube_source_term_init_from_json()

subroutine adjoint_lube_source_term::adjoint_lube_source_term_init_from_json ( class(adjoint_lube_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 95 of file adjoint_lube_source_term.f90.