CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > EnSight

.trn results bunching in Ensight

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 21, 2012, 10:59
Default .trn results bunching in Ensight
  #1
New Member
 
Christa
Join Date: Apr 2011
Posts: 27
Rep Power: 6
user_of_cfx is on a distinguished road
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
user_of_cfx is offline   Reply With Quote

Old   July 8, 2012, 21:52
Default .trn results bunching in EnSight
  #2
Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Posts: 73
Rep Power: 8
kevincolburn is on a distinguished road
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)
kevincolburn is offline   Reply With Quote

Old   July 9, 2012, 11:05
Default
  #3
New Member
 
Christa
Join Date: Apr 2011
Posts: 27
Rep Power: 6
user_of_cfx is on a distinguished road
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
user_of_cfx is offline   Reply With Quote

Old   July 9, 2012, 13:17
Default
  #4
Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Posts: 73
Rep Power: 8
kevincolburn is on a distinguished road
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)
kevincolburn is offline   Reply With Quote

Old   May 5, 2014, 10:04
Default Bunching .res files
  #5
New Member
 
Claudia
Join Date: May 2014
Posts: 5
Rep Power: 3
clau90 is on a distinguished road
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
clau90 is offline   Reply With Quote

Old   May 5, 2014, 11:02
Default trn results bunching in Ensight
  #6
Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Posts: 73
Rep Power: 8
kevincolburn is on a distinguished road
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
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ceisoftware.com
kevincolburn is offline   Reply With Quote

Old   May 5, 2014, 11:22
Default
  #7
New Member
 
Claudia
Join Date: May 2014
Posts: 5
Rep Power: 3
clau90 is on a distinguished road
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!
clau90 is offline   Reply With Quote

Old   May 5, 2014, 11:41
Default
  #8
Member
 
kevincolburn's Avatar
 
Kevin Colburn
Join Date: Mar 2009
Posts: 73
Rep Power: 8
kevincolburn is on a distinguished road
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
__________________
Kevin Colburn
Computational Engineering International, Inc.
www.ceisoftware.com
kevin@ceisoftware.com
kevincolburn is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transient Run - Output "Time" in partial results? evcelica CFX 2 May 16, 2012 21:36
Import STAR-CD results -> Paraview BenBoo CD-adapco 7 March 29, 2012 05:02
CFX Post: .trn files bunching? user_of_cfx CFX 8 March 20, 2012 12:16
[ICEM] Bunching nodes along a curve siw ANSYS Meshing & Geometry 4 October 14, 2009 17:42
How to plot a function over a time period? Cirion0000 CFX 4 July 18, 2009 12:48


All times are GMT -4. The time now is 07:41.