Fluids

Fluids

Previous pressure in UDF

    • kouassi.kouame
      Subscriber

      Hi everyone !

      I want to set an UDF with this expression of the pressure P(i+1) = P(i) + .....

      The issue  : i can't acces to the previous pressure. 

      Someone here have any idea to do this ? 

    • DrAmine
      Ansys Employee

      Previous pressure at pressure time step?

      • kouassi.kouame
        Subscriber

        Yes, previous pressure at the previous time step .

        Can you help me ? 

        regards

      • kouassi.kouame
        Subscriber

        I did this : 

        the probleme is that my code always use the initial pressure. He doens't actualise the pressure with the pessure time step.

    • kouassi.kouame
      Subscriber

      this the snde part of the code : 

    • DrAmine
      Ansys Employee

      You can store the pressure in cell memory and then access it as previous value before updating the cell memory. OR check the customization manual regarding previous time step cell variables. You always need to check if the data is valid or not.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.