Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Way to plot CFL number as a function of number of iterations?

Please login with a confirmed email address before reporting spam

Hello all,

I want to analyse the behaviour of pseudo time step as the simulation progresses. Is there a way to plot Pseudo time-stepping CFL-ratio vs iteration number? Pseudo time-stepping CFL-ratio is seen in the log file. However, I want to visualize how it is changing over number of iterations.

Thank you so much in advance!

Regards, Prajakta


1 Reply Last Post Jun 15, 2018, 10:32 p.m. EDT
Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Jun 15, 2018, 10:32 p.m. EDT

The CFL number is available for plotting and during the solution process through the built-in variable CFLCMP. Also, I typically create a separate variable or simply plot the CFLratio = log10(CFLCMP)/4 which is identical to the CFL ratio shown in the log files.

-------------------
James D. Freels, Ph.D., P.E.
The CFL number is available for plotting and during the solution process through the built-in variable CFLCMP. Also, I typically create a separate variable or simply plot the CFLratio = log10(CFLCMP)/4 which is identical to the CFL ratio shown in the log files.

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.