Skip to content

Defining functions in PyMAPDL #2519

Answered by mikerife
ememe123 asked this question in Q&A
Nov 21, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @ememe123
That function tool is really only meant to be used in Mechanical APDL in interactive mode. The commands you show are how MAPDL stores the function and is not meant to be read/edited by a human....well, at least not easily readable.

Why not instead build your own table and use a loop to fill out values based on the equation. You could start by *VGET to get the X location of each node, then *TOPER to fill the second column with 10x the first columns values.

Mike

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ememe123
Comment options

Answer selected by germa89
Comment options

You must be logged in to vote
1 reply
@ememe123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants