本文整理匯總了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()