CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Tutorials 22 error (http://www.cfd-online.com/Forums/openfoam-solving/58928-tutorials-22-error.html)

ztdep April 26, 2008 03:10

Dear friends: when i run t
 
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

mkraposhin April 26, 2008 06:37

You can modify solver or FoamX
 
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!


All times are GMT -4. The time now is 17:42.