Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with HETVAL and USDFLD

Status
Not open for further replies.

GustavLund

Mechanical
Joined
Jan 26, 2011
Messages
10
Location
SE
Hi,

I want to include *heat generation in my heat transfer analysis. I have the subroutine HETVAL to calculate the flux. Let say that the flux is a function of the current y-coordinate and the current temperature,
eg flux=y*temp (an example)

Right now I'm using USDFLD to get the y-coordinate as statev(1)=COORD(2), and then in HETVAL I'm writing FLUX(1)=statev(1)*TEMP(1)

However it seems as the flux becomes zero. So something is wrong. I have tried with and without

*USER DEFINED FIELDS

and

*DEPVAR
1

in the input file but it makes no difference. Does somebody know why this isn't working? And also, is it possible to write out statev(1), coord(2) and temp(1) in some way? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top