Refine diffuser runtime and tests

This commit is contained in:
root
2026-03-31 14:26:08 +02:00
parent 22927d24c4
commit 3ccac81acf
6 changed files with 126 additions and 69 deletions

View File

@@ -9,15 +9,16 @@ RED.nodes.registerType('diffuser', {
i_diff_density: { value: 2.4, required: true },
i_m_water: { value: 0, required: true },
alfaf: { value: 0.7, required: true },
i_zone_volume: { value: 0, required: false },
processOutputFormat: { value: 'process' },
dbaseOutputFormat: { value: 'influxdb' },
enableLog: { value: false },
logLevel: { value: 'error' },
},
inputs: 1,
outputs: 3,
outputs: 4,
inputLabels: ['control'],
outputLabels: ['process', 'dbase', 'parent'],
outputLabels: ['process', 'dbase', 'reactor control', 'parent'],
icon: 'font-awesome/fa-tint',
label: function() {
return this.name ? `${this.name}_${this.number}` : 'diffuser';
@@ -50,6 +51,10 @@ RED.nodes.registerType('diffuser', {
<label for="node-input-alfaf"><i class="fa fa-flask"></i> Alfa Factor</label>
<input type="number" id="node-input-alfaf" step="0.01" min="0">
</div>
<div class="form-row">
<label for="node-input-i_zone_volume"><i class="fa fa-cube"></i> Zone Volume</label>
<input type="number" id="node-input-i_zone_volume" step="0.1" min="0" placeholder="m3">
</div>
<h3>Output Formats</h3>
<div class="form-row">
<label for="node-input-processOutputFormat"><i class="fa fa-random"></i> Process Output</label>