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

Error when using const momentum source to replace gravity.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2023, 06:31
Default Error when using const momentum source to replace gravity.
  #1
New Member
 
Join Date: Dec 2023
Posts: 1
Rep Power: 0
Smithstark is on a distinguished road
Hello, I am conducting research on natural convection in a rotating enclosure, where non-inertial forces could be included in the momentum transport equation.
Prior to this, I am examining the feasibility of this method by replacing gravity with a constant momentum source. After conducting multiple simulations, it was discovered that the flow field obtained with the use of a udf was significantly dissimilar from the one obtained with default gravity in the Fluent software. It was observed that the velocity was concentrated on the initial layer of mesh in the top and bottom boundary.
The udf and the flow field differences between the udf and default gravity are provided below:

# include "udf.h"

DEFINE_SOURCE(grvY,c,t,dS,eqn)
{
real source;
source = -9.81*C_R(c,t);
dS[eqn] = 0;
return source;
}

The flow field and local zoom of high velocity zone are listed below:






While the proper flow field should look like this



Thanks for any advice!
Smithstark 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
Parallel dual mesh interpolation FlameSlave OpenFOAM Programming & Development 1 October 7, 2019 08:21
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
RunTim Error for simpleFoam Djub OpenFOAM Running, Solving & CFD 2 April 12, 2013 11:51
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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