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

velocity in cylindrical coordinate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2010, 04:00
Default velocity in cylindrical coordinate
  #1
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
i have an axisymetric mesh with wedge boundary condition now i like to calculate Ur and Uteta , once i saw we can convert Cartesian coordinate system into cylindrical coordinate but it seems it does not work in openFoam 1.6.x , this function is protected type

cylindricalCS ccs
(
"ccs",
vector(0, 0, 0), // center point of ccs
vector(0, 0, 1), // axis of ccs
vector(1, 1, 0) // base axis for cylindrical angle
);

vectorField Uint = U.internalField();
vectorField Ucyl = ccs.globalToLocal(Uint,false); //error line!!!


error: virtual Foam::tmp<Foam::Field<Foam::Vector<double> > > Foam::cylindricalCS::globalToLocal(const Foam::vectorField&, bool) const is protected

now is there any suggestion how i can access to Ur and U tetha?
nimasam is offline   Reply With Quote

Old   December 14, 2010, 11:59
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16
stevenvanharen is on a distinguished road
Quote:
Originally Posted by nimasam View Post
i have an axisymetric mesh with wedge boundary condition now i like to calculate Ur and Uteta , once i saw we can convert Cartesian coordinate system into cylindrical coordinate but it seems it does not work in openFoam 1.6.x , this function is protected type

cylindricalCS ccs
(
"ccs",
vector(0, 0, 0), // center point of ccs
vector(0, 0, 1), // axis of ccs
vector(1, 1, 0) // base axis for cylindrical angle
);

vectorField Uint = U.internalField();
vectorField Ucyl = ccs.globalToLocal(Uint,false); //error line!!!


error: virtual Foam::tmp<Foam::Field<Foam::Vector<double> > > Foam::cylindricalCS::globalToLocal(const Foam::vectorField&, bool) const is protected

now is there any suggestion how i can access to Ur and U tetha?
check out this thread:

http://www.cfd-online.com/Forums/ope...tup-error.html

Your coding is a bit different in my code, could do the trick. However I wrote it for 1.7.
stevenvanharen is offline   Reply With Quote

Old   December 14, 2010, 16:09
Default
  #3
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
thank you for ur interest i will look ur code and inform u, could u visualize stream line for a wedge type axisymmetric mesh? streamFunction only work for 2D case.
nimasam is offline   Reply With Quote

Old   September 9, 2013, 18:43
Unhappy cylindricalcs details
  #4
Member
 
ali jafari
Join Date: Sep 2012
Posts: 50
Rep Power: 14
ali jafari is on a distinguished road
Quote:
Originally Posted by stevenvanharen View Post
check out this thread:

http://www.cfd-online.com/Forums/ope...tup-error.html

Your coding is a bit different in my code, could do the trick. However I wrote it for 1.7.
hi
can you tell me where and how should I apply cylindricalcs ? I really need that .

Special Thanks
ali jafari is offline   Reply With Quote

Reply

Tags
cartesian, convert, coordinate, cylindrical


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
Transformation of a cartesian velocity gradient volTensorField to cylindrical coord. alexey7783 OpenFOAM 5 April 26, 2012 19:29
CFD Software with Cylindrical and Spherical Coordinate cfd2010 Main CFD Forum 0 June 9, 2010 22:55
how to obtain velocity gradient on cylindrical coordinate rystokes CFX 1 March 3, 2010 00:47
Need reference for FVM in cylindrical coordinate Alex Main CFD Forum 3 January 6, 2005 07:44
FDM in Cylindrical Coordinate Piakman Main CFD Forum 8 November 26, 2001 11:14


All times are GMT -4. The time now is 16:59.