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

DEFINE_SOURCE, mass source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2014, 08:58
Default DEFINE_SOURCE, mass source
  #1
New Member
 
Join Date: Oct 2009
Posts: 25
Rep Power: 16
jacek is on a distinguished road
I'm not sure about some nuance. According to the definition this makro is based on cell basis and the output for mass generation is: kg/m3/s.
So I put simple macro:


DEFINE_SOURCE(ZrMas, ce, th, dS, eqn)
{
real source;

source = 0.002;
dS[eqn] = 0;
return source;
}.
Now the output form this UDF is not 0.002 kg/s from a particular cell where at the moment loop is executed but Fluent treats it as 0.002 kg/m3/s. Then, Fluent recalculates this mass source by multiplying by volume:

0.002 [kg/m3/s] * v [m3].

Thus we get absolute mass generation in zone/thread in kg/s.

But I'm not sure if v is the cell volume or a mean volume of cell yielded by calculation:

Zone Volume / Number of Cells.

It would be important if cells in zone/thread were of different sizes.

I suppose that v is current cell volume since DEFINE_SOURCE runs on cell basis. But I'm not sure.
jacek 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
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
Problem with Mass source, Momentum source theory diffo Fluent UDF and Scheme Programming 0 August 20, 2009 06:10
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 09:35.