Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Heat transfer evaporator model

Heat transfer evaporator model


Hello,

I would appreciate your help on following..

I am willing to write a code for evaporator which involves two simultaneous equations as follows

Q = U* A* (LMTD)
T_out = T_in - (Q/ (mdot*Cp))

where, Q & T_out  are unknowns and  LMTD= function of (T_in, T_out, Tc)

How can I get the value of T_out with the initial guess value T_out_ini after N iterations?
Will for loop work?
syntax to stop iterations (by equating preceding values) once I get convergence?


Thanks in advance.

Re: Heat transfer evaporator model

With two equations, plus the equation relating LMTD with the temperatures, you can solve three variables, the others should be known by other ways. I understand that you know U,A,Tc and T_in, mdot, and Cp, so the solution should be immediate. Why the iterations? The Modelica solver will take care of founding the solution. The only possible problem I see is with the LMTD that some times goes to indefined mathematical operations. This can be solved by specifying altenative calculations when, for example, inlet and outlet temperature are the same.

There are 0 guests and 0 other users also viewing this topic
You are here: