Download Programmer`s Manual for ANSYS
Transcript
Chapter 6: UPF Routines and Functions c c c c c c the input arguments hc and tb may be used in one of three ways: 1. they may be simply passed thru. 2. they may be used as a flag(e.g. if hc(2) = -3.0, use a certain set of logic). 3. they may be completely ignored. and instead redefined with new logic c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c this routine is called during each substep of each load step. it is called for each equilibrium iteration. it is called once per element. it is called only during the heat flow load vector formulation stage, and not during the heat flow evaluation stage. the call to get the standard ansys input convection surfaces is made just before entering this routine, so this information is available to be modified, if desired. velocity-dependent film coefficients can be computed by inputting the velocity as the input film coefficient or bulk temperature or by inputting the velocity as a function of location in space. this routine could then compute the effective film coefficient. input arguments: variable (typ,siz,intent) elem (int,sc,in) ielc (int,ar(IELCSZ),in) time (dp,sc,in) nr (int,sc,in) - u (dp,ar(nr),in) - ndat (int,sc,in) - hc (dp,ar(ndat),inout) - tb (dp,ar(ndat),inout) - description element number for operation. array of element type characteristics time of current substep number of nodal temperatures of the element vector of most recent values of the temperatures number of data points per element for example, for solid70, ndat = 24 = 6*4 where 6 = faces per element 4 = corners per face film coefficients (has input values for each corner of each face) bulk temperature (has input values for each corner of each face) output arguments: variable (typ,siz,intent) description hc (dp,ar(ndat),inout) - film coefficients (defines input values for each corner of each face) tb (dp,ar(ndat),inout) - bulk temperature (defines input values for each corner of each face) 6.5.4. Subroutine userfx (Changing Element Face Heat Flux Surface Information) *deck,userfx user subroutine userfx (ielc,elem,time,nr,u, ndat,dat) c *** primary function: change element face heat flux surface info c c *** copyright(c) 2006 SAS IP, Inc. All rights reserved. c *** ansys, inc. c c in order to activate this user programmable feature, c the user must enter the 'usrcal,userfx' command. c c this routine is called during each substep of each load step. c it is called for each equilibrium iteration. c it is called once per element. it is called only during the heat c flow load vector formulation stage, and not during the heat flow c evaluation stage. c the call to get the standard ansys input heat flux surfaces 172 Programmer's Manual for ANSYS . ANSYS Release 11.0 . 002328 . © SAS IP, Inc. All rights reserved. Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.