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
  • Index
  • » Users
  • » M J
  • » Profile

Posts

Posts

Dec-17-19 06:48:01
Variable value with initial guess value, use of N iterations to match guess value with calculated...
Category: Programming


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.

Dec-17-19 05:41:54
Category: Programming

--

  • Index
  • » Users
  • » M J
  • » Profile
You are here: