On 2023-01-08 06:59, Böttner wrote:
This works fine later in the simulation, but doesn't in the beginning. For some reason I can't overwrite t_A after its initially read from the stored dynamic array, which is 0 initially.
Jan,Are you using the dynamic array storage or the static array storage for storing/retrieving? It sounds like you might want to be using static storage from your description. Dynamic storage starts each iteration of a timestep from the same starting "point" and stores temporary values of the ending point each iteration; updating the starting point for the next timestep only after convergence is reached at the previous timestep. It is best observed with a simple tank example.
Time = 0, Tank Temperature = 50 CTime = 1, Iteration 1, Starting Temperature = 50 C Ending Temperature = 60 C Time = 1, Iteration 2, Starting Temperature = 50 C Ending Temperature = 65 C Time = 1, Iteration 3, Starting Temperature = 50 C Ending Temperature = 63 C Time = 1, Iteration 4, Starting Temperature = 50 C Ending Temperature = 62 C
Convergence is reachedTime = 2, Iteration 1, Starting Temperature = 62 C Ending Temperature = 65 C
etc. Jeff ---- Jeff Thornton President Thermal Energy System Specialists (TESS) 3 N. Pinckney Street - Suite 202 Madison WI 53703 (608) 274-2577 www.tess-inc.com