Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MHD #307

Merged
merged 310 commits into from
May 1, 2020
Merged

MHD #307

merged 310 commits into from
May 1, 2020

Conversation

guadabsb15
Copy link
Member

So far it looks like the MHD solver works in the absence of B fields

zingale and others added 30 commits December 11, 2017 16:19
some changes in eos_soundspeed_mhd
moved the initializing magnetic fields part, so when enforce_consistent_e
is called, that information is passed
guadabsb15 and others added 7 commits April 27, 2020 22:06
getting hydro_source instead of modifying S_new
next chage will include the use of thermo_source
now using thermo_source for the contribution of -pdivu on UEINT
removed the contribution of SrCQ from plm for now, will add those
contributions soon
this compiles and the input files run
a "2D" setup for an x-z RT
@maxpkatz
Copy link
Member

For the tests in the MHD directory, can you please remove the tests that are duplicates of existing problem setups like DustCollapse and wdmerger? I'm OK with you adding new inputs files to existing setups, and adding the initmag calls where necessary. That is preferable to maintaining two versions of each setup.

#endif

#ifdef MHD
void ca_dermagcenx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will need to be converted to the new Derive interface.

@zingale zingale changed the title [WIP] MHD MHD Apr 30, 2020
@@ -17,6 +17,10 @@ module meth_params_module

! number of ghost cells for the hyperbolic solver
integer, parameter :: NHYP = 4
#ifdef MHD
integer, parameter :: MAXADV = 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think MAXADV is used anywhere

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, we don't need it. At least grep suggests that :)

MultiFab& By = get_new_data(Mag_Type_y);
MultiFab& Bz = get_new_data(Mag_Type_z);
#endif

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these needed in Castro_hydro.cpp?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, doesn't seem like we need them there

@maxpkatz
Copy link
Member

I'd prefer if we avoided checking in unclean notebooks into the main repo.

@guadabsb15
Copy link
Member Author

For the tests in the MHD directory, can you please remove the tests that are duplicates of existing problem setups like DustCollapse and wdmerger? I'm OK with you adding new inputs files to existing setups, and adding the initmag calls where necessary. That is preferable to maintaining two versions of each setup.

I think it is done

@zingale zingale merged commit 174a02c into development May 1, 2020
@zingale zingale mentioned this pull request May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants