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.

Output time instants

Please login with a confirmed email address before reporting spam

Wanted to save output files in range(3600,0.01,3601). Expected to get solutions at 3600, 3600.01, 3600.02, .., 3600.99, 3601. But getting 6 files for 3600, 10 files for 3600.1, 10 files for 3600.2, similarly upto 3600.9 and 6 files for 3601

I am running a case using Laminar Flow and Transport in Diluted Species module.

Following is the way I have setup the output times: In Step1: Time Dependent -> Output times: range(0,0.01,0.5) range(0.5, 1.0, 100.5) range(100.5,0.01,101) range(110,10,3600) range(3600,0.01,3601)

The generated solutions are at time instants: 0, 0.01, 0.02, .. ,0.49, 0.5(1), 0.5(2), 1.5, 2.5, 99.5, 100.5(1), 100.5(2), 100.51, 100.52, .., 100.98, 100.99, 101, 110, 120, 130, ..,3590, 3600(1), 3600(2), 3600(3), 3600(4), 3600(5), 3600(6), 3600.1(1), 3600.1(2), 3600.1(3), 3600.1(4), 3600.1(5), 3600.1(6), 3600.1(7), 3600.1(8), 3600.1(9), 3600.1(10),3600.2(1), 3600.2(2), 3600.2(3), 3600.2(4), 3600.2(5), 3600.2(6), 3600.2(7), 3600.2(8), 3600.2(9), 3600.2(10), 3600.3(1), ..,3600.3(10), 3600.4(1), ..,3600.4(10), 3600.5(1), ..,3600.5(10), 3600.6(1), ..,3600.6(10), 3600.7(1), ..,3600.7(10), 3600.8(1), ..,3600.8(10), 3600.9(1), ..,3600.9(10), 3601(1), 3601(2), 3601(3), 3601(4), 3601(5), 3601(6)

Between time period of 3600 to 3601, there solutions should be at time interval of 0.01s such as 3600.01, 3600.02, .., 3600.45, 3600.46, .., 3600.99, 3601 BUT solutions are coming at interval of 0.1 with 10 different files such as 3600.1(1), 3600.1(2), .., 3600.1(10) and similar at 3600.2, 3600.3, ..,3600.9. But for 3600 and 3601 there are only six files. Please tell me why results are coming this way?

Moreover, results of 3600.1(1), 3600.1(2), .., 3600.1(10) [and similarly other time instants' results] are different.


1 Reply Last Post 10.08.2023, 10:22 GMT-4
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 10.08.2023, 10:22 GMT-4
Updated: 9 months ago 10.08.2023, 10:26 GMT-4

Offhand, it looks like you're suffering from two effects here: 1. Your subsequent intervals start where the previous interval stopped. This causes that calculation to be repeated (i.e., the first run in the nth interval repeats the last run in the (n-1)th interval.) Don't do that. Start your nth interval at an appropriate time setting after the last time for the (n-1)th interval. 2. You also (I think) seem to have set an insufficient display-level of digits of precision. Is 3600(1) and 3600(2) really the same number? Are you sure? Any chance that 3600(1) is 3600, but 3600(2) is really 3600.01? You can change some default preferences for digits of precision displayed. (See File --> Preferences, and dig around in the sub-menus.) You can also change the digits of precision displayed in plots and on the associated color-scale bars, etc.. Experiment with the settings.

-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Offhand, it looks like you're suffering from two effects here: 1. Your subsequent intervals start where the previous interval stopped. This causes that calculation to be repeated (i.e., the first run in the nth interval repeats the last run in the (n-1)th interval.) Don't do that. Start your nth interval at an appropriate time setting *after* the last time for the (n-1)th interval. 2. You also (I think) seem to have set an insufficient display-level of digits of precision. Is 3600(1) and 3600(2) *really* the same number? Are you *sure*? Any chance that 3600(1) is 3600, but 3600(2) is really 3600.01? You can change some default preferences for digits of precision displayed. (See File --> Preferences, and dig around in the sub-menus.) You can also change the digits of precision displayed in plots and on the associated color-scale bars, etc.. Experiment with the settings.

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.