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

X-momentum source using Fluent UDFs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2022, 17:13
Default X-momentum source using Fluent UDFs
  #1
New Member
 
Logan Szajnecki
Join Date: Feb 2022
Posts: 1
Rep Power: 0
ljszajnecki is on a distinguished road
Dear colleagues,
I am trying to implement an x-momentum source term on a background grid using Fluent UDFs. See my source term below:

DEFINE_SOURCE(ALM,c,t,dS,eqn)
{
real xc[ND_ND];
real con, source;
C_CENTROID(xc,c,t);
source = C_UDSI(c,t,0);
dS[eqn] = 0;

return source;
}

Where C_UDSI(c,t,0) is a user defined scalar that is determined using an adjust macro. The value of C_UDSI(c,t,0) is a Gaussian distribution acting for a given region of cells and its implementation is presumably correct.

I am encountering issues with the source term implementation. Specifically, there is no change to the flow field when activating the source term. It is as if the source term is being neglected entirely; it introduces no change to the velocity of the flow in the defined region where UDS-0 acts. Any help would be appreciated. Thank you.
ljszajnecki is offline   Reply With Quote

Reply

Tags
fluent udfs, momentum source


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
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 8 July 2, 2024 11:32
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 04:03.