Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

UDF TO CHANGE BOUNDARY CONDITIONS

    • sebastiancg26
      Subscriber

      Hi everyone!

      I need to simulate a reciprocating compressor, thus, also I have to simulate the opening and closing of the compressor valves, which depends on gas pressure, for this, I wrote a code that calculates the average pressure in a gas zone, this pressure changes the value of "Viscous Resistance" in Porous Zone so that, when required, the valve zone "opens or closes". This method hasn't been as efficient, for this reason, I would like to ask you if there are any method to change boundary conditions through UDF, so that it allows me simulate the phenomenon.

    • Rob
      Forum Moderator
      I'd look at the DEFINE_PROFILE example in the UDF manual, or read the chapter in the User's Guide on expressions.
    • sebastiancg26
      Subscriber
      Is it possible activate or deactivate a sliding interface through UDF?
    • Rob
      Forum Moderator
      It's probably possible via a scheme call, but that's not going to be as simple as you think. Execute commands allows this on a time basis in that you can set actions (TUI commands) to trigger every some seconds or degrees (linked to the cam shaft stuff for incylinder work).
Viewing 3 reply threads
  • The topic ‘UDF TO CHANGE BOUNDARY CONDITIONS’ is closed to new replies.