|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Zese
Join Date: Sep 2013
Posts: 106
Rep Power: 13 ![]() |
dear all
I have some time steps as follow: 10, 20, 30,..... I want to write the session file for exporting data for these time steps. @steplist =(10..1000) will export all the datas but I want every 10 data. do you know how can I write it? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,917
Rep Power: 145 ![]() ![]() ![]() ![]() |
Record a session file doing the first 1 or 2 files. Have a look at the session file and that will show you the format. Then generate a session file which does all your time steps.
Session files have looping (for...next) and conditional (if...then...else) statements, but I find them unnecessary. I prefer to use a package like python to handle all that stuff and just write out a big long session text file which just runs from top to bottom.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
![]() |
![]() |
![]() |
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 04:52 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |