CFD Formation Module
The CFD Formation Module is designed to handle…
Classes and Methods
- class WFA.Apps.CFD_Formation._Formation_Base
- class WFA.Apps.CFD_Formation.FD_Nonlinear_Diffusion(H, Hold, dHx, dHy, dHz, max_lxyz, Vpdτ, Resc, dx, dy, dz, dt, dims)
- __init__(H, Hold, dHx, dHy, dHz, max_lxyz, Vpdτ, Resc, dx, dy, dz, dt, dims)
- class WFA.Apps.CFD_Formation.Scalar_Transport
- form(u, v, w, scalar, odx, ody, odz, odt, conductivity, A_C, A_E, A_W, A_S, A_N, A_T, A_B, b, convection_discretization='upwinding')
- Parameters:
u (type) – comment
v (type) – comment
w (type) – comment
scalar (type) – comment
odx (type) – comment
ody (type) – comment
odz (type) – comment
odt (type) – comment
conductivity (type) – comment
A_C (type) – comment
A_E (type) – comment
A_W (type) – comment
A_S (type) – comment
A_N (type) – comment
A_T (type) – comment
A_B (type) – comment
b (type) – comment
convection_discretization – (Default value = ‘upwinding’)
- Returns:
A_C (type) – comment
A_E (type) – comment
A_W (type) – comment
A_S (type) – comment
A_N (type) – comment
A_T (type) – comment
A_B (type) – comment
b (type) – comment
- form_A(u, v, w, odx, ody, odz, odt, conductivity, A_C, A_E, A_W, A_S, A_N, A_T, A_B, convection_discretization='upwinding')
- Parameters:
u (type) – comment
v (type) – comment
w (type) – comment
scalar (type) – comment
odx (type) – comment
ody (type) – comment
odz (type) – comment
odt (type) – comment
conductivity (type) – comment
A_C (type) – comment
A_E (type) – comment
A_W (type) – comment
A_S (type) – comment
A_N (type) – comment
A_T (type) – comment
A_B (type) – comment
b (type) – comment
convection_discretization – (Default value = ‘upwinding’)
- Returns:
A_C (type) – comment
A_E (type) – comment
A_W (type) – comment
A_S (type) – comment
A_N (type) – comment
A_T (type) – comment
A_B (type) – comment
- form_b(scalar, odt, b)
- Parameters:
u (type) – comment
v (type) – comment
w (type) – comment
scalar (type) – comment
odx (type) – comment
ody (type) – comment
odz (type) – comment
odt (type) – comment
conductivity (type) – comment
A_C (type) – comment
A_E (type) – comment
A_W (type) – comment
A_S (type) – comment
A_N (type) – comment
A_T (type) – comment
A_B (type) – comment
b (type) – comment
convection_discretization – (Default value = ‘upwinding’)
- Returns:
b – comment
- Return type:
type
- class WFA.Apps.CFD_Formation.Momentum_Colocated(u_center, v_center, w_center, press, mu=0.1, rho=1.0, dx=0.001, dy=0.001, dz=0.001)
- __init__(u_center, v_center, w_center, press, mu=0.1, rho=1.0, dx=0.001, dy=0.001, dz=0.001)
- form_Ab(cell_type, dt=None, scheme='UDS', invert_A_C=False, diagonal_precondition=False, debug_active=False)
- Coordiante Directions:
East is in x+1 (index 1) West is in x-1 (index 1) North is in y+1 (index 2) South is in y-1 (index 2) Top is in z+1 (index 0, memory slicing) Bottom is in z-1 (index 0, memory slicing)
- Face Value Conventions:
cells centers contain the East, North, and Top values of faces
dx, dz, and dy are distances between cell centers