|
[Sponsors] |
January 28, 2018, 14:03 |
CFD Variables - How to save and load them
|
#1 |
Member
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11 |
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 |
|
January 28, 2018, 17:08 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144 |
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. |
|
January 28, 2018, 18:47 |
|
#3 | |
Member
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11 |
Quote:
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) |
||
January 28, 2018, 19:17 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144 |
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. |
|
January 28, 2018, 20:18 |
|
#5 | |
Member
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11 |
Quote:
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!! |
||
January 29, 2018, 00:05 |
|
#6 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144 |
Quote:
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. |
||
January 29, 2018, 15:27 |
|
#7 | |
Member
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11 |
Quote:
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. |
||
January 29, 2018, 16:47 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144 |
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. |
|
January 29, 2018, 16:57 |
|
#9 |
Member
Roberto
Join Date: Feb 2015
Posts: 33
Rep Power: 11 |
Ok, thank you, very much Ghorrocks!
Maybe the hack thing is good enough in this case. Thanks... |
|
|
|
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 |