|
[Sponsors] |
May 21, 2022, 13:53 |
csv file unable to read by OpenFOAM
|
#1 |
New Member
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 6 |
Hello everyone,
I am faced with an error I couldn't solve. I am trying to feed a csv file into my temperature boundary condition to obtain a time and space varying temperature field. The problem is that I get an error like the following although the file is not empty: Code:
--> FOAM FATAL IO ERROR: Table read from "Heat_fluxes_nadir1.csv" is empty file: Heat_fluxes_nadir1.csv at line 2. Code:
plusX { type uniformFixedValue; uniformValue { type tableFile; format csv; nHeaderLine 0; // number of header lines refColumn 1; // time column index componentColumns (2); // data column index mergeSeparators yes; // merge multiple separators file "Heat_fluxes_nadir1.csv"; } } |
|
June 7, 2022, 08:26 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Can't say at all, without knowing what your case setup is and what your file contents are. (A minimal test case). This probably why nobody has answered.
|
|
June 10, 2022, 16:50 |
|
#3 |
New Member
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 6 |
I just changed the separator from dot to comma and it worked.
|
|
May 16, 2023, 04:57 |
|
#4 |
Member
sadra mahmoudi
Join Date: Feb 2021
Location: Austria
Posts: 39
Rep Power: 5 |
Dear Utkan,
I have a question abot using csv files in openfoam and I would be thankful if you help me. I am doing some experimental research and I have the velocity vector in a domain in a csv file. I would like ti read this file in the paraview in order to postprocess it. As far as I know, after importing the file, I need to use "table to point" filter. I did it successfully. Now, I would like to plot velocity over a line, but it does not work. I think there are some missing seteps in between in order to be able to post process further. I would be thankful if you share your opinion with me. Best regards |
|
Tags |
csv files, empty file, error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |