CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] unwrap cylinder slice to flat plane

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Joshua14

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2017, 05:44
Default unwrap cylinder slice to flat plane
  #1
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Dear ParaView users,

I use ParaView version 5.3.

I cut my data with a slice (cylinder type).

I would like to unwrap the cylinder slice to a flat plane !
I need your help to achieve this task.

Thanks a lot in advance for your advices.

Best regards,
Stéphane
openfoam_user is offline   Reply With Quote

Old   May 5, 2017, 09:49
Default
  #2
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
sorry

unwarp

Stéphane
openfoam_user is offline   Reply With Quote

Old   May 5, 2017, 11:07
Default
  #3
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Stéphane,

The following steps should allow you to unwrap a cylinder based around the origin.

1. Clip surface such that you do split the geometry in half(semi circle) but not at origin, offset by 0.0001.
2. Use a calculator filter
3. Make sure Attribute Mode is set on "Point Data"
4. Select "Coordinate Results"
5. Use something along the lines of
sqrt(coordsX^2+coordsY^2)*iHat+tan^-1(coordsX/coordsY)*jHat+coordsZ*kHat

Hope this helps.

Joshua
Swempa likes this.
Joshua14 is offline   Reply With Quote

Old   May 5, 2017, 11:21
Default
  #4
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi Joshua,
Thank you for your help!

But it seems to be something wrong with your for formula :
sqrt(coordsX^2+coordsY^2)*iHat+tan^-1(coordsX/coordsY)*jHat+coordsZ*kHat

Regards,
Stephane.
openfoam_user is offline   Reply With Quote

Old   May 5, 2017, 11:28
Default
  #5
Member
 
Joshua
Join Date: Dec 2016
Location: St. Louis, Missouri
Posts: 91
Rep Power: 10
Joshua14 is on a distinguished road
Stéphane,

What appears to be wrong with the formula? If you geometry is oriented differently then you will need to interchange the x, y, and z axis in the equation.

Joshua
Joshua14 is offline   Reply With Quote

Old   May 5, 2017, 11:50
Default
  #6
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi Joshua,
Sorry, your formula is right.

With the below formula, the 2D plane will be located at X=0 and the width (Y-direction) will measure half-circumference.

0*iHat+atan(coordsX/coordsY)*(coordsX^2+coordsY^2)^(1/2)*jHat+coordsZ*kHat

Thanks again for your quick help.

Best regards,
Stephane.
openfoam_user 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Question about Flow around a circular cylinder near a plane wall ihu945 OpenFOAM Meshing & Mesh Conversion 1 June 10, 2016 06:35
Flat Plate Boundary Layer Height kennedy1992 Fidelity CFD 7 February 24, 2016 05:45
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
benchmark: flow over a circular cylinder goodegg Main CFD Forum 12 January 22, 2013 12:47
Flow over a flat plate & Flow over a cylinder cfdxue Main CFD Forum 0 November 27, 2007 00:26


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