MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_ib_wall_column Module Reference

Sub-grid wall conduction column of an isothermal immersed wall (patch_ibwall_column): state and 1D numerics. More...

Functions/Subroutines

real(wp) function, public f_wc_node (k, sm)
 Wall distance of column node k: 0 the wall, 1..wc_n the cell centres, wc_n + 1 the top s_m. Faces are geometric from the wall, f_k = s_m (r^k - 1)/(r^N - 1).
real(wp) function f_wc_face (k, sm)
real(wp) function f_wc_area (kap, s)
 Area of the surface at wall distance s per unit wall area, (1 + kappa s)^(d - 1).
real(wp) function, public f_wc_ell (kap, s)
 Steady radial conduction coordinate, int ds/A: ln(1 + kappa s)/kappa (2D), s/(1 + kappa s) (3D).
real(wp) function f_wc_interp (tc, tw, sm, s)
 Column temperature at wall distance s >= 0 (linear between nodes, the last cell's value beyond it).
real(wp) function, public f_wc_target (tc, tw, sm, s)
 Guard target at a point of signed wall distance s: the column value, and behind the wall its mirror-odd extension 2 T_w - T(-s), exact for a linear profile, so a smooth steady cell's average is its centre value.
real(wp) function f_wc_tab (tab, t, tlo, dts)
 Linear interpolation in a table on wc_ntab uniform temperatures from Tlo, constant beyond its ends.
real(wp) function f_wc_phi (t, tlo, dts, lam_t, phi_t)
 Phi = int lambda dT of the piecewise-linear table, lambda constant beyond its ends.
real(wp) function f_wc_kbar (ta, tb, tlo, dts, lam_t, phi_t)
 Kirchhoff mean conductivity (Phi(Tb) - Phi(Ta))/(Tb - Ta).
subroutine s_wc_solve (lo, up, rcv, c, d)
 Solve (rcv - c L) x = d in place, L tridiagonal with sub lo, diagonal -(lo + up) and super up (Thomas).
subroutine, public s_wc_step (tc, tw, tm, rcoef, kap, sm, dt, tlo, dts, lam_t, cp_t, q)
 Advance one column over dt and return its step-mean wall heat flux into the body q, per unit wall area. Low-Mach energy equation of gas at rest at an isothermal wall, frozen composition, rho = rcoef/T (rcoef = p W/R_u):

Variables

integer, parameter, public wc_n = 96
 Column cells.
integer, parameter wc_nsub = 16
 SDIRK2 substeps per flow step.
integer, parameter, public wc_ntab = 8
 Temperatures of the per-step property tables.
real(wp), parameter wc_ratio = 1.08_wp
 Cell stretching from the wall.
real(wp), parameter, public wc_guard = 4._wp
 Strength of the one-sided guard.
real(wp), parameter, public wc_len_frac = 0.15_wp
 Default column length / radius.
real(wp), dimension(:,:), allocatable, public wc_t
 Per column ghost (the first-layer ghosts of wall_column bodies, n_wc of them; wc_gp(c) is the ghost's index in ghost_points, wc_slot its inverse during setup): column temperatures at the cell centres (wc_T), step-mean wall heat flux into the body per unit wall area (wc_q), guard heat booked to the body (wc_cut) and state (wc_on: -1 none, 0 the mirror this step, 1 active). Per face (2 per direction): area times l-coordinate weight (wc_w), area/spacing (wc_g, 0 off a gas face) and the column temperature averaged over the gas cell (wc_ext).
real(wp), dimension(:,:), allocatable, public wc_w
real(wp), dimension(:,:), allocatable, public wc_g
real(wp), dimension(:,:), allocatable, public wc_ext
real(wp), dimension(:), allocatable, public wc_q
real(wp), dimension(:), allocatable, public wc_cut
integer, dimension(:), allocatable, public wc_on
integer, dimension(:), allocatable, public wc_gp
integer, dimension(:), allocatable, public wc_slot
integer, public n_wc = 0

Detailed Description

Sub-grid wall conduction column of an isothermal immersed wall (patch_ibwall_column): state and 1D numerics.

A linear ghost mirror carries at most about 2 k dT/h, while a wall layer thinner than a cell carries k dT/(sqrt(pi) delta): a cold particle in hot gas takes up too little heat early on. Each first-layer ghost of such a wall carries a 1D low-Mach conduction column along the wall normal, from the wall (T_w) to s_m = max(3h, L) (T from the gas), with the body's curvature. Its step-mean wall flux reaches the gas as one equivalent conduction temperature per ghost (m_ibm).

Function/Subroutine Documentation

◆ f_wc_area()

real(wp) function m_ib_wall_column::f_wc_area ( real(wp), intent(in) kap,
real(wp), intent(in) s )
private

Area of the surface at wall distance s per unit wall area, (1 + kappa s)^(d - 1).

Definition at line 518 of file m_ib_wall_column.fpp.f90.

Here is the caller graph for this function:

◆ f_wc_ell()

real(wp) function, public m_ib_wall_column::f_wc_ell ( real(wp), intent(in) kap,
real(wp), intent(in) s )

Steady radial conduction coordinate, int ds/A: ln(1 + kappa s)/kappa (2D), s/(1 + kappa s) (3D).

Definition at line 564 of file m_ib_wall_column.fpp.f90.

◆ f_wc_face()

real(wp) function m_ib_wall_column::f_wc_face ( integer, intent(in) k,
real(wp), intent(in) sm )
private

Definition at line 471 of file m_ib_wall_column.fpp.f90.

Here is the caller graph for this function:

◆ f_wc_interp()

real(wp) function m_ib_wall_column::f_wc_interp ( real(wp), dimension(wc_n), intent(in) tc,
real(wp), intent(in) tw,
real(wp), intent(in) sm,
real(wp), intent(in) s )
private

Column temperature at wall distance s >= 0 (linear between nodes, the last cell's value beyond it).

Definition at line 614 of file m_ib_wall_column.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_wc_kbar()

real(wp) function m_ib_wall_column::f_wc_kbar ( real(wp), intent(in) ta,
real(wp), intent(in) tb,
real(wp), intent(in) tlo,
real(wp), intent(in) dts,
real(wp), dimension(wc_ntab), intent(in) lam_t,
real(wp), dimension(wc_ntab), intent(in) phi_t )
private

Kirchhoff mean conductivity (Phi(Tb) - Phi(Ta))/(Tb - Ta).

Definition at line 821 of file m_ib_wall_column.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_wc_node()

real(wp) function, public m_ib_wall_column::f_wc_node ( integer, intent(in) k,
real(wp), intent(in) sm )

Wall distance of column node k: 0 the wall, 1..wc_n the cell centres, wc_n + 1 the top s_m. Faces are geometric from the wall, f_k = s_m (r^k - 1)/(r^N - 1).

Definition at line 419 of file m_ib_wall_column.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_wc_phi()

real(wp) function m_ib_wall_column::f_wc_phi ( real(wp), intent(in) t,
real(wp), intent(in) tlo,
real(wp), intent(in) dts,
real(wp), dimension(wc_ntab), intent(in) lam_t,
real(wp), dimension(wc_ntab), intent(in) phi_t )
private

Phi = int lambda dT of the piecewise-linear table, lambda constant beyond its ends.

Definition at line 769 of file m_ib_wall_column.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_wc_tab()

real(wp) function m_ib_wall_column::f_wc_tab ( real(wp), dimension(wc_ntab), intent(in) tab,
real(wp), intent(in) t,
real(wp), intent(in) tlo,
real(wp), intent(in) dts )
private

Linear interpolation in a table on wc_ntab uniform temperatures from Tlo, constant beyond its ends.

Definition at line 719 of file m_ib_wall_column.fpp.f90.

Here is the caller graph for this function:

◆ f_wc_target()

real(wp) function, public m_ib_wall_column::f_wc_target ( real(wp), dimension(wc_n), intent(in) tc,
real(wp), intent(in) tw,
real(wp), intent(in) sm,
real(wp), intent(in) s )

Guard target at a point of signed wall distance s: the column value, and behind the wall its mirror-odd extension 2 T_w - T(-s), exact for a linear profile, so a smooth steady cell's average is its centre value.

Definition at line 671 of file m_ib_wall_column.fpp.f90.

Here is the call graph for this function:

◆ s_wc_solve()

subroutine m_ib_wall_column::s_wc_solve ( real(wp), dimension(wc_n), intent(in) lo,
real(wp), dimension(wc_n), intent(in) up,
real(wp), dimension(wc_n), intent(in) rcv,
real(wp), intent(in) c,
real(wp), dimension(wc_n), intent(inout) d )
private

Solve (rcv - c L) x = d in place, L tridiagonal with sub lo, diagonal -(lo + up) and super up (Thomas).

Definition at line 872 of file m_ib_wall_column.fpp.f90.

Here is the caller graph for this function:

◆ s_wc_step()

subroutine, public m_ib_wall_column::s_wc_step ( real(wp), dimension(wc_n), intent(inout) tc,
real(wp), intent(in) tw,
real(wp), intent(in) tm,
real(wp), intent(in) rcoef,
real(wp), intent(in) kap,
real(wp), intent(in) sm,
real(wp), intent(in) dt,
real(wp), intent(in) tlo,
real(wp), intent(in) dts,
real(wp), dimension(wc_ntab), intent(in) lam_t,
real(wp), dimension(wc_ntab), intent(in) cp_t,
real(wp), intent(out) q )

Advance one column over dt and return its step-mean wall heat flux into the body q, per unit wall area. Low-Mach energy equation of gas at rest at an isothermal wall, frozen composition, rho = rcoef/T (rcoef = p W/R_u):

rho c_p (dT/dt + u dT/ds) = (1/A) d/ds (A lambda dT/ds),   d(A u)/ds = d(A lambda dT/ds)/ds / (rcoef c_p),   u(0) = 0

with T(0) = Tw and T(sm) = Tm. Finite volumes on the stretched cells; advection central where the cell Peclet number is below 1, else upwind. In time, wc_nsub substeps of the L-stable, stiffly accurate 2-stage SDIRK (gamma = 1 - 1/sqrt 2), coefficients lagged per substep, u from a diffusion-only implicit predictor. Both stages are implicit, so a step start does not ring into the wall flux. lam_t and cp_t tabulate lambda(T) and c_p(T) from Tlo in steps dTs.

Definition at line 920 of file m_ib_wall_column.fpp.f90.

Here is the call graph for this function:

Variable Documentation

◆ n_wc

integer, public m_ib_wall_column::n_wc = 0

Definition at line 401 of file m_ib_wall_column.fpp.f90.

◆ wc_cut

real(wp), dimension(:), allocatable, public m_ib_wall_column::wc_cut

Definition at line 399 of file m_ib_wall_column.fpp.f90.

◆ wc_ext

real(wp), dimension(:,:), allocatable, public m_ib_wall_column::wc_ext

Definition at line 398 of file m_ib_wall_column.fpp.f90.

◆ wc_g

real(wp), dimension(:,:), allocatable, public m_ib_wall_column::wc_g

Definition at line 398 of file m_ib_wall_column.fpp.f90.

◆ wc_gp

integer, dimension(:), allocatable, public m_ib_wall_column::wc_gp

Definition at line 400 of file m_ib_wall_column.fpp.f90.

◆ wc_guard

real(wp), parameter, public m_ib_wall_column::wc_guard = 4._wp

Strength of the one-sided guard.

Definition at line 390 of file m_ib_wall_column.fpp.f90.

◆ wc_len_frac

real(wp), parameter, public m_ib_wall_column::wc_len_frac = 0.15_wp

Default column length / radius.

Definition at line 391 of file m_ib_wall_column.fpp.f90.

◆ wc_n

integer, parameter, public m_ib_wall_column::wc_n = 96

Column cells.

Definition at line 386 of file m_ib_wall_column.fpp.f90.

◆ wc_nsub

integer, parameter m_ib_wall_column::wc_nsub = 16
private

SDIRK2 substeps per flow step.

Definition at line 387 of file m_ib_wall_column.fpp.f90.

◆ wc_ntab

integer, parameter, public m_ib_wall_column::wc_ntab = 8

Temperatures of the per-step property tables.

Definition at line 388 of file m_ib_wall_column.fpp.f90.

◆ wc_on

integer, dimension(:), allocatable, public m_ib_wall_column::wc_on

Definition at line 400 of file m_ib_wall_column.fpp.f90.

◆ wc_q

real(wp), dimension(:), allocatable, public m_ib_wall_column::wc_q

Definition at line 399 of file m_ib_wall_column.fpp.f90.

◆ wc_ratio

real(wp), parameter m_ib_wall_column::wc_ratio = 1.08_wp
private

Cell stretching from the wall.

Definition at line 389 of file m_ib_wall_column.fpp.f90.

◆ wc_slot

integer, dimension(:), allocatable, public m_ib_wall_column::wc_slot

Definition at line 400 of file m_ib_wall_column.fpp.f90.

◆ wc_t

real(wp), dimension(:,:), allocatable, public m_ib_wall_column::wc_t

Per column ghost (the first-layer ghosts of wall_column bodies, n_wc of them; wc_gp(c) is the ghost's index in ghost_points, wc_slot its inverse during setup): column temperatures at the cell centres (wc_T), step-mean wall heat flux into the body per unit wall area (wc_q), guard heat booked to the body (wc_cut) and state (wc_on: -1 none, 0 the mirror this step, 1 active). Per face (2 per direction): area times l-coordinate weight (wc_w), area/spacing (wc_g, 0 off a gas face) and the column temperature averaged over the gas cell (wc_ext).

Definition at line 398 of file m_ib_wall_column.fpp.f90.

◆ wc_w

real(wp), dimension(:,:), allocatable, public m_ib_wall_column::wc_w

Definition at line 398 of file m_ib_wall_column.fpp.f90.