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

Understanding ID 'j' and index 'i' in mw[i][j] and yi[i][j]

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2022, 11:03
Smile Understanding ID 'j' and index 'i' in mw[i][j] and yi[i][j]
  #1
New Member
 
Ankit Choudhary
Join Date: Apr 2022
Posts: 2
Rep Power: 0
ankiit_c11 is on a distinguished road
I am relatively new to UDFs and I have been working on a project where I need to define a UDF for a heterogenous reaction I have in my simulation.

I have been reading about DEFINE_HET_RXN_RATE (name,c,t,r,mw,yi,rr,rr_t) from the Ansys UDF manual but I got confused at the point where the documentation referred to some indexes to extract the molecular weight and mass fraction of species.

Here is what the documentation says:

mw[i][j] will give molecular weight of species with ID j in phase with index i. For phasewhich has fluid material, the molecular weight can be accessed as mw[i][0].

yi[i][j] will give mass fraction of species with ID j in phase with index i. For phase which has fluid material, yi[i][0] will be 1.

I am not able to understand what would be right index and id for the species I want to refer to.

I have 4 items in materials > fluid. In my udf, how do I get the molecular weight and mass-fraction of each species.

If any clarification is needed please ask. I am not very familiar with the technicalities and am badly stuck at this point. Any help is appreciated.
ankiit_c11 is offline   Reply With Quote

Reply

Tags
heterogeneous reaction, id of species, index of phase, mw and yi, udf

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



All times are GMT -4. The time now is 05:48.