-
-
July 26, 2021 at 4:08 pmsolaniSubscriber
Hello,
I am interested in the internal heat generation (or in my case: a heat sink). Since the internal heat generation is (as far as I know) not able to calculate the magnitude as a function of temperature I want to calculate the heat sink magnitude outside of this "internal heat generation method" (maybe with an APDL command) and then give this method the specific, freshly for each iteration / load step calculated value.
Thanks in advance.
Regards,
Ani
July 29, 2021 at 4:51 pmdloomanAnsys EmployeeHeat generation can be defined as a function of temperature using table input as shown below. It is possible to do it "by hand" by running the solution with many load steps and querying the temperature with a commands object at the end of each solve, but this is easier.
/prep7
et,1,70
mp,kxx,1,1
mp,dens,1,100
mp,c,1,1
block,,1,,1,,1
esize,.25
vmesh,1
fini
/solu
antyp,trans
*dim,hgenval,table,2,,,temp
hgenval(1,0)=0,100
hgenval(1,1)=100,200
bf,all,hgen,%hgenval%
time,10
nsub,10
outres,nsol,1
solve
fini
/post26
nsol,2,1,temp
prva,2
July 30, 2021 at 9:12 amsolaniSubscriber
this is very very helpful. Thank you very much!!
I am a beginner with APDL so I struggled to set up such a code. But I am more confident now! However, I have a question: Do I need all of the commands in a command tab in the Mechanical GUI? Because I already have a mesh created and other boundary conditions which I want to be taken into account simultaneously.
Another question is, if (e.g.) the hgenval(1,1)=100,200 command passes the heat generation rate by 100 and the temperature bythe value 200 to the table.
Also maybe another question: Do you know if this method will lead to the same results as the heat generation rate with the MASS71 method with tabular input? Or do you know where the difference is?
Best regards and many thanks!
Ani
August 1, 2021 at 7:43 pmsolaniSubscriber
I managed to get your code to work and adapt it. Also I noticed that I only need the \solu-part (without some commands, e.g. without the solu, solve and finite and time command). Thank you very very much! This totally made my day - no even more, it made my week ;-)
I have one more question: Is it possible to plot / to retrieve the "used" heat generation value (hgenval) over time? E.g. to plot how high the heat generation rate / internal heat generation was at a specific time step for a specific element? If there exists such a possibility, it would be awesome.
Another, not so important question: Do you know if this method will lead to the same results as the heat generation rate with the MASS71 method with tabular input? Or do you know where the difference is?
Ani
P.S. For anyone looking at the code and getting confused by the table: The following website helped me a lot: https://www.ozeninc.com/apdl-arrays-tables-quickreference/
Also this website (https://www.mm.bme.hu/~gyebro/files/ans_help_v182/ans_cmd/Hlp_C_BF.html)
helped me a lot for looking up commands in a fast way.
August 1, 2021 at 9:33 pmpeteroznewmanSubscriberThe "Also" website is just a page from an old version of the ANSYS Help system. If you open ANSYS Help on your computer from the Start Menu or from within Workbench, you can navigate alphabetically to Mechanical APDL, then to the Command Reference, then the letter B and find the BL command.
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v212/en/ans_cmd/Hlp_C_BF.html
January 14, 2023 at 6:22 amsfSubscriberHello,
Thanks Dave for sharing this code, is really helpful!
Do you have a proposal for the case when I would like to set the heat generation in function of T_max - T_min of a specific body within the simulation domain?
Thank you, Feri
Viewing 5 reply threads- The topic ‘Internal heat generation depending on temperature’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- How to apply Compression-only Support?
- Geometric stiffness matrix for solid elements
- Frictional No separation contact
- Image to file in Mechanical is bugged and does not show text
- Timestep range set for animation export
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
Top Contributors-
1406
-
599
-
591
-
555
-
366
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-