|
[Sponsors] |
March 18, 2012, 11:18 |
Read sample tool data (foamfile)
|
#1 | |
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18 |
Hi foamers,
I used the sample tool to sample data on a cuttingPlane for several time steps and variables. To use these ones as boundary conditions I'd now like to save the single variable values from every time step in one big file as a vectorListIOList and scalarListIOList. Problem: Although I chose "foamfile" as surfaceFormat in sampleDict, only vectorFields and scalarFiels are written out. So the headers are missing. I therefore cannot read them as an e.g. IOField<scalar>: Quote:
Thanks, Arne |
||
March 18, 2012, 16:12 |
|
#2 | |
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 18 |
Ok, I think I already got it. Using an IOobject does not seem to be a good idea for reading the files because of the missing header. These files can simply be read using the IFstream which I have not known before, like
Quote:
Arne Last edited by Arnoldinho; March 18, 2012 at 16:33. |
||
May 14, 2013, 08:04 |
|
#3 |
Member
Dogan
Join Date: Nov 2012
Location: Bochum/Germany
Posts: 42
Rep Power: 14 |
Hi Arne,
i am receiving the same error message, and because of my so limited programming knowledge, i didn't understand what you meant. Could you please tell me how did you menage to solve this problem? Did you use IFstream instead of IOobject? is it is so, how did you set this in the case directory? thanks Dogan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mesh data to be read by Fortan code | seckin | Main CFD Forum | 8 | December 7, 2022 01:58 |
How to read the data from the graph | Kottam | Main CFD Forum | 2 | June 14, 2008 17:46 |
heat conducting in a solid domain | Rogerio Fernandes Brito | Siemens | 0 | March 18, 2008 18:23 |
How to read a file with inlet velocity data? | dorin | CFX | 13 | July 20, 2007 03:16 |
Read the Mesh data from Gambit | David | Main CFD Forum | 7 | September 5, 2000 20:56 |