CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   What are those macros? (http://www.cfd-online.com/Forums/fluent/91903-what-those-macros.html)

mingersai August 26, 2011 01:27

What are those macros?
 
In the UDF mannual, I see lots of macros that's not explained in the mannual,
Do any one how to find information about those things?
I went through some of source files under src directory, but it's not clearly explained.

I met
SV_ALLOCATED_P
SV_WALL_GRID_V, SV_WALL_V

in DEFINE_DPM_BC,
What is this SV_?

I also see lots of RP in the dpm bc example, like RP_2D, I can also see it in parallel consideration chapter, which has RP_HOST

Can anyone tell me what is this RP_ ?


I also see THREAD_TYPE(t) ==THREAD_F_WALL

where I can find this macro in src files?

I saw a UDF from the forum use an interesting loop:


begin_particle_cell_loop(pi,c,t)

How can I find loops like this form either manual or src files?

Thanks for your help!

_Denis_ August 26, 2011 06:39

I too find that Fluent udf manual is not sufficiently detailed on some issues. However it might help a lot if you use a pdf-version of the manual (search for it in the installation dir.). The thing is, Fluent help searching engine doesn't search for words put in tables, like so many of udf macro are.
Using pdf-reader you'll be able to find answers to most of your questions.

mingersai August 26, 2011 11:09

Quote:

Originally Posted by _Denis_ (Post 321734)
I too find that Fluent udf manual is not sufficiently detailed on some issues. However it might help a lot if you use a pdf-version of the manual (search for it in the installation dir.). The thing is, Fluent help searching engine doesn't search for words put in tables, like so many of udf macro are.
Using pdf-reader you'll be able to find answers to most of your questions.

Hi, Thanks for your reply.
I'm using pdf reader, however, some of the macros only showed up once in a certain example..... It's hard for me to understand....

niravtm007 August 29, 2011 02:20

udf velocity inlet
 
hiii friends i am entirely new to using udf's in fluent. I have a cubical geometry, with two inlets on perpendicular adjacent faces. i have to implement udf to only one of the conditions.
i have two cases
1) parabolic velocity inlet ( space varient)
2) sinusodial velocity velocity inlet ( time variant)
can any one pls send me the udf ( codes) ...

songwukong June 3, 2013 10:00

Quote:

Originally Posted by mingersai (Post 321783)
Hi, Thanks for your reply.
I'm using pdf reader, however, some of the macros only showed up once in a certain example..... It's hard for me to understand....

hello

I met the same problem as you did.

how is it going now?

I found that we could get the definition of "SV_..." in some .h documents from a fold named "src". But i feel that although we got the definitions, we still do not know their exact meaning for the absence of enough comments.

Arjun Jayakumar May 19, 2015 08:03

'sv_' simply means storage variable


All times are GMT -4. The time now is 20:44.