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

Subdomain basic statistics . #2119

Merged
merged 12 commits into from
May 25, 2023
Merged

Subdomain basic statistics . #2119

merged 12 commits into from
May 25, 2023

Conversation

aalfonsi
Copy link
Collaborator

@aalfonsi aalfonsi commented May 22, 2023


Pull Request Description

What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)

Closes #1923

What are the significant changes in functionality due to this change request?

Added a new post processor to compute subdomain basic statistics leveraging RAVEN basic statistics.


For Change Control Board: Change Request Review

The following review must be completed by an authorized member of the Change Control Board.

  • 1. Review all computer code.
  • 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
  • 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
  • 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
  • 5. If significant functionality is added, there must be tests added to check this. Tests should cover all possible options. Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in XML block, the node <internalParallel> to True.
  • 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change. The requirements and the requirements test shall be in sync.
  • 7. The merge request must reference an issue. If the issue is closed, the issue close checklist shall be done.
  • 8. If an analytic test is changed/added is the the analytic documentation updated/added?
  • 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

@aalfonsi aalfonsi requested a review from mandd May 22, 2023 19:10
@aalfonsi aalfonsi requested a review from wangcj05 May 23, 2023 18:58

In this case, the RAVEN variables ``mean\_x01, mean\_x02, sen\_x01\_a, sen\_x02\_a, sen\_x01\_b, sen\_x02\_b''
will be computed for each cell defined above (2 cells in this case).
The results will be associated to the mid-point of each point. For the example above:
Copy link
Collaborator

Choose a reason for hiding this comment

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

The results will be associated to the mid-point of each cell

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

In this case, the RAVEN variables ``mean\_x01, mean\_x02, sen\_x01\_a, sen\_x02\_a, sen\_x01\_b, sen\_x02\_b''
will be computed for each cell defined above (2 cells in this case).
The results will be associated to the mid-point of each point. For the example above:
\begin{itemize}
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be:
\item $(a=40.0,b=30.0)$
\item $(a=70.0,b=30.0)$
no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The interval of the fist grid is
[10,100] with 2 steps:
|---------|---------|
10 55 100
midpoints:
------|--------|------
32.5 77.5

Copy link
Collaborator

Choose a reason for hiding this comment

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

gotcha

\setlist[itemize,7]{label=$\bullet$}
\setlist[itemize,8]{label=$\bullet$}
\renewlist{itemize}{itemize}{8}

Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the purpose of this added code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a comment at the begin of the command:
the following allows for 8 levels list nesting

This allows to add an additional level of nesting for the "itemize" command

For example, if the grid \xmlAttr{type} is \xmlString{value}, in the body
of \xmlNode{grid}, the user will specify the values representing the nodes of the grid.
\end{itemize}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this description needed in sampler.tex?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah probably not the right location. Moved to postprocessors.tex

@@ -234,6 +262,21 @@ \section{Samplers}
information is requested.}
}

\newcommand{\gridDescriptionNoCFD}
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does CFD stand for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Typo. CFD -> CDF (Cumulative Dist Function)

@mandd
Copy link
Collaborator

mandd commented May 24, 2023

I have left my initial set of comments. One of my main questions is why a new PP class was added rather than extending the directly the basic statistics?

@aalfonsi
Copy link
Collaborator Author

I have left my initial set of comments. One of my main questions is why a new PP class was added rather than extending the directly the basic statistics?

@mandd addressed your comments. The reason is mostly because it would have required an additional refactoring of the basic statistics and it is already quite complex. The advantage of having this PP is that the computation is encapsulated in the BasicStatistics and, in the future, the calculation for each "cell" can be parallelized if needed.

@moosebuild
Copy link

Job Mingw Test on 6297969 : invalidated by @aalfonsi

@aalfonsi aalfonsi requested a review from mandd May 24, 2023 17:29
In this case, the RAVEN variables ``mean\_x01, mean\_x02, sen\_x01\_a, sen\_x02\_a, sen\_x01\_b, sen\_x02\_b''
will be computed for each cell defined above (2 cells in this case).
The results will be associated to the mid-point of each point. For the example above:
\begin{itemize}
Copy link
Collaborator

Choose a reason for hiding this comment

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

gotcha

@wangcj05
Copy link
Collaborator

Hi @aalfonsi: Is it possible that the subdomain information (the grid lower and upper bound) also get stored in the DataObjects, for example in the metadata? I would recommend to preserve this information in the output DataObject.

@aalfonsi
Copy link
Collaborator Author

Hi @aalfonsi: Is it possible that the subdomain information (the grid lower and upper bound) also get stored in the DataObjects, for example in the metadata? I would recommend to preserve this information in the output DataObject.

@wangcj05 can you open an issue and I can address it in a followup MR?

@mandd mandd merged commit 2295f8f into devel May 25, 2023
@mandd mandd deleted the aalfonsi/subgrid_basicStatistics branch May 25, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK] Basicstatistic subdomain
4 participants