Beispiel #1
0
 def test_without_time_mixin_prob(self):
     """
     Test that non time dependent problems return true.
     """
     prob = SimpleSteadyState(mesh=self.m, V=self.V)
     solver = Solver(prob)
     self.assertTrue(solver.is_steady_state())
Beispiel #2
0
 def test_with_time_mixin_prob_true(self):
     """
     Test that a time dependant problem returns true if no time set.
     """
     prob = SimpleTimeDep(mesh=self.m, V=self.V)
     solver = Solver(prob)
     self.assertTrue(solver.is_steady_state())
Beispiel #3
0
 def test_with_time_mixin_prob_false(self):
     """
     Test that the time dependant problem returns false if time set.
     """
     prob = SimpleTimeDep(mesh=self.m, V=self.V)
     prob.set_timescale(dt=1.0, steps=5)
     solver = Solver(prob)
     self.assertFalse(solver.is_steady_state())