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

Export cell residuals to .dat file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2020, 04:55
Default Export cell residuals to .dat file
  #1
Syn
New Member
 
Bryan
Join Date: Jun 2020
Posts: 2
Rep Power: 0
Syn is on a distinguished road
Hello,

I know how to display cell residuals (/solve/set/expert) but I am running my cases on a cluster so I need data to be stored in a file to retrieve it when the case has finished running.

So is there a way to modify what is stored in the .dat file to also get the saved cell residuals ?

Currently I can see the cell residuals contour but I need to do at least one iteration on Fluent after the case ran on the cluster. Is there a way to get it immediately ? Of course I could do this 1 iteration everytime, but I wonder if there was a way to optimize it.

I read several threads about standard residuals export or cell residuals but I have not found any thread talking about the export of the cell residuals.

Bryan
Syn is offline   Reply With Quote

Old   June 19, 2020, 06:50
Default Writing to Data File
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
You can use DEFINE_RW_FILE to write (as well read) anything extra to case and data file. However, it all boils down to accessing what you want to write. Accessing cell residuals in a UDF may not be straightforward.

So, another approach could be to create CFF and UDM to save the cell residuals in UDM. Then UDMs are saved to data file automatically.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   June 23, 2020, 11:25
Default
  #3
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
Quote:
Originally Posted by vinerm View Post
You can use DEFINE_RW_FILE to write (as well read) anything extra to case and data file. However, it all boils down to accessing what you want to write. Accessing cell residuals in a UDF may not be straightforward.

So, another approach could be to create CFF and UDM to save the cell residuals in UDM. Then UDMs are saved to data file automatically.
Hi Vinerm,


thanks for your suggestions.


The questions is why Fluent does not save the residual information in the .dat file if the case is run on the cluster. If the case is run locally Fluent manages to save the residuals in the .dat file.


Is there something wrong with the fluent command on the cluster?
lukasf is offline   Reply With Quote

Old   June 23, 2020, 12:06
Default Cell Residuals
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
If the cell residuals are saved in local machine, then those will also be saved on the cluster. Try saving cell residuals on local machine, then close Fluent session. Reload data file in new session and observe if it is still there without running one iteration. If it is there, then you can certainly do that in cluster as well. If not, then you know that those do not get stored.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   July 1, 2020, 04:49
Default
  #5
Syn
New Member
 
Bryan
Join Date: Jun 2020
Posts: 2
Rep Power: 0
Syn is on a distinguished road
Thank you,

you are right they don't get stored.
Syn is offline   Reply With Quote

Reply

Tags
export data, residual field, residuals fluent


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
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 16:05
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18


All times are GMT -4. The time now is 02:04.