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

UDF for accessing reaction rate of face of cells in a thread

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2020, 17:10
Default UDF for accessing reaction rate of face of cells in a thread
  #1
New Member
 
Khan
Join Date: Sep 2019
Location: India
Posts: 23
Rep Power: 3
Khan_CFD is on a distinguished road
I would like to access kinetic reaction rates for various reactions happening on the wall surface of a solid boundary, so I could give a condition that, "IF heat of reaction of all the reactions on any face of a cell (looping this condition over all cells in the thread) is >0, then reaction rates of a particular reaction = 0, ELSE reaction rate of that particular reaction = default reaction rate."

But, I did not find any macro for accessing kinetic rate of a reaction on a face of a cell in a thread.

Please suggest.

Thank you.
-------------------
edit: got the answer, kinetic rate can be calculated from other values which can be accessed.

Last edited by Khan_CFD; June 11, 2020 at 08:09.
Khan_CFD is offline   Reply With Quote

Old   June 15, 2020, 04:09
Default Reaction Rates
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 33
vinerm will become famous soon enough
Reaction are defined as structures and their rates are members of the structure. You can access those using r->rate, if r is a reaction.

https://ansyshelp.ansys.com/account/...e_sr_rate.html
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   June 15, 2020, 08:56
Default
  #3
New Member
 
Khan
Join Date: Sep 2019
Location: India
Posts: 23
Rep Power: 3
Khan_CFD is on a distinguished road
if there are three reactions, how can each of them be identified?

Thank you.
Khan_CFD is offline   Reply With Quote

Old   June 15, 2020, 09:01
Default Reactions Names
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 33
vinerm will become famous soon enough
The name of each reaction is a member of the structure. So, you can check for their names. That's given in the link I shared.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   June 15, 2020, 09:34
Default
  #5
New Member
 
Khan
Join Date: Sep 2019
Location: India
Posts: 23
Rep Power: 3
Khan_CFD is on a distinguished road
Thanks a lot..

But, I am unable to access the information in the shared link as it asks for user account and password.
Khan_CFD is offline   Reply With Quote

Old   June 15, 2020, 10:04
Default Link
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 33
vinerm will become famous soon enough
Use the following then

https://www.afs.enea.it/project/nept...udf/node57.htm
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


All times are GMT -4. The time now is 18:57.