test: cover channel outlet clamp and damping controls
This commit is contained in:
@@ -82,9 +82,11 @@ class ChannelRootGPU(unittest.TestCase):
|
||||
def test_uniform_matched_root(self):
|
||||
with CudaContext(0) as context:
|
||||
for shifted in (False, True):
|
||||
for profile in ("uniform", "parabolic"):
|
||||
for profile, clamp, damping in (("uniform", True, .5), ("parabolic", True, .5),
|
||||
("parabolic", False, .8)):
|
||||
cfg = LBMConfig(nx=24, ny=20, viscosity=.1, velocity=.025,
|
||||
ddf_shifting=shifted, inlet_profile=profile)
|
||||
ddf_shifting=shifted, inlet_profile=profile,
|
||||
outlet_backflow_clamp=clamp, outlet_srt_neq_damp=damping)
|
||||
initial = _encode_physical(state(cfg.ny, cfg.nx), shifted)
|
||||
expected = run_root(cfg, context, initial)
|
||||
self.assertTrue(np.isfinite(expected).all())
|
||||
|
||||
Reference in New Issue
Block a user