Print moment on console in cluster

  • 62 Views
  • Last Post 3 weeks ago
mazab17 posted this 4 weeks ago

Hi, I am running Fluent 19.1 on a cluster. I set up on my local computer to print the moment on the console as well save it in the output file (that I was doing on the version 16.2 and everything was fine) then I saved the Fluent (I did initialization before this set up) and saved the fluent and export .cas and .dat files and then run it on the cluster. But by running the moment was not printed on the console and no file was saved in my directory. Do you have any clue what is the problem? 

Order By: Standard | Newest | Votes
kkanade posted this 4 weeks ago

Can you please give more information about how did you set up to print the moment on the console on your local computer? 

rwoolhou posted this 4 weeks ago

Can you check you're saving the files to the ./folder    as Fluent has a tendency to save full paths. Depending on your local machine & cluster it may be trying to save to a non-existent location. Another method is to run a short journal on the cluster once the case & data are read in to set the monitors saves. 

  • Liked by
  • mazab17
seeta gunti posted this 4 weeks ago

Please check the path where fluent is saving the report definition files under Monitors --> report files.

Regards,

Seeta

mazab17 posted this 4 weeks ago

In the solution section, report definition, I defined the moment at the zone that I am looking for and moment axis. In the report file and plot, I added the moment and check the print to console box. I saved the project and export the .cas and .dat files. Then I uploaded in my directory in the cluster and submitted the job. It's running but nothing printed and no files that included the moment was saved. BTW, I have the professional version that is provided by my supervisor, not the student version. 

mazab17 posted this 4 weeks ago

Thank you very much. Fluent should save in my repository in the cluster, and nothing was saved could be the reason but where could I look for for the files in none of my directories there is saved files from Fluent. Do you have an example of a journal file to save monitors? 

rwoolhou posted this 4 weeks ago

I don't have an example journal, but can give pointers for you to write one. 

Click into the TUI window and press <Enter>. This will bring up the top level menu list, type solve and press enter. Press enter again for the next level list. In there you'll see monitors, so type that and keep following the commands. 

For your journal the line becomes

/solve/monitor/report-files   stuff....

To move back up  a level use q (lower case Q).

 

mazab17 posted this 4 weeks ago

thank you very much. Now, this is my journal file: 

file

rc turbine15_f.cas

rd turbine15.dat

file /autosave/data-frequency 10

q

/solve dual-time-iterate 10000 20

 

exit

 

I wiil add: 

/solve/monitor/report-files moment 

to this journal. 

 

mazab17 posted this 4 weeks ago

Even by using the script to set the monitors it is not saving or print on the console!!! 

kkanade posted this 4 weeks ago

Can you please check Solving - Run Calculation - Advanced - Reporting interval? Set this interval to 1. 

 

rwoolhou posted this 4 weeks ago

As the monitors are already set up I think you just need to amend the file name in the case. As an aside, if you're running in batch mode there isn't a display to save so plotting won't do anything.   If you're not running batch, just open the case and have a look where the monitor thinks it's saving the images to. 

mazab17 posted this 3 weeks ago

Actually, I don't want the plots, just want the file and print on the console. I am running on the cluster (it's a supercomputer and I have a directory on that computer and should save my files in the director). It's reasonable that maybe Fluent couldn't find the root to save the file but how I can change the path in the set up to save it in my directory. The other issue is that why it's not printed on the console. For example: 

 

  iter  continuity  x-velocity  y-velocity  z-velocity           k       omega     time/iter

! 5190 solution is converged

  5190  2.2550e-06  1.5823e-06  4.4377e-07  2.8704e-06  2.6502e-04  2.0181e-04  0:08:13   20

! 5191 solution is converged

  5191  2.2621e-06  1.5823e-06  4.4364e-07  2.8704e-06  2.6493e-04  2.0175e-04  0:07:48   19

Flow time = 1.56542919s, time step = 3757

and no moment is printed here!!!

 

mazab17 posted this 3 weeks ago

I already set up to one. 

rwoolhou posted this 3 weeks ago

Can you check the report definition as it ought to work if the residual data is saved. I've screen grabbed a couple of panels that should show what's set: ignore the names/labels as they're from a dummy case I use. 

 

 

 

mazab17 posted this 3 weeks ago

Thank you for your time. Yes, I did exactly as you showed in the above case. As you mentioned, fluent maybe couldn't find the path to save the files as it's running on the cluster but why it's not printing? I have a .dat file that all of the information (iteration, convergence and ...) are printed that it actually plays the console role but the moment is not printed. I don't know exactly what was updated from 16.2 to 19.1 version because I have the moment in the 16.2 with the same procedure but in 19.2 I don't have them. Since the version was updated in school, I don't have access to 16.2 anymore and I need to get the result from 19.1. 

abenhadj posted this 3 weeks ago

Are you writing a transcript file or does your job scheduler (if used) writes a transcript file.  Sorry I need to ask this as If you re running in batch and using print to console then either it will print everything into standard output (not really helpful on cluster) or into transcript (if set in Fluent or via Job scheduler)

Best regards,

Amine

mazab17 posted this 3 weeks ago

I set up in the Fluent to print on the console, unfortunately, I couldn't find an example script to print moment on the console command. I would appreciate if you could provide me the command to print the moment on the console in the script file. 

abenhadj posted this 3 weeks ago

How are starting Fluent? Please copy paste the command you are using to start Fluent in batch?

In the below picture whenver you set "print to console" then  moment or moment coefficient are printed into Fluent console and into the transcript if any:

 

Best regards,

Amine

mazab17 posted this 3 weeks ago

Thank you very much Amine, I couldn't see your image it's damaged. I have a run script and I submit the run script to start the Fluent. the following is the command for the fluent. 

fluent 3ddp -t24 -ssh -pib -cnf=${PBS_NODEFILE} -mpi=pcmpi -g -i info.jou >case2.dat

 

abenhadj posted this 3 weeks ago

I can see the picture, strange! In words: in Report Definition>Moment check if "Print to Console" is switched on.

 

Can you check the content of case2.dat if it does contain the required information or at least residuals? 

100% safe: in Yjournalurna "info.jou" write at the beginning /file/start-transcript mytrans and at almost endt before exiting /file/stop-transcript

Best regards,

Amine

mazab17 posted this 3 weeks ago

Yes, the print to console is on in the report definition. In my case2.dat I have the residuals for other variables: 

 iter  continuity  x-velocity  y-velocity  z-velocity           k       omega     time/iter

! 5426 solution is converged

 5426  2.1782e-06  1.5779e-06  4.1496e-07  2.8564e-06  2.4844e-04  1.8773e-04  0:08:13   20

 

abenhadj posted this 3 weeks ago

Please paste some more lines the entire transient or two transients if possible

Best regards,

Amine

mazab17 posted this 3 weeks ago

Updating solution at time level N... done.

  iter  continuity  x-velocity  y-velocity  z-velocity           k       omega     time/iter

! 5534 solution is converged

  5534  2.1516e-06  1.5764e-06  4.0320e-07  2.8503e-06  2.4122e-04  1.8181e-04  0:08:13   20

! 5535 solution is converged

  5535  2.1534e-06  1.5764e-06  4.0309e-07  2.8502e-06  2.4113e-04  1.8176e-04  0:07:48   19

Flow time = 1.70876367s, time step = 4101

5899 more time steps

 

mazab17 posted this 3 weeks ago

And this is my journal file: 

file

rc turbine15_f.cas

rd turbine15.dat

file /autosave/data-frequency 10

q

/solve/monitors/Moment

/solve dual-time-iterate 10000 20

 

abenhadj posted this 3 weeks ago

Please post a screenshot of Moment Report Definition. 

Best regards,

Amine

abenhadj posted this 3 weeks ago

Just to highlight one thing: You are still using the old "Monitors" to get the moments. They would actually give you normaly what you want but I recommend using the new Report DEfinitions. So Please just create a new Report Definition>Moment then give the necessary input and do not forget to write in a file using local paths and print to console.

Best regards,

Amine

mazab17 posted this 3 weeks ago

I added that line after I tried everything and I didn't get the moment. Please attend to the screenshots of the report definition and monitor:

abenhadj posted this 3 weeks ago

1/In R19.2 there is an option to set "Print to console" under Moment Report definition.

2/Please check if you can see the moment written in the console if you are running interactively (with GUI)

3/There is another to let you have the information of the moment every transient: Create for example an output parameter for the moment and then add a calculation activity every time step  (or every N time steps) with /define/parameters/output-parameters/print-to-console yournameofparameter.

Best regards,

Amine

mazab17 posted this 3 weeks ago

Unfortunately, I don't have the access to 19.2 version since school provides 19.1 and as you can see there is no such an option in 19.1 and the mesh is very huge and I couldn't run it on my local computer to check if it's printed in GUI (33 million elements). Do you mean I add " /define/parameters/output-parameters/print-to-console moment" to the Journal file? 

 

Thank you very much

abenhadj posted this 3 weeks ago

No add it as a Calculation Activity after you created an output parameter for the moment. Regarding the issue with large cell count: Just create a dummy example to check the issue with the print to console which you can then easily run on your local PC and to get familiar with TUI commands and Fluent in genereal!

Best regards,

Amine

mazab17 posted this 3 weeks ago

Hello, 

In the calculation Activity, there is no definition of parameters. You mean that I write a macro for that 

Show More Posts
Close