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

Residuals in the Pn-Pn formulation (CPU version)

Data Types

type  adjoint_pnpn_prs_res_cpu_t
 
type  adjoint_pnpn_vel_res_cpu_t
 

Functions/Subroutines

subroutine adjoint_pnpn_prs_res_cpu_compute (p, p_res, u, v, w, f_x, f_y, f_z, c_xh, gs_xh, bc_prs_surface, bc_sym_surface, ax, bd, dt, mu, rho, event)
 Compute adjoint pressure residual (CPU backend).
 

Function/Subroutine Documentation

◆ adjoint_pnpn_prs_res_cpu_compute()

subroutine adjoint_pnpn_res_cpu::adjoint_pnpn_prs_res_cpu_compute ( type(field_t), intent(inout p,
type(field_t), intent(inout p_res,
type(field_t), intent(inout u,
type(field_t), intent(inout v,
type(field_t), intent(inout w,
type(field_t), intent(in f_x,
type(field_t), intent(in f_y,
type(field_t), intent(in f_z,
type(coef_t), intent(inout c_xh,
type(gs_t), intent(inout gs_xh,
type(facet_normal_t), intent(in bc_prs_surface,
type(facet_normal_t), intent(in bc_sym_surface,
class(ax_t), intent(inout ax,
real(kind=rp), intent(in bd,
real(kind=rp), intent(in dt,
type(field_t), intent(in mu,
type(field_t), intent(in rho,
type(c_ptr), intent(inout event 
)
Parameters
pAdjoint pressure field.
p_resPressure residual output.
uAdjoint velocity x-component.
vAdjoint velocity y-component.
wAdjoint velocity z-component.
f_xExplicit forcing x-component.
f_yExplicit forcing y-component.
f_zExplicit forcing z-component.
c_XhCoefficients on the pressure space.
gs_XhGather-scatter operator on the pressure space.
bc_prs_surfacePressure boundary surface normals.
bc_sym_surfaceSymmetry boundary surface normals.
AxHelmholtz operator.
bdBDF coefficient for the current step.
dtTime-step size.
muDynamic viscosity field (assumed constant).
rhoDensity field (assumed constant).
eventBackend event handle (unused on CPU).

Definition at line 85 of file adjoint_pnpn_res_cpu.f90.