CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

csv file unable to read by OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2022, 13:53
Default csv file unable to read by OpenFOAM
  #1
New Member
 
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 4
Utkan is on a distinguished road
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.
The BC for one of the patches in my T file is as follows:

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";
    }
    }
What could the error be? Why do you think it reads my file as "empty".
Utkan is offline   Reply With Quote

Old   June 7, 2022, 08:26
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,503
Rep Power: 35
olesen will become famous soon enougholesen will become famous soon enough
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.
olesen is offline   Reply With Quote

Old   June 10, 2022, 16:50
Default
  #3
New Member
 
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 4
Utkan is on a distinguished road
I just changed the separator from dot to comma and it worked.
Utkan is offline   Reply With Quote

Reply

Tags
csv files, empty file, error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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