本文整理汇总了Python中anuga.shallow_water.shallow_water_domain.Domain.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Domain.__init__方法的具体用法?Python Domain.__init__怎么用?Python Domain.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类anuga.shallow_water.shallow_water_domain.Domain
的用法示例。
在下文中一共展示了Domain.__init__方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from anuga.shallow_water.shallow_water_domain import Domain [as 别名]
# 或者: from anuga.shallow_water.shallow_water_domain.Domain import __init__ [as 别名]
def __init__(self,
coordinates=None,
vertices=None,
boundary=None,
tagged_elements=None,
geo_reference=None,
use_inscribed_circle=False,
mesh_filename=None,
use_cache=False,
verbose=False,
full_send_dict=None,
ghost_recv_dict=None,
starttime=0.0,
processor=0,
numproc=1,
number_of_full_nodes=None,
number_of_full_triangles=None):
conserved_quantities = [ 'stage', 'xmomentum', 'ymomentum']
evolved_quantities = [ 'stage', 'xmomentum', 'ymomentum']
other_quantities = [ 'elevation', 'friction', 'height',
'xvelocity', 'yvelocity', 'x', 'y' ]
Sww_domain.__init__(self,
coordinates = coordinates,
vertices = vertices,
boundary = boundary,
tagged_elements = tagged_elements,
geo_reference = geo_reference,
use_inscribed_circle = use_inscribed_circle,
mesh_filename = mesh_filename,
use_cache = use_cache,
verbose = verbose,
conserved_quantities = conserved_quantities,
evolved_quantities = evolved_quantities,
other_quantities = other_quantities,
full_send_dict = full_send_dict,
ghost_recv_dict = ghost_recv_dict,
starttime = starttime,
processor = processor,
numproc = numproc,
number_of_full_nodes = number_of_full_nodes,
number_of_full_triangles = number_of_full_triangles)
#------------------------------------------------
# set some defaults
# Most of these override the options in config.py
#------------------------------------------------
self.set_tsunami_defaults()