CFD Online Logo CFD Online URL
Home > Forums > FLUENT

accessing a zone

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 30, 2004, 09:47
Default accessing a zone
Posts: n/a

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.


  Reply With Quote

Old   June 30, 2004, 11:34
Default Re: accessing a zone
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
  Reply With Quote

Old   July 5, 2004, 10:54
Default Re: accessing a zone
Andrew Garrard
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.
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 16:52

All times are GMT -4. The time now is 09:22.