June 30, 2023 at 1:02 pm
Subscriber
Hello
The C_P macro defines the total pressure and not the partial pressure. There is no separate variable for partial pressure. You can define the partial pressures from total pressure and species mole fraction by taking a product of the two. Mole fraction will need to be defined from the mass fraction and the molecular weight.
Here is an example from the UDF Manual for accessing molecular weights: 2.5. Discrete Phase Model (DPM) DEFINE Macros (ansys.com). Check section 2.5.6.3.
Here is a link of a similar thread related to partial pressure: Fluent – species – density – UDF (ansys.com)
If you are not able to access the link, please refer to this forum discussion: Using Help with links (ansys.com)