|
[Sponsors] |
April 19, 2021, 09:24 |
A question about source term of drag force
|
#1 |
New Member
Felix
Join Date: Apr 2020
Posts: 4
Rep Power: 6 |
Hello I am simulating the motion of particles in an unsteady fluid (air) field by coupling DEM code as UDF with Fluent. The drag force is calculated in DEM, and it will be passed back to Fluent as a source term. But the error will occur when the particles are dense (e.g. 10,000 5um particles agglomerate together). In that case, when the drag force is passed back to Fluent as the source term, the flow field cannot converge (abnormal residual fluctuations), resulting in excessive local flow field velocity and errors.
Below is the source term code. I can be sure that the drag force is calculated correctly because if the source term is not activated, everything looks reasonable. DEFINE_SOURCE(xmom_source,c,t,dS,eqn) { real source = 0.; if(initialized) { int cellIndex = C_UDMI(c,t,0); source = cfdcell[cellIndex].dragFX/C_VOLUME(c,t); } dS[eqn] = 0.0; return source; } Can someone help me? I have been stuck with this problem for many days. Thank you |
|
Tags |
dense particles, drag force, source term, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Finding Drag Force from Skin Friction | Rob Wilk | Main CFD Forum | 0 | May 8, 2020 07:04 |
ActuatorDiskExplicitForce in OF2.1. Help | be_inspired | OpenFOAM Programming & Development | 10 | September 14, 2018 12:12 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
[swak4Foam] swak4Foam-groovyBC build problem | zxj160 | OpenFOAM Community Contributions | 18 | July 30, 2013 14:14 |
Simple question (source term) | MASOUD | FLUENT | 0 | February 21, 2011 20:57 |