Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
Loading...
Searching...
No Matches
mapping::mapping_t Type Referenceabstract

Base abstract class for mapping. More...

Inheritance diagram for mapping::mapping_t:
Collaboration diagram for mapping::mapping_t:

Public Member Functions

procedure, pass(thisinit_base (this, json, coef)
 Constructor for the mapping_t class.
 
procedure, pass(thisfree_base (this)
 Destructor for the mapping_t (base) class.
 
procedure, pass(thisapply_forward (this, x_out, x_in)
 Apply the forward mapping.
 
procedure, pass(thisapply_backward (this, sens_out, sens_in)
 Apply the backward mapping (ie, chain rule)
 
procedure(mapping_init), deferred, pass init (this, json, coef)
 The common constructor using a JSON dictionary.
 
procedure(mapping_free), deferred, pass free (this)
 Destructor.
 
procedure(mapping_forward_mapping), deferred, pass forward_mapping (this, x_out, x_in)
 forward mapping to be computed
 
procedure(mapping_backward_mapping), deferred, pass backward_mapping (this, sens_out, sens_in, x_in)
 Backward mapping to be computed.
 

Public Attributes

type(coef_t), pointer coef => null()
 Coefficients for the SEM.
 
type(field_t) x_in
 A copy of the unmapped field (often used for chain rule)
 

Detailed Description

Definition at line 46 of file mapping.f90.

Member Function/Subroutine Documentation

◆ apply_backward()

procedure, pass(this) mapping::mapping_t::apply_backward ( class(mapping_t), intent(inout this,
type(field_t), intent(inout sens_out,
type(field_t), intent(in sens_in 
)
Parameters
thisThe mapping object
sens_insensitivity wrt to the mapped field ( \(\frac{\partial F}{\partial \tilde{\rho}}\))
sens_outsensitivity wrt to the unmapped field ( \(\frac{\partial F}{\partial \rho}\))

Definition at line 60 of file mapping.f90.

◆ apply_forward()

procedure, pass(this) mapping::mapping_t::apply_forward ( class(mapping_t), intent(inout this,
type(field_t), intent(inout x_out,
type(field_t), intent(in x_in 
)
Parameters
thisThe mapping object
X_outThe mapped field ( \(\tilde{\rho}\))
X_inThe unmapped field ( \(\rho\))

Definition at line 58 of file mapping.f90.

◆ backward_mapping()

procedure(mapping_backward_mapping), deferred, pass mapping::mapping_t::backward_mapping ( class(mapping_t), intent(inout this,
type(field_t), intent(inout sens_out,
type(field_t), intent(in sens_in,
type(field_t), intent(in x_in 
)
pure virtual

Definition at line 68 of file mapping.f90.

◆ forward_mapping()

procedure(mapping_forward_mapping), deferred, pass mapping::mapping_t::forward_mapping ( class(mapping_t), intent(inout this,
type(field_t), intent(inout x_out,
type(field_t), intent(in x_in 
)
pure virtual

Definition at line 66 of file mapping.f90.

◆ free()

procedure(mapping_free), deferred, pass mapping::mapping_t::free ( class(mapping_t), intent(inout this)
pure virtual

Definition at line 64 of file mapping.f90.

◆ free_base()

procedure, pass(this) mapping::mapping_t::free_base ( class(mapping_t), intent(inout this)

Definition at line 56 of file mapping.f90.

◆ init()

procedure(mapping_init), deferred, pass mapping::mapping_t::init ( class(mapping_t), intent(inout this,
type(json_file), intent(inout json,
type(coef_t), intent(inout coef 
)
pure virtual

Definition at line 62 of file mapping.f90.

◆ init_base()

procedure, pass(this) mapping::mapping_t::init_base ( class(mapping_t), intent(inout this,
type(json_file), intent(inout json,
type(coef_t), intent(inout), target  coef 
)

Definition at line 54 of file mapping.f90.

Member Data Documentation

◆ coef

type(coef_t), pointer mapping::mapping_t::coef => null()

Definition at line 48 of file mapping.f90.

◆ x_in

type(field_t) mapping::mapping_t::x_in

Definition at line 50 of file mapping.f90.


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