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

Why can't my UDF point source release species?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 1, 2022, 11:23
Default Why can't my UDF point source release species?
  #1
New Member
 
Join Date: May 2022
Posts: 1
Rep Power: 0
Fusuo is on a distinguished road
I want to release a certain gas at a certain point in the fluid domain, but I can't see species after simulation using my UDF. The UDF as follows.


#include "udf.h"

#define M 0.00000796
DEFINE_SOURCE(Pullation_1,c,t,dS,eqn)
{
real x[ND_ND];
real source;
C_CENTROID(x,c,t);

if(x[0]==-0.15&&x[1]==0&&x[2]==0.001)
{
source = M;
}
else
{
source = 0;
}

dS[eqn]=0;
return source;
}
Fusuo is offline   Reply With Quote

Reply


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
Point Source for Radiation by UDF daire6 FLUENT 0 May 13, 2016 09:07
[snappyHexMesh] snappyHexMesh and cyclic boundaries Ruli OpenFOAM Meshing & Mesh Conversion 2 December 9, 2013 07:51
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
[blockMesh] error EOF in blockMesh Ahmed Khattab OpenFOAM Meshing & Mesh Conversion 7 May 17, 2012 01:37
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 21:20.