Skip to content

Commit

Permalink
fix #7332 geometry outline compute per slice on server (#7342)
Browse files Browse the repository at this point in the history
  • Loading branch information
moellep authored Nov 4, 2024
1 parent fa194d1 commit cadc5a2
Show file tree
Hide file tree
Showing 15 changed files with 1,557 additions and 1,802 deletions.
4 changes: 0 additions & 4 deletions sirepo/package_data/static/css/openmc.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

.sr-range-slider {
background: var(--sr-action) !important;
}

.model-tallyReport-axis .sr-enum-button {
min-width: 4em;
}
4 changes: 4 additions & 0 deletions sirepo/package_data/static/css/sirepo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1056,3 +1056,7 @@ img.sr-disabled-image {
.sr-hide-scrollbars {
overflow: hidden;
}

.sr-range-slider {
background: var(--sr-action) !important;
}
123 changes: 63 additions & 60 deletions sirepo/package_data/static/html/openmc-visualization.html
Original file line number Diff line number Diff line change
@@ -1,71 +1,74 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-xxl-4">
<div data-basic-editor-panel="" data-view-name="settings"></div>
</div>
<div class="col-md-6 col-xxl-4">
<div data-simple-panel="simulationStatus">
<div data-sim-status-panel="visualization.simState" data-start-function="visualization.startSimulation()"></div>
<div class="row">
<div class="col-md-offset-2 col-md-8" data-ng-show="visualization.eigenvalue.length">
<table class="table">
<caption style="text-align: center; font-weight: bold;">Eigenvalues</caption>
<thead>
<th>Batch</th>
<th>k</th>
<th>&lt;k&gt;</th>
<th>σ</th>
</thead>
<tbody>
<tr data-ng-repeat="e in visualization.eigenvalue.slice(-visualization.eigenvalueHistory()) track by $index">
<td>{{ e.batch }}</td>
<td>{{ e.val[0] }}</td>
<td>{{ e.val[1] || 'N/A' }}</td>
<td>{{ e.val[2] || 'N/A' }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-offset-2 col-md-8" data-ng-show="visualization.results.length">
<table class="table">
<caption style="text-align: center; font-weight: bold;">Results</caption>
<thead>
<th>Quantity</th>
<th>Value</th>
<th>σ</th>
</thead>
<tbody>
<tr data-ng-repeat="r in visualization.results track by $index">
<td>{{ r[0] }}</td>
<td>{{ r[1] }}</td>
<td>{{ r[2] }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-12" data-ng-if="visualization.hasWeightWindowsFile">
<div class="col-sm-12"><a data-ng-attr-href="{{ visualization.weightWindowsFileURL() }}">
<span class="glyphicon glyphicon-cloud-download"></span> Computed Weight Windows</a>
<buttontype="button" class="btn btn-sm btn-default" data-ng-click="visualization.applyWeightWindows()">Apply Weight Windows</button>
<div class="col-sm-12 col-xxl-4">
<div class="row">
<div class="col-sm-6 col-xxl-12">
<div data-basic-editor-panel="" data-view-name="settings"></div>
</div>
<div class="col-sm-6 col-xxl-12">
<div data-simple-panel="simulationStatus">
<div data-sim-status-panel="visualization.simState" data-start-function="visualization.startSimulation()"></div>
<div class="row">
<div class="col-md-offset-2 col-md-8" data-ng-show="visualization.eigenvalue.length">
<table class="table">
<caption style="text-align: center; font-weight: bold;">Eigenvalues</caption>
<thead>
<th>Batch</th>
<th>k</th>
<th>&lt;k&gt;</th>
<th>σ</th>
</thead>
<tbody>
<tr data-ng-repeat="e in visualization.eigenvalue.slice(-visualization.eigenvalueHistory()) track by $index">
<td>{{ e.batch }}</td>
<td>{{ e.val[0] }}</td>
<td>{{ e.val[1] || 'N/A' }}</td>
<td>{{ e.val[2] || 'N/A' }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-offset-2 col-md-8" data-ng-show="visualization.results.length">
<table class="table">
<caption style="text-align: center; font-weight: bold;">Results</caption>
<thead>
<th>Quantity</th>
<th>Value</th>
<th>σ</th>
</thead>
<tbody>
<tr data-ng-repeat="r in visualization.results track by $index">
<td>{{ r[0] }}</td>
<td>{{ r[1] }}</td>
<td>{{ r[2] }}</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-12" data-ng-if="visualization.hasWeightWindowsFile">
<div class="col-sm-12"><a data-ng-attr-href="{{ visualization.weightWindowsFileURL() }}">
<span class="glyphicon glyphicon-cloud-download"></span> Computed Weight Windows</a>
<buttontype="button" class="btn btn-sm btn-default" data-ng-click="visualization.applyWeightWindows()">Apply Weight Windows</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="row" data-ng-if="visualization.simState.hasFrames()">
<div class="col-sm-8">
<div data-report-panel="tallyViewer" data-model-name="openmcAnimation" data-panel-title="{{visualization.tallyTitle()}}"></div>
</div>
<div class="col-sm-4">
<div data-simple-panel="tallySettings">
<div data-advanced-editor-pane="" data-view-name="'tallySettings'" data-want-buttons=""
data-field-def="basic"></div>
<div data-ng-if="visualization.simState.hasFrames()">
<div class="col-md-8 col-lg-7 col-xl-6 col-xxl-4">
<div data-report-panel="tallyViewer" data-model-name="openmcAnimation" data-panel-title="{{visualization.tallyTitle()}}"></div>
</div>
<div data-ng-if="visualization.showEnergyPlot()">
<div data-report-panel="parameter" data-model-name="energyAnimation" data-panel-title="Energy Spectrum">
<div data-advanced-editor-pane="" data-view-name="'energyAnimation'" data-field-def="basic"></div>
<div class="col-md-4 col-lg-5 col-xl-6 col-xxl-3">
<div data-simple-panel="tallySettings">
<div data-advanced-editor-pane="" data-view-name="'tallySettings'" data-want-buttons=""
data-field-def="basic"></div>
</div>
<div data-ng-if="visualization.showEnergyPlot()">
<div data-report-panel="parameter" data-model-name="energyAnimation" data-panel-title="Energy Spectrum">
<div data-advanced-editor-pane="" data-view-name="'energyAnimation'" data-field-def="basic"></div>
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit cadc5a2

Please sign in to comment.