CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Monitor Fluent Jobs - Batch mode

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By LuckyTran
  • 1 Post By archeoptyrx
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2017, 11:06
Unhappy Monitor Fluent Jobs - Batch mode
  #1
Member
 
sandy
Join Date: May 2013
Posts: 91
Rep Power: 12
archeoptyrx is on a distinguished road
Hi All,

I am running a batch fluent job in a remote computer using a queuing system.

I asked fluent to write down the surface monitors to a file. ( pressure.out,velocity.out etc).

In CFX we can directly monitor the running jobs using the solver manager. I wanted to monitor a running fluent job somehow. How can we do it ?
Any advice would be of great use.
archeoptyrx is offline   Reply With Quote

Old   February 14, 2017, 06:40
Default
  #2
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
I would like to know this also...

May we need to create a UDF??
rarnaunot is offline   Reply With Quote

Old   February 14, 2017, 14:43
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,672
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
They are simply text files that you can open with any text editor and read.

I guess you are asking about how to monitor them visually. There is no Fluent utility that does this.

You need to read the .out files and plot them.
How you do that is really up to you and a general solution does not really exist because it depends on you. Use your favorite plotter. Excel. Matlab. GNUPLOT. whatever.
rarnaunot likes this.
LuckyTran is offline   Reply With Quote

Old   February 16, 2017, 09:36
Default
  #4
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
They are simply text files that you can open with any text editor and read.

I guess you are asking about how to monitor them visually. There is no Fluent utility that does this.

You need to read the .out files and plot them.
How you do that is really up to you and a general solution does not really exist because it depends on you. Use your favorite plotter. Excel. Matlab. GNUPLOT. whatever.
Thanks a lot! But how it is possible to plot Residuals?? And what about UDM... Can we plot a UDM??
rarnaunot is offline   Reply With Quote

Old   February 18, 2017, 21:41
Default
  #5
Member
 
sandy
Join Date: May 2013
Posts: 91
Rep Power: 12
archeoptyrx is on a distinguished road
Quote:
Originally Posted by rarnaunot View Post
Thanks a lot! But how it is possible to plot Residuals?? And what about UDM... Can we plot a UDM??
Hi,

It is easy to write down the residuals to a file.
  1. Create a scheme file with the below commands. Say "Residual.scm"
    (define port)
    (set! port (open-output-file "residuals.dat"))

    (do
    ((i 0 (+ i 1)))
    ((= i (length (solver-residuals))))
    (format port "~a ~2t" (car (list-ref (solver-residuals) i)))
    )
    (newline port)

  2. When generating the case file. Navigate to calculation activities-->execute commands. Then enter the below commands.
    (do
    ((i 0 (+ i 1)))
    ((= i (length (solver-residuals))))
    (format port "~a ~2t" (cdr (list-ref (solver-residuals) i)))
    )
    (newline port)

  3. Now when writing the journal file , include the load command to read the scheme file.

    ; JOURNAL FILE

    rc Test.cas

    (load "Residual.scm")

    iter ...

    wc Test.dat.gz

This will write the residuals to a .dat file which you can plot it externally.

Similarly if you want to write down other variables, define it in monitors and check "write file" box.

or navigate to Report Definitions ---> do the same you do it in monitors. Check only "write reports" . But do not check "plot report file" if you are running fluent in batch mode. I personally find this more useful then defining monitors. I believe this option is only there in newer versions.
rarnaunot likes this.
archeoptyrx is offline   Reply With Quote

Old   March 13, 2017, 10:30
Red face
  #6
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
Quote:
Originally Posted by archeoptyrx View Post
Hi,

It is easy to write down the residuals to a file.
  1. Create a scheme file with the below commands. Say "Residual.scm"
    (define port)
    (set! port (open-output-file "residuals.dat"))

    (do
    ((i 0 (+ i 1)))
    ((= i (length (solver-residuals))))
    (format port "~a ~2t" (car (list-ref (solver-residuals) i)))
    )
    (newline port)

  2. When generating the case file. Navigate to calculation activities-->execute commands. Then enter the below commands.
    (do
    ((i 0 (+ i 1)))
    ((= i (length (solver-residuals))))
    (format port "~a ~2t" (cdr (list-ref (solver-residuals) i)))
    )
    (newline port)

  3. Now when writing the journal file , include the load command to read the scheme file.

    ; JOURNAL FILE

    rc Test.cas

    (load "Residual.scm")

    iter ...

    wc Test.dat.gz

This will write the residuals to a .dat file which you can plot it externally.

Similarly if you want to write down other variables, define it in monitors and check "write file" box.

or navigate to Report Definitions ---> do the same you do it in monitors. Check only "write reports" . But do not check "plot report file" if you are running fluent in batch mode. I personally find this more useful then defining monitors. I believe this option is only there in newer versions.

Thanks archeoptyrx! I am trying this and it really helped me!
rarnaunot is offline   Reply With Quote

Old   March 13, 2017, 20:44
Default
  #7
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,672
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I don't consider it a built-in function since you're basically writing your own text file. but thanks for the scheme file! Although I knew a scheme solution existed, not having one readily available is not very useful. It's also very hard to search for. I'll have to bookmark this thread. =)

Quote:
Originally Posted by archeoptyrx View Post
or navigate to Report Definitions ---> do the same you do it in monitors. Check only "write reports" . But do not check "plot report file" if you are running fluent in batch mode. I personally find this more useful then defining monitors. I believe this option is only there in newer versions.
That's good to know! I checked in v17 and it's not there. I'll chk 17.2 maybe tomorrow to see if it's there. If not, is this an 18 only feature? I'm really glad though that someone had to sense to add the feature.
rarnaunot likes this.
LuckyTran is offline   Reply With Quote

Old   May 29, 2017, 15:14
Default i want to know how i introduce scheme file in TUI and also how to activate it
  #8
New Member
 
BILAL HUSSAIN
Join Date: Dec 2016
Posts: 5
Rep Power: 9
bilalhussain is on a distinguished road
Quote:
Originally Posted by archeoptyrx View Post
Hi,

It is easy to write down the residuals to a file.
  1. Create a scheme file with the below commands. Say "Residual.scm"
    (define port)
    (set! port (open-output-file "residuals.dat"))

    (do
    ((i 0 (+ i 1)))
    ((= i (length (solver-residuals))))
    (format port "~a ~2t" (car (list-ref (solver-residuals) i)))
    )
    (newline port)

  2. When generating the case file. Navigate to calculation activities-->execute commands. Then enter the below commands.
    (do
    ((i 0 (+ i 1)))
    ((= i (length (solver-residuals))))
    (format port "~a ~2t" (cdr (list-ref (solver-residuals) i)))
    )
    (newline port)

  3. Now when writing the journal file , include the load command to read the scheme file.

    ; JOURNAL FILE

    rc Test.cas

    (load "Residual.scm")

    iter ...

    wc Test.dat.gz

This will write the residuals to a .dat file which you can plot it externally.

Similarly if you want to write down other variables, define it in monitors and check "write file" box.

or navigate to Report Definitions ---> do the same you do it in monitors. Check only "write reports" . But do not check "plot report file" if you are running fluent in batch mode. I personally find this more useful then defining monitors. I believe this option is only there in newer versions.
Sir i write file in putty
rc case.cas
it 1000
wc case.cas
wd cas.dat
I also want to introduce .scm file in my ansys fluent and also want to set its parameters via commands please tell me commands related to this thanks
bilalhussain is offline   Reply With Quote

Old   May 30, 2017, 16:50
Default
  #9
Member
 
sandy
Join Date: May 2013
Posts: 91
Rep Power: 12
archeoptyrx is on a distinguished road
use load command. see step 3. I am not sure about the older versions of fluent.
archeoptyrx is offline   Reply With Quote

Old   June 1, 2017, 14:23
Default
  #10
New Member
 
BILAL HUSSAIN
Join Date: Dec 2016
Posts: 5
Rep Power: 9
bilalhussain is on a distinguished road
Quote:
Originally Posted by archeoptyrx View Post
use load command. see step 3. I am not sure about the older versions of fluent.
Sir now i load the scheme file
i want to active it
model>gasification calculator>update>ok >
sir i need above series of command so that I can run it.
or sir tell me how i save scheme file permanently with case file. thanks
bilalhussain is offline   Reply With Quote

Old   December 12, 2017, 11:03
Default
  #11
New Member
 
A R Jensen
Join Date: Nov 2017
Posts: 6
Rep Power: 8
arjdk is on a distinguished road
Quote:
Originally Posted by rarnaunot View Post
Thanks archeoptyrx! I am trying this and it really helped me!
This is an extremely useful script when doing transient simulations and wanting to check the residuals more closely.

However, one thing that I am missing is the iteration number. The reason is that an extra line of residual status is printed between time steps and line number does therefore not match up with the iteration number. The reason that is a problem is that it would be nice to compare the residuals to values outputted through the report definitions.

Does anyone know how to add the iteration number to the printet output?
arjdk is offline   Reply With Quote

Old   December 12, 2017, 11:04
Default
  #12
New Member
 
A R Jensen
Join Date: Nov 2017
Posts: 6
Rep Power: 8
arjdk is on a distinguished road
This is an extremely useful script when doing transient simulations and wanting to check the residuals more closely.

However, one thing that I am missing is the iteration number. The reason is that an extra line of residual status is printed between time steps and line number does therefore not match up with the iteration number. The reason that is a problem is that it would be nice to compare the residuals to values outputted through the report definitions.

Does anyone know how to add the iteration number to the printet output?
arjdk is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Ansys in BAtch Mode kuleuvenstudent ANSYS 1 October 18, 2017 12:11
Workbench in batch mode with parametric study (design point) Veronique Pe ANSYS 0 June 1, 2016 03:56
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 18:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 07:18
to run a replayfile in batch mode from UNIX froztbear ANSYS Meshing & Geometry 4 May 13, 2014 08:00


All times are GMT -4. The time now is 08:24.