Add warnings for reactor child positioning and grid sizing discrepancies
This commit is contained in:
@@ -150,6 +150,14 @@ class Reactor {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (reactorChild.functionality.positionVsParent != "upstream") {
|
||||||
|
this.logger.warn("Reactor children of reactors should always be upstream.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (math.abs(reactorChild.d_x - this.d_x) / this.d_x < 0.025) {
|
||||||
|
this.logger.warn("Significant grid sizing discrepancies between adjacent reactors! Change resolutions to match reactors grid step, or implement boundary value interpolation.");
|
||||||
|
}
|
||||||
|
|
||||||
this.upstreamReactor = reactorChild;
|
this.upstreamReactor = reactorChild;
|
||||||
reactorChild.downstreamReactor = this;
|
reactorChild.downstreamReactor = this;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user