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

Add problem setup for cloud collapse at different metallicities #723

Draft
wants to merge 16 commits into
base: development
Choose a base branch
from

Conversation

psharda
Copy link
Contributor

@psharda psharda commented Aug 29, 2024

Description

This PR will add a test problem setup for simulating collapse of molecular cloud at different metallicities with on the fly (metals+dust) chemistry implemented in Microphysics. The chemistry network being used here is general and can be used for other ISM simulations as well. It does not contain cosmic rays and photochemistry; they will be added in a future PR.

Related issues

Will use AMReX-Astro/Microphysics#1642

Checklist

Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an x inside the square brackets [ ] in the Markdown source below:

  • I have added a description (see above).
  • I have added a link to any related issues see (see above).
  • I have read the Contributing Guide.
  • I have added tests for any new physics that this PR adds to the code.
  • I have tested this PR on my local computer and all tests pass.
  • I have manually triggered the GPU tests with the magic comment /azp run.
  • I have requested a reviewer for this PR.

@psharda psharda added this to the Metal Chemistry milestone Aug 29, 2024
@psharda psharda added enhancement New feature or request priority:high high priority labels Aug 29, 2024
src/chemistry/Chemistry.hpp Outdated Show resolved Hide resolved
src/chemistry/Chemistry.hpp Outdated Show resolved Hide resolved
break;
case 34:
numdens[n - 1] = userData_.primary_species_34;
break;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can these be replaced with a macro?

Copy link
Contributor Author

@psharda psharda Aug 30, 2024

Choose a reason for hiding this comment

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

yeah, but you still need to call the macro 34 times, no? like the way we did it in microphysics...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes

src/problems/MetalChem/metalcloud.cpp Outdated Show resolved Hide resolved
src/problems/MetalChem/metalcloud.cpp Outdated Show resolved Hide resolved
src/problems/MetalChem/metalcloud.hpp Outdated Show resolved Hide resolved
src/chemistry/Chemistry.hpp Outdated Show resolved Hide resolved
github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2024
### Description
Now that we are going to have metal+dust chemistry, redefine the ifdef
to CHEMISTRY

### Related issues
Will be useful for #723 

### Checklist
_Before this pull request can be reviewed, all of these tasks should be
completed. Denote completed tasks with an `x` inside the square brackets
`[ ]` in the Markdown source below:_
- [x] I have added a description (see above).
- [x] I have added a link to any related issues see (see above).
- [x] I have read the [Contributing
Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md).
- [ ] I have added tests for any new physics that this PR adds to the
code.
- [x] I have tested this PR on my local computer and all tests pass.
- [ ] I have manually triggered the GPU tests with the magic comment
`/azp run`.
- [] I have requested a reviewer for this PR.

---------

Co-authored-by: Piyush Sharda <psharda@RSAA-43608.local>
github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2024
### Description
Important updates to microphysics now enables using chemistry at all
metallicities.

### Related issues
Will be used in #723 

### Checklist
_Before this pull request can be reviewed, all of these tasks should be
completed. Denote completed tasks with an `x` inside the square brackets
`[ ]` in the Markdown source below:_
- [x] I have added a description (see above).
- [x] I have added a link to any related issues see (see above).
- [x] I have read the [Contributing
Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md).
- [ ] I have added tests for any new physics that this PR adds to the
code.
- [x] I have tested this PR on my local computer and all tests pass.
- [x] I have manually triggered the GPU tests with the magic comment
`/azp run`.
- [x] I have requested a reviewer for this PR.

Co-authored-by: Piyush Sharda <psharda@RSAA-43608.local>
Copy link

sonarqubecloud bot commented Sep 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:high high priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants