Skip to content

Commit

Permalink
added delta sph to couette pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasErbesdobler committed Jul 18, 2024
1 parent 7ddde8f commit afe0750
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_cf2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def u_series_cf_exp(y, t, n_max=10):
def term(n):
base = np.pi * n / d

prefactor = 2 * u_max / (n * np.pi) * (-1)**n
prefactor = 2 * u_max / (n * np.pi) * (-1) ** n
sin_term = np.sin(base * y)
exp_term = np.exp(-(base**2) * nu * t)
return prefactor * sin_term * exp_term
Expand Down Expand Up @@ -107,7 +107,9 @@ def get_solution(data_path, t_dimless, y_axis):
return solutions


@pytest.mark.parametrize("tvf, solver", [(0.0, "SPH"), (1.0, "SPH"), (0.0, "RIE")])
@pytest.mark.parametrize(
"tvf, solver", [(0.0, "SPH"), (1.0, "SPH"), (0.0, "RIE"), (0.0, "DELTA")]
)
def test_cf2d(tvf, solver, tmp_path, setup_simulation):
"""Test whether the couette flow simulation matches the analytical solution"""
y_axis, t_dimless, ref_solutions = setup_simulation
Expand Down

0 comments on commit afe0750

Please sign in to comment.