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

[OpenFOAM.org] Unable to run test file after installation

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

Like Tree1Likes
  • 1 Post By ashwin.dohare

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2022, 07:56
Exclamation Unable to run test file after installation
  #1
New Member
 
Join Date: Aug 2022
Posts: 7
Rep Power: 2
ashwin.dohare is on a distinguished road
I am getting following error:-

--> FOAM FATAL IO ERROR:
Wrong token type - expected word, found on line 183: punctuation '['

file: /home/ashwinikumar/OpenFOAM/OpenFOAM-9/etc/controlDict.DimensionSets.SICoeffs.kg at line 183.

From function Foam::Istream& Foam:perator>>(Foam::Istream&, Foam::word&)
in file primitives/strings/word/wordIO.C at line 79.


Can anyone help me with the issue?
ashwin.dohare is offline   Reply With Quote

Old   August 9, 2022, 09:45
Default
  #2
New Member
 
Join Date: Aug 2022
Posts: 7
Rep Power: 2
ashwin.dohare is on a distinguished road
I solved this issue but another arrived as follows:-

--> FOAM FATAL IO ERROR:
Entry 'version' not found in dictionary "/home/ashwinikumar/ASHWIN/system/controlDict"


file: /home/ashwinikumar/ASHWIN/system/controlDict

From function bool Foam::dictionary::readEntry(const Foam::word&, T&, Foam::keyType:ption, bool) const [with T = float]
in file lnInclude/dictionaryTemplates.C at line 319.

FOAM exiting

In my controlDict the version of OpenFOAM is mentioned. I dont know why this error is coming.
ashwin.dohare is offline   Reply With Quote

Old   August 9, 2022, 11:03
Default
  #3
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 71
Rep Power: 3
night-hawk is on a distinguished road
Check if header of controlDict is ok.

Means content inside

FoamFile
{ }
night-hawk is offline   Reply With Quote

Old   August 10, 2022, 02:24
Default
  #4
New Member
 
Join Date: Aug 2022
Posts: 7
Rep Power: 2
ashwin.dohare is on a distinguished road
I am trying to run one of the tutorial files here and I find nothing wrong in the header

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 9
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application simpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 500;

deltaT 1;

writeControl timeStep;

writeInterval 50;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;


// ************************************************** *********************** //
ashwin.dohare is offline   Reply With Quote

Old   August 10, 2022, 08:41
Default
  #5
Member
 
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 71
Rep Power: 3
night-hawk is on a distinguished road
add
version 2.0;
above format ascii;
night-hawk is offline   Reply With Quote

Old   August 10, 2022, 09:18
Default
  #6
New Member
 
Join Date: Aug 2022
Posts: 7
Rep Power: 2
ashwin.dohare is on a distinguished road
okay.
Thank you sir, now it works fine.
night-hawk likes this.
ashwin.dohare is offline   Reply With Quote

Reply

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
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 16:35
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 18:23.