|
[Sponsors] |
February 17, 2022, 17:13 |
X-momentum source using Fluent UDFs
|
#1 |
New Member
Logan Szajnecki
Join Date: Feb 2022
Posts: 1
Rep Power: 0 |
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. |
|
Tags |
fluent udfs, momentum source |
|
|
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 |