本文整理汇总了Python中DLLM.DLLMKernel.DLLMSolver.DLLMSolver.run_post方法的典型用法代码示例。如果您正苦于以下问题:Python DLLMSolver.run_post方法的具体用法?Python DLLMSolver.run_post怎么用?Python DLLMSolver.run_post使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DLLM.DLLMKernel.DLLMSolver.DLLMSolver
的用法示例。
在下文中一共展示了DLLMSolver.run_post方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: f
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import run_post [as 别名]
def f(x):
wing_param.update_from_x_list(x)
DLLM = DLLMSolver('Simple',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()
func=DLLM.get_F_list()
return func
示例2: df
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import run_post [as 别名]
def df(x):
wing_param.update_from_x_list(x)
DLLM = DLLMSolver('Simple',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()
DLLM.run_adjoint()
func_grad=numpy.array(DLLM.get_dF_list_dchi())
return func_grad
示例3: f
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import run_post [as 别名]
def f(x):
wing_param.update_from_x_list(x)
DLLM = DLLMSolver('Meta',wing_param,OC)
DLLM.run_direct()
#DLLM.run_post(func_list=['Cl'])
DLLM.run_post()
func=DLLM.get_F_list()
return func
示例4: runDLLM
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import run_post [as 别名]
def runDLLM(wing_param, OC):
DLLM = DLLMSolver('Wing',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()
output = DLLM.get_F_list()
F_list_names = DLLM.get_F_list_names()
return output, F_list_names
示例5: test_DLLM_run_direct_post
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import run_post [as 别名]
def test_DLLM_run_direct_post(self):
OC,wing_param = self.__init_wing_param()
DLLM = DLLMSolver('test',wing_param,OC)
try:
print ''
DLLM.run_direct()
DLLM.run_post()
ok=True
except:
ok=False
assert(ok)
示例6: DLLMSolver
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import run_post [as 别名]
import numpy
OC=OperatingCondition('cond1')
OC.set_Mach(0.8)
OC.set_AoA(3.5)
OC.set_altitude(10000.)
OC.set_T0_deg(15.)
OC.set_P0(101325.)
OC.set_humidity(0.)
OC.compute_atmosphere()
wing_param=Wing_Broken('broken_wing',n_sect=20)
wing_param.import_BC_from_file('input_parameters.par')
wing_param.build_linear_airfoil(OC, AoA0=0.0, set_as_ref=True)
wing_param.build_airfoils_from_ref()
wing_param.update()
wing_param.plot()
print wing_param
x0=wing_param.get_dv_array()
DLLM = DLLMSolver('Simple',wing_param,OC)
DLLM.run_direct()
DLLM.run_post()
Post=DLLM.get_DLLMPost()
print Post.dpLift_distrib_dpiAoA