本文整理汇总了Python中DLLM.DLLMKernel.DLLMSolver.DLLMSolver.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DLLMSolver.__init__方法的具体用法?Python DLLMSolver.__init__怎么用?Python DLLMSolver.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DLLM.DLLMKernel.DLLMSolver.DLLMSolver
的用法示例。
在下文中一共展示了DLLMSolver.__init__方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import __init__ [as 别名]
def __init__(self, tag, wing_param, OC, verbose = 0):
self.__verbose = verbose
DLLMSolver.__init__(self, tag, wing_param, OC, verbose = self.__verbose)
self.__N = self.get_wing_param().get_n_sect()
self.__ndv = self.get_wing_param().get_ndv()
self.__R_TCl = numpy.zeros(self.__N+1)
self.__dpR_TCl_dpW = numpy.zeros((self.__N+1,self.__N+1))
self.__dpR_TCl_dpchi = numpy.zeros((self.__N+1,self.__ndv))
self.__dpF_list_dpW = None
self.__target_Cl = 0.5
# initialize the Newton-Raphson problem
self.__NRPb = None
self.__init_Newton_Raphson()
示例2: __init__
# 需要导入模块: from DLLM.DLLMKernel.DLLMSolver import DLLMSolver [as 别名]
# 或者: from DLLM.DLLMKernel.DLLMSolver.DLLMSolver import __init__ [as 别名]
def __init__(self, tag, geom, OC,verbose = 0, grad_active=True):
self.__verbose = verbose
DLLMSolver.__init__(self, tag, geom, OC, verbose = self.__verbose, grad_active=grad_active)
self.__N = self.get_geom().get_n_sect()
self.__ndv = self.get_geom().get_ndv()
self.__R_TL = numpy.zeros(self.__N+1)
self.__dpR_TL_dpW = numpy.zeros((self.__N+1,self.__N+1))
self.__dpR_TL_dpchi = numpy.zeros((self.__N+1,self.__ndv))
self.__dpF_list_dpW = None
self.__target_Lift = 0.
# initialize the Newton-Raphson problem
self.__NRPb = None
self.__init_Newton_Raphson()