CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   I/O operations in openfoam (https://www.cfd-online.com/Forums/openfoam-pre-processing/171456-i-o-operations-openfoam.html)

STutexas May 9, 2016 06:04

I/O operations in openfoam
 
Hi

I have a question about Openfoam IO operations.
I have a text file containing a set of location vectors (x, y, z) and another file containing my input variable at these locations. There is no header in the file (Its just a text file in addition to the mesh file).
The location vectors are not necessarily located in the mesh (located outside the mesh in most cases) but affect my calculations. I want to read this file and create a list with locations and input variable.
Is there a command that directly does that? Or do I have to use fscanf, read the file and create the list.
Most of the links I have found contain I/O operations for the mesh and not very helpful.

Saurabh


All times are GMT -4. The time now is 11:20.