|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Longfei
Join Date: Apr 2014
Posts: 2
Rep Power: 0 ![]() |
Hi all,
I am trying to read a csv file into the velocity boundary conditions (FOAM_CASE/0/U), and below is what I did. Code:
mainJet
{
type timeVaryingMappedFixedValue;
offset csvFile;
csvFileCoeffs
{
nHeaderLine 0;
refColumn 0;
componentColumns (1 2 3);
separator ",";
mergeSeparators no;
fileName "myDataFile";
outOfBounds clamp;
interpolationScheme linear;
};
setAverage off;
}
Can some one tell me what is the problem with my csv file and csvFileCoeffs settings? Everytime when I try to run the case I get the following error message from OpenFOAM: Code:
--> FOAM FATAL IO ERROR:
Cannot open CSV file for reading.
file: myDataFile at line 1.
From function CSV<Type>::read()
in file lnInclude/CSV.C at line 82.
FOAM exiting
Thanks in advance! Longfei |
|
|
|
|
|
|
|
|
#2 |
|
Member
Manjunath Reddy
Join Date: Jun 2013
Posts: 47
Rep Power: 14 ![]() |
Hi,
You should give the path of the file where you didn't mention it. it should be like this fileName "$FOAM_CASE/mydataFile"; and you should place your file in the case folder. |
|
|
|
|
|
![]() |
| Tags |
| csv |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam | jlpelerin | OpenFOAM Meshing & Mesh Conversion | 4 | April 25, 2011 17:56 |
| Reading .srp/.vrp files into Matlab | Will Humber | FLUENT | 0 | February 13, 2008 14:20 |
| Grid reading problem on parallel machine | wies | FLUENT | 0 | September 15, 2005 11:18 |
| Error Reading files | Mark | FLUENT | 0 | August 26, 2005 17:04 |
| Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |