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

[OpenFOAM.com] funkySetBoundaryField: Istream not OK for reading dictionary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2024, 21:13
Default funkySetBoundaryField: Istream not OK for reading dictionary
  #1
New Member
 
Oscar Zagal
Join Date: Jan 2024
Posts: 16
Rep Power: 2
oscar_zagal is on a distinguished road
Hi dear all, I am using the solver chtMultiRegionTwoPhaseEulerFoam. I have some trouble with swak4foam:

The content of my funkySetBoundaryDict is:

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

inletGas
{
field alpha.gas;
expressions
(
{
target value;
patchName inlet;
variables "posX=pos().x;posY=pos().y;";
expression "pow(posX,2) + pow(posY,2) < pow(0.020,2)";
}
);
}


when I try to set the field with funkySetBoundaryField -time 0 terminal prints the next output:



// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
swakVersion: 202x.yy (Release date: Next release)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Time = 0


Part: inletGas working on field alpha.gas


--> FOAM FATAL IO ERROR: (openfoam-2312 patch=240220)
Istream not OK for reading dictionary

From bool Foam::dictionary::read(Foam::Istream&, bool)
in file db/dictionary/dictionaryIO.C at line 93.

FOAM exiting



can you please give some help with this issue?

Best regards, Oscar

Last edited by oscar_zagal; September 22, 2024 at 21:27. Reason: adding vital information
oscar_zagal is offline   Reply With Quote

Reply


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
How to create a dictionary from a *char[]? jgs55 OpenFOAM Programming & Development 0 January 24, 2023 07:33
What are dictionaries in Openfoam ? granzer OpenFOAM 3 November 25, 2020 01:47
driftFluxFoam viscosity model modification problem dleduc OpenFOAM Programming & Development 15 October 1, 2018 10:37
ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary Struggle_Achieve OpenFOAM Pre-Processing 2 December 20, 2017 04:58
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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