Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
hgopalan committed Jan 28, 2025
1 parent 6260003 commit 9d30920
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions amr-wind/equation_systems/icns/source_terms/DragForcing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,28 +204,27 @@ void DragForcing::operator()(
yi_end = sponge_north * std::max(yi_end, 0.0);
ystart_damping = sponge_strength * yi_start * yi_start;
yend_damping = sponge_strength * yi_end * yi_end;
const amrex::Real ux1 = vel(i, j, k, 0);
const amrex::Real uy1 = vel(i, j, k, 1);
const amrex::Real uz1 = vel(i, j, k, 2);
const auto idx =
interp::bisection_search(device_vel_ht, device_vel_ht + vsize, z);
const amrex::Real spongeVelX =
(vsize > 0) ? interp::linear_impl(
device_vel_ht, device_vel_vals, z, idx, 3, 0)
: 0.0;
: ux1;
const amrex::Real spongeVelY =
(vsize > 0) ? interp::linear_impl(
device_vel_ht, device_vel_vals, z, idx, 3, 1)
: 0.0;
: uy1;
const amrex::Real spongeVelZ =
(vsize > 0) ? interp::linear_impl(
device_vel_ht, device_vel_vals, z, idx, 3, 2)
: 0.0;
: uz1;
amrex::Real Dxz = 0.0;
amrex::Real Dyz = 0.0;
amrex::Real bc_forcing_x = 0;
amrex::Real bc_forcing_y = 0;

const amrex::Real ux1 = vel(i, j, k, 0);
const amrex::Real uy1 = vel(i, j, k, 1);
const amrex::Real uz1 = vel(i, j, k, 2);
const amrex::Real m = std::sqrt(ux1 * ux1 + uy1 * uy1 + uz1 * uz1);
if (drag(i, j, k) == 1 && (!is_laminar)) {
// Check if close enough to interface to use current cell or below
Expand Down

0 comments on commit 9d30920

Please sign in to comment.