benoitlaveau
Aerospace
- Jul 13, 2016
- 1
Hi everyone,
I have a very basic ANSYS steady state thermal model with different convection boundary conditions. I am using ANSYS Workbench 16.1.
I would like to calculate the heat flux through a surface defined via a named selection.
I've found this old thread: in that thread the answer is
*vget,QRes(1),node,1,tf,z
*stat,QRes
=> my script:
(I have outres,all,all in a command snippet in pre-processing part)
in post snippet
cmsel,s,top ! top is my named selection
*GET,NNOS ,NODE,0,COUNT ! NUMBER OF NODES
*DIM,dataP,ARRAY,NNOS,1,1, , , ! CREATE DE NODE NUMBER VECTOR
*VGET ,dataP(1,1),NODE, ,TF,Z,
I do get the error that the quantity is not available in the database
On other threads or forum I have read about filling a etable with again TF and then using SSUM. I get the same TF issue
but I do not really understand the following:
- does the ssum function really do an integration on the heat flux or a sum?
- TF Z is only along the Z axis: how do we get the heat flux normal to the surface (random normal)?
- am I missing something? how does the final script should look like?
Thanks everyone for your help,
Best regards
Benoit
I have a very basic ANSYS steady state thermal model with different convection boundary conditions. I am using ANSYS Workbench 16.1.
I would like to calculate the heat flux through a surface defined via a named selection.
I've found this old thread: in that thread the answer is
*vget,QRes(1),node,1,tf,z
*stat,QRes
=> my script:
(I have outres,all,all in a command snippet in pre-processing part)
in post snippet
cmsel,s,top ! top is my named selection
*GET,NNOS ,NODE,0,COUNT ! NUMBER OF NODES
*DIM,dataP,ARRAY,NNOS,1,1, , , ! CREATE DE NODE NUMBER VECTOR
*VGET ,dataP(1,1),NODE, ,TF,Z,
I do get the error that the quantity is not available in the database
On other threads or forum I have read about filling a etable with again TF and then using SSUM. I get the same TF issue
but I do not really understand the following:
- does the ssum function really do an integration on the heat flux or a sum?
- TF Z is only along the Z axis: how do we get the heat flux normal to the surface (random normal)?
- am I missing something? how does the final script should look like?
Thanks everyone for your help,
Best regards
Benoit