Solving for implicit functions before starting time
Posted: Fri Dec 29, 2023 2:37 am
Hi,
I am trying to run a simulation with the Colebrook equation to solve for the Darcy-Weisbach friction coefficient in a flow problem. This is usually solved numerically with iterations. The trick is that I need to solve for the coefficient before proceeding with the rest of the simulation. Is there a way to delay the start of the entire Vensim simulation until the point of convergence for the coefficient? Assume that this initial convergence is simply finding a minimum, then the rest of the model time begins.
Is this possible in one file? If so, could you please recommend a few functions to try with this?
I am trying to run a simulation with the Colebrook equation to solve for the Darcy-Weisbach friction coefficient in a flow problem. This is usually solved numerically with iterations. The trick is that I need to solve for the coefficient before proceeding with the rest of the simulation. Is there a way to delay the start of the entire Vensim simulation until the point of convergence for the coefficient? Assume that this initial convergence is simply finding a minimum, then the rest of the model time begins.
Is this possible in one file? If so, could you please recommend a few functions to try with this?