Runtime BC control for both cc and fc variables#1516
Conversation
|
@BenWibking I'll wait for your comments before refactoring all the problems to use this new design, which requires some python scripting. |
|
This is a nice clean-up. Can it also set |
Not yet, but it's trivial to extend it to support that. Then, there will be a |
I think it would be better to set both with the same parameter. Is there a case where you think that wouldn't be possible? |
That will be even simpler. I don't know if MHD B.C. will always be the same as hydro. If yes, then we should use the same parameter. What about reflecting BC for fc variables? All current MHD tests use periodic or Dirichlet BC, but I think we want to support reflecting BC as well, right? Do we have to handle odd/even reflection, or is it always even reflection since we only have one variable (magnetic field) for each dimension? |
You can do reflecting BCs for magnetic fields, but you have to handle the parity in a special way. The normal component should be even, and the transverse components should be odd. |
for more information, see https://pre-commit.ci
…ro/quokka into chong/BC/quokka-bc-v2
@BenWibking I'll leave this for a future PR. In this PR, I assume 'reflecting' for cc = 'reflect_even' for fc, just like what you did in all the MHD particle tests. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
@BenWibking This is ready for review. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
@BenWibking This is ready. |
markkrumholz
left a comment
There was a problem hiding this comment.
Just left some minor cleanup comments.
|
Looks like this will need to be updated to the base branch to pass the rocm-diskgalaxy-container test. Also, there's still a SonarCloud failure that will block merging. |
The SonarCloud warnings are optional and we can ignore it. I think unless we can control the rules of SonarCloud, we should not make it mandatory. We had discussions in #1529 |
|




Description
Now, we define boundary conditions with a single runtime parameter. This overrides
geometry.is_periodic = 1 1 1. No need forBCs_ccin the problem creator.Checklist
Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an
xinside the square brackets[ ]in the Markdown source below:/azp run.