Download Programmer`s Manual for Mechanical APDL application

Transcript
Chapter 6: UPF Subroutines and Functions
c
primary function: user subroutine for defining your own failure criterion
c *** secondary functions: none
c
c *** user programmable functions may not be used in parallel processing ***
c
this is currently only available with
c
c
*** copyright(c) 2009 SAS IP, Inc. All rights reserved.
c
*** ansys, inc.
c
c *** Notice - This file contains ANSYS Confidential information ***
c
c input arguments:
c
variable (typ,siz,intent)
description
c
elem
(int,sc,in)
- element number
c
elim
(dp,ar(9),in)
- failure strains at the current temperature
c
(see FC command input with Lab1 = EPEL)
c
slim
(dp,ar(12),in)
- failure stresses and coupling coefficients
c
at the current temperature
c
(see FC command input with Lab1 = S)
c
eps
(dp,ar(6),in)
- vector of strains
c
sig
(dp,ar(6),in)
- vector of stresses
c
tem
(dp,sc,in)
- temperature at this point in the model
c
matlay
(int,sc,in)
- material number
c
iott
(int,sc,in)
- unit number for writing
c
c output arguments:
c
variable (typ,siz,intent)
description
c
nfcOut
(int,sc, out)
- number of user fc computed
c
fc
(dp,ar(9),out)
- user failure criterion
c
6.4.6. Subroutine UserPL (Writing Your Own Plasticity Laws)
ANSYS recommends using current-technology elements and the UserMat subroutine for defining your own
material model. However, if you are using a legacy element type and wish to define a plasticity or viscoplasticity material model, the UserPL subroutine is applicable to the following legacy elements: LINK1, LINK8,
PIPE20, BEAM23, BEAM24, PLANE42, SOLID45, PIPE60, SOLID62, SOLID65, PLANE82, SOLID92, and SOLID95.
*deck,userpl
USERSDISTRIB
subroutine userpl (elem,intpt,mat,ncomp,kfirst,kfsteq,e,nu,dens,
x prop,d,ktform,timval,timinc,tem,dtem,toffst,flu,dflu,epel,eppl,
x statev,usvr,epeq,plwork,sigepl,sigrat,depeq,dt)
c
c *** primary function:
allow users to write their own plasticity laws.
c
this logic is accessed with tb,user.
c
the below demonstration logic is the same as using
c
tb,bkin, without adaptive descent (nropt,,,off).
c
Other plasticity rules may require internal
c
iterations and/or the more general definition of
c
plasticity theory, discussed in the Theory
c
Manual.
c *** secondary function:
demonstrate the use of user-written plasticity laws
c
in this routine:
c
a.
update the nonlinear strain history
c
b.
compute the material tangent matrix if requested
c
c *** Notice - This file contains ANSYS Confidential information ***
c
c
c
*** ansys(r) copyright(c) 2008
c
*** ansys, inc.
c
c input arguments:
c
variable (type,sze,intent)
description
c
c
elem
(int,sc,in)
- element number (label)
c
intpt
(int,sc,in)
- element integration point number
c
mat
(int,sc,in)
- material reference number
174
Release 12.1 - © 2009 SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.