How to change a stationary wall to a moving wall by scheme command?

Valérie Gelbgras
Valérie Gelbgras Member, Employee Posts: 156
Photogenic First Anniversary Ansys Employee Solution Developer Community of Practice Member
edited June 2023 in Fluids

How to change a stationary wall to a moving wall by scheme command?

Tagged:

Answers

  • Valérie Gelbgras
    Valérie Gelbgras Member, Employee Posts: 156
    Photogenic First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓

    We can use the following command to change the wall with ID = 1 to a moving wall:

    (send (get-thread 1) set-var! 'motion-bc 1)

    To revert back to a stationary wall, we can use:

    (send (get-thread 1) set-var! 'motion-bc 0)