×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to make a spline with more than 6 keypoints in a 'spline' command?

How to make a spline with more than 6 keypoints in a 'spline' command?

How to make a spline with more than 6 keypoints in a 'spline' command?

(OP)
Hi,everyone:
   I got a question here. The command 'spline' or 'bsplin' has just 6 keypoint numbers to be fill,and if the 7th KP is chosen, ANSYS ignore it.You must use the command twice.If I want to make a spline with more than 6 keypoints in one command, what can I do?

RE: How to make a spline with more than 6 keypoints in a 'spline' command?

Hi

The use of the spline command is bounded to a max. use of 6 keypoints. So you need to use the command twice.

Grtz
Garry

RE: How to make a spline with more than 6 keypoints in a 'spline' command?

Hi,
I noticed that if you create 2 consecutive splines, and then add them to one another, it works and you get a single spline curve (which doesn't EXACTLY match the original ones, of course).
I don't know if this can be useful for you. I personally prefer to leave the 2 splines separated.

Regards

RE: How to make a spline with more than 6 keypoints in a 'spline' command?

Try to follow this code:

!##########################

fini
/cle
/prep7

csys,1

! -> Making n Keypoints
n_=20
k,1:n_,1,1:n_

!Write Spline Macro
*cfopen,spl_ine,mac
*cfwrite,FLST,3,n_,3
  *do,i_,1,n_
    *cfwrite,FITEM,3,i_  
  *enddo
  *cfwrite,BSPLIN, ,P51X   
*cfclose

!Spline with n_ points
spl_ine.mac

!##########################

The making of:

If you make the spline by pinking, ANSYS use the FITEM commands and write it to the *.log file. So you can learn from the log file a lot!!!

If you know the order of the keypoints -> you can create splines with many many keypointsclown

.... Stefan.

RE: How to make a spline with more than 6 keypoints in a 'spline' command?

(OP)
Guys,thank you for your help! And thank you JaStKn, your marco is good!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources