|
[Sponsors] |
June 30, 2004, 09:47 |
accessing a zone
|
#1 |
Guest
Posts: n/a
|
Hello!
I know, To access a particular zone, I can use "Lookup_Thread(d,id)" "Lookup_Thread(d,id)" needs domain pointer. But, domain pointer is not passed to the function, which I want to use. In my case, how can I use "Lookup_thread"? I'm simulating one-phase flow. Thanks. |
|
June 30, 2004, 11:34 |
Re: accessing a zone
|
#2 |
Guest
Posts: n/a
|
If you simulating single phase flow your domain pointer is always 1. You can write something like
Thread *thread = Lookup_thread(1, id) or you could, like I do, create a #define dom_ID 1 at the start and then you write Thread *thread = Lookup_thread(dom_ID, id) this way you don't wonder what the odd "1" is doing when you come to look back over old code. Hope this helps |
|
July 5, 2004, 10:54 |
Re: accessing a zone
|
#3 |
Guest
Posts: n/a
|
Sorry, I miss informed you about this senario. I have only just realised as I made myself some code and realised that I have told you the wrong thing. In single phase flow the Domain ID will always be 1, but when using Lookup_Thread you must provide a pointer, sorry about that. Code something like this should work.
Domain *domain = Get_Domain(1); Thread *thread_sol = Lookup_Thread(domain, thread_id); Very sorry for the confusion. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 17:51 |
Problem in IMPORT of ICEM input file in FLUENT | csvirume | FLUENT | 2 | September 9, 2009 01:08 |
Error to re-open fluent case file | J.Gimbun | FLUENT | 0 | April 27, 2006 08:42 |
Accessing a zone | Karthick | FLUENT | 4 | April 16, 2004 00:08 |
Sliding mesh error | Karl Kevala | FLUENT | 4 | February 21, 2001 15:52 |