You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing B, KHARMA has an option beta_min, which sets the ratio of the maximum pressure to maximum magnetic pressure to a desired value by renormalizing the magnetic field.
When running with face-centered fields b_field/solver = face_ct, this fails to happen. The normalization is applied to the cell-centered magnetic field representation, which was subsequently replaced by the (non-normalized) averaged face-centered field.
This is fixed in a branch, PR today. Hopefully I can add a test comparing KHARMA's FM torus initialization to pyharm's independent implementation to avoid any similar errors in the future.
It remains to assess the extent of the damage. Happily, un-normalized aligned MAD simulations at gamma=5/3 (relevant for the very expensive INCITE runs) all have beta_min ~ 40, which is not unusable so long as we record this. SANEs fall around ~130-150. I have checked, and this does not affect Illinois v5 simulations -- it is limited to simulations using face_ct magnetic fields, all more recent than anything in what I'd call widespread "production" use.
If you have pyharm installed, you can use a short script to verify what your actual beta_min turned out to be:
I now have tables of the common values at gamma=5/3 and with the usual MAD torus size of rin=20 r_g, rmax=41 r_g if these would be useful. The starting values for different runs with the same physical parameters agree to about 0.1% relative error, as one might hope.
The text was updated successfully, but these errors were encountered:
bprather
changed the title
KHARMA does not normalize face-centered field initialization
Before August, KHARMA did not normalize face-centered field initialization
Aug 2, 2024
This is fixed in the "oldstable" 2024.5.1 and stable 2024.9, so I'm closing it. This needs to be kept in mind for simulations which began in July or earlier, though, notably for the Illinois library on Frontier.
When initializing B, KHARMA has an option
beta_min
, which sets the ratio of the maximum pressure to maximum magnetic pressure to a desired value by renormalizing the magnetic field.When running with face-centered fields
b_field/solver = face_ct
, this fails to happen. The normalization is applied to the cell-centered magnetic field representation, which was subsequently replaced by the (non-normalized) averaged face-centered field.This is fixed in a branch, PR today. Hopefully I can add a test comparing KHARMA's FM torus initialization to pyharm's independent implementation to avoid any similar errors in the future.
It remains to assess the extent of the damage. Happily, un-normalized aligned MAD simulations at gamma=5/3 (relevant for the very expensive INCITE runs) all have
beta_min
~ 40, which is not unusable so long as we record this. SANEs fall around ~130-150. I have checked, and this does not affect Illinois v5 simulations -- it is limited to simulations usingface_ct
magnetic fields, all more recent than anything in what I'd call widespread "production" use.If you have
pyharm
installed, you can use a short script to verify what your actualbeta_min
turned out to be:I now have tables of the common values at gamma=5/3 and with the usual MAD torus size of rin=20 r_g, rmax=41 r_g if these would be useful. The starting values for different runs with the same physical parameters agree to about 0.1% relative error, as one might hope.
The text was updated successfully, but these errors were encountered: