CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

Source Value wrong UDF?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2020, 15:37
Default Source Value wrong UDF?
Join Date: Jun 2020
Posts: 43
Rep Power: 5
schwaral is on a distinguished road
Send a message via ICQ to schwaral Send a message via AIM to schwaral Send a message via Yahoo to schwaral
Unfortunately I run out of ideas with the help of this forum and User Guide. Therefore this new thread.

I have a 2D pipe devided in 3 areas (upstream, middle, downstream).
At the Inlet I set a specific value for my UDS (C). The whole domain in the middle acts as a source. I want to reduce my C by 10% from Inlet to Outlet

Source formula for UDF:

source = -0.1* C / sourcevolume;

C=UDS Value in Cell
sourcevolume = volume of domain "middle"

The results show, that my UDS Value is reduced by 85%. Any idea, why this is happening? I run out of ideas

The Outlet condition fopr UDS is FLux=0 so this shouldn't have any effect on the Value of C and the Diffusion = 0 as well.
schwaral is offline   Reply With Quote


fluent, source, udf, uds

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24

All times are GMT -4. The time now is 07:47.