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

Fix GalaxySimulation boundary to work correctly with DualEnergyFormalism #216

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

gregbryan
Copy link
Contributor

This small PR makes a few corrections to the specialized ExternalBoundary machinery that is part of the GalaxySimulation framework so that the gas coming in the boundary correctly respects the DualEnergyFormalism, HydroMethod, and Multispecies flags.

if( UseMetallicityField )
BoundaryValue[MetalNum][dim][0][index] = 1.0e-10;
BoundaryValue[MetalNum][dim][0][index] = 0.1 * BoundaryValue[DensNum][dim][0][index] * CoolData.SolarMetalFractionByMass; // 0.1 solar metallicity
Copy link
Contributor

Choose a reason for hiding this comment

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

@gregbryan what is the justification for hardwiring this to 0.1 Solar? I'm happy to go along with it, I just don't understand!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No good justification -- a parameter needs to be created here but I feel it is a bit beyond the scope of this PR (this line is just to make a slightly less egregious choice). I propose that we accept this PR as is and I create an issue for this problem (as described below).

New issue:
A parameter which controls the metallicity of the inflowing gas in this problem should be created and connected (requires changes to GalaxySimulationInitialize.C, Grid_GalaxySimulationInitialize.C, and ExternalBoundary_SetGalaxySimulationBoundary). In particular, a new global parameter in the GalaxySimulationRPSWind family would need to be created, set and used in those routines. Currently the metallicity inflow is hard-wired to 0.1 solar as the least bad thing.

Copy link
Contributor

Choose a reason for hiding this comment

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

That sounds great to me. I'll approve and merge.

Copy link
Contributor

Choose a reason for hiding this comment

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

@gregbryan I went ahead and made this as issue #236

@bwoshea bwoshea merged commit d0fce2a into enzo-project:main Feb 19, 2024
4 checks passed
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.

None yet

3 participants