CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[ICEM] generate a curve or surface in the axi-symmetric geometry with ICEM

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 5 Post By bluebase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2016, 09:44
Question generate a curve or surface in the axi-symmetric geometry with ICEM
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear All,

I would like to generate a curve and then rotate this curve to generate a surface with ICEM. I know the function of this curve but I do not know where I can input this function in ICEM. My geometry is axis-symmetric. Does anybody know how to do this with ICEM?

Thank you in advance !
OFFO

Last edited by openfoammaofnepo; June 2, 2016 at 19:49.
openfoammaofnepo is offline   Reply With Quote

Old   June 3, 2016, 09:13
Default
  #2
New Member
 
Paurnamie Samarakone
Join Date: Jun 2015
Posts: 25
Rep Power: 11
Nat Sam is on a distinguished road
Hi

So you know how to draw a curve right ? What you don't know is how to generate a surface that rotates ?

You need a curve and an axis around which this curve would rotate to generate the surface

Geometry -> Create / Modify Surface -> Surface of Revolution


Nat
Nat Sam is offline   Reply With Quote

Old   June 3, 2016, 09:19
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
hi Nat,

thank you. my question is about how to generate a curve based on a known function, like a power function. do you know how to do this ?

The function is as follows:

r(x)=-18*x^3 + 6.4*x^2 + 0.1, where x is the streamwise coordinate.


Quote:
Originally Posted by Nat Sam View Post
Hi

So you know how to draw a curve right ? What you don't know is how to generate a surface that rotates ?

You need a curve and an axis around which this curve would rotate to generate the surface

Geometry -> Create / Modify Surface -> Surface of Revolution


Nat
openfoammaofnepo is offline   Reply With Quote

Old   June 3, 2016, 09:39
Default
  #4
New Member
 
Paurnamie Samarakone
Join Date: Jun 2015
Posts: 25
Rep Power: 11
Nat Sam is on a distinguished road
Oh sorry I didn't uderstand that at all. Thought I was helping you x)
I'm afraid I do not know how to do that on ICEM. If you know how to use a CAD software like CATIA, I suggest you draw you geometry using that. That's what I did (currently doing an internship using ICEM)...

Hope someone can help you soon !

Nat
Nat Sam is offline   Reply With Quote

Old   June 3, 2016, 09:52
Default
  #5
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Thank you all the same!
Quote:
Originally Posted by Nat Sam View Post
Oh sorry I didn't uderstand that at all. Thought I was helping you x)
I'm afraid I do not know how to do that on ICEM. If you know how to use a CAD software like CATIA, I suggest you draw you geometry using that. That's what I did (currently doing an internship using ICEM)...

Hope someone can help you soon !

Nat
openfoammaofnepo is offline   Reply With Quote

Old   June 6, 2016, 14:36
Default
  #6
Far
Senior Member
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,558
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
i don think you can use function in ICEM CFD. You can use excel to get coordinates and take them to ICEM CFD. Then revolve it in ICEM CFD to get surface.
Far is offline   Reply With Quote

Old   June 7, 2016, 07:10
Default
  #7
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
No. We can generate the point with the functions and then connect these point to generate the curves. It can work.

Quote:
Originally Posted by Far View Post
i don think you can use function in ICEM CFD. You can use excel to get coordinates and take them to ICEM CFD. Then revolve it in ICEM CFD to get surface.
openfoammaofnepo is offline   Reply With Quote

Old   June 7, 2016, 08:44
Default
  #8
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Quote:
Originally Posted by openfoammaofnepo View Post
No. We can generate the point with the functions and then connect these point to generate the curves. It can work.
Well... do you know how or not...?

Do you know about the replay function of icem? Yes? Then you should also know, that icem scripts are in tcl language. Have a look at some tutorials on that language in case you never heard of tcl.

To give you an idea how to do it, i have prepared a short script for you. i guess, it is already more than i should help! Save it into a text file with *.tcl ending and run it with icem.

With regards,
Sebastian



(Little 'homework'... try to figure out how to connect all those points with a script)


Code:
set steps 100.

set xmin 0.0
set xmax 0.1

set crvlgh [expr $xmax-$xmin]
set steplgh [expr $crvlgh/$steps ]

for {set n 0} {$n <= $steps } {incr n} {
  set xvalue [expr $n*$steplgh + $xmin]
  set functionvalue [expr -18.*pow($xvalue,3.) + 6.4*pow($xvalue,2.) + 0.1]

  ic_point {} PARTNAME pointname.$n "$xvalue,$functionvalue,0" 

}

Last edited by bluebase; June 10, 2016 at 08:44. Reason: Corrected little error in coordinates calculation
bluebase is offline   Reply With Quote

Old   June 10, 2016, 08:44
Default
  #9
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
There was an error in my calculation. I edited it. Now it should work flawlessly.
bluebase is offline   Reply With Quote

Old   June 11, 2016, 01:42
Default
  #10
Far
Senior Member
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,558
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Excellent work.....
Far 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
[ICEM] How to generate sunstructured "all-tri patch-dependant" surface mesh in ICEM? jash ANSYS Meshing & Geometry 19 July 23, 2013 19:48
[ICEM] STL Geometry in ICEM asal ANSYS Meshing & Geometry 3 February 5, 2013 10:44
[ICEM] Forcing surface and curve to match sherifkadry ANSYS Meshing & Geometry 0 August 27, 2010 01:28
flow over an airfoil 3d ( Geometry on icem cfd ) dfmona Main CFD Forum 0 April 14, 2010 00:32
How to do Geometry from 3D mesh in ICEM San24 Main CFD Forum 4 August 8, 2005 03:49


All times are GMT -4. The time now is 19:20.