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

Extrusion along a spline

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2002, 09:42
Default Extrusion along a spline
  #1
tom
Guest
 
Posts: n/a
Hello, Can you help me? I am looking for a trick to made an extrusion along a spline with Prostar. Does someone have the solution? Tom
  Reply With Quote

Old   January 31, 2002, 12:05
Default Re: Extrusion along a spline
  #2
steve
Guest
 
Posts: n/a
Use VSPGENERATE. That's exactly what it was made for. Steve
  Reply With Quote

Old   February 1, 2002, 03:35
Default Re: Extrusion along a spline
  #3
Lars Ola Liavåg
Guest
 
Posts: n/a
Hello there,

Using vspgenerate isn't all that intuitive since it only creates vertices. Here's a macro that I've been able to run successfully. With a little luck, it might make getting started a wee bit simpler for you...

Regards,

Lars Ola

! Macro that extrudes fluid cells from a set of shells and vertices along a spline (in the direction of ascending spline vertex nos.)

! Input variables:

*set,csex,7 ! cylindrical coordinate system

*set,typs,4 ! cell type for baseline shells

*set,typc,15 ! cell type for fluid cells

*set,spid,4 ! extrusion spline ID

*set,edis,1.0 ! extrusion distance (% of spline)

*set,ncax,40 ! axial fluid cell count

csys,csex

! Disconnect baseline shells from model and extrude ncax layers of fluid cells along the spline over a distance of edis.

cset,news,type,typs

vren,cells,,cset

vset,news,cset

*get,nvmx,mxver

*get,nvmn,mnvset

set,nvof,nvmx - nvmn + 1

ctab,typc,fluid,typc

vcextrude,ncax,nvof,cset,,,local,0,0,edis / ncax

vspgenerate,spid,ncax + 1,nvof,vset,,,perc,,edis,

cset,news,type,typc

cplot
  Reply With Quote

Old   February 1, 2002, 08:08
Default TThe macro
  #4
tom
Guest
 
Posts: n/a
Thanks a lot for the macro. It worked succesfully for me as well. Regards. Tom.
  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
[blockMesh] How to use the spline commands tnm23 OpenFOAM Meshing & Mesh Conversion 10 December 13, 2009 03:16
B Spline codes rahul garg Main CFD Forum 0 May 26, 2006 21:36
spline creation siva Siemens 0 March 2, 2006 15:51
3d spline interpolation Matthias Main CFD Forum 6 January 11, 2002 00:47
B-spline Method Peter Liang Main CFD Forum 2 September 3, 2001 07:14


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