CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   EnSight (https://www.cfd-online.com/Forums/ensight/)
-   -   .trn results bunching in Ensight (https://www.cfd-online.com/Forums/ensight/103619-trn-results-bunching-ensight.html)

user_of_cfx June 21, 2012 10:59

.trn results bunching in Ensight
 
Hello,

Some time ago I asked a question about bunching trn results in CFX-Post. This is my original post:


Quote:

Hello,

I ran a transient simulation that went on for about 1000 timesteps. Unfortunately the simulation timed out (I ran it on a cluster) about 300 timesteps before the end without a .res file but with the .trn files for each timestep up to that point saved as usual.

I decided to rerun the simulation starting from the last _full.trn file and collected the rest of the .trn files.

The question is, can I put the .trn files of the first part of the simulation in the folder of the second part and post process all the timesteps in one go? I need to extract time-averaged values so I need all the timesteps bunched in the same folder for my results.

I tried just copying the first-part trn files into the folder, but CFX Post will only read the second-part timesteps.

Any help that will save me from re-running the whole thing will be greatly appreciated. :)

Cheers,
Christa
Even though I received great help on the subject for CFX-Post (thanks!), I have the same problem with Ensight, and I was wondering if there is a way to do the bunching. I need to construct a video and it would be great if I could create the video for the full cycle, and not just for the timesteps that were saved in the latest simulation result folder.

Many thanks again.

Best wishes,
Christa

kevincolburn July 8, 2012 21:52

.trn results bunching in EnSight
 
It has been a few years since I've actively used CFx, but I know that the CFx reader in EnSight utilizes the CFX Provided API for reading. As part of this read, EnSight is told what transient files (.trn) belong to the particular .res file. This information is stored in the .res file. By using the cfx5edit capability, you can edit the control information in the .res file to specify which .trn files are associated with it. It has a been a while since I've used CFx, so I do not recall the exact commands within the cfx edit utility to change it.

Another option is to load up the first .res file (timesteps 1-n), and export out those timesteps as EnSight format. You will get a set of EnSight format files for timestep 1-n. You can then load up the seconds .res file (timestep n+1 to m), and export out EnSight format for this sequence (timesteps n+1 to m). Then, since the EnSight Case file is a very simple ascii file that you edit, you can simply edit either one of the .case files and add in the additional timestep information there. Should you need assistance with this, please let us know (it is simple to edit and save you tons of time in post processing).

Let us know if we can be of further assistance. You can also contact us on support@ceisoftware.com as well.

-Kevin (kevin@ceisoftware.com)

user_of_cfx July 9, 2012 11:05

Hi Kevin,

Thank you very much for your response.

I think the second option sounds easier. I have managed to export my results into .case files from CFX Solver.

I'm not sure how to proceed from there though. I need to edit the ascii files using an editor that will allow me to save in an Ensight-readable format. Will simple text editors work for that? Also, apart from adding the timsteps of the 1:n case to the n+1:m case file, is there any other change that I need to make?

Also, I have recently started to use more and more of Ensight to post process my results, and though I was a bit sceptical at first I have warmed up to it. I have managed to create some interesting videos of particle traces etc and extract time-averaged values with ease, but I am currently stuck in trying to create a slightly complex keyframe animation. Do you think I will get help for this if I email the CEI support email you gave above?

Again many thanks for your time and help.

Best wishes,
Christa

kevincolburn July 9, 2012 13:17

Christa,

Glad to help. If you send me your two (or more) .case files, I can tell you exactly what to change to create one .case file which references both sets of data. They should be small, and easy to send. Essentially, the timeset needs to adjusted to reference all of the timesteps, and depending upon whether the grid changes from timestep to timestep (is a constant grid, just transient variables?).

On the keyframe side of things, you are more than welcome to contact support@ceisoftware.com directly with your inquiry. If you obtain your EnSight license from a distributor, you may want to contact them. Else, I can assist you.

-Kevin (email at kevin@ceisoftware.com)

clau90 May 5, 2014 10:04

Bunching .res files
 
Hi! I know this post is pretty old, but I am having exactly the same problem and I don't know how to solve it! I was running a transient simulation but it stopped before reaching the last time step, so I now have 2 .res files. I need to analyse the time averaged parameters and create some animations for the whole simulation so I need to put together the two files. I have tried to use the command cfx5dfile -cat-trninfo file.res as suggested on the page https://support.ceisoftware.com/entr...iple-res-files, but it's keeping only the last time step from the two .res files. I am not sure of what I am doing wrong! Is there anyone that knows how to help me?

Thank you!!

Claudia

kevincolburn May 5, 2014 11:02

trn results bunching in Ensight
 
Claudia,

Did you combine the .trn files into a single directory, underneath the new transient directory with the name equivalent to the new "combined" .res file?

If this CFx utility is not working for you, I can show how you can combine the time series using the EnSight Case Format as an alternative.

Regards,

Kevin Colburn

clau90 May 5, 2014 11:22

I have copied all the .trn files into a single directory named as the combined .res file. Is there anything else I should do? I have tried again but it's still not working... What is the alternative way?

Thank you for your help!

kevincolburn May 5, 2014 11:41

Claudia,

1. Open the CFx Solver Utility. At the top Tools -- > Export. Export the data into EnSight Format. Do this once for the first .res file, and separately for the second .res file.
2. Send me the two *.case text files that got created. I'll provide you back a unified .case file which references the complete domain (and any renaming of the files required). You should then be able to load the single unified .case file into EnSight, and see your complete time domain.
email : kevin@ceisoftware.com

-Kevin


All times are GMT -4. The time now is 09:57.