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

[multiphase] C_UDMI in DEFINE_PROPERTY for diameter of secondary phase

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By SJSW

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2015, 10:11
Default [multiphase] C_UDMI in DEFINE_PROPERTY for diameter of secondary phase
  #1
Senior Member
 
Join Date: Jun 2014
Location: Taiwan
Posts: 100
Rep Power: 12
SJSW is on a distinguished road
Hi~

I wrote a UDF for diameter used in secondary phase using Eulerian Model.
This model was from the tutorial "Hydrodynamics of Bubble column reactors."
They are all the same except the diameter of the secondary phase was replaced by this UDF.

This UDF could be compiled and no warning like ACCESS_VIOLATION appeared.
I used C_UDMI to record the new diameter calculated in UDF.
Then I tried to show contour of this C_UDMI, but all value is zero all the time.
But the distribution of bubbles are different from that in the tutorial.

Could someone kind to share why the value is zero all the time?

Here is my thought, but I don't know if it is right:
The value is not truly zero.
This C_UDMI truly restore the new diameter value calculated in UDF.
However, the thread of this C_UDMI is for secondary phase.
Since the contour can only show User-defined Memory in primary phase, a C_UDMI for secondary phase could not be displayed.

If my consideration is correct, could it be possible to restore the values of C_UDMI for secondary phase to another C_UDMI for primary phase?

Thanks for your attention, and I hope someone will help this!
SJSW is offline   Reply With Quote

Old   December 12, 2015, 13:06
Default
  #2
Senior Member
 
Join Date: Jun 2014
Location: Taiwan
Posts: 100
Rep Power: 12
SJSW is on a distinguished road
Problem solved.

A formula was involved with a fraction, and I wrote an integer divided by the other integer.
This resulted in an integer "0."
It could be avoided by using "1.0/2" or "1/2.0" .

Another thing is that "cell_t c" and "thread t" in DEFINE_PROFILE and DEFINE_PROPERTY are for the phase to which the UDF was applied.
So usually there is no need to use THREAD_SUPER_THREAD or THREAD_SUB_THREAD.

A strange thing is that when a C_UDMI was used in DEFINE_PROPERTY and assigned to a secondary phase, one could show a contour of this C_UDMI for mixture and the values are correct.
For example, C_UDMI=C_P(c,t). c and t are for a secondary phase, but the contour of this C_UDMI could be shown when choosing "mixture."
In fact, one can only choose "mixture."
jyothsna k likes this.
SJSW 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
[swak4Foam] mass conservation of solid phase violated when using groovyBC with twoPhaseEulerFoam xpqiu OpenFOAM Community Contributions 8 June 17, 2015 03:08
UDF for source term for secondary phase ONLY?! plz help kceha Fluent UDF and Scheme Programming 0 June 6, 2014 15:10
Secondary phase move back ssamton FLUENT 0 March 19, 2012 20:31
Simulating a Paper Filter in Multiphase: How to Make Impassable by Secondary Phase? VT_Bromley FLUENT 0 February 24, 2011 00:27
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


All times are GMT -4. The time now is 14:07.