|
[Sponsors] |
Saving .trn files in the same .dir folder after restarting the CFX run |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 1, 2024, 02:46 |
Saving .trn files in the same .dir folder after restarting the CFX run
|
#1 |
New Member
KristianRanta
Join Date: Oct 2016
Location: Sundsvall
Posts: 29
Rep Power: 9 |
I was running a transient simulation in CFX when my laptop decided to do a worthless windows update which resulted in an auto reboot. I was saving the .trn files at each timestep to run an animation later, and have them all saved in the .dir folder. I'm trying to continue my run by specifying the last .trn file as the initial condition, but this opens a new folder to store the .trn files in now. My understanding is that I cannot just copy the old .trn files into this new folder to animate all timesteps because the final .res file can only read timesteps that were written down for the corresponding run.
Therefore, is there a way to restart the CFX run so as to continue writing the .trn files into the same existing .dir folder that was in being used at the time of the reboot? Thanks. |
|
September 1, 2024, 04:58 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144 |
When you start CFX you can define the temporary directory which CFX runs in, and this is the location CFX puts all the trn files. But I do not think that will help you - the res file it saves at the end is linked to the trn files associated with that run only, so the other trn files in the directory will be ignored.
But a side point: You only need the res file to open the trn files if you have not saved the mesh in the trn files. The default option is to save the mesh in the trn files, in which case you can load the trn files directly in CFD-Post without needing the res file.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
September 1, 2024, 10:45 |
|
#3 |
New Member
KristianRanta
Join Date: Oct 2016
Location: Sundsvall
Posts: 29
Rep Power: 9 |
Thanks for the reply. Yeah, it's a pity that there is no provision to continue the run in the manner I wanted (and I'm sure a lot of other users too).
Yes, I can open the .trn file with the mesh info (saved as a filename_full.trn by default), but I can't append to the rest of the .trn files to build on my animation. Hopefully they put out a new feature to fix the above issue in the future. Thanks again. |
|
September 1, 2024, 18:31 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144 |
If you want to do an animation across one crashed simulation (where you have the full trn files) and another simulation to complete it you can:
1) Do a CFD-Post session file which does the animation over the crashed simulation trn files, saving the frames as files, and then load the second simulation and complete the animation, saving the frames as files. Then you can use something like ffmpeg or any of the other animation tools to generate a new animation using all the frames. OR 2) Do an animation using the trn files from the first crashed run, and then a second animation from the second simulation run. You will now have two animation files, so use a video editing tool to append the animations to each other and you get a single animation file over the whole thing. So you do have options to generate the full animation, they just require a bit more work.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
September 4, 2024, 09:47 |
|
#5 | |
Senior Member
Join Date: Jun 2009
Posts: 1,863
Rep Power: 33 |
Quote:
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Call for help! Cfx error in Parallel run. | yq11ys | CFX | 5 | November 28, 2022 22:25 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 19:43 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 10:46 |
CFX Solver to run 10 files sequentially | Raj | CFX | 8 | October 29, 2008 22:20 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 20:51 |