|
[Sponsors] |
Error when using const momentum source to replace gravity. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2023, 06:31 |
Error when using const momentum source to replace gravity.
|
#1 |
New Member
Join Date: Dec 2023
Posts: 1
Rep Power: 0 |
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! |
|
|
|
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 |