Announcement

Collapse
No announcement yet.

Have multiple sims calculate one after the other in sequence (eg; cascade setup)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Have multiple sims calculate one after the other in sequence (eg; cascade setup)

    In a cascade setup (lets say waterfall), am I correct in my method of running the upper simulation first, then the waterfall simulation, then the pool into which the waterfall lands, in that order? If so, is there a way to have each simulation begin automatically when the previous sim is complete, in the correct sequence?

    Thanks!!
    karoodesignviz.com

  • #2
    Hi,

    You can check this video tutorial for cascade simulations : https://www.youtube.com/watch?v=L5csiIEqLV4
    There is a very important step (6:20) in this video, where the Phoenix property "Solid object" is deactivated for the simulator that has been already simulated.

    About the second part of your question, actually this is a planned feature and should be available in one of the next Phoenix releases.
    Tashko Zashev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Additionally, you could make one sim begin after the other using maxscript, check http://docs.chaosgroup.com/display/P...n+to+MaxScript.

      Basically you need to call A_StartSim on the next simulator in OnSimulationEnd of the previous.
      Svetlin Nikolov, Ex Phoenix team lead

      Comment


      • #4
        Thanks to you both for the replies. The scripting is like Greek to me, but I'll give it a go - I have multiple small waterfalls entering a pool over 1100 frames so not waiting for each to complete using the script would be great, but I may be asking for more specific help soon

        reading both replies, do I understand correctly that I need to manually deactivate the "solid object" property of the previous sim before running the next one - so using the script wouldn't help then - yes/no?
        karoodesignviz.com

        Comment


        • #5
          Don't worry about that, there's no problem to deactivate "Solid" on the first simulator(s) before it's simulated.
          Svetlin Nikolov, Ex Phoenix team lead

          Comment


          • #6
            Ok, great, that helps - thanks!

            I looked at the PhoenixFD script...but am not sure what I'm looking at :/ If I need the following sims to run in sequence -- PHXpool_upper...PHXfalls01...PHXfalls02...PHXfalls 03...PHXpool_lower (I have an upper and a lower pool, with 3 waterfalls going into the lower pool), could you help me with what a script would look like to get them to run sequentially overnight. Thanks in advance for any help with this.
            karoodesignviz.com

            Comment


            • #7
              Yup, no problem: so in the script of PHXpool_upper, find OnSimulationEnd, and make it look like this:

              fn OnSimulationEnd=(
              sim = getnodebyname "PHXfalls01"
              select sim
              A_StartSim sim
              )

              You need to do this for the next sims too, substituting in the name of the simulator that follows.
              Last edited by Svetlin.Nikolov; 15-04-2015, 07:33 AM.
              Svetlin Nikolov, Ex Phoenix team lead

              Comment


              • #8
                Thanks very much for your help - I will try it out.
                karoodesignviz.com

                Comment


                • #9
                  Originally posted by a0121536 View Post
                  Yup, no problem: so in the script of PHXpool_upper, find OnSimulationEnd, and make it look like this:

                  fn OnSimulationEnd=(
                  sim = getnodebyname "PHXfalls01"
                  select sim
                  A_StartSim sim
                  )

                  You need to do this for the next sims too, substituting in the name of the simulator that follows.
                  this is more straightforward than I expected, I've always just kept an eye on things/remoted in. will give this a shot too!

                  Comment

                  Working...
                  X