-
-
October 26, 2021 at 9:42 am
lschuler
SubscriberHello,
I am trying to define my own finite element type using the subroutine USERELEM. I can see in the example written in the subroutine that the function ElemShpFn is called to obtain the shape functions, their derivatives and other information. What are the input arguments of this function? Can I use it to obtain shape functions of other elements that the ones used in the example?
Thank you
November 2, 2021 at 7:32 amSurya Prakash
Ansys Employee
Can you share the example that you are referring to as an image?
Regards Surya
November 2, 2021 at 10:16 amlschuler
Subscriber
Here is the part of the code corresponding to the call to the shape functions. I am guessing that the first input is the order of the element (1 linear, 2 quadratic) because KeyOpt(1)=0 corresponds to linear quads elements and KeyOpt(1)=1 to quadratic cubes elements. The two following inputs are the integration point number, the desired output (1 for the shape functions, 2 for their derivatives, 3 for the integration weight). Is that right?
Thank you
Louis
Viewing 2 reply threads- The topic ‘Evaluate shape functions in USERELEM’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
5674
-
1890
-
1419
-
1305
-
1021
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.