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

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

Inheritance diagram for adjoint_lube_source_term::adjoint_lube_source_term_t:
Collaboration diagram for adjoint_lube_source_term::adjoint_lube_source_term_t:

Public Member Functions

procedure, pass(thisinit (this, json, fields, coef)
 The common constructor using a JSON object.
 
procedure, pass(thisinit_from_components (this, f_x, f_y, f_z, design, k, u, v, w, mask, if_mask, coef)
 The constructor from type components.
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thiscompute_ (this, t, tstep)
 Computes the source term and adds the result to fields.
 

Public Attributes

type(field_t), pointer u
 $u,v,w$ corresponding to the baseflow
 
type(field_t), pointer v
 
type(field_t), pointer w
 
type(field_t), pointer chi
 $\chi$ the Brinkman amplitude
 
real(kind=rp) k
 a scale for this term
 
class(point_zone_t), pointer mask
 A mask for where the source term is evaluated.
 
logical if_mask
 containing a mask?
 

Detailed Description

Definition at line 65 of file adjoint_lube_source_term.f90.

Member Function/Subroutine Documentation

◆ compute_()

procedure, pass(this) adjoint_lube_source_term::adjoint_lube_source_term_t::compute_ ( class(adjoint_lube_source_term_t), intent(inout this,
real(kind=rp), intent(in t,
integer, intent(in tstep 
)
Parameters
tThe time value.
tstepThe current time-step.

Definition at line 87 of file adjoint_lube_source_term.f90.

◆ free()

procedure, pass(this) adjoint_lube_source_term::adjoint_lube_source_term_t::free ( class(adjoint_lube_source_term_t), intent(inout this)

Definition at line 85 of file adjoint_lube_source_term.f90.

◆ init()

procedure, pass(this) adjoint_lube_source_term::adjoint_lube_source_term_t::init ( 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 80 of file adjoint_lube_source_term.f90.

◆ init_from_components()

procedure, pass(this) adjoint_lube_source_term::adjoint_lube_source_term_t::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 
)
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 82 of file adjoint_lube_source_term.f90.

Member Data Documentation

◆ chi

type(field_t), pointer adjoint_lube_source_term::adjoint_lube_source_term_t::chi

Definition at line 70 of file adjoint_lube_source_term.f90.

◆ if_mask

logical adjoint_lube_source_term::adjoint_lube_source_term_t::if_mask

Definition at line 76 of file adjoint_lube_source_term.f90.

◆ k

real(kind=rp) adjoint_lube_source_term::adjoint_lube_source_term_t::k

Definition at line 72 of file adjoint_lube_source_term.f90.

◆ mask

class(point_zone_t), pointer adjoint_lube_source_term::adjoint_lube_source_term_t::mask

Definition at line 74 of file adjoint_lube_source_term.f90.

◆ u

type(field_t), pointer adjoint_lube_source_term::adjoint_lube_source_term_t::u

Definition at line 68 of file adjoint_lube_source_term.f90.

◆ v

type(field_t), pointer adjoint_lube_source_term::adjoint_lube_source_term_t::v

Definition at line 68 of file adjoint_lube_source_term.f90.

◆ w

type(field_t), pointer adjoint_lube_source_term::adjoint_lube_source_term_t::w

Definition at line 68 of file adjoint_lube_source_term.f90.


The documentation for this type was generated from the following file: