當前位置: 首頁>>代碼示例>>Python>>正文


Python Input.input_parameter方法代碼示例

本文整理匯總了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)
開發者ID:jikembo,項目名稱:MCT_FVM,代碼行數:33,代碼來源:Main.py


注:本文中的Input.input_parameter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。