|
[Sponsors] |
OpenFOAM: read time-very inlet velocity from input file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 26, 2023, 18:29 |
OpenFOAM: read time-very inlet velocity from input file
|
#1 |
New Member
Join Date: Jun 2017
Posts: 15
Rep Power: 9 |
Hello,
I need to read a time-very inlet velocity from input file, but apparently the option Code:
type csvFile; Code:
inlet { type uniformFixedValue; uniformValue { type tableFile; file "inputFile.txt"; } } Code:
( ( 0.1 0) (100 10.0) ) Code:
-> FOAM FATAL IO ERROR: Expected a '(' while reading VectorSpace<Form, Cmpt, Ncmpts>, found on line 28 the label 0 file: /home/foamCase/0/hU/boundaryField/inlet/uniformValue at line 28. From function Foam::Istream& Foam::Istream::readBegin(const char*) in file db/IOstreams/IOstreams/Istream.C at line 92. FOAM exiting Thank you! |
|
May 26, 2023, 19:38 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
uniformValue values are in () not {}
The hint was Code:
Expected a ( on line 28 +1 to the counter of OpenFOAM error messages actually indicating what is the error |
|
May 30, 2023, 18:43 |
|
#3 |
New Member
Adam
Join Date: May 2023
Posts: 1
Rep Power: 0 |
The error suggests that there's an issue with the syntax or formatting of your file or boundary condition definition.
In your inputFile.txt, the correct format should be time first and then the value (velocity magnitude in this case) for each line. However, it also should be a list with the outer brackets.
__________________
Etsy to WooCommerce |
|
Tags |
openfoam 10, tablefile |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] LaminarSMOKE compilation error | mdhfiz | OpenFOAM Community Contributions | 8 | July 2, 2024 11:32 |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 04:50 |
Postprocess: sampleDict works but creates no output folder | shock77 | OpenFOAM Post-Processing | 14 | November 15, 2021 09:27 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |