🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Using current simulation time as a variable

User: "tinh"
Altair Community Member
Updated by tinh

Hi I need to do a simulation in motion view which has a large amount of different steps that will need to be set up using the template to activate/deactivate motions etc.


Im wondering whether there is a way to  set up the simulation so that when the time for one step is changed, the other steps dont need to be changed.


I was thinking that there should be a way to use the current Time , such as 'TIME + 5' etc for the value of the end_time, then TIME + 2 for next step etc, so you are only controlling the duration of each step, but when you change one step, the other steps will stay the same duration. 


Does anyone have any ideas.


Also  if you have any extra resources on sequential simulations other than tutorials MV-1011 and MV-1051


Also I have tried to use dataset variables and solvervariables as inputs for the end_time in simulation, and it doesnt work. Why doesnt it read the variable name and convert it to a real number?

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Chris Coker_21312"
    New Altair Community Member
    Updated by Chris Coker_21312

    Instead of using 'end time' to specify when the each phase should stop, you can use the keyword 'duration'

     

    Documentation for this is in the MotionSolve reference guide, under the 'Simulate' command statement

     <span style='color:#0000ff'><Simulate    analysis_type   = 'transient'    duration        = '2.0'    num_steps       = '200' /></span>
    User: "tinh"
    Altair Community Member
    OP
    Updated by tinh

    Thanks very much Chris

    I had a look at that documentation, but obviously missed this.

    This will make modifying the simulation easier, how does this work with using STEP functions to control the displacement, will the time for the STEP function still need to be tied to the total simulation time?


    Ed



    User: "Chris Coker_21312"
    New Altair Community Member
    Updated by Chris Coker_21312

    Any function will still evaluated via the independent variable used to define the input to the function. TIME is always the current time in the simulation.