CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

How to set a location-dependent internal heat generation ?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2016, 10:27
Default How to set a location-dependent internal heat generation ?
  #1
New Member
 
Eugen Shabagin
Join Date: Aug 2016
Posts: 1
Rep Power: 0
Eugen Shabagin is on a distinguished road
Hello everyone !

I want to implement a location-dependent internal heat generation in a transient thermal analysis. Just consider a cylinder where the heat generation is a function of the radius,angle and height. Does someone know how to do it ?

Thank you.

Best Regards
Eugen
Eugen Shabagin is offline   Reply With Quote

Old   August 21, 2016, 23:09
Default Try this...
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Have you tried examining the example from the UDF manual?

To use this appropriately (rather, quickly), you'll just need to change your radius, angle, and height to x,y,z coordinates...

http://www.geom.uiuc.edu/docs/refere...as/node42.html

x coordinate is x[0]
y coordinate is x[1]
z coordinate is x[2]

You'll have to get your source term and its derivative converted to your equation, of course, but hopefully this helps!

ComputerGuy

Code:
/*******************************************************************/
/* UDF for specifying an x-momentum source term in a spatially     */
/* dependent porous media                                          */
/*******************************************************************/

#include "udf.h"

#define C2 100.0

DEFINE_SOURCE(xmom_source,c,t,dS,eqn)
{
  real x[ND_ND];
  real con, source;

  C_CENTROID(x,c,t);
  con = C2*0.5*C_R(c,t)*x[1];

  source = -con*fabs(C_U(c, t))*C_U(c,t);
  dS[eqn] = -2.*con*fabs(C_U(c,t));

  return source;
}
ComputerGuy is offline   Reply With Quote

Reply

Tags
internal heat generation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent transient Simulation - varying Internal Heat generation : Help! lamboram FLUENT 0 September 14, 2015 05:37
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Time-dependent Internal Heat Generation mactech001 CFX 4 June 12, 2013 21:44
Heating of a solid cylinder with internal heat generation Sriram Popuri Main CFD Forum 6 July 13, 1999 19:09


All times are GMT -4. The time now is 09:03.