Skip to content

Commit

Permalink
fix plasma beta
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Oct 10, 2024
1 parent ce1eb09 commit 358ae04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inputs/precipitator_mhd_lowres.in
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ cfl = 1.0

<precipitator>
hse_profile_filename = inputs/profile_tc_tff_3.0.txt
bfield_gauss = 1.0e-8 # 10 nG
bfield_gauss = 1.0e-6 # 1.0 uG
uniform_init = 0
enable_heating = magic # options: [magic, none]
thermostat_temperature = 1.0e7 # K
Expand Down
2 changes: 1 addition & 1 deletion src/pgen/precipitator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ void UserMeshWorkBeforeOutput(Mesh *mesh, ParameterInput *pin,
const Real by = prim(IB2, k, j, i);
const Real bz = prim(IB3, k, j, i);
const Real P_mag = 0.5 * (SQR(bx) + SQR(by) + SQR(bz));
const Real beta = P_mag / P;
const Real beta = P / P_mag;

const Real v1 = prim(IV1, k, j, i);
const Real v2 = prim(IV2, k, j, i);
Expand Down

0 comments on commit 358ae04

Please sign in to comment.