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

Exporting Residual Information

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cgriffin33

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2009, 13:23
Default Exporting Residual Information
  #1
Forrest
Guest
 
Posts: n/a
This might be a simple question, but is there anyway that I can write my residual information to an output file?
  Reply With Quote

Old   July 7, 2011, 06:48
Default
  #2
New Member
 
Join Date: May 2011
Posts: 1
Rep Power: 0
fuxx is on a distinguished road
I've got the same question and didn't find any solution yet...is there anyone who could help?
i would like to write my residuals into a csv file
fuxx is offline   Reply With Quote

Old   July 25, 2011, 07:55
Smile
  #3
Member
 
anonym
Join Date: Mar 2009
Posts: 65
Rep Power: 17
Laci is on a distinguished road
I have the same question. How could I export the residuals into data etc. file?
Thx in advance.
Laci is offline   Reply With Quote

Old   July 26, 2011, 07:42
Default
  #4
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
There is a text command: /plot/residuals-set> plot-to-file which may do what you want. As far as i remember it writes the stored residual data in a file.

cheers
coglione is offline   Reply With Quote

Old   July 27, 2011, 08:15
Default
  #5
Member
 
anonym
Join Date: Mar 2009
Posts: 65
Rep Power: 17
Laci is on a distinguished road
Quote:
Originally Posted by coglione View Post
There is a text command: /plot/residuals-set> plot-to-file which may do what you want. As far as i remember it writes the stored residual data in a file.

cheers
Thank you!
Laci is offline   Reply With Quote

Old   July 30, 2011, 02:52
Default
  #6
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
If you want to output the residuals to a file WHILE the solution is running (ie at the end of each iteration,look at this post: http://www.cfd-online.com/Forums/flu...ge-fluent.html
stuart23 is offline   Reply With Quote

Old   November 29, 2016, 12:08
Default
  #7
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Quote:
Originally Posted by coglione View Post
There is a text command: /plot/residuals-set> plot-to-file which may do what you want. As far as i remember it writes the stored residual data in a file.
I'm using Ansys 17.0 and /plot/residuals-set/plot-to-file doesn't work. It generates an empty file, even if I save cell residuals (/solve/set/exp... Save cell residuals for post-processing? [yes]). What am I missing??

I know about this method: http://www.cfd-online.com/Forums/flu...tml#post145582 but it adds a lot of output activity and slows down my simulations which are already time consuming.

Thanks
macfly is offline   Reply With Quote

Old   November 13, 2020, 08:28
Default
  #8
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 7
lukasf is on a distinguished road
Hi guys,


I also get an empty file if I use


/plot/residuals-set> plot-to-file


anyone know hows to fix this?


Best regards,


Lukas
lukasf is offline   Reply With Quote

Old   April 7, 2021, 07:40
Default
  #9
New Member
 
Johannes Brozovsky
Join Date: Jan 2019
Location: Trondheim, Norway
Posts: 1
Rep Power: 0
Hansbeda is on a distinguished road
Hello!

Let me refer you to my post in the ANSYS student forum:

https://forum.ansys.com/discussion/7...in-text-format

In short this is the solution that I came up with:

1. Complete simulation
2. Execute the TUI command /plot/residuals-set/plot-to-file "filename.txt" (will be empty initially)
3. Add one iteration, for example with the TUI command it 1 (if you have a transient case, this will not advance the time step
4. After the additional iteration, open the file specified before
Hansbeda is offline   Reply With Quote

Old   April 20, 2021, 15:31
Default
  #10
New Member
 
Chris Griffin
Join Date: Mar 2011
Posts: 9
Rep Power: 15
cgriffin33 is on a distinguished road
When running on a cluster I always write whatever would be in the command window to an output file. This includes the residuals if you are printing them to the screen. I created a simple matlab file to parse that outfile for the residual information. If anyone is interested let me know. I currently have it specific for the 3D k-omega turbulence model, but a little manipulation should make it work for any type of run.
cgriffin33 is offline   Reply With Quote

Old   April 6, 2022, 20:37
Default
  #11
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 117
Rep Power: 10
dewey is on a distinguished road
I am interested. Could you share your script?


Quote:
Originally Posted by cgriffin33 View Post
When running on a cluster I always write whatever would be in the command window to an output file. This includes the residuals if you are printing them to the screen. I created a simple matlab file to parse that outfile for the residual information. If anyone is interested let me know. I currently have it specific for the 3D k-omega turbulence model, but a little manipulation should make it work for any type of run.
dewey is offline   Reply With Quote

Old   April 7, 2022, 09:07
Default
  #12
New Member
 
Chris Griffin
Join Date: Mar 2011
Posts: 9
Rep Power: 15
cgriffin33 is on a distinguished road
https://github.com/cgriffin33/Matlab...ParseOutfile.m
Edee likes this.
cgriffin33 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
Exporting a file Rola FLUENT 8 June 29, 2006 18:39
exporting data sourav FLUENT 2 August 16, 2005 15:05
Exporting just a section Mahdi FLUENT 1 May 7, 2005 19:51
Residual information for Comet eezee Siemens 0 August 27, 2004 10:33
Exporting Contours Habib FLUENT 0 July 25, 2004 07:20


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