PrincetonUniversity / athena-public-version

(MOVED) Athena++ GRMHD code and adaptive mesh refinement (AMR) framework. Active repository --->
https://github.com/PrincetonUniversity/athena
BSD 3-Clause "New" or "Revised" License
160 stars 118 forks source link

Magnetic fields without MHD solver #51

Closed michaeljennings11 closed 4 years ago

michaeljennings11 commented 4 years ago

Hello All,

I was wondering if there is a straightforward way to include magnetic fields but turn off the MHD solver. I am interested in testing a new physics module that requires the magnetic field direction but I don't want to solve the MHD equations (basically I want to initialize a static uniform magnetic field that wont interact with the fluid).

Any insight is much appreciated!

Best, Michael

felker commented 4 years ago

If I recall correctly, you could disable the contents of: https://github.com/PrincetonUniversity/athena-public-version/blob/d535095157c9b6dd67829dab4ce605d21da6efbb/src/task_list/time_integrator.cpp#L786

Your mileage may vary if you are using mesh refinement, etc.

michaeljennings11 commented 4 years ago

Great, thank you! I'll give this a try.