Webinar Info: Writing and Compiling a Custom Material Property in ANSYS Mechanical APDL

Categories:
image 358

During our webinar held at noon on 9/27/2012 we promised to provide a link to the recording, a PDF of the PowerPoint, and some answers to a few questions.  Here is that information:

Files

Presentation PDF is here:

Zip file with the sample USERMAT.f and input file:

State Variables

I was a bit confusing on state variables. The problem is with my use of them, not with the variables.  The test model only had one integration point.  My code is still not working right, the default USERMAT is overwriting my flag somewhere and I don’t have time to figure it out. It’s killing me but I have to do some real work.

But anyhow, my assertion that the state variables are per integration point is correct.

Debugging

I am not aware of any way to use a debugger with ANSYS.  There is nothing in the documentation, and to be honest, I’ve not used a real debugger in years.  So there may be a way to do so, and see your routine in the debugger since you have the source code, but I have no idea on how to do that.  Perhaps someone with more debugging experience can comment below.

Other UPF’s

Someone asked about other routines that are available and we ran out of time before I could go over them.  Here is a list.

  
ELEMENTS 
UserElem.fUser Defined Element that use newer API
UEL100.f – UEL105.f
UEC100.f – UEC105.f
UEX100.f – UEX105.f
UEP100.f-UEP105.f
USERTR.f
USERAC.f
User elements defined that access the program database directly
USEROU.fStores user-provided element output
USERAN.fModify orientation of material properties
USERRC.fCOMBIN37 (control/thermostat/spring/damper/resistor) user routine.
UEIMatx.fAccess to an elements matrix or load vector
UTHICK.fSets thickness at integration points
UsrFictiveSets “fictive” temperature (I have no idea what that is)
UFLEX.fCalculates pipe flexibility for PIPE288/289
UsrShift.fAllows user to specify time shift
Materials 
UserMat.fUser material models
UserHyper.fUser defined hyperelasticity models
UserCreep.fUser defined creep model
user_tbelastic.fAllows definition of elastic stiffness at a given integration point based on user model.  TB,ELASTIC,,,,USER
USERFC.fUser defined failure criteria
USERSWTRAIN.fUser defined swelling, for TB, SWELL,,,,USER
USERCK.fHelper routine that passes material properties for a user material in
USERFRIC.fUser defined friction calculation.  Not just friction but all values calculated in contact calculations with friction turned on.
LOADS 
USERFL.fChanges scalar field values (temp, fluence, heat generation, moisture content, magnetic virtual displacement), by element.
USERPR.fCalculates element pressure, by element
USERCV.fCalculates element face convection.
USERFX.fCalculates element face heat flux
USERCH.fCalculates element face charge density surface values
USERFD.fComputes complex load vectors for frequency domain logic
USERPE.fCalculate the rotation of an elbow pipe element caused by internal pressure
USRSURF116.f
USER116Cond.f
USER116Hf.f
Modifies the conduction, film coefficient, bulk temp for SURF151/152
userPartVelAcc.fOcean wave particle acceleration calculation for PIPE288/289
userPanelHydFor.fCalcs hydrodynamic loading on SURF164 from ocean loading
USER Commands 
USER01.f-USER10.fCreate your own ANSYS commands that are accessed through /UCMD,cmd,num where num refers to the subroutine number and cmd is the command name you want to assign it. Put this in your startxx.ans file to give regular access.

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

PADT’s Pulse Newsletter

Keep up to date on what is going on at PADT by subscribing to our newsletter. Every month we share news about PADT, our partners, and our customers. We also share links to useful information on simulation, product development, and 3D Printing.  Sign up, and let's stay in touch.


By submitting this form, you are consenting to receive marketing emails from: . You can revoke your consent to receive emails at any time by using the SafeUnsubscribe® link, found at the bottom of every email. Emails are serviced by Constant Contact

Share this post:

Upcoming Events

09/10/2024

New Mexico Tech Summit 2024

09/12/2024

Rocky Mountain Life Sciences Investor & Partnering Conference

09/13/2024

2024 AIAA Rocky Mountain Section Technical Symposium

09/13/2024

Rocky Mountain Life Sciences Investor & Partnering Conference

09/18/2024

Materials Updates in Ansys 2024 R2

09/18/2024

AZBio Awards

09/25/2024

Wi3DP: Tour AM Labs at Arizona State University Polytechnic Campus

10/16/2024

2024 Southern Arizona Tech + Business Expo

10/23/2024

PADT30 | Nerdtoberfest 2024

11/13/2024

2024 Governor's Celebration of Innovation

Search the PADT Site

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: