Compare commits
1 Commits
04306d0996
...
442ddc60ed
| Author | SHA1 | Date | |
|---|---|---|---|
| 442ddc60ed |
@@ -323,7 +323,7 @@ class Reactor_PFR extends Reactor {
|
|||||||
_updateMeasurement(measurementType, value, position, context) {
|
_updateMeasurement(measurementType, value, position, context) {
|
||||||
switch(measurementType) {
|
switch(measurementType) {
|
||||||
case "quantity (oxygen)":
|
case "quantity (oxygen)":
|
||||||
grid_pos = Math.round(position / this.config.length * this.n_x);
|
let grid_pos = Math.round(position / this.config.length * this.n_x);
|
||||||
this.state[grid_pos][S_O_INDEX] = value; // naive approach for reconciling measurements and simulation
|
this.state[grid_pos][S_O_INDEX] = value; // naive approach for reconciling measurements and simulation
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user