CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   cyliderToCell (https://www.cfd-online.com/Forums/openfoam-solving/179933-cylidertocell.html)

ebtedaei November 11, 2016 04:49

cyliderToCell
 
Hi All, I have this error! :
" keyword p1 is undefined in dictionary cylinderToCell "

But I introduced keyword p1 as fallowing:

defaultFieldValues
(
volScalarFieldValue alpha.water 1
);

regions
(
cylinderToCell
{
cylinder
p1 (-0.83261 0.11118 0);
p2 (0.82468 -0.11012 0);
radius 0.03;
fieldValues
(
volScalarFieldValue alpha.water 0
);
}
);

Please help me.
Ali

TobiF November 11, 2016 04:58

use

Code:

regions
(
    cylinderToCell
  {
        p1 (x x x);
        p2 (x x x);
        radius x.x;
        fieldValues
        (
        yourFieldValues
        )
    }
);

without the "cylinder"

floquation November 11, 2016 05:00

Quote:

Originally Posted by ebtedaei (Post 625071)
Hi All, I have this error! :
" keyword p1 is undefined in dictionary cylinderToCell "

But I introduced keyword p1 as fallowing:

defaultFieldValues
(
volScalarFieldValue alpha.water 1
);

regions
(
cylinderToCell
{
cylinder
p1 (-0.83261 0.11118 0);
p2 (0.82468 -0.11012 0);
radius 0.03;
fieldValues
(
volScalarFieldValue alpha.water 0
);
}
);

Please help me.
Ali

Get rid of the red word.

Also, please use [code\][/code\]-tags (without the backslashes) to show OpenFoam dictionaries for enhanced readability.


All times are GMT -4. The time now is 09:29.