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

Website Update - AuxKernels #225

Merged
merged 10 commits into from
Jan 9, 2024
Merged

Conversation

csdechant
Copy link
Collaborator

This will be the start of a series of PRs to update the documentation of the Zapdos website. This PR includes:

  • Updated documentation to the Zapdos AuxKernel System.
  • Edits in flux AuxKernels to allow for the output of any component of the flux.
  • Minor edits in nomenclature for three body reactions to better a line with CRANE terminology.

@moosebuild
Copy link
Collaborator

moosebuild commented Dec 18, 2023

Job Documentation on 5cb196a wanted to post the following:

View the site here

This comment will be updated on new commits.

@gsgall gsgall self-requested a review December 18, 2023 21:12
@csdechant
Copy link
Collaborator Author

Due to the discussion from Issue #223, I am breaking up the website documentation update PR by system.

I am formally letting @gsgall review this PR, but I am mentioning @cticenhour and @lindsayad, in case they have some input on the documentation.

Copy link
Collaborator

@gsgall gsgall left a comment

Choose a reason for hiding this comment

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

I like the fact that we are generalizing the vector components here but I think my preference would be for these AuxKernels to output VectorValues rather than scalars so we can reduce the length of an input file and possibly reduce error in the case that someone may forget a component. Is there a specific reason you chose to allow the user to request a specific component rather than calculating all 3 and storing it in a vector?

@csdechant
Copy link
Collaborator Author

csdechant commented Dec 18, 2023

Is there a specific reason you chose to allow the user to request a specific component rather than calculating all 3 and storing it in a vector?

The simple reason is because the AuxKernels were originally made and tested with scalar variables. Converting these AuxKernels to output vectors would require to re-gold several tests, which I would like to avoid for a PR that focuses on documentation and only include minor bug fixes, when needed. If we want to pursue changing these scalar AuxKernels into vector AuxKernels, I believe it should be a separate PR.

@lindsayad
Copy link
Member

Thanks for the ping @csdechant but I think I'll let you guys handle it!

@cticenhour
Copy link
Member

@csdechant Thanks for the ping, and very happy to let @gsgall give the formal review. Since he doesn't currently have write access, I propose we use this PR as one of several to let Grayson get his bearings on normal MOOSE App PR reviews, with the eventual goal of adding him to the Zapdos Change Control Board (i.e., those with write privileges on the repo). I can give the formal approval to make GitHub happy and comment on the review before we merge. Does this sound OK with you?

@csdechant
Copy link
Collaborator Author

@cticenhour That sounds good to me.

@gsgall
Copy link
Collaborator

gsgall commented Dec 20, 2023

Is there a specific reason you chose to allow the user to request a specific component rather than calculating all 3 and storing it in a vector?

The simple reason is because the AuxKernels were originally made and tested with scalar variables. Converting these AuxKernels to output vectors would require to re-gold several tests, which I would like to avoid for a PR that focuses on documentation and only include minor bug fixes, when needed. If we want to pursue changing these scalar AuxKernels into vector AuxKernels, I believe it should be a separate PR.

That makes sense to me. This may be something to pursue but we can open a different issue for this if we want to do this. What are your thoughts on making this a new issue @cticenhour @lindsayad @keniley1

@gsgall gsgall assigned gsgall and unassigned gsgall Dec 20, 2023
@gsgall gsgall self-requested a review December 20, 2023 01:49
@lindsayad
Copy link
Member

What are your thoughts on making this a new issue @cticenhour @lindsayad @keniley1

sounds good

@cticenhour
Copy link
Member

I agree

@gsgall gsgall assigned csdechant and gsgall and unassigned gsgall and csdechant Dec 20, 2023
Copy link
Collaborator

@gsgall gsgall left a comment

Choose a reason for hiding this comment

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

Overall it looks good most of the suggestions I've made are small formatting and grammatical changes. While it was not submitted in these changes I think we should take this opportunity to fix some other grammatical errors in the class descriptions. The ones I would like to see corrected all share the phrase "of defined species" and these should be more like "of the specified species"

  • Current
  • DiffusiveFlux
  • EFieldAdvFlux
  • TotalFlux
  • DriftDiffusionFluxAux
  • AbsValueAux (not the same error but should be something like "value of the specified variable"

doc/content/source/auxkernels/Sigma.md Show resolved Hide resolved
doc/content/source/auxkernels/DiffusiveFlux.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/DensityMoles.md Outdated Show resolved Hide resolved
src/auxkernels/TotalFlux.C Outdated Show resolved Hide resolved
doc/content/source/auxkernels/Current.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/PowerDep.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/Sigma.md Outdated Show resolved Hide resolved
src/auxkernels/EFieldAdvAux.C Outdated Show resolved Hide resolved
@moosebuild
Copy link
Collaborator

Job Precheck on 7bf44ba wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/zapdos/docs/PRs/225/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format f67c46f29b7667369898ffcf9dc2e302db450f50

@csdechant
Copy link
Collaborator Author

Done addressing all of revision suggestions. I overlooked adding all the suggests as one batch, so there are quite a few commits added to this PR. I am planning to squash all these commit to a single commit label "Grammatical Revision", then add a last commit label "Adding Test Warnings".

@cticenhour @gsgall are either of you against squashing all of these new commits (4fc8676 - 323da7d)?

@cticenhour
Copy link
Member

I would squash them!

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/Sigma.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/PowerDep.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/Current.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/TotalFlux.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/Current.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/TM0CylindricalEzAux.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/TM0CylindricalErAux.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/ProcRateForRateCoeffThreeBody.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/ProcRateForRateCoeff.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update src/auxkernels/ProcRate.C

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Addressing moosebuild precheck

Update include/auxkernels/TotalFlux.h

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update include/auxkernels/EFieldAdvAux.h

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update include/auxkernels/DiffusiveFlux.h

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update include/auxkernels/Current.h

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/TotalFlux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/TotalFlux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/TotalFlux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeffThreeBody.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeffThreeBody.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeffThreeBody.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeffThreeBody.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeff.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeff.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeff.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRateForRateCoeff.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRate.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRate.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/PowerDep.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/PowerDep.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/PowerDep.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/PowerDep.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/Efield.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/Efield.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/EFieldAdvAux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/EFieldAdvAux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/DiffusiveFlux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/EFieldAdvAux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/DriftDiffusionFluxAux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/DiffusiveFlux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/DensityMoles.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/DensityMoles.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/DiffusiveFlux.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRate.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Update doc/content/source/auxkernels/ProcRate.md

Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>

Rephrasing 'defined species' to 'specified species'
@csdechant
Copy link
Collaborator Author

@gsgall everything should be ready to go to finish this PR. All that should be left is to review the additions of the undocumented test warnings and add edits, if needed.

Copy link
Collaborator

@gsgall gsgall left a comment

Choose a reason for hiding this comment

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

Great job on the corrections @csdechant . I have a few more small formatting corrections that I must have missed the first time round. The only change I could not suggest, the source file had no changes in this commit, was the appearance of the #/m^3 in DensityMols but it just needs the math environment on some of it.

The other suggestion I made was the warning used for the untested classes. You had put Undocumented Test and I am assuming that may be because at one point these classes were tested before they were made a part of Zapdos and if that is the case or you have another reason I am fine with that. But I also made the suggestion for Untested Class for the warnings.

doc/content/source/auxkernels/Current.md Outdated Show resolved Hide resolved
src/auxkernels/Current.C Outdated Show resolved Hide resolved
doc/content/source/auxkernels/DensityMoles.md Show resolved Hide resolved
doc/content/source/auxkernels/DensityMoles.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/DensityNormalization.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/Sigma.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/Current.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/PowerDep.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/PowerDep.md Outdated Show resolved Hide resolved
csdechant and others added 3 commits January 8, 2024 14:30
Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>
Co-authored-by: Grayson Gall <66559200+gsgall@users.noreply.github.com>
@csdechant
Copy link
Collaborator Author

@gsgall everything should be ready to go.

Copy link
Collaborator

@gsgall gsgall left a comment

Choose a reason for hiding this comment

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

Great job Corey, looks good to me!

Copy link
Member

@cticenhour cticenhour left a comment

Choose a reason for hiding this comment

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

Stepping in to do the formal review now that @gsgall has given his approval. Good job overall Grayson!

@csdechant - thanks for your work here! I found a few things I wanted to point out, but all of this is relatively minor. Should be good to do once these are addressed.

doc/content/source/auxkernels/DensityNormalization.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/DensityNormalization.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/DriftDiffusionFluxAux.md Outdated Show resolved Hide resolved
doc/content/source/auxkernels/Sigma.md Outdated Show resolved Hide resolved
src/auxkernels/ProcRateForRateCoeffThreeBody.C Outdated Show resolved Hide resolved
csdechant and others added 2 commits January 9, 2024 12:44
Co-authored-by: Casey Icenhour <cticenhour@gmail.com>
@cticenhour cticenhour merged commit af4f5d4 into shannon-lab:devel Jan 9, 2024
3 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.

5 participants