本文整理汇总了Python中Output.print_output方法的典型用法代码示例。如果您正苦于以下问题:Python Output.print_output方法的具体用法?Python Output.print_output怎么用?Python Output.print_output使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Output
的用法示例。
在下文中一共展示了Output.print_output方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: import Output [as 别名]
# 或者: from Output import print_output [as 别名]
Ele_E_Nei, Ele_W_Nei, \
Ele_F_Nei, Ele_B_Nei, \
Ele_N_Nei, Ele_S_Nei)
if re_mode == 0:
# Initialize field variables, Q, for all volume elements
Q = CV.Initiate (rho, p_inf, u_inf, v_inf, w_inf, ox_inf, oy_inf, oz_inf, inertia, n_ele, k)
elif re_mode == 1:
# Restart from the previous simulation
Q = CV.Restart(n_ele, Re)
else:
print "Error. No initiation nor restart file"
# Print out the first frame before time marches on
i_step = 1
OP.print_output(Q, n_ele, inertia, k, i_step, coord, n_pt, ijk)
# Time Marching Runge-Kutta Coefficient
stage, RK_a, RK_b, RK_c = EBI.TimeMarching(RK_Mode)
RK_k = np.zeros(shape=(stage, n_ele, 8), dtype=float)
# Time Marching on Here
for i_step in range(2,TotalStep+1,1):
# Runge-Kutta Marching Algorithm Begins
for j in range(0,stage,1):
for m in range(0,j+1,1):
# Compute inviscid fluc for all volume elements
F_inv, G_inv, H_inv, = Flux.compute_inv_flux(n_ele, Q + (dt * RK_a[j, k]*RK_k[m,0:n_ele, 0:8]), inertia, k)