In manual, there's no information about low Reynolds number extrapolation about SetupZetaTable2.
However, SetupZetaTable has descripstion about low Reynolds number extrapolation and it is what I want to do at low Reynolds number (constant zeta value at x<x_min). Is it still working function?
What is orifice instance index which is result of setupzetatable?
I want to make heat exchanger model to read different friction factor every time step but error still comes up due to memory issue. I think R1SplineIdx is written at different location whenever I update R1splineIdx. Therefore, What I want to do is define another integer and use that instead of R1SplineIdx.
But I am still stuck in the middle.
The orifice instance index is an index that is used in utility orif_zeta. It contains the required information to perform the calculation.
Usually, SetUpZetaTable is called during initialization, the orifice instance index is the return value and must be stored in an integer store (here ic), for example:
ic=SetUpZetaTable_(&diam, zeta, Re, &interp, &num);
and then, the orifice index is used in orif_zeta at execution returning the flow rate (q) at a given pressure drop (dp) using ic:
orif_zeta_(&dp, &diam, &area, Re, v, q, zeta, &rho, &nu, &ic);
you mean, I can save orifice index in ic, which represents integer store insted of sic, which represents pointer store.
Of course, you can call SetUpZetaTable during main calculation.
But, it means that an orifice instance will be created at each function call, which is not a good option for performances. SetUpZetaTable has been designed to be called once (during initialization) and in collaboration with orif_zeta thanks to the orifice instance index.
So it is really not recommended to call SetUpZetaTable during main calculation.
Yeah. I get 'Could not allocae CreatelinearSplineSpace' now. Then, is there no way to control flow rate or friction factor in my taste execpt default functions in Amesim?
tforifzetaid, the function calculaing flowrate cannot be opened by user. Also, it is very hard to make a new function calculating flow rate.