Skip to content

Commit

Permalink
fix the perturbation amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 8, 2025
1 parent 4544e61 commit feca412
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ void problem_initialize_state_data (int i, int j, int k,

amrex::Real cs = std::sqrt(eos_rp::eos_gamma * eos_state.p / state(i,j,k,URHO));

state(i,j,k,UMX) = state(i,j,k,URHO) * (2.0 * amrex::Random(engine) - 1.0_rt);
state(i,j,k,UMY) = state(i,j,k,URHO) * (2.0 * amrex::Random(engine) - 1.0_rt);
state(i,j,k,UMX) = state(i,j,k,URHO) * 0.05_rt * cs * (2.0 * amrex::Random(engine) - 1.0_rt);
state(i,j,k,UMY) = state(i,j,k,URHO) * 0.05_rt * cs * (2.0 * amrex::Random(engine) - 1.0_rt);
state(i,j,k,UMZ) = 0.0_rt;

state(i,j,k,UEDEN) += 0.5_rt * (state(i,j,k,UMX) * state(i,j,k,UMX) +
Expand Down

0 comments on commit feca412

Please sign in to comment.