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

CFD Variables - How to save and load them

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2018, 14:03
Default CFD Variables - How to save and load them
  #1
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Hi everyone.

I've got a problem. I was running a transient state simulation on airflow through a solar collector.

I ran out of storage space, so the sim interrupted and ended without generating the .res file but it did save almost all the .trn files I needed.

I can load up the .trn files along with the .cfx and .def files in order to see the results but the problem is the variables I need to see the results are not saved into any of these files.

I have these variables in other simulations I ran but I don't know how to save them to be loaded and used in with all these other .trn files I've got (the ones of the sim that didn't generate a .res file).

All this, done in CFX.

Can anyone provide any assistance on this?

Thank you
RobBanks is offline   Reply With Quote

Old   January 28, 2018, 17:08
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Do you mean you want monitor point data? You can load the crashed run in solver manager and access the monitor point data there.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 28, 2018, 18:47
Default
  #3
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Do you mean you want monitor point data? You can load the crashed run in solver manager and access the monitor point data there.
Yes, I can load the crashed run in solver manager and view the monitor point data but that's not what I need.

I mean, when in the CFD-Post, I can load all the .trn's, the .cfx and the .def (although that doesn't help much) but what I can't load are the variables that were defined previously, which I could view and use in other sims, which finished properly.

In CFD-Post, next to the 'Outline' tab you see the 'Variables' tab. Those are the ones I don't get and I don't know if there's a way of getting them from other sims and load them onto the new, crashed run, which has no .res but almost all the .trn's

Thank you, Ghorrocks!!!!!

(no probs, I won't send PM)
RobBanks is offline   Reply With Quote

Old   January 28, 2018, 19:17
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The post footer was not aimed at you I get dozens of PM requests per week and I am a bit sick of it.

trn files are useless if they cannot be linked to the mesh data. You can get the mesh data by:
* selecting the "include mesh data" option in the output options
* completing a run and getting a res file
* periodically saving a trn file which includes mesh data. Then all the trn files up to that point should be readable.

If the run which crashed is valuable you might be able to hack it so it reads it by:
* Do a new run for a few time steps and let it save a res file. Save trn files at a few intermediate points.
* Delete the trn files from this run and rename your valuable run trn files to the same file name. Then when you post process this short run it will actually access the valuable run's data for the trn files you have replaced.

Obviously this is a bit of a hack, is tedious to perform for lots of data and there is no guarantee it will work reliably. But it might save you from loosing data.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 28, 2018, 20:18
Default
  #5
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The post footer was not aimed at you I get dozens of PM requests per week and I am a bit sick of it.

trn files are useless if they cannot be linked to the mesh data. You can get the mesh data by:
* selecting the "include mesh data" option in the output options
* completing a run and getting a res file
* periodically saving a trn file which includes mesh data. Then all the trn files up to that point should be readable.

If the run which crashed is valuable you might be able to hack it so it reads it by:
* Do a new run for a few time steps and let it save a res file. Save trn files at a few intermediate points.
* Delete the trn files from this run and rename your valuable run trn files to the same file name. Then when you post process this short run it will actually access the valuable run's data for the trn files you have replaced.

Obviously this is a bit of a hack, is tedious to perform for lots of data and there is no guarantee it will work reliably. But it might save you from loosing data.
Thank you, so much, Ghorrocks!

I did exactly as you did though I was just guessing cause I wasn't sure it was going to work out... the hack thing.

The include mesh data in the .trn's option is on the CFX-Pre, right? it isn't in the Post...

I ran another sim, lasting less than the one I needed, used the last .trn generated as the seed for this and then did the same you told me to.

THank you!!
RobBanks is offline   Reply With Quote

Old   January 29, 2018, 00:05
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
The include mesh data in the .trn's option is on the CFX-Pre, right? it isn't in the Post...
Yes, you need to do this in your simulation setup. You cannot do it in the post processor.

Make a mental note of this - for long, valuable runs you need to do something which gives you backup files you can recover the simulation from. Adding the mesh to trn files is one way of doing this for transient simulations.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 29, 2018, 15:27
Default
  #7
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Yes, you need to do this in your simulation setup. You cannot do it in the post processor.

Make a mental note of this - for long, valuable runs you need to do something which gives you backup files you can recover the simulation from. Adding the mesh to trn files is one way of doing this for transient simulations.
Thank you, Ghorrocks. I thought I didn't include the mesh data because I couldn't load up these files but when I checked, I did include it but still I can't read these .trn files.

I managed to do the hack thing you told me to and I think it worked but I still wonder why, if I did include the mesh data, can't I use the .trn files the way I want, because I still get the problem when I try to read all those .trn files without the .res.

Problem: I can't use the variables I had defined before, in other runs, because there is no .res file and I was wondering if there's a way of exporting them from other sims to then load them up into the CFX Post, in order to use them.
RobBanks is offline   Reply With Quote

Old   January 29, 2018, 16:47
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If the trn files includes the mesh they should be readable without needing to do the hack.

As for your final question - I do not know.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 29, 2018, 16:57
Default
  #9
Member
 
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11
RobBanks is on a distinguished road
Ok, thank you, very much Ghorrocks!

Maybe the hack thing is good enough in this case. Thanks...
RobBanks 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
[ICEM] ICEM CFD Segmentation violation CentOS 7.3 bbrown57 ANSYS Meshing & Geometry 6 November 24, 2019 13:08
Save views and load them in another case HHOS EnSight 4 June 16, 2015 02:37
Save and load dataset in multiple files Zato_Ichi Tecplot 0 February 12, 2015 11:01
Importing .sfe load files from CFX to Ansys ADPL Eyezac ANSYS 0 May 14, 2010 18:09
PC vs. Workstation Tim Franke Main CFD Forum 5 September 29, 1999 15:01


All times are GMT -4. The time now is 15:35.