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

Options
Valérie Gelbgras
Valérie Gelbgras Member, Employee Posts: 157
Name Dropper First Comment Photogenic First Anniversary
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: 157
    Name Dropper First Comment Photogenic First Anniversary
    Answer ✓
    Options

    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)