|
[Sponsors] |
How to set a location-dependent internal heat generation ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 19, 2016, 10:27 |
How to set a location-dependent internal heat generation ?
|
#1 |
New Member
Eugen Shabagin
Join Date: Aug 2016
Posts: 1
Rep Power: 0 |
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 |
|
August 21, 2016, 23:09 |
Try this...
|
#2 |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
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; } |
|
Tags |
internal heat generation |
|
|
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 |