Menu

Python.NET scripting error problem

nihal
2021-03-15
2021-03-15
  • nihal

    nihal - 2021-03-15

    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

     
  • nihal

    nihal - 2021-03-15

    Thanking you

     
  • nihal

    nihal - 2021-03-15

    Thanking you in advance

     
  • nihal

    nihal - 2021-03-15

    Thanking you in advance

     
  • nihal

    nihal - 2021-03-15

    I have another problem while doing odeint in Python.Net the error says that ims1 is not defined

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.