Ejemplo n.º 1
0
 def test_pseudotime(self):
     self.assert_resnorm(
         solver.pseudotime('dofs',
                           residual=self.residual,
                           lhs0=self.lhs0,
                           constrain=self.cons,
                           inertia=self.inertia,
                           timestep=1).solve(tol=self.tol, maxiter=12))
Ejemplo n.º 2
0
 def test_pseudotime(self):
     self.assert_resnorm(
         solver.pseudotime(self.dofs,
                           residual=self.residual,
                           arguments=self.arguments,
                           constrain=self.cons,
                           inertia=self.inertia,
                           timestep=1).solve(tol=self.tol, maxiter=12))
Ejemplo n.º 3
0
 def test_pseudotime_iter(self):
     _test_recursion_cache(
         self, lambda:
         ((types.frozenarray(lhs), info.resnorm)
          for lhs, info in solver.pseudotime('dofs',
                                             residual=self.residual,
                                             lhs0=self.lhs0,
                                             constrain=self.cons,
                                             inertia=self.inertia,
                                             timestep=1)))
Ejemplo n.º 4
0
 def test_pseudotime_iter(self):
     _test_recursion_cache(
         self, lambda:
         ((self.frozen(lhs), info.resnorm)
          for lhs, info in solver.pseudotime(self.dofs,
                                             residual=self.residual,
                                             arguments=self.arguments,
                                             constrain=self.cons,
                                             inertia=self.inertia,
                                             timestep=1)))
Ejemplo n.º 5
0
 def test_pseudotime(self):
   self.assert_resnorm(solver.pseudotime('dofs', residual=self.residual, lhs0=self.lhs0, constrain=self.cons, inertia=self.inertia, timestep=1).solve(tol=self.tol, maxiter=3))
Ejemplo n.º 6
0
 def test_pseudotime_iter(self):
   _test_recursion_cache(self, lambda: ((types.frozenarray(lhs), info.resnorm) for lhs, info in solver.pseudotime('dofs', residual=self.residual, lhs0=self.lhs0, constrain=self.cons, inertia=self.inertia, timestep=1)))