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

Create a mass source on a specific point

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By KevinZ09

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2016, 07:42
Default Create a mass source on a specific point
  #1
New Member
 
Join Date: Nov 2016
Posts: 4
Rep Power: 10
daleher is on a distinguished road
Hi I'm an engineer who is starting to use CFD because I'm doing some research at university.
I'm modelling a duct whose geometry is shown in the picture.

mesh duct.JPG

Through this duct flows a "Mixture" made of two species (let's call them X and Y). What I'm trying to do is to create some mass sources of the species Y, in order to reproduce the generation of that species, and its transport through the duct. I have no idea how to create this sources on specific points, defined by their coordinates x,y,z.

I would really appreciate some help.

Thanks!
daleher is offline   Reply With Quote

Old   December 19, 2016, 09:28
Default
  #2
Senior Member
 
Kevin
Join Date: Dec 2016
Posts: 138
Rep Power: 9
KevinZ09 is on a distinguished road
If you are okay with a volumetric mass source you can just enter the source in the Cell Zone Conditions dialog box. However, it seems like you want to use a point source or a profile source, in which case you're gonna need to create a UDF to do so. The latter is much more complicated, especially if you are new to CFD.
daleher likes this.
KevinZ09 is offline   Reply With Quote

Old   December 19, 2016, 12:05
Default
  #3
New Member
 
Join Date: Nov 2016
Posts: 4
Rep Power: 10
daleher is on a distinguished road
Yes, I supposed I've got to use an UDF to do so, because I've already used some UDF to define some material properties such as viscosity, diffusion coefficient,etc. So I think I have to use the macro "DEFINE_SOURCE (name,c,t,dS,eqn)", but the problem is that I don't know exactly how to create the source on a particular point.
daleher is offline   Reply With Quote

Old   June 1, 2021, 07:15
Default
  #4
Member
 
Join Date: Apr 2020
Posts: 76
Rep Power: 6
mz_uon is on a distinguished road
Hello

Have you managed to do this, create a UDF for point source?
Would appreciate it if you explained here.

Thanks
mz_uon is offline   Reply With Quote

Reply

Tags
diffusion, mass source term, udf, uds


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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 03:27
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 00:16.