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

changing a variable (turbulence dissipation rate) formolation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 21, 2011, 16:43
Default changing a variable (turbulence dissipation rate) formolation
  #1
New Member
 
Join Date: Nov 2010
Posts: 19
Rep Power: 6
m.beh is on a distinguished road
Hi

I must modify eps (C_D) in one part of my work.
I simulating a slurry bubble column and I have to modify my turbulence dissipation rate by this formula:
eps(modify)=eps(original)*exp(A*alpha)

eps(modify):turbulence dissipation rate that I need to use in my calculations
eps(original): turbulence dissipation rate that fluent calculates
A: constant
alpha: volume fraction of particles

and I need to change eps to these formula just in my population balance aggregation and breakage kernels.
can I do this with a udf? which macro I must use?

I know that I can wrote the kernels in udf and hook them to populaton balance model but I want to just change the eps it is more easily and I can use the original code of fluent that have less problems
thank you
m.beh is offline   Reply With Quote

Old   July 22, 2011, 02:48
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Hi,
with a simple DEFINE_ADJUST macro, store modified epsilon in a UDM and then use it where ever you want.
Amir is offline   Reply With Quote

Old   July 22, 2011, 03:50
Default
  #3
New Member
 
Join Date: Nov 2010
Posts: 19
Rep Power: 6
m.beh is on a distinguished road
Hi
Thank you amir
but I am new in writing UFD, an I have an other question.

I want to change eps just in one of fluent parts, and I don't want to write a udf for whole part.

you see: for example in population balance model I choose lou aggregation equations that is avalable in fluent just by using population balance model and choose lou kernel for it from a drop down list.
but I want to send my eps(modify)" that I wrote the equation of that on the last post" instead of eps(original) to the part of lou equations.

I know how to save the my eps(modify) in a UDM, after that how I can send it to the lou equations instead of eps(original) ( that I think using the C_D macro for that in the fluent )

in other word, I want to change or modify one of the fluent equations, is this possible? or I must write whole part of the equation again in a UDF?

excuse me for my poor English
m.beh is offline   Reply With Quote

Old   July 22, 2011, 08:23
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Hi,
I haven't used this model before and I don't know about its characteristics, but I have some suggestions:
- first look for capability of hooking any UDF in your desired model description.
- I think it would be possible to change C_D for using in this eq. and then retrieving previous value (because I don't know about this model, I'm not sure about)
- If you can interpret this model as a conservation eq., then you can use UDS template of FLUENT instead. (again I'm not sure about its nature)


Amir
Amir is offline   Reply With Quote

Old   March 28, 2014, 09:31
Default modified dissipation term in k-w SST
  #5
Member
 
Ali.E
Join Date: Sep 2010
Location: Lisboa
Posts: 78
Rep Power: 6
behest is on a distinguished road
Hello all,
I want to modify the dissipation term of k-equation by UDF. Which macro can be used?
Actually, I must change the formulation of dissipation term in k-equation and then, Fluent uses the modified dissipation term instead of itselfs. My turbulence model is k-w SST and I just manipulate Y_k (dissipation term of k).
Original: Y_k=ro*beta_s*k*w;
Modified: Y_k=ro*beta_s*k*w/delta; (delta is wall distance)

It would be appriciated if anyone makes a comment to how I do this task.
behest is offline   Reply With Quote

Reply

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
changing scheme variable with UDF? Wagemakers FLUENT 7 November 25, 2014 10:15
UDF changing the rate exponent of a reaction Stefan H Fluent UDF and Scheme Programming 0 September 16, 2009 13:20
rate exponent changing Vitali FLUENT 0 July 27, 2007 11:40
changing model constants in k-e turbulence model Sunil CFX 3 October 3, 2006 12:12
changing reaction rate Arthur Valais FLUENT 1 December 10, 1999 11:53


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