×
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

Help with Function Boudary Condition/Tabular BCs

Help with Function Boudary Condition/Tabular BCs

Help with Function Boudary Condition/Tabular BCs

(OP)
Hello everybody,

Would you please tell me some ideas about Function/Table BCs in ANSYS. How to define a Function by using Command lines.
For example:

! Begin of equation: a*sin(omega*{TIME})
%_FNCNAME%(0,0,1)= 0.0, -999
%_FNCNAME%(2,0,1)= 0.0
%_FNCNAME%(3,0,1)= %_FNC_C1(1)%
%_FNCNAME%(4,0,1)= %_FNC_C2(1)%
%_FNCNAME%(5,0,1)= 0.0
%_FNCNAME%(6,0,1)= 0.0
%_FNCNAME%(0,1,1)= 1.0, -1, 0, 1, 18, 3, 1
%_FNCNAME%(0,2,1)= 0.0, -1, 9, 1, -1, 0, 0
%_FNCNAME%(0,3,1)=   0, -2, 0, 1, 17, 3, -1
%_FNCNAME%(0,4,1)= 0.0, 99, 0, 1, -2, 0, 0
! End of equation: a*sin(omega*{TIME})
(%_FNC_C1(1)%, %_FNC_C2(1)% are constants)

I could not understand the meaning of these above command. Is it a Function written in command lines?
You can refer them at section 3.6.4 of the ANSYS7.0/Help

Also, do you know how to apply a 2 Dimension Table as a boudary condition? If I want to apply a load which is vary versus time of the solution and the position of the nodes, what should I do?
Thank you very much for your consideration.
Best regards.

RE: Help with Function Boudary Condition/Tabular BCs

I'm having the same questions with this. The example makes absolutely no sense. I have to set up a similar boundary condition. Does anybody have a clue?

RE: Help with Function Boudary Condition/Tabular BCs

To set up a boundary condition based on a function of time (which is what I'm assuming you need), you need to set up tabular boundary conditions using the TABLE function in ANSYS. One way is to use the function editor. An easier (personal opinion) way is to use a simple series of commands.

To set up a function where the time t is:

0
0.1
0.2
0.3
0.4
0.5
...
...

and the value of the function is:

1
2
3
4
5
6
...
...

You need to first dimension the TABLE using:

CODE

*DIM,ENGTIPS,TABLE,6,1,1, , ,  

Then, you can specify the t value above using:

CODE

*SET,ENGTIPS(1,0,1) , 0
*SET,ENGTIPS(2,0,1) , 0.1
*SET,ENGTIPS(3,0,1) , 0.2   
*SET,ENGTIPS(4,0,1) , 0.3   
*SET,ENGTIPS(5,0,1) , 0.4   
*SET,ENGTIPS(6,0,1) , 0.5  

and the value of the function using:

CODE

*SET,ENGTIPS(1,1,1) , 1   
*SET,ENGTIPS(2,1,1) , 2
*SET,ENGTIPS(3,1,1) , 3
*SET,ENGTIPS(4,1,1) , 4
*SET,ENGTIPS(5,1,1) , 5
*SET,ENGTIPS(6,1,1) , 6

Tables are used SPECIFICALLY for this function in ANSYS i.e. you must use a TABLE to specify TABULAR BCs. If you want, you can put all of the above into a text file and read this into ANSYS using FILE > Read input from... and choose the file.

Then you have to refer to the TABLE name in your loading. For example, if the value of the function is displacement in the x direction applied to node 1354:

CODE

D,1354,UX,%ENGTIPS%

or force:

CODE

F,1354,FX,%ENGTIPS%

Let me know how you get on with this.


------------
See FAQ569-1083 for details on how to make best use of Eng-Tips.com

RE: Help with Function Boudary Condition/Tabular BCs

(OP)
Hi Drej,

Thanks for your sharing. Recently, I usually apply the tablular boundary condition by using Function Editor. It's is very easy to use and mentioned in the Ansys help. After building the function, use the Ansys Main Menu/Session Editor to copy the code of the function. It's look the same with my previous post. And though I could not understand all the number, this method works just well.

RE: Help with Function Boudary Condition/Tabular BCs

Thanks Drej and thanhavan...this was a great help and now the B.C. I want is working!  I found that you can also go into the function file that's generated using the function editor and copy the part of the code that sets up the table.

Thanks again for the great help!

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