- Index
- » Users
- » Cyril
- » Profile
Posts
Posts
Thank you very much SKD,
The model runs well now.
Cyril
Hi SKD,
I think that you have well understand what I want to do. I fix the volume flow rate (q=200) and the temperature (T=50°C) at the inlet Heat Exchanger with the connector A1. The exchanger is divided in n elements. For each element I implement law for q and T variations (q = constant) and a temperature difference of 1K (cooling effectively). I want to know the volume flow rate and the temperature at the outlet of the HX (connector A2).
My model works with potential (T) but fails when I introduce the flow q.
Thank you for your help.
Cyril
Hi
I have quiet the same problem with my modeling
Could you please help me solve this problem ?
Thanks a lot
Cyril
package Nodes
connector FlowInlet
Modelica.SIunits.Temperature T;
flow Modelica.SIunits.VolumeFlowRate q;
end FlowInlet;
model HEXDuctSection
FlowInlet Port1,Port2;
equation
Port1.q - Port2.q = 0;
// non compressible fluid
Port1.T - Port2.T = 1;
// T diminution per element
end HEXDuctSection;
partial model HEXShell
FlowInlet A1(T = 50, q = 200),A2;
//Declaration of Inlet conditions
end HEXShell;
model HEXn
extends HEXShell;
parameter Integer n(start = 3);
HEXDuctSection DuctA[n];
equation
connect(A1,DuctA[1].Port1);
for i in 1:n - 1 loop
connect(DuctA[i].Port2,DuctA[i + 1].Port1);
end for;
connect(DuctA[n].Port2,A2);
end HEXn;
end Nodes;
- Index
- » Users
- » Cyril
- » Profile