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, 12:53
Default csv file unable to read by OpenFOAM
  #1
New Member
 
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 5
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, 07:26
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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, 15:50
Default
  #3
New Member
 
Utkan Erdem
Join Date: Sep 2020
Posts: 19
Rep Power: 5
Utkan is on a distinguished road
I just changed the separator from dot to comma and it worked.
Utkan is offline   Reply With Quote

Old   May 16, 2023, 03:57
Default
  #4
Member
 
sadra mahmoudi
Join Date: Feb 2021
Location: Austria
Posts: 39
Rep Power: 5
sadra2003 is on a distinguished road
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
sadra2003 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 19:43
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


All times are GMT -4. The time now is 09:21.