本文整理汇总了Python中Input.input_parameter方法的典型用法代码示例。如果您正苦于以下问题:Python Input.input_parameter方法的具体用法?Python Input.input_parameter怎么用?Python Input.input_parameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Input
的用法示例。
在下文中一共展示了Input.input_parameter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Calculate
# 需要导入模块: import Input [as 别名]
# 或者: from Input import input_parameter [as 别名]
import time
start_time = time.time()
import Input as IN
import numpy as np
import Jacobian as jp
import ReadIn as RI
import ElementBasicInfo as EBI
import CellValue as CV
import Flux
import WallValue as WV
import Output as OP
import math
# Read in input parameter
f_a, f_b, f_c, rho, p_inf, u_inf, v_inf, w_inf, ox_inf, oy_inf, oz_inf,\
inertia, dt, TotalStep, RK_Mode, Vis_Mode, Mu, Kappa, Alpha_T, Alpha, Beta, Gamma, TherCon, k, re_mode, Re = IN.input_parameter()
# (1) numper of points; (2) Coordinates of pointes; (3) number of boundary conditions;
# (4) number of volume elements; (5) boundary conditions; (6) connectivity for volume elements
n_pt, coord = RI.coordinate(f_a)
n_bound, n_ele, bound, ijk = RI.boundary_connectivity(f_b, f_c)
# Calculate (1)volume, (2)center of the volume, (3)areas of all surfaces, (4)center coordinate of all surafces
# and (5)all normal vectors of all surfaces of all colume elements
Ele_Vol, Ele_Coor, \
Ele_E_Area, Ele_E_Coor, Ele_E_Nor, \
Ele_W_Area, Ele_W_Coor, Ele_W_Nor, \
Ele_F_Area, Ele_F_Coor, Ele_F_Nor, \
Ele_B_Area, Ele_B_Coor, Ele_B_Nor, \
Ele_N_Area, Ele_N_Coor, Ele_N_Nor, \
Ele_S_Area, Ele_S_Coor, Ele_S_Nor = EBI.element_info(coord, n_ele, ijk)