Skip to content

Commit

Permalink
more general form for the sloshing tank case (#899)
Browse files Browse the repository at this point in the history
* center the disturbance regardless of domain bounds
* better for testing with nalu-wind overset
  • Loading branch information
mbkuhn authored Aug 18, 2023
1 parent 2467ca6 commit 27aaef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amr-wind/physics/multiphase/SloshingTank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void SloshingTank::initialize_fields(int level, const amrex::Geometry& geom)
const amrex::Real z0 =
water_level +
Amp * std::exp(
-kappa * (std::pow(x - 0.5 * Lx, 2) +
std::pow(y - 0.5 * Ly, 2)));
-kappa * (std::pow(x - problo[0] - 0.5 * Lx, 2) +
std::pow(y - problo[1] - 0.5 * Ly, 2)));
phi(i, j, k) = z0 - z;
});
}
Expand Down

0 comments on commit 27aaef9

Please sign in to comment.