Menu

SetPoropertyValue

Simon
2024-10-01
2024-10-02
  • Simon

    Simon - 2024-10-01

    Hello,

    sorry for this simple question. I'm trying to use python scripting, but it's completely new to me.
    I want to set up a PFR reactor and set the catalyst loading and such. If I use

    reactor.SetPropertyValue("CatalystParticleDiameter", cdiameter, "mm")

    I always get an error message. I assume that I am using something wrong for the unit.

    What should I use there?

    Thank you very much and kind regards

    Simon

     

    Last edit: Simon 2024-10-01
    • Daniel Medeiros

      Daniel Medeiros - 2024-10-02

      last parameter should be null, or you can do it directly:

      reactor.CatalystParticleDiameter = cdiameter / 1000 # mm to m
      
       

      Last edit: Daniel Medeiros 2024-10-02

Log in to post a comment.