CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Transformation matrix between species mass fraction and species density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2020, 02:34
Default Transformation matrix between species mass fraction and species density
  #1
New Member
 
Join Date: Nov 2020
Posts: 1
Rep Power: 0
learner00 is on a distinguished road
The species mass fraction is defined as following Y_s = \frac{\rho_s}{\rho}.

I want to compute the following derivative: \frac{\partial Y_k}{\partial \rho_s}
From my calculation, I thought that it should be \frac{\partial Y_k}{\partial \rho_s} = \frac{\partial (\rho_k/\rho)}{\partial \rho_k} \frac{\partial \rho_k}{\partial \rho_s} =    \dfrac{1}{\rho} \delta_{ks}

However, I was told that the value should be \frac{\partial Y_k}{\partial \rho_s} = \left(\delta_{ks}-Y_k\right) \frac{1}{\rho}.
Can you help me by pointing out where I made the mistake in the computation?
learner00 is offline   Reply With Quote

Old   December 3, 2020, 20:13
Default
  #2
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14
Eifoehn4 is on a distinguished road
Your calculation is not correct. You are not allowed to put \rho outside the bracket because \rho is a function of \rho_k or \rho_s. Note that in general one suppose that the entities are \rho_k and not \rho.

The correct calculation is:

\frac{\partial Y_1}{\partial \rho_1}  
= -\frac{\partial Y_2}{\partial \rho_1} =-\frac{\partial (\rho_2 / \rho) }{\partial \rho_1}= - \rho_2 \frac{\partial( 1  / \rho) }{\partial \rho_1}=     - \rho_2 \frac{\partial ( 1  / (\rho_1 +\rho_2)) } {\partial \rho_1}=\dots
\dots= -\rho_2 \left(-\frac{1 }{( \rho_1 +\rho_2 )^2}\right) =  -\rho_2 \left(-\frac{1 }{\rho^2}\right) = \frac{Y_2 }{\rho} =  \frac{1-Y_1 }{\rho}

The same can be done with:

\frac{\partial Y_1}{\partial \rho_2}  
= -\frac{\partial Y_2}{\partial \rho_2}=\dots

Regards
__________________
Check out my side project:

A multiphysics discontinuous Galerkin framework: Youtube, Gitlab.

Last edited by Eifoehn4; December 4, 2020 at 07:34.
Eifoehn4 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
Species Mole and Mass Fraction Macro combustion FLUENT 18 February 5, 2024 13:23
Mass fraction of species (Y) in reacting solvers mike.franky OpenFOAM Running, Solving & CFD 9 February 9, 2023 07:49
mass fraction of species Lilly FLUENT 5 March 13, 2022 18:52
Define mass flow profile with regards to species mass fraction danS Fluent UDF and Scheme Programming 0 June 20, 2017 07:21
Multi Species Problem (mass fraction) usamaperwez CFX 0 July 27, 2016 08:07


All times are GMT -4. The time now is 01:29.