|
[Sponsors] |
bubbles diameter: UDF function that defines the particles growth as they move along x |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2010, 06:26 |
bubbles diameter: UDF function that defines the particles growth as they move along x
|
#1 |
New Member
fabien tagada
Join Date: Oct 2010
Posts: 5
Rep Power: 16 |
I try to write an UDF function that defines the particles growth as they move along x axis (nucleation). i'm working with an axisymetric case and an eulerian model, the particles (bubbles) are injected in the x direction.
Ther is two phases, the bubbles are injected in the BC xith the velocity inlet. This UDF doesn't work: #include "udf.h" #define puissance 1./3 DEFINE_PROPERTY(bubble_diameter, c, tc) { real x[ND_ND]; C_CENTROID(x,c,tc); x[1] = P_POS(p)[1]; real cte1; cte1 = (0.015 / 2.0 * 0.7 * 1000.0 * 9.81) * 0.000300; P_DIAM(p) = cte1; return 6 * pow(cte1 * x, puissance); } I need some help, thank you. |
|
June 11, 2015, 07:28 |
|
#2 |
Member
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12 |
what exactly do you mean by not working
are you using population balance model? |
|
June 15, 2015, 11:23 |
|
#3 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
"This UDF doesn't work" is very little information. Be more specific.
|
|
Tags |
diameter, particles, udf inlet boundary |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 15:07 |
Can I change the diameter and density of Particles depend on the pressure using UDF | Yanlong Li | Fluent UDF and Scheme Programming | 2 | January 13, 2013 11:46 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |
Udf about the distribution of the diameter | as | FLUENT | 7 | April 3, 2005 18:36 |