CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to write a UDF for a heat source attached to a moving particle in Fluent?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 30, 2019, 07:46
Default How to write a UDF for a heat source attached to a moving particle in Fluent?
  #1
New Member
 
Subham
Join Date: Sep 2018
Posts: 11
Rep Power: 7
subham998 is on a distinguished road
The cross-section of the domain is similar to a pipe. The objective is to heat metal particles located at a certain distance from the inlet of the pipe using a specified value of heat flux. I don't know the resulting temperature so I cannot specify the temperature of the particle using DPM Source Macro as:


Code:
#include "udf.h"
#include "dpm.h"
DEFINE_DPM_SOURCE(dpm_source,c,t,S,strength,p)
{
real xc[ND_ND]; // array of cell coordinates
C_CENTROID(xc,c,t); // retrieves the cell coordinates
if (xc[0] > 3) // only if this cell belongs in the domain where x > 3 m
{
P_T(p) = 500; //temperature of the metal particle increases to 500K
}
}
Any Suggestions?
subham998 is offline   Reply With Quote

 


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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 14:29.