ex18.in

来自「一个用来实现偏微分方程中网格的计算库」· IN 代码 · 共 37 行

IN
37
字号
# The global FEM error tolerance at each timestep# Make this nonzero to solve to a specified tolerance# This will probably break with KellyErrorIndicator# const Real global_tolerance = 1.e-3;global_tolerance = 0.0# The desired number of active mesh elements# Make this nonzero to solve to a specified mesh sizen_elements = 400# Solve a transient instead of a steady problem?transient = true# The interval between our timestepsdeltat = 0.005# And the number of timesteps to taken_timesteps = 15# Write out every nth timestep to file.write_interval = 1# The coarse grid size from which to start adaptivitycoarsegridsize = 20# The maximum number of adaptive steps per timestepmax_adaptivesteps = 0# Turn this off to see the NewtonSolver chattersolver_quiet = true# Solve the 2D or 3D problemdimension = 2# Nonlinear solver tolerancerelative_step_tolerance = 1e-3

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?