Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
|
An objective function corresponding to minimum dissipation $ F = \int_\Omega |\nabla u|^2 d \Omega + K \int_Omega \frac{1}{2} \chi |\mathbf{u}|^2 d \Omega $. More...
Public Member Functions | |
procedure, pass(this), public | init_json (this, json, design, simulation) |
The common constructor using a JSON object. | |
procedure, pass(this), public | init_from_attributes (this, design, simulation, weight, name, mask_name, k) |
The actual constructor. | |
procedure, pass(this), public | free (this) |
Destructor. | |
procedure, pass(this), public | update_value (this, design) |
Computes the value of the objective function. | |
procedure, pass(this), public | update_sensitivity (this, design) |
Computes the sensitivity with respect to the coefficient $\chi$. | |
procedure, pass(this) | init_base (this, name, design_size, weight, mask_name) |
Initializer for the base class. | |
procedure, pass(this) | free_base (this) |
Destructor of the base class. | |
procedure(functional_init), deferred, pass | init_json (this, json, design, simulation) |
Constructor. | |
procedure(functional_free), deferred, pass | free (this) |
Destructor. | |
procedure(functional_update_value), deferred, pass | update_value (this, design) |
Update the value of the function. | |
procedure(functional_update_sensitivity), deferred, pass | update_sensitivity (this, design) |
Update the sensitivity of the function. | |
Public Attributes | |
type(field_t), pointer | u => null() |
Pointer to the u field. | |
type(field_t), pointer | v => null() |
Pointer to the v field. | |
type(field_t), pointer | w => null() |
Pointer to the w field. | |
type(coef_t), pointer | c_xh => null() |
Pointer to the coefficient field. | |
type(field_t), pointer | brinkman_amplitude => null() |
Pointer to the brinkman amplitude field. | |
real(kind=rp) | weight = 1.0_rp |
real(kind=rp) | value |
Value of the base_functional. | |
type(vector_t) | sensitivity |
Sensitivity field. | |
character(len=25) | name |
Name of constraint/objective in the logfile. | |
logical | has_mask |
containing a mask | |
class(point_zone_t), pointer | mask => null() |
A mask for where the objective function is evaluated. | |
Private Attributes | |
real(kind=rp) | k |
The coefficient for the lube term. | |
Definition at line 91 of file lube_term_objective.f90.
|
pure virtualinherited |
Definition at line 75 of file base_functional.f90.
procedure, pass(this), public lube_term_objective::lube_term_objective_t::free | ( | class(lube_term_objective_t), intent(inout) | this | ) |
Definition at line 116 of file lube_term_objective.f90.
|
inherited |
Definition at line 59 of file objective.f90.
|
inherited |
Initialize the objective base class.
design_size | The number of design variables. |
weight | The weight of the objective function. |
[optional] | mask_name The name design the mask. |
Definition at line 57 of file objective.f90.
procedure, pass(this), public lube_term_objective::lube_term_objective_t::init_from_attributes | ( | class(lube_term_objective_t), intent(inout) | this, |
class(design_t), intent(in) | design, | ||
type(simulation_t), intent(inout), target | simulation, | ||
real(kind=rp), intent(in) | weight, | ||
character(len=*), intent(in) | name, | ||
character(len=*), intent(in) | mask_name, | ||
real(kind=rp), intent(in) | k | ||
) |
design | the design. |
simulation | the simulation. |
weight | the weight of the objective function. |
mask_name | the name of the mask. |
K | the coefficient for the lube term. |
Definition at line 113 of file lube_term_objective.f90.
|
pure virtualinherited |
Definition at line 73 of file base_functional.f90.
procedure, pass(this), public lube_term_objective::lube_term_objective_t::init_json | ( | class(lube_term_objective_t), intent(inout) | this, |
type(json_file), intent(inout) | json, | ||
class(design_t), intent(in) | design, | ||
type(simulation_t), intent(inout), target | simulation | ||
) |
design | the design. |
fluid | the fluid scheme. |
adjoint | the fluid adjoint. |
Definition at line 111 of file lube_term_objective.f90.
|
pure virtualinherited |
Definition at line 80 of file base_functional.f90.
procedure, pass(this), public lube_term_objective::lube_term_objective_t::update_sensitivity | ( | class(lube_term_objective_t), intent(inout) | this, |
class(design_t), intent(in) | design | ||
) |
design | the design. |
Definition at line 121 of file lube_term_objective.f90.
|
pure virtualinherited |
Definition at line 78 of file base_functional.f90.
procedure, pass(this), public lube_term_objective::lube_term_objective_t::update_value | ( | class(lube_term_objective_t), intent(inout) | this, |
class(design_t), intent(in) | design | ||
) |
design | the design. |
fluid | the fluid scheme. |
adjoint | the fluid adjoint. |
Definition at line 118 of file lube_term_objective.f90.
Definition at line 106 of file lube_term_objective.f90.
Definition at line 104 of file lube_term_objective.f90.
|
inherited |
Definition at line 63 of file base_functional.f90.
Definition at line 95 of file lube_term_objective.f90.
Definition at line 65 of file base_functional.f90.
Definition at line 61 of file base_functional.f90.
|
inherited |
Definition at line 59 of file base_functional.f90.
Definition at line 98 of file lube_term_objective.f90.
Definition at line 100 of file lube_term_objective.f90.
Definition at line 57 of file base_functional.f90.
Definition at line 102 of file lube_term_objective.f90.
Definition at line 52 of file objective.f90.