|
[Sponsors] |
March 6, 2019, 12:17 |
Species mass fraction
|
#1 |
New Member
Join Date: Jul 2018
Posts: 29
Rep Power: 8 |
Hi,
I am trying to simulate the falling film flow. I have water and humid air. I want to define a constant value for the mass fraction of water vapor in air at the interface. I wrote the UDF based on Define_adjust. But every time I try to run it I got an error. Can you help me with it? #include "udf.h" #include "sg_mphase.h" DEFINE_ADJUST(vol_frac, domain) { Thread *t; cell_t c; double Y_h2o; Y_h2o = 0.02; begin_c_loop(c,t) { if(C_VOF(c,t)>0. && C_VOF(c,t)<1.) C_UDSI(c,t,0)=Y_h2o; } end_c_loop(c,t); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass fraction of species | Lilly | FLUENT | 5 | March 13, 2022 18:52 |
Defining species mass fraction using a UDF | T81 | Fluent UDF and Scheme Programming | 3 | April 19, 2018 08:02 |
chemical species mass fraction | Green_Horn | STAR-CD | 0 | February 27, 2012 15:57 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |
mass fraction of species | Ahmed | FLUENT | 0 | April 18, 2007 12:57 |