CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Tutorials 22 error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2008, 02:10
Default Dear friends: when i run t
  #1
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 287
Rep Power: 9
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Dear friends:
when i run the tutorials 2.2, i met the following error, my openfoam is 1.4.1

--> FOAM FATAL IO ERROR : expected 'true' or 'false', found yes

file: /root/OpenFOAM/root-1.4.1/run/tutorials/solidDisplacementFoam/plateHole/system/f vSolution::D::scaleCorrection at line 41.

From function operator>>(Istream&, bool&)
in file primitives/bool/boolIO.C at line 72.

FOAM exiting

after i modify the yes to true and no to false, then erverything is ok
but the fvSolution file is generated by the foamX, it is not written by myself, so would you please tell me what is the problem.
Regards
ztdep is offline   Reply With Quote

Old   April 26, 2008, 05:37
Default You can modify solver or FoamX
  #2
Senior Member
 
mkraposhin's Avatar
 
Matvej Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 204
Rep Power: 10
mkraposhin is on a distinguished road
You can modify solver or FoamX.

modifying of solver is easy (just look for sources and find where solver controls are read). But, on my opinion, it is better to modify FoamX configs

First of all, look in to the file
OpenFOAM/OpenFOAM-1.4/applications/solvers/stressAnalysis/solidDisplacementFoam/ FoamX/fvSolution.cfg - here you will find files, that FoamX uses as configuration for GUI dialogs

No, go to file
/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/types/Switch.cfg
and modify it as proposed. for example, file was:

Switch
{
type word;
iconURL "/FoamX/icons/small/maths/Switch.gif";
valueList
(
yes
no
);
}

SwitchOnOff
{
type word;
iconURL "/FoamX/icons/small/maths/Switch.gif";
valueList
(
on
off
);
}

after modifying:
Switch
{
type word;
iconURL "/FoamX/icons/small/maths/Switch.gif";
valueList
(
yes
no
);
}

SwitchTrueFalse
{
type word;
iconURL "/FoamX/icons/small/maths/Switch.gif";
valueList
(
true
false
);
}

SwitchOnOff
{
type word;
iconURL "/FoamX/icons/small/maths/Switch.gif";
valueList
(
on
off
);
}

now, go to file

/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/entries/Switch/compactNormalStre ss.cfg

and modify <type> to new introduced type <switchtruefalse>
and <default> to <true>

it is good practice to backup old files (if something goes wrong)

good luck!

P.S.
may be you need to add some another changes in FoamX configs...
P.P.S.
command line is much better!
mkraposhin is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorials, where? Rogerio Fernandes Brito FLUENT 0 October 29, 2008 14:28
Segmentation error in tutorials mic CD-adapco 1 March 27, 2007 07:33
about tutorials 11 tiny CD-adapco 3 October 19, 2005 16:39
Ask about CFD tutorials Siripon Sukuabol Main CFD Forum 4 March 1, 2005 10:30
Tutorials Jennifer Haque CFX 0 January 17, 2002 09:16


All times are GMT -4. The time now is 01:32.