Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions tests/993DF695/golden-metadata.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions tests/993DF695/golden.txt

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions toolchain/mfc/test/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,10 +1686,13 @@ def alter_ib(dimInfo, six_eqn_model=False, viscous=False, num_fluids=1):
uniform = {f"patch_icpp({i})%{k}": v for i in (1, 2, 3) for k, v in (("pres", 1.0), ("alpha_rho(1)", 1.0), ("vel(1)", 0.0))}
# The 2-rank variant puts the body on a rank seam and moves it across the seam in both directions: the moving-wall term
# (proportional to the wall's normal velocity) reads the body cell's momentum from the neighbouring rank there.
for label, spin, ranks, vy in (
("Translating Circle", 0.0, 1, 0.0),
("Translating Spinning Circle", 3.0, 1, 0.0),
("Translating Circle -> 2 MPI Ranks", 0.0, 2, 0.6),
# The periodic-edge variant (1 rank) straddles x = 1: its halo cells are filled by the periodic BC of the primitives only.
periodic_x = {"bc_x%beg": -1, "bc_x%end": -1, "patch_ib(1)%x_centroid": 0.9}
for label, spin, ranks, vy, extra in (
("Translating Circle", 0.0, 1, 0.0, {}),
("Translating Spinning Circle", 3.0, 1, 0.0, {}),
("Translating Circle -> 2 MPI Ranks", 0.0, 2, 0.6, {}),
("Translating Circle -> Periodic Edge", 0.0, 1, 0.6, periodic_x),
):
cases.append(
define_case_d(
Expand All @@ -1712,8 +1715,10 @@ def alter_ib(dimInfo, six_eqn_model=False, viscous=False, num_fluids=1):
"patch_ib(1)%vel(2)": vy,
"patch_ib(1)%angular_vel(3)": spin,
**uniform,
**extra,
},
ppn=ranks,
override_tol=1e-6 if extra else None,
)
)
# A centroid exactly on the periodic domain end is owned by no rank until it is wrapped, so with 2 ranks the body lost its
Expand Down
Loading