MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / Step

Method Step

python/timestepping.py:45–56  ·  view source on GitHub ↗
(self, u: ngs.GridFunction, dt: Optional[float] = None,
             newton_args: Optional[dict] = None)

Source from the content-addressed store, hash-verified

43 return u
44
45 def Step(self, u: ngs.GridFunction, dt: Optional[float] = None,
46 newton_args: Optional[dict] = None):
47 if dt is not None:
48 self.dt.Set(dt)
49 self.gfu_old.vec.data = u.vec
50 lin_solver = self._lin_solver_cls(mat=self.bfmstar.mat,
51 pre=self.c,
52 **(self._lin_solver_args or {}))
53 newton = ngs.nonlinearsolvers.NewtonSolver(a=self.bfmstar,
54 u=u,
55 solver=lin_solver)
56 newton.Solve(**(newton_args or {}))
57
58class Newmark:
59 def __init__(self,

Callers 1

IntegrateMethod · 0.95

Calls 2

SolveMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected