Does any equation solver work for a timestep case?
I've been implementing ODEint, Solve_ivp and even sympy to solve a first order diff.eq like this :
dTsdt = Ts* A - B + C # Set up in a function. This is sort the mathematical model.
where A,B,C are vectors that depend on time(e.g. A[1,3,4,5 ...]). tloop=[t[i-1],t[i]]
Sol_Ts = solve_ivp(dTsdt,tloop,[Ts0],args=(A[i],B[i],C[i],))
I just wonder, if this approach is correct to solve the equation at every timestep. As I am replacing the value of those constants at every time and thus asking for result at that specific time which is then stored in a variable.
I'm not sure if these solvers are suitable for the task or if in fact, I should be using a different method like "Finite Difference Method", although, the latter would take more time and is prone to time issues.
The results are so far obtained out of spec. Any advice would be really appreciate !