|
[Sponsors] |
February 4, 2014, 07:40 |
RP_variable for porous information
|
#1 |
Member
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 75
Rep Power: 15 |
Hello
I am trying to access information about my porous media I was wondering how to get the 'porosity' value in my udf? I have tried stuff like: por = RP_Get_Real("porosity"); por = RP_Get_Real("fluid-porosity"); etc... but it does not seems such variable exits as a Fluent variable. Does anyone knows how to access the list of Fluent variables? I am trying to access such data in order to deal with a porous media only. In an interpreted UDF, I am writing such loop (for example for the intialization) (let say I have 2 fluid threads and 1 solid thread, one fluid thread being porous): Code:
DEFINE_INIT(init, d) Thread *t; cell_t c; thread_loop_c(t,d) { if (NNULP(T_STORAGE_R(t,SV_P) // to get the fluid threads // here I wish to get only the porous one, so that explain my above question: if porosity = 1, etc.... } Code:
DEFINE_INIT(init, d) real cporous; Thread *t; cell_t c; thread_loop_c(t,d) { if (FLUID_THREAD_P(t) && THREAD_VAR(t).fluid.porous) { begin_c_loop(c,t) { cporous = cporous + 1; } end_c_loop(c,t) } } I do not really understand why the THREAD_Var(t).fuid.porous does not work in the compiled udf. After several unfruitful tests, I decided to try the way by the interpreted udf (and then the problem on getting the porosity value came, as the THREAD_VAR can be used only in compiled udf). Thank you for any hint on that problem |
|
July 22, 2017, 13:42 |
|
#2 |
New Member
Estêvão Lannes Tolentino
Join Date: Oct 2016
Posts: 9
Rep Power: 10 |
Hi Mr. Crevoise,
I'm having a similar problem. Did you solve the problem of your compiled UDF code ? Were you able to correctly use the terms "FLUID_THREAD_P(t) && THREAD_VAR(t).fluid.porous" ? Thank you. |
|
Tags |
porous, thread, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ERROR #001100279 has occurred in subroutine ErrAction. | smnaryal | CFX | 11 | December 20, 2017 17:32 |
using face information in a cell-based macro | ximik | Main CFD Forum | 2 | May 10, 2011 18:42 |
interchanging face information with cell information/ radiation flux UDF | ximik | FLUENT | 1 | May 4, 2011 17:34 |
PHOENICS Information | Peter Spalding | Phoenics | 0 | September 24, 2004 06:30 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |