Normalizing time in COMSOL

Please login with a confirmed email address before reporting spam

Hi everybody, I have a probem in data elaboration. I use a time dependent solver and often run simulations that result in having different virtual times. For instance, I can run a parametric sweep changing some parameters and as an outcome, the virtual simulation time can change even in orders of magnitude.

I would like to understand how can I normalize my simulations with time by plotting t/t_max. If I use a nonlocal coupling on time itself, it will result in a vertical line at x=1.

I use both 6.2 and 6.4 versions. Thanks in advance.


2 Replies Last Post 2026年11月12日 GMT+8 06:10
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 2 hours ago 2026年11月12日 GMT+8 03:58

If you want to plot diagrams you can use the t/t_max expression for the x-axis. If you want use the normalized time in a more general approach it may get more complex. You might consider a model method for that.

Cheers Edgar

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
If you want to plot diagrams you can use the t/t_max expression for the x-axis. If you want use the normalized time in a more general approach it may get more complex. You might consider a model method for that. Cheers Edgar

Please login with a confirmed email address before reporting spam

Posted: 17 minutes ago 2026年11月12日 GMT+8 06:10

Thank you for your reply.

I was, indeed, trying to normalize each of my curves using exactly the maximum value of time for each of my curves. However, t_max isn't a native COMSOL variable. It's fine for me using a postprocessed value. Should I define a custom variable? If so, how? Simply using a nonlocal coupling in the definition node and defining t_max = maxop1(t) to then use an expression like t/t_max gives back the straight line x=1.

Thank you for your reply. I was, indeed, trying to normalize each of my curves using exactly the maximum value of time for each of my curves. However, t_max isn't a native COMSOL variable. It's fine for me using a postprocessed value. Should I define a custom variable? If so, how? Simply using a nonlocal coupling in the definition node and defining t_max = maxop1(t) to then use an expression like t/t_max gives back the straight line x=1.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.