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

Contains extensions to the neko library required to run the topology optimization code.

Functions/Subroutines

subroutine, public reset (neko_case)
 Reset the case data structure.
 
subroutine, public setup_iteration (neko_case, iter)
 Setup the iteration.
 
subroutine, public vector_to_field (field, vector)
 Vector to field.
 
subroutine, public field_to_vector (vector, field)
 Field to vector.
 
subroutine, public get_scalar_indicies (i_primal, i_adjoint, scalars, adjoint_scalars, primal_name)
 get scalar indices
 

Function/Subroutine Documentation

◆ field_to_vector()

subroutine, public neko_ext::field_to_vector ( type(vector_t), intent(inout)  vector,
type(field_t), intent(in)  field 
)

This subroutine converts a field to a vector in the special case that they have the same dimension.

Parameters
[out]vectorthe output vector.
[in]fieldthe input field.

Definition at line 257 of file neko_ext.f90.

◆ get_scalar_indicies()

subroutine, public neko_ext::get_scalar_indicies ( integer, intent(out)  i_primal,
integer, intent(out)  i_adjoint,
type(scalars_t), intent(inout)  scalars,
type(adjoint_scalars_t), intent(inout)  adjoint_scalars,
character(len=*), intent(in)  primal_name 
)

Given a primal scalar name, return the indices in the scalars and adjoint_scalars list corresponding to this pair.

Parameters
[out]i_primalIndex in the primal scalar list.
[out]i_adjointIndex in the adjoint scalar list.
[in,out]scalarsPrimal scalars list.
[in,out]adjoint_scalarsAdjoint scalars list.
[in]primal_nameName of the primal scalar.

Definition at line 282 of file neko_ext.f90.

Here is the caller graph for this function:

◆ reset()

subroutine, public neko_ext::reset ( type(case_t), intent(inout)  neko_case)

This subroutine resets the case data structure. It is called at the beginning of each iteration. It is used to reset the time step counter, the lagged time step parameters, the external BDF coefficients, the fluid and scalar fields, and the simulation components.

Parameters
[in,out]neko_caseCase data structure.

Definition at line 54 of file neko_ext.f90.

Here is the caller graph for this function:

◆ setup_iteration()

subroutine, public neko_ext::setup_iteration ( type(case_t), intent(inout)  neko_case,
integer, intent(in)  iter 
)

This subroutine sets up the iteration. It is called at the beginning of each iteration. It is used to save the initial configuration and to set the output file name.

Parameters
[in,out]neko_caseCase data structure.
[in]iterIteration number.

Definition at line 202 of file neko_ext.f90.

Here is the call graph for this function:

◆ vector_to_field()

subroutine, public neko_ext::vector_to_field ( type(field_t), intent(inout)  field,
type(vector_t), intent(in)  vector 
)

This subroutine converts a vector to a field in the special case that they have the same dimension.

Parameters
[out]fieldthe output field.
[in]vectorthe input vector.

Definition at line 233 of file neko_ext.f90.