I am making a dynamic a dynamic model of a solar collector to find its oultet Temperature. The equation I am usin is the following:
Collector equation for the dynamic model:
For this equation, Tm is defined by the following equation
Tm = (TFin + TFout)/2
At the end, I need to plot TFout as a function of time. TFin is a known constant. I have to do the solution using the Runge-Kutta method.
I have been trying to follow some youtube tutorials for Runge-Kutta in Python, but I can't figure out how to properly define the function given that time is not an explicit variable in the equation.