I am trying to solve a PDE with gekko library which involves calculating volume flow rate by integrating velocity with the space at a certain time.
Qgap==scipy.integrate.trapz(2*np.pi*xpos*np.array(u1))
where u1 is discretized at each xpos 1000 points. I get this error:
APM model error: string > 15000 characters
Consider breaking up the line into multiple equations
The may also be due to only using newline character CR
instead of CR LF (for Windows) or LF (for MacOS/Linux)
To fix this problem, save APM file with appropriate newline characters
STOPPING...
What should I do to solve this problem? Does m.integral(u1,xpos) option works or m.integral() only works with integral with time only?