Thunderhead Engineering Forum

Please login or register.

Login with username, password and session length
Advanced search  


Forum moved to

Author Topic: Activate / Deactivate Object  (Read 1464 times)


  • New Member
  • *
  • Posts: 1
    • View Profile
Activate / Deactivate Object
« on: April 19, 2018, 08:00:02 am »

I'm sure there is a very simple answer to this as it will be a common scenario to model.  I'm trying to simulate the opening and closing of a door.

I have an obstruction into which I have inserted a hole which I would like to use to simulate opening and closing of a door.  I have a control which activates the hole 10 seconds after a detector has activated.  I would like to deactivate the hole 10 seconds later.  I though it would be able to create 2 controls but Pyrosim doesn't appear to like multiple controls being applied to a single obstruction.

I've searched previous topics to no avail so I hope somebody can assist.


  • Member
  • **
  • Posts: 26
    • View Profile
Re: Activate / Deactivate Object
« Reply #1 on: April 20, 2018, 10:03:04 am »

Googled this topic which led to this example:

To remove and then re-create an obstruction in the same place, use two lines since the code simply sees this as two different obstructions:

 &DEVC XYZ=1.2,3.4,5.6, ID='timer1', QUANTITY='TIME',
 &DEVC XYZ=1.2,3.4,5.6, ID='timer2', QUANTITY='TIME',
 &OBST XB=2.3,4.5,1.3,4.8,0.0,9.2,
     SURF_ID='brick wall', DEVC_ID='timer1' /
 &OBST XB=2.3,4.5,1.3,4.8,0.0,9.2,
     SURF_ID='brick wall', DEVC_ID='timer2' /