-
Hello! I was reading a documentation about Pressure Control and got confused by the note there:
The first sentence says, that the temperature at the outlet will not be adapted, but the last sentence says, that the temperature changes will be balanced internally. Am I misunderstanding the last sentence? Does it mean, that the user will inject the temperature drop "manually" via the Here is a minimal example with pressure control with no temperature drop and with manual temperature drop insertion in the pipe, after the pressure control element Example
import pandapipes as pp
def main():
net = pp.create_empty_network("mynetwork", fluid="lgas")
pp.create_junctions(net, 4, 1, 300)
pp.create_ext_grid(net, junction=0, p_bar=5, t_k=300)
pp.create_pressure_control(
net,
from_junction=1,
to_junction=2,
controlled_junction=2,
controlled_p_bar=0.5,
)
pp.create_sink(net, junction=3, mdot_kg_per_s=6)
pp.create_pipes_from_parameters(
net, from_junctions=[0, 2], to_junctions=[1, 3], length_km=0.1, diameter_m=0.2
)
# uncomment to get temp drop
# net.pipe.loc[1, "qext_w"] = 2e4
pp.pipeflow(net, mode="all", friction_model="colebrook", iter=10000)
print(net.res_press_control)
print(net.res_pipe)
if __name__ == "__main__":
main() P.S. the "latest" documentation doesn't render function's description, have to use 0.8.5 version |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @dad616610 , thanks for pointing at the documentation problem, we will have a look at it. I hope that answers your question. Please have a look at the pandapipes and pandapower control docs (https://pandapower.readthedocs.io/en/latest/control.html) if you want to learn more about how to create such a controller. Best regards! |
Beta Was this translation helpful? Give feedback.
Hello @dad616610 ,
thanks for pointing at the documentation problem, we will have a look at it.
Regarding the question on the pressure controller, here's what happens: The temperature at the outlet node is just whatever tfluid_k you give it, the pressure controller will not have any influence on it. When performing a sequential hydraulics and heat transfer simulation (mode "all"), the temperature that occurs before the pressure controller will propagate through it, without any changes. Yet, in a real throttle valve, you get a temperature drop due to expansion. Would you like to model such behavior? In that case, you would need to perform several simulations to correctly model the influenc…