diff --git a/reactor.html b/reactor.html index e8c57c5..1b122db 100644 --- a/reactor.html +++ b/reactor.html @@ -102,6 +102,19 @@ } else { $(".PFR").show(); } + + const updateDx = () => { + const length = parseFloat($("#node-input-length").val()) || 0; + const resolution = parseFloat($("#node-input-resolution_L").val()) || 1; + const dx = resolution > 0 ? (length / resolution).toFixed(6) : "N/A"; + $("#dx-output").text(dx + " m"); + }; + + // Set up event listeners for real-time updates + $("#node-input-length, #node-input-resolution_L").on("change keyup", updateDx); + + // Initial calculation + updateDx(); }, oneditsave: function() { // save logger fields @@ -144,6 +157,10 @@ +
+ + -- +

Internal mass transfer calculation (optional)