Method
Step
(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 | |
| 58 | class Newmark: |
| 59 | def __init__(self, |
Tested by
no test coverage detected