本文整理汇总了Python中anuga.shallow_water.shallow_water_domain.Domain.timestepping_statistics方法的典型用法代码示例。如果您正苦于以下问题:Python Domain.timestepping_statistics方法的具体用法?Python Domain.timestepping_statistics怎么用?Python Domain.timestepping_statistics使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类anuga.shallow_water.shallow_water_domain.Domain
的用法示例。
在下文中一共展示了Domain.timestepping_statistics方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from anuga.shallow_water.shallow_water_domain import Domain [as 别名]
# 或者: from anuga.shallow_water.shallow_water_domain.Domain import 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()