The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.
General

General

Obtaining the current simulation time from the CURRENT_TIME macro

    • FAQFAQ
      Participant

      You may want to define a time-dependent geometry for MDM. For instance, if you want to model a membrane, which is changing shape as a function of time, you will need to take the current time from the solver for DEFINE_GEOM macro. Due to the time this function is called, if you use CURRENT_TIME macro, it will actually be the previous time. This can be easily verified by printing out the CURRENT_TIME. The solution is the following: dt = CURRENT_TIMESTEP; time = CURRENT_TIME + dt; A new macro is defined for this, which is DYNAMESH_CURRENT_TIME. So, you can use this one to access current time in DEFINE_GEOM macro. This new macro is basically CURRENT_TIME + dt.