I am modeling a heat pump on the EES program and for the heat exchanger, I am using the NTU method to solve which requires iterations and I am unsure how to use it. If somebody explains it to me through an example then I will be thankful
The while you can get EES to iterate with a function or a procedure, the point to EES is that it will do the iterating for you when you call for the program to 'solve'. (F2 key). without building loops and testing for convergence and residuals.
A very simple routine might look like:
X+Y=5
Y=2
We can solve that visually and know that X=3.
To solve that iteratively, would require a loop where there was a guess for X then some kind of test to check on the answer, an adjustment to X and test again until you are satisfactorily close. Rather a pain!
Put the above two lines into the Main Program for EES and click 'calculate','solve' (or hit F2) and you will get an answer window telling you X=3, Y=2 with zero iterating or other fanfare.
The key is to have a closed set of equations, the above trivial example has two equations and 2 unknowns. If this condition is not satisfied the syntax checker will tell you the system cannot be solved.
If you have EES you should have a license that gives you access to volumes of online information on using EES. f-chartsoftware.com you can access to EESy_solutions newsletter with lots of examples and discussion. Under additional items there are PDFs. for the EES_Manual in several languages. If you are used to having to interate yourself, EES is a new way of thinking and the PDF manual does a nice job of explaining the differences.
Within the program itself, do not overlook the 'Examples' and 'Help' on the top row menu. Under 'Examples','Getting started with EES' are several short programs that will help you with basic structure and syntax. Under 'Help' you can follow a path to subscribe to YouTube channel that may also provide some help.
If you still really have to iterate, you can do so within EES by creating either a 'function' or a 'procedure' (consult Help Index in the program for more information) Within a 'function' or 'procedure' you may use GOTO and IF-THEN-ELSE structures common to sequential languages.
If you are interested in a DO type structure in the main program, look at the Duplicate / End structures.
Thank you for your valuable insights. I'm currently struggling with the iterative process of equations and the utilization of the goto commands in Engineering Equation Solver (EES). Despite attempting to consult the manual and follow the provided examples, I have not been able to achieve the desired level of productivity. Given that my simulation is quite extensive, I'm seeking basic examples or guidance that can help me better grasp the concepts of loops and iterations in EES. I appreciate any assistance you can provide in clarifying these aspects of the software.