本文整理匯總了Python中sfepy.solvers.solvers.TimeSteppingSolver.process_conf方法的典型用法代碼示例。如果您正苦於以下問題:Python TimeSteppingSolver.process_conf方法的具體用法?Python TimeSteppingSolver.process_conf怎麽用?Python TimeSteppingSolver.process_conf使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sfepy.solvers.solvers.TimeSteppingSolver
的用法示例。
在下文中一共展示了TimeSteppingSolver.process_conf方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: process_conf
# 需要導入模塊: from sfepy.solvers.solvers import TimeSteppingSolver [as 別名]
# 或者: from sfepy.solvers.solvers.TimeSteppingSolver import process_conf [as 別名]
def process_conf(conf, kwargs):
"""
Process configuration options.
"""
get = make_get_conf(conf, kwargs)
common = TimeSteppingSolver.process_conf(conf)
return Struct(t0=get('t0', 0.0),
t1=get('t1', 1.0),
dt=get('dt', None),
n_step=get('n_step', 10),
quasistatic=get('quasistatic', False)) + common