|
[Sponsors] |
Why can't my UDF point source release species? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 1, 2022, 11:23 |
Why can't my UDF point source release species?
|
#1 |
New Member
Join Date: May 2022
Posts: 1
Rep Power: 0 |
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; } |
|
|
|
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 |