本文整理匯總了Python中anuga.shallow_water.shallow_water_domain.Domain.print_operator_timestepping_statistics方法的典型用法代碼示例。如果您正苦於以下問題:Python Domain.print_operator_timestepping_statistics方法的具體用法?Python Domain.print_operator_timestepping_statistics怎麽用?Python Domain.print_operator_timestepping_statistics使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類anuga.shallow_water.shallow_water_domain.Domain
的用法示例。
在下文中一共展示了Domain.print_operator_timestepping_statistics方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1:
# 需要導入模塊: from anuga.shallow_water.shallow_water_domain import Domain [as 別名]
# 或者: from anuga.shallow_water.shallow_water_domain.Domain import print_operator_timestepping_statistics [as 別名]
#width=25.0,
#depth=10.0,
#apron=5.0,
#manning=0.013,
#verbose=False)
#------------------------------------------------------------------------------
# Setup boundary conditions
#------------------------------------------------------------------------------
print 'Setting Boundary Conditions'
Br = anuga.Reflective_boundary(domain) # Solid reflective wall
Bi = anuga.Dirichlet_boundary([0.0, 0.0, 0.0]) # Inflow based on Flow Depth and Approaching Momentum !!!
Btus = anuga.Dirichlet_boundary([20.0, 0, 0]) # Outflow water at 10.0
Btds = anuga.Dirichlet_boundary([19.0, 0, 0]) # Outflow water at 9.0
domain.set_boundary({'left': Btus, 'right': Btds, 'top': Br, 'bottom': Br})
#------------------------------------------------------------------------------
# Evolve system through time
#------------------------------------------------------------------------------
for t in domain.evolve(yieldstep = 1, finaltime = 100):
print domain.timestepping_statistics()
domain.print_operator_timestepping_statistics()