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

Workshop2024 merge #2328

Merged
merged 32 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b8246eb
new short forward sampling presentation
PaulTalbot-INL Jun 4, 2024
79ea412
updated some scgpc inputs and added adaptive
PaulTalbot-INL Jun 4, 2024
79ab311
completed example of forward sampling exercise 5 for the short worksh…
PaulTalbot-INL Jun 4, 2024
7ffa807
stash
PaulTalbot-INL Jun 10, 2024
7a80841
advanced sampling presentation and exercises
PaulTalbot-INL Jun 18, 2024
f708d77
add presentation slides from RAVEN 2022 workshop
wangcj05 Jun 20, 2024
75d4e10
add raven installation slides
wangcj05 Jun 21, 2024
e615cbe
added TSA, CodeInterfaces workshop docs
PaulTalbot-INL Jun 21, 2024
ba13278
resolving conflicts
PaulTalbot-INL Jun 21, 2024
0409301
add slides for Ensemble and Hybrid model
wangcj05 Jun 21, 2024
e35fbf1
Merge branch 'workshop2024' of https://github.com/idaholab/raven into…
wangcj05 Jun 21, 2024
e5d5165
add presentation templates
wangcj05 Jun 21, 2024
7d351c7
add DSS slides
wangcj05 Jun 27, 2024
6c30128
add Bayesian Calibration slides
wangcj05 Jun 30, 2024
722b6dc
edit slides
mandd Jul 1, 2024
8c4c7d2
added raven models slideset
mandd Jul 5, 2024
7452cf6
edits slides
mandd Jul 5, 2024
ea4328a
Removing specifying liblapack. (#2327)
joshua-cogliati-inl Jun 5, 2024
e8d0026
Add capability to handle interdependent functions in samplers/optimiz…
alfoa Jun 7, 2024
ea3429b
Arbitrary Custom Input in InputSpec (#2332)
PaulTalbot-INL Jun 12, 2024
817fb47
switching ylabel to subplot titles, helps when a lot of subplots
GabrielSoto-INL Jun 10, 2024
7db29af
changed varname to ylabel, but split up long names by underscores:
GabrielSoto-INL Jun 10, 2024
da132f1
Update FARM user manual and citation (#2333)
wanghy-anl Jul 1, 2024
2e378d6
adding sparse sensing hands on files
Jimmy-INL Jul 7, 2024
0d12b2c
changing marker color and adding the presentation
Jimmy-INL Jul 7, 2024
0fd75b3
adding latest presentations
Jimmy-INL Jul 8, 2024
ef85dab
moving hands-on session mid presentation
Jimmy-INL Jul 10, 2024
e8973a9
last review
mandd Jul 10, 2024
85eaec2
removing few slides upon Joshs request
Jimmy-INL Jul 10, 2024
4fcb085
Merge remote-tracking branch 'origin/devel' into workshop2024
wangcj05 Jul 10, 2024
f9b1708
reduce ppt sizes
wangcj05 Jul 11, 2024
456704a
reduce ppts sizes
wangcj05 Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added doc/workshop/ExternalModels/externalModels.pptx
Binary file not shown.
Binary file added doc/workshop/SparseSensing/SparseSensing.pptx
joshua-cogliati-inl marked this conversation as resolved.
Show resolved Hide resolved
Binary file not shown.
4,052 changes: 4,052 additions & 0 deletions doc/workshop/SparseSensing/data/350_240.csv

Large diffs are not rendered by default.

4,052 changes: 4,052 additions & 0 deletions doc/workshop/SparseSensing/data/350_270.csv

Large diffs are not rendered by default.

4,052 changes: 4,052 additions & 0 deletions doc/workshop/SparseSensing/data/350_300.csv

Large diffs are not rendered by default.

4,052 changes: 4,052 additions & 0 deletions doc/workshop/SparseSensing/data/350_330.csv

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions doc/workshop/SparseSensing/data/Perturbations.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Power (W),BCTemperature (K),filename
350,240,350_240.csv
350,270,350_270.csv
350,300,350_300.csv
350,330,350_330.csv
108 changes: 108 additions & 0 deletions doc/workshop/SparseSensing/exercises/testSPSLOptiTwist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" ?>
<Simulation verbosity="debug">
<TestInfo>
<name>tests/framework/Postprocessors/SparseSensing</name>
<author>Mohammad Abdo (@Jimmy-INL)</author>
<created>2022-07-18</created>
<classesTested>Models.Postprocessors.SparseSensing</classesTested>
<description>This test aims to check the ability of the Sparse Sensing Postprocessor
to locate and plot the selected sensors to reconstruct the temperature field of the OPTI-TWIST prototype
when perturbing the heater power.
</description>
</TestInfo>

<RunInfo>
<WorkingDir>reconstructionOptiTwist</WorkingDir>
<Sequence>LoadCSV, mySPpp, print</Sequence>
<batchSize>1</batchSize>
</RunInfo>

<Files>
<Input name="twistFile" type=""></Input><!-- Provide the csv file that contains the names of the samples files-->
<Input name="refDO" type=""></Input><!-- Provide the csv of the case onwhich you want to show the sensors i.e., maximum initial power (350 W) and maximum initial Temperature-->
</Files>

<Steps>
<IOStep name="LoadCSV">
<Input class="Files" type="">twistFile</Input>
<Input class="Files" type=""></Input><!--Fill in-->
<Output class="DataObjects" type="HistorySet">TwistDO</Output>
<Output class="DataObjects" type="PointSet">myDO</Output>
</IOStep>
<PostProcess name="mySPpp">
<Input class="DataObjects" type="HistorySet">TwistDO</Input>
<Model class="Models" type="PostProcessor"></Model><!--Fill in-->
<Output class="DataObjects" type="DataSet">outPP</Output>
</PostProcess>
<IOStep name="print">
<Input class="DataObjects" type="DataSet">outPP</Input>
<Input class="DataObjects" type="PointSet">myDO</Input>
<Input class="DataObjects" type="HostorySet">TwistDO</Input>
<Output class="OutStreams" type="Print">outPP</Output>
<Output class="OutStreams" type="Plot">mySensorPlot</Output>
</IOStep>
</Steps>

<Models>
<PostProcessor name="mySPSL" subType="SparseSensing" verbosity="debug">
<Goal subType=""> <!--Fill in-->
<features></features><!--Fill in att variable names needed for training from the CSV-->
<target>Temperature (K)</target>
<basis>SVD</basis>
<nModes></nModes> <!--Try different modes-->
<nSensors></nSensors> <!--Try different number of sensors-->
<optimizer>QR</optimizer>
</Goal>
</PostProcessor>
</Models>

<DataObjects>
<PointSet name="myDO">
<Output>X (m),Temperature (K),Y (m)</Output>
</PointSet>
<HistorySet name="TwistDO">
<Input> Power (W), BCTemperature (K)</Input>
<Output>X (m),Temperature (K),Y (m)</Output>
<options>
<pivotParameter>index</pivotParameter>
</options>
</HistorySet>
<DataSet name="outPP">
<Input>InputPlaceHolder</Input>
<Output>Temperature (K), X (m), Y (m)</Output>
<Index var="sensor">X (m),Y (m),Temperature (K)</Index>
</DataSet>
</DataObjects>

<OutStreams>
<Print name="outPP">
<type>csv</type>
<source>outPP</source>
<what>output</what>
</Print>
<Plot name="mySensorPlot">
<plotSettings>
<plot>
<type>scatter</type>
<x>myDO|Output|X (m)</x>
<y>myDO|Output|Y (m)</y>
<cmap>coolwarm</cmap>
<colorMap>myDO|Output|Temperature (K)</colorMap>
</plot>
<plot>
<type>scatter</type>
<x>outPP|Output|X (m)</x>
<y>outPP|Output|Y (m)</y>
<c>magenta</c>
<marker>*</marker>
</plot>
<xlabel>x</xlabel>
<ylabel>y</ylabel>
</plotSettings>
<actions>
<how>png</how>
</actions>
</Plot>
</OutStreams>

</Simulation>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sensor,Temperature (K),X (m),Y (m)
1,241.2203563,0.037571896,-0.354205816
2,243.0797253,0.002587661,-0.127088999
3,240.0000001,0.037667017,0.479859575
4,243.6755973,0.000149014,0.051719659
108 changes: 108 additions & 0 deletions doc/workshop/SparseSensing/inputs/testSPSLOptiTwist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" ?>
<Simulation verbosity="debug">
<TestInfo>
<name>tests/framework/Postprocessors/SparseSensing</name>
<author>Mohammad Abdo (@Jimmy-INL)</author>
<created>2022-07-18</created>
<classesTested>Models.Postprocessors.SparseSensing</classesTested>
<description>This test aims to check the ability of the Sparse Sensing Postprocessor
to locate and plot the selected sensors to reconstruct the temperature field of the OPTI-TWIST prototype
when perturbing the heater power.
</description>
</TestInfo>

<RunInfo>
<WorkingDir>reconstructionOptiTwist</WorkingDir>
<Sequence>LoadCSV, mySPpp, print</Sequence>
<batchSize>1</batchSize>
</RunInfo>

<Files>
<Input name="twistFile" type="">../../data//Perturbations.csv</Input>
<Input name="refDO" type="">../../data/350_330.csv</Input>
</Files>

<Steps>
<IOStep name="LoadCSV">
<Input class="Files" type="">twistFile</Input>
<Input class="Files" type="">refDO</Input>
<Output class="DataObjects" type="HistorySet">TwistDO</Output>
<Output class="DataObjects" type="PointSet">myDO</Output>
</IOStep>
<PostProcess name="mySPpp">
<Input class="DataObjects" type="HistorySet">TwistDO</Input>
<Model class="Models" type="PostProcessor">mySPSL</Model>
<Output class="DataObjects" type="DataSet">outPP</Output>
</PostProcess>
<IOStep name="print">
<Input class="DataObjects" type="DataSet">outPP</Input>
<Input class="DataObjects" type="PointSet">myDO</Input>
<Input class="DataObjects" type="HostorySet">TwistDO</Input>
<Output class="OutStreams" type="Print">outPP</Output>
<Output class="OutStreams" type="Plot">mySensorPlot</Output>
</IOStep>
</Steps>

<Models>
<PostProcessor name="mySPSL" subType="SparseSensing" verbosity="debug">
<Goal subType="reconstruction">
<features>X (m),Y (m),Temperature (K)</features>
<target>Temperature (K)</target>
<basis>SVD</basis>
<nModes>4</nModes>
<nSensors>4</nSensors>
<optimizer>QR</optimizer>
</Goal>
</PostProcessor>
</Models>

<DataObjects>
<PointSet name="myDO">
<Output>X (m),Temperature (K),Y (m)</Output>
</PointSet>
<HistorySet name="TwistDO">
<Input> Power (W), BCTemperature (K)</Input>
<Output>X (m),Temperature (K),Y (m)</Output>
<options>
<pivotParameter>index</pivotParameter>
</options>
</HistorySet>
<DataSet name="outPP">
<Input>InputPlaceHolder</Input>
<Output>Temperature (K), X (m), Y (m)</Output>
<Index var="sensor">X (m),Y (m),Temperature (K)</Index>
</DataSet>
</DataObjects>

<OutStreams>
<Print name="outPP">
<type>csv</type>
<source>outPP</source>
<what>output</what>
</Print>
<Plot name="mySensorPlot">
<plotSettings>
<plot>
<type>scatter</type>
<x>myDO|Output|X (m)</x>
<y>myDO|Output|Y (m)</y>
<cmap>coolwarm</cmap>
<colorMap>myDO|Output|Temperature (K)</colorMap>
</plot>
<plot>
<type>scatter</type>
<x>outPP|Output|X (m)</x>
<y>outPP|Output|Y (m)</y>
<c>magenta</c>
<marker>*</marker>
</plot>
<xlabel>x</xlabel>
<ylabel>y</ylabel>
</plotSettings>
<actions>
<how>png</how>
</actions>
</Plot>
</OutStreams>

</Simulation>
14 changes: 14 additions & 0 deletions doc/workshop/SparseSensing/inputs/tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Tests]
[./SPSLOptiTwist]
type = 'RavenFramework'
input = 'testSPSLOptiTwist.xml'
image = 'reconstructionOptiTwist/mySensorPlot_scatter-scatter.png'
required_libraries = 'imageio'
rel_err = 0.1
[./csv]
type = OrderedCSV
output = 'reconstructionOptiTwist/outPP.csv'
rel_err = 0.001
[../]
[../]
[]
File renamed without changes.
Binary file added doc/workshop/TSA/TSA.pptx
Binary file not shown.
24 changes: 24 additions & 0 deletions doc/workshop/TSA/scripts/fourier.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import numpy as np
import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(12,10))

xx = np.linspace(0,1,100)

coeffs = [
(1, 0, 0.5),
(0, 1, 1)
]

tot = np.zeros(len(xx))
for (A, B, k) in coeffs:
c = 2 * np.pi / k
yy = A*np.sin(c * xx) + B*np.cos(c * xx)
ax.plot(xx, yy, ':', lw=5, label=f'({A},{B},{k})')
tot += yy

ax.plot(xx, tot, 'k-', lw=10, label='total')

ax.legend()
#plt.show()
fig.savefig('fourier.png')
Binary file added doc/workshop/advancedSampling/adv_samplers.pptx
Binary file not shown.
Loading