|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
hang yang
Join Date: Apr 2022
Posts: 17
Rep Power: 5 ![]() |
I did a transient simulation, and I got a .trn file, and I want to use that .trn file as an initial condition for the next calculation, and I'm using -continue-from-file, and I tried -continue-from-file chushi.trn, But the system says trn file is invalid, I wonder if this command can't use trn file as initial condition, if not, what can i do, I can't use visual interface, must use command line.
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,898
Rep Power: 33 ![]() |
You can definitely use a <number>_full.trn file.
I do not recall ever using a <number>.trn file before. They are different since the latter is missing a ton of information likely required to be used as an initial condition.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
hang yang
Join Date: Apr 2022
Posts: 17
Rep Power: 5 ![]() |
Quote:
A valid initial values file is required for the run. ansys cfx initial values file 5100_full.trn does not exist |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,954
Rep Power: 28 ![]() |
you can use .res and .bak filles since they contain a mesh. .trn-files not.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
hang yang
Join Date: Apr 2022
Posts: 17
Rep Power: 5 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,954
Rep Power: 28 ![]() |
Why not use a back-up file?
|
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Senior Member
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 10 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
hang yang
Join Date: Apr 2022
Posts: 17
Rep Power: 5 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#9 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,954
Rep Power: 28 ![]() |
You cannot use a .trn-file as initial conditions. Wasn't it clear? How often do we need to repeat?
You seem to be lost somewhere. Can you explain what you are doing and what your real problem is? Now we need to read between the lines, which is difficult. Nevertheless, if I'm correct, it looks like you have a transient run, that crashes, and that you have only .trn-files from which you want to continue with different settings. You cannot do that. Trn-files are only for Postprocessing, e.g. for making a nice animation. You should create .bak-files. In CFX-Pre, in the same tab as where you define the .trn-file, you can set how often the solver should write Backup files. You can do it every timestep. And if you are not sure which timestep is safe to continue with, you should keep every .bak-file. But potentially, this will eat a lot of diskspace. Then, if you run from command line, it is: cfx5solve -def <file.def> -ini <file.bak> or, if you have a good .res-file: cfx5solve -def <file.def> -ini <file.res> |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PengRobinsonGas EoS with sprayFoam | Jabo | OpenFOAM Running, Solving & CFD | 36 | July 16, 2024 03:52 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 06:47 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 09:07 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 21:53 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |