• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

named selections wb

  • Thread starter Thread starter mihawk
  • Start date Start date

mihawk

Guest
save everyone!
I am using ansys workbench 14
for a thermal analysis.
I created a named selection with a surface.
in the command (apdl) I call the
surface with
the following lines of code

/posts
All the way
cmsel,s,surface

but from the file.err
I read the following error

"component temp_here is not defined"

Can anyone help me?
 
Did you look at the pictures that are on that site?
it seems like no ... otherwise you would not have put in /post1 those commands ..
to avoid a new error put the image a little + clear .. ;)


ps. the apdl must commit a little +;)
 

Attachments

  • mihawk.webp
    mihawk.webp
    80.2 KB · Views: 10
I better explain my problem to help.
downstream of thermal analysis I would like to carry out a weighed average flow
heat on a surface and on the entire volume.
to do this I have to access through the typical commands of the apdl
to nodal variables, areas and volumes related to individual nodes.
based on how much read on the site I indicated,
I created named selection with surface
and in command object
I have inserted the following
code lines:

/posts
All the way
cmsel,s,surface
 
I will be dumb but I think eih64 means, perhaps, that you can't use cmsel in the post1.

"otherwise you wouldn't have put those commands in /post1."
 
What do you think?
Does my answer seem out of place?
is the text completely different from what reported on the site?
now answer this question:the error you say ""component temp_here is not defined"" from where does it come from?
 
@eih64
I didn't mean to say that your answer is
I've been out.
indeed I thank you for the availability you have in trying to address me to the solution.
the figure you posted me is not the same to which you refer
in the link I reported, that's all.
in the text of the macro that is found in the link the cmsel command
is reported a few lines of code after /post1.
the error message I refer to
I found it looking into the file.err
 
the figure I posted you is the same example that is on that site.
so that procedure works perfectly. the fact that as an error you have ""component temp_here is not defined"" leaves little room for imagination ..
If you sure you've created that component?
 
You don't understand what you want to do... but the mistake you say doesn't show up
 

Attachments

  • Capture.webp
    Capture.webp
    51.2 KB · Views: 4
This is the error I see at the end of the solve.
What I intend to do is create a named selection,
via a command object select the surface of the named selection,
access to areas related to individual nodes,
carry out a weighed average of the thermal flow
using these areas.
 

Attachments

  • prova2.webp
    prova2.webp
    128.4 KB · Views: 3
That's how it works.
I also tried by inserting directly the macro suggested in the link I posted.
If I throw the solve to the first attempt it gives me error.
if I do as suggested by you, solution clear generated data and solve
I get the required result.
What banality did I miss?
 
poco importa ...

ti giro due righe che possono esserti di aiuto ..

*get,n_nodes,node,,count ! how many nodes in component
*dim,node_arnode,array,n_nodes ! associated elements surface area each node
*dim,node_t_a,array,n_nodes ! product of temperature*area at each node
node_next=0
*do,ii,1,n_nodes
node_next=ndnext(node_next) ! work through all the nodes
node_arnode(ii)=arnode(node_next) ! associated area on element faces
!node_t_a(ii)=arnode(node_next)*temp(node_next)
*get,flusso,node,node_next,tf,sum
node_t_a(ii)=arnode(node_next)*flusso

*enddo
*vscfun,sum_node_t_a,sum,node_t_a(1) ! sum of temperature*area products
*vscfun,sum_area,sum,node_arnode(1) ! sum of areas
!
my_temp_avg=sum_node_t_a/sum_area/1000 ! the average temperature on the surface
! my_temp_avg is reported in results
allsel
set,last

a presto
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top