Skip to content

Commit

Permalink
Make timestep uniform for scipy update.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-cogliati-inl committed Dec 11, 2024
1 parent e352a56 commit 938e8be
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
t,decay_heat,decay_heat_pu
0.0,1596.24219871,0.00532080722661
0.01,508.409439139,0.00169469809784
0.02,421.964047214,0.00140654679697
0.05,338.173180971,0.00112724391487
0.075,279.436776363,0.00093145590328
0.1,179.553008904,0.000598510018158
0.2,120.230297173,0.000400767649528
0.3,81.1463727778,0.000270487904052
0.0,1596.2635054,0.0053208782799
0.025,434.266051241,0.0014475534847
0.05,316.328108286,0.00105442701347
0.075,276.974054113,0.000923246834648
0.1,248.648999197,0.000828829986198
0.125,228.0998172,0.000760332713794
0.15,210.857697611,0.000702858982601
0.175,193.45221639,0.000644840712644
0.2,172.763415874,0.000575878045184
0.225,144.618295811,0.000482060979565
0.25,102.835168196,0.000342783889384
0.275,37.806818174,0.000126022725555
0.3,-65.7847394274,-0.000219282461814
27 changes: 26 additions & 1 deletion tests/framework/ROM/TimeSeries/DMD/test_havok_dmd_pydmd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<WorkingDir>HAVOK</WorkingDir>
<Sequence>
readIn,
make_uniform,
DMDTrain,
pickleRom,
stats,
Expand Down Expand Up @@ -70,15 +71,28 @@
<structured>False</structured>
<lstsq>True</lstsq>
</ROM>
<PostProcessor name="resample_uniform" subType="HistorySetSampling">
<samplingType>uniform</samplingType>
<numberOfSamples>13</numberOfSamples>
<pivotParameter>t</pivotParameter>
<interpolation>cubic</interpolation>
</PostProcessor>

</Models>

<Steps>
<IOStep name="readIn">
<Input class="Files" type="">rawDataFile</Input>
<Output class="DataObjects" type="HistorySet">rawData</Output>
</IOStep>
<PostProcess name="make_uniform">
<Input class="DataObjects" type="HistorySet">rawData</Input>
<Model class="Models" type="PostProcessor">resample_uniform</Model>
<Output class="DataObjects" type="HistorySet">rawDataUniform</Output>
<Output class="OutStreams" type="Print">outputUniformData</Output>
</PostProcess>
<RomTrainer name="DMDTrain">
<Input class="DataObjects" type="HistorySet">rawData</Input>
<Input class="DataObjects" type="HistorySet">rawDataUniform</Input>
<Output class="Models" type="ROM">DMDrom</Output>
</RomTrainer>
<IOStep name="pickleRom">
Expand Down Expand Up @@ -108,6 +122,10 @@
<type>csv</type>
<source>synDataDMD</source>
</Print>
<Print name="outputUniformData" dir="outputHAVOKDMD">
<type>csv</type>
<source>rawDataUniform</source>
</Print>
<Print name="ROMCoefficientsXML">
<type>csv</type>
<source>rom_stats</source>
Expand All @@ -126,6 +144,13 @@
<pivotParameter>t</pivotParameter>
</options>
</HistorySet>
<HistorySet name="rawDataUniform">
<Input>enrichment,burnup</Input>
<Output>decay_heat,decay_heat_pu</Output>
<options>
<pivotParameter>t</pivotParameter>
</options>
</HistorySet>
<HistorySet name="synDataDMD">
<Input>enrichment,burnup</Input>
<Output>decay_heat,decay_heat_pu</Output>
Expand Down

0 comments on commit 938e8be

Please sign in to comment.