CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to read field files from the two different time directories (https://www.cfd-online.com/Forums/openfoam/104794-how-read-field-files-two-different-time-directories.html)

fumiya July 16, 2012 09:44

How to read field files from the two different time directories
 
Hi,

I want to read field files such as the velocity U and pressure p
from the different two time directories. When I have the following
results,

0/ U, p, U1
100/ U, p
200/ U, p (latest time)

I want to start a calculation that needs the U and p files at time 200
and U1 at time 0 directory. If I set "startFrom latestTime" in the controlDict
file, I can read the U and p files at the 200 directory, but I have no idea
about how to read the U1 file at the 0 directory without copying it to
the 200 directory.

Could you tell me how to do it?

Thanks for any suggestions,
Fumiya

Satyajit92 August 1, 2021 06:58

Hi, It's been long since you posted the question. Have you found the solution?
I am facing a similar situation. Let's say, I have 10 time folders. I want to create 10 volume vector fields U1, U2, U3.......U10. from the U in those 10 time folders. Any suggestion how I should proceed ?


All times are GMT -4. The time now is 23:17.