CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Multiphase Thread Usage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2013, 10:07
Default Multiphase Thread Usage
  #1
New Member
 
Tom Tranter
Join Date: Mar 2013
Location: Leeds, UK
Posts: 21
Rep Power: 13
pmtgt is on a distinguished road
Hi,

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
Tom
pmtgt is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANSYS Workbench on "Uncertified" Linux Distros hsr CFX 289 April 20, 2023 10:23
udf problem jane Fluent UDF and Scheme Programming 37 February 20, 2018 05:17
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 1 January 4, 2017 08:11
Error messages atg enGrid 7 August 30, 2013 12:16
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37


All times are GMT -4. The time now is 17:06.