We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation General Mechanical MAPDL convection load with variable film coefficient and bulk temperature Reply To: MAPDL convection load with variable film coefficient and bulk temperature

dlooman
Ansys Employee

It's definitely tricky to do.  It's helpful to cut and paste (or /input) your table array into the input window in the APDL gui and then examine it with Parameters (top toolbar): Array Parameters> Define/Edit...

Here's input for a 4d array that worked.

*dim,hc_vals,tab4,2,2,2,2,x,y,z,time
*taxis,hc_vals(1),1,0,1
*taxis,hc_vals(1),2,0,1
*taxis,hc_vals(1),3,0,1
*taxis,hc_vals(1),4,0,1
 
! Time 0 values
hc_vals(1,1,1,1)=1,2
hc_vals(1,2,1,1)=3,4
 
hc_vals(1,1,2,1)=5,6
hc_vals(1,2,2,1)=7,8
 
! Time 1 values
hc_vals(1,1,1,2)=11,21
hc_vals(1,2,1,2)=31,41
 
hc_vals(1,1,2,2)=51,61
hc_vals(1,2,2,2)=71,81
 
*dim,tb_vals,tab4,2,2,2,2,x,y,z,time
*taxis,tb_vals(1),1,0,1
*taxis,tb_vals(1),2,0,1
*taxis,tb_vals(1),3,0,1
*taxis,tb_vals(1),4,0,1
 
! Time 0 values
tb_vals(1,1,1,1)=10,200
tb_vals(1,2,1,1)=30,400
 
tb_vals(1,1,2,1)=50,60
tb_vals(1,2,2,1)=70,80
 
! Time 1 values
tb_vals(1,1,1,2)=110,210
tb_vals(1,2,1,2)=310,410
 
tb_vals(1,1,2,2)=510,610
tb_vals(1,2,2,2)=710,810
 
nsel,s,ext
sf,all,conv,%hc_vals%,%tb_vals%
nsel,all