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

cyliderToCell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2016, 04:49
Default cyliderToCell
  #1
Senior Member
 
ali
Join Date: Jul 2016
Posts: 147
Rep Power: 9
ebtedaei is on a distinguished road
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
ebtedaei is offline   Reply With Quote

Old   November 11, 2016, 04:58
Default
  #2
New Member
 
Join Date: Apr 2014
Posts: 24
Rep Power: 12
TobiF is on a distinguished road
use

Code:
regions
(
    cylinderToCell
   {
        p1 (x x x);
        p2 (x x x);
        radius x.x;
        fieldValues
        (
        yourFieldValues
        )
    }
);
without the "cylinder"
TobiF is offline   Reply With Quote

Old   November 11, 2016, 05:00
Default
  #3
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by ebtedaei View Post
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.
floquation 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



All times are GMT -4. The time now is 03:25.