moose icon indicating copy to clipboard operation
moose copied to clipboard

General sensor postprocessor

Open ffarha opened this issue 1 year ago • 23 comments

This adds a general sensor postprocessor that can capture realistically how a sensor would output signals.

Reason

In order to enable the user to place and simulate sensors.

Design

Takes into account drift, delay, noise, efficiency, uncertainty of sensors.

Impact

It adds something new. It is not a bug fix.

ffarha avatar Feb 22 '24 18:02 ffarha

linked to https://github.com/idaholab/moose/pull/25594 @harterj

GiudGiud avatar Feb 22 '24 18:02 GiudGiud

Thanks for the contribution. Could you please clean up the commit history (you rebased on master). Just hard reset to devel and git cherry-pick your commits. Also take a look at out code style. There are a bunch of things that jump out, like comment style (we don't do those 🧻 perforation marks 😉) and curly braces around single statement blocks.

dschwen avatar Feb 23 '24 16:02 dschwen

Also, we need to find a better place for this code. It is not suitable for framework IMO. A module would be a better place (e.g. the thermocouple could go u. Heat conducting).

dschwen avatar Feb 23 '24 16:02 dschwen

@harterj and I discussed it could go in misc/ Heat_transfer would work for me with an example with thermo-couples

GiudGiud avatar Feb 23 '24 16:02 GiudGiud

Looks like this capability adds uncertainty to multiphysics simulation outputs. If so, have you taken a look at the Stochastic Tools Module in MOOSE? Would this capability better fit there?

Also, this capability needs some documentation.

somu15 avatar Feb 27 '24 15:02 somu15

Hello

Please use git rebase origin/devel instead of git merge. We only keep merge commits on the master branch

once this is ready for review please ping us

GiudGiud avatar Mar 15 '24 17:03 GiudGiud

I could not find any branch named devel. The GeneralSensorPostprocessor is ready for review.

ffarha avatar Mar 27 '24 21:03 ffarha

try this

git reset --hard 23565ef6ba06e54f333202ed66e55ccb57bc77cd
git fetch origin
git rebase origin
git cherry-pick 4efb80e

GiudGiud avatar Mar 27 '24 21:03 GiudGiud

Hello

please edit the commit history to remove merge commits and use a rebase instead

thank you

GiudGiud avatar Apr 08 '24 15:04 GiudGiud

@ffarha add check on transient executioner and add steady-state case

sallustius avatar Apr 12 '24 16:04 sallustius

@GiudGiud I cherry picked 10f2a4085d46ad06099611f3de6c02840e003b43 from next to devel which is now 6bc8c12c5933e544b8648a6c0ab3aad46518f550. Does this work?

ffarha avatar Apr 16 '24 22:04 ffarha

hello

no you have to rebase. you have a few merge commits in the commit history right now

GiudGiud avatar Apr 16 '24 22:04 GiudGiud

To pass the pretests you need to make sure your formatting is ok, and that you reference the issue number in your commit messages.

dschwen avatar Apr 17 '24 19:04 dschwen

Hey @GiudGiud, the prechecks passed but all other checks are pending now.

ffarha avatar May 06 '24 21:05 ffarha

ok I activated them. pls ping Daniel once all his comments are good and the test suite is green

GiudGiud avatar May 06 '24 21:05 GiudGiud

i made some edits since some checks failed previously. Can you please activate the checks again? @GiudGiud

ffarha avatar May 06 '24 22:05 ffarha

Job Documentation on 9ab60e4 wanted to post the following:

View the site here

This comment will be updated on new commits.

moosebuild avatar May 07 '24 02:05 moosebuild

All jobs on 286f4ae : invalidated by @ffarha

moosebuild avatar May 08 '24 19:05 moosebuild

Job Precheck on 76a2e7a 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/docs/PRs/26870/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 d76ac1a60ff0e4298f84fe8331f05c55d9948632

moosebuild avatar May 14 '24 17:05 moosebuild

Job Coverage on 9ab60e4 wanted to post the following:

Framework coverage

Coverage did not change

Modules coverage

Misc

4409da #26870 9ab60e
Total Total +/- New
Rate 40.08% 61.70% +21.62% 93.57%
Hits 101 261 +160 160
Misses 151 162 +11 11

Diff coverage report

Full coverage report

Full coverage reports

Reports

This comment will be updated on new commits.

moosebuild avatar May 16 '24 00:05 moosebuild

hi @dschwen, all checks have passed for this PR. Some of the suggestions you made previously (eg densevector, dot function) does not work with my implementation (for example, dot function does a dot product of two vectors but I was looking to do was elementwise multiplication). I think the implementation is fine as it is now. But please do take a look and let me know of the next steps.

ffarha avatar May 16 '24 16:05 ffarha

no merge commits please.

GiudGiud avatar May 21 '24 18:05 GiudGiud

hey @GiudGiud, I made all the requested changes. Could you please check if it is okay now?

ffarha avatar May 24 '24 17:05 ffarha

this has caused several failures on next branch testing

lindsayad avatar May 30 '24 14:05 lindsayad