本文整理汇总了Python中amuse.community.interface.gd.GravitationalDynamics.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python GravitationalDynamics.__init__方法的具体用法?Python GravitationalDynamics.__init__怎么用?Python GravitationalDynamics.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类amuse.community.interface.gd.GravitationalDynamics
的用法示例。
在下文中一共展示了GravitationalDynamics.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import __init__ [as 别名]
def __init__(self, convert_nbody = None, **keyword_arguments):
legacy_interface = HiGPUsInterface(**keyword_arguments)
GravitationalDynamics.__init__(self,
legacy_interface,
convert_nbody,
**keyword_arguments)
示例2: __init__
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import __init__ [as 别名]
def __init__(self, convert_nbody=None, **options):
self.stopping_conditions = StoppingConditions(self)
legacy_interface = SakuraInterface(**options)
self.legacy_doc = legacy_interface.__doc__
GravitationalDynamics.__init__(self, legacy_interface, convert_nbody, **options)
示例3: __init__
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import __init__ [as 别名]
def __init__(self, unit_converter = None, **options):
self.stopping_conditions = StoppingConditions(self)
GravitationalDynamics.__init__(
self,
StubInterface(**options),
unit_converter,
**options
)
示例4: __init__
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import __init__ [as 别名]
def __init__(self, convert_nbody = None, **options):
legacy_interface = self.__interface__(**options)
GravitationalDynamics.__init__(
self,
legacy_interface,
convert_nbody,
**options
)