本文整理汇总了Python中amuse.community.interface.gd.GravitationalDynamics.define_state方法的典型用法代码示例。如果您正苦于以下问题:Python GravitationalDynamics.define_state方法的具体用法?Python GravitationalDynamics.define_state怎么用?Python GravitationalDynamics.define_state使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类amuse.community.interface.gd.GravitationalDynamics
的用法示例。
在下文中一共展示了GravitationalDynamics.define_state方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: define_state
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import define_state [as 别名]
def define_state(self, object):
GravitationalDynamics.define_state(self, object)
#GravityFieldCode.define_state(self, object)
self.stopping_conditions.define_state(object)
object.add_method('EDIT', 'new_subset')
object.add_method('RUN', 'new_subset')
示例2: define_state
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import define_state [as 别名]
def define_state(self, object):
GravitationalDynamics.define_state(self, object)
object.add_method('RUN', 'get_kinetic_energy')
object.add_method('RUN', 'get_potential_energy')
self.stopping_conditions.define_state(object)
示例3: define_state
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import define_state [as 别名]
def define_state(self, object):
GravitationalDynamics.define_state(self, object)
object.add_method('EDIT', 'new_central_particle')
object.add_method('EDIT', 'new_orbiter')
object.add_method('UPDATE', 'new_orbiter')
object.add_transition('RUN', 'UPDATE', 'new_central_particle', False)
object.add_transition('RUN', 'UPDATE', 'new_orbiter', False)
self.stopping_conditions.define_state(object)
示例4: define_state
# 需要导入模块: from amuse.community.interface.gd import GravitationalDynamics [as 别名]
# 或者: from amuse.community.interface.gd.GravitationalDynamics import define_state [as 别名]
def define_state(self, object):
GravitationalDynamics.define_state(self, object)
GravityFieldCode.define_state(self, object)
self.stopping_conditions.define_state(object)