Conversation
|
Some notes on the first draft:
|
| @@ -0,0 +1,221 @@ | |||
| parameters: | |||
| mode: ~ # operation mode: extraction, condensing, backpressure | |||
There was a problem hiding this comment.
| mode: ~ # operation mode: extraction, condensing, backpressure | |
| mode: ~ # operation mode: extraction (full characteristic field), condensing (power only), backpressure (acc. to power ratio line) |
I would like that but maybe too crowded then.
| power_at_heat_max: ~ # electricity output at maximum heat output | ||
| power_ratio: 0.55 # electricity per heat in backpressure operation | ||
| power_loss_ratio: 0.20 # electricity lost per heat extracted along an isofuel line | ||
| efficiency_condensing: ~ # electricity per fuel |
There was a problem hiding this comment.
| efficiency_condensing: ~ # electricity per fuel | |
| efficiency_condensing: ~ # electricity per fuel (in condensing mode) |
| power_ratio: 0.55 # electricity per heat in backpressure operation | ||
| power_loss_ratio: 0.20 # electricity lost per heat extracted along an isofuel line | ||
| efficiency_condensing: ~ # electricity per fuel | ||
| efficiency_backpressure: ~ # electricity+heat per fuel |
There was a problem hiding this comment.
Is this now the combined efficiency? maybe use that term?
There was a problem hiding this comment.
| efficiency_backpressure: ~ # electricity+heat per fuel | |
| efficiency_backpressure: ~ # electricity+heat per fuel (combined efficiency) |
| if isnothing(cm) | ||
| cm = p_max / h_max | ||
| this.set("power_ratio", cm) | ||
| end |
There was a problem hiding this comment.
Being super picky (or will you prevent the input-combination 'cm+h_max+p_at_h_max' in the validate section):
| if isnothing(cm) | |
| cm = p_max / h_max | |
| this.set("power_ratio", cm) | |
| end | |
| p_at_h_max= this.get("power_at_heat_max") | |
| if isnothing(p_at_h_max) | |
| p_at_h_max=p_max | |
| end | |
| if isnothing(cm) | |
| cm = p_at_h_max / h_max | |
| this.set("power_ratio", cm) | |
| end |
There was a problem hiding this comment.
After discussion => we do not want want to allow over-specification, therefore we check for that in the validate, and then do not need to care about any over-specified combinations.
| node_to: <power_to> | ||
| lb: 0 | ||
|
|
||
| # TODO: discuss that these functions get really hard to read/maintain when they grow larger (since in a YAML) |
There was a problem hiding this comment.
To me, the confusing part is the lack of conversions at the units. Could we reference the lines as a comment or is this stupid?
There was a problem hiding this comment.
How much overhead is it to include individual units (e.g., one additional one for backpressure because the modeling via combined efficiency is different anyhow?) Then we could also have the backpressure calculation with the extraction-calculation-method.
There was a problem hiding this comment.
How much overhead is it to include individual units (e.g., one additional one for backpressure because the modeling via combined efficiency is different anyhow?) Then we could also have the backpressure calculation with the extraction-calculation-method.
We'll do that sounds helpful!
| cm = this.get("power_ratio") | ||
| cv = this.get("power_loss_ratio") | ||
|
|
||
| if isnothing(p_max) |
There was a problem hiding this comment.
Confusing to me. Isn´t p_max one of the required inputs. Why wouldn´t you have this one.
| h_max = isnothing(p_at_h_max) ? (p_max / (cm + cv)) : (p_at_h_max / cm) | ||
| this.set("heat_max", h_max) | ||
| end | ||
|
|
There was a problem hiding this comment.
| if isnothing(p_at_h_max) | |
| p_at_h_max=p_max | |
| end |
| if !isnothing(eta_cd) && isnothing(eta_bp) | ||
| eta_p = eta_cd | ||
| elseif isnothing(eta_cd) && !isnothing(eta_bp) | ||
| eta_p = eta_bp / (1.0 + cm) |
There was a problem hiding this comment.
Please check. I arrive at:
| eta_p = eta_bp / (1.0 + cm) | |
| eta_p = eta_bp * cm / (1.0 + cm) |
Villyes
left a comment
There was a problem hiding this comment.
Only one major comment in line 180.
Did not review validate-section. Maybe we need to talk about what combination of inputs are ok.
Otherwise: I like it. Took me however a significant amount of time to understand and that although I already know the topic. Still think it´s worth it.
This is motivated by / linked to ait-energy/IESopt.jl#101 (which it will fix after being completed).