CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Multiphase Thread Usage

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

LinkBack Thread Tools Display Modes
Old   December 5, 2013, 10:07
Default Multiphase Thread Usage
New Member
Tom Tranter
Join Date: Mar 2013
Location: Leeds, UK
Posts: 20
Rep Power: 4
pmtgt is on a distinguished road

This is a general enquiry for coding best practises regarding multiphase threads.

I have a model with UDFs for a variety of sources to do with species consumption and some electrochemistry. To make the code more modular I have created a function representing a transfer rate which can be called by each of my sources. Some of the sources are applied to a UDS and others are applied to species and the simulation is multiphase.

So when the function is called for a UDS source I am passed a mixture level super_thread and when the function is called for a species source I am passed a phase level sub_thread.

The information I need to access is the concentration of the species in the primary phase so I must retrieve the primary phase from the super_thread, use what I've got if I'm passed the primary phase thread or manourvre up to the super_thread from any secondary phases and then back down again to the primary phase.

This is all achievable but a bit long-winded and messy looking. I was wondering if there is a clean way of getting the information I need. For example, is there a way of telling what phase thread I've been passed without trying to go somewhere else with THREAD_SUPER_THREAD or THREAD_SUB_THREAD and handling the errors.

Many Thanks
pmtgt is offline   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
ANSYS Workbench on "Uncertified" Linux Distros hsr CFX 239 September 26, 2015 08:21
Error messages atg enGrid 7 August 30, 2013 11:16
udf problem jane Fluent UDF and Scheme Programming 11 December 4, 2012 04:09
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 0 September 23, 2009 07:57
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37

All times are GMT -4. The time now is 03:37.