I am trying to script in Python.NET for the modelling of the reactor using odeint function. I have a few doubts regarding the coding
def dehyd(y,z):
.
.
. #input all the variable
.
return [dC1dz,dC2dz,dC3dz]
z = np.linspace(0,1.5,1000)
y = odeint(dehyd,y0,z)
then I wanted to extract all end value of y from an array which I have used the following command. These code are on the different indent from the previous defined function
Cend1=np.array(y[:,0])
Cendlength1=len(Cend1)
Cendvalue1=Cend1[Cendlength1-1]
But it shows an error as y is not defined even though it has to obtain from the previous defined function. How can I rectify this error
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to script in Python.NET for the modelling of the reactor using odeint function. I have a few doubts regarding the coding
def dehyd(y,z):
.
.
. #input all the variable
.
return [dC1dz,dC2dz,dC3dz]
z = np.linspace(0,1.5,1000)
y = odeint(dehyd,y0,z)
then I wanted to extract all end value of y from an array which I have used the following command. These code are on the different indent from the previous defined function
Cend1=np.array(y[:,0])
Cendlength1=len(Cend1)
Cendvalue1=Cend1[Cendlength1-1]
But it shows an error as y is not defined even though it has to obtain from the previous defined function. How can I rectify this error
Thanking you
Thanking you in advance
Thanking you in advance
I have another problem while doing odeint in Python.Net the error says that ims1 is not defined