|
[Sponsors] |
Field Function specified in certain region - Problem with mass fraction |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 24, 2021, 04:00 |
Field Function specified in certain region - Problem with mass fraction
|
#1 |
New Member
Join Date: Oct 2021
Posts: 3
Rep Power: 4 |
Hi!
I want to set a field function to a specific value in one region (Region A with Region Index 5) and to the mass fraction of water vapor in another region (Region B with Region Index 1). Region B consists of a multi-component gas (Air + Water Vapor), Region A is a liquid region. My approach was defining a field function like this: Code:
(${RegionIndex} == 0) ? ${MassFractionH2O} : ${FixedValue} If I replace ${MassFractionH2O} by another fixed value, everything works as expected and the values are different in the separate regions. Do you have an idea why this approach does not work with the mass fraction of water? That would be very helpful! Thank you very much in advance! |
|
November 26, 2021, 04:28 |
Similar setup help
|
#2 |
New Member
Balaji
Join Date: May 2013
Posts: 21
Rep Power: 12 |
Hi,
Which model do you use? Since you have Water and also air + water vapour mixture, doesnt it mean you are running multi phase setup? Or can you simulate water( liquid) and water wapour( gas) together using multi component (gas ) model? Please let me know, i am stuck at similar problem Regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion of mass fraction to mole fraction in FLUENT | prince_pahariaa | FLUENT | 0 | August 26, 2014 08:08 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
Mass Flow Rate Custom Field Function | AJoubert | FLUENT | 2 | March 23, 2013 08:50 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 09:56 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 21:14 |