CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Monitoring mole fraction at a boundary outlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2020, 13:26
Default Monitoring mole fraction at a boundary outlet
  #1
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
I am trying to figure out an expression to monitor the mole fraction of liquid and vapour methanol at a boundary.

May need two expressions, one for liquid and one for vapour.

Any suggestions? Thanks in advance. Using ANSYS academic software.

I have tried this, it didn't work "Bad expression value 'MethanolM detected in parameter Expression Value' in object ....

molf(MethanolM)@out

MethanolM is the liquid which is being boiled, at the outlet there should be some methanol liquid and some vapour.

Last edited by visitor; June 20, 2020 at 03:14.
visitor is offline   Reply With Quote

Old   June 19, 2020, 15:38
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
What is the name of the material used in the software, i.e. MATERIAL: <name>? MetanolM or something else?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   June 19, 2020, 16:46
Default
  #3
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
I have named it as MethanolM. It's just Methanol. Trying to find out mole fractions of vapour and liquid methanol.

Also the liquid methanol is going to boil, I am looking for TASCfliw RGP. Or any other method which can simulate methanol liquid to vapour phase change.

Thanks.
visitor is offline   Reply With Quote

Old   June 20, 2020, 03:11
Default
  #4
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
This is another issue I am dealing with. Methanol material properties. I am looking for Zero Pressure Coefficients for the Fourth Order Polynomial. As an alternative to NASA inputs.

Any tips, links? Please.

Last edited by visitor; June 20, 2020 at 05:04.
visitor is offline   Reply With Quote

Old   June 20, 2020, 10:42
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
There are several ways to access Molar Fraction

1 - Create a monitor point at a position of interest, and select MethanolM.Molar Fraction

2 - Create a monitor point expression, and set the expression to ave(MethanolM.Molar Fraction)@BoundaryOfInterest, or
ave(MethanolM.Molar Fraction)@VolumeOfInterest

Hope the above helps,
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   June 20, 2020, 12:04
Default
  #6
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Thanks, Opaque 👍.

In the attached data sheet; I am trying to figure which are the Upper interval coefficients, and Lower interval coefficients. For methanol, any tips which are the Upper a1 ....a7, lower a1 ....a7, from the attached data sheet?

Again thanks in advance.
Attached Files
File Type: pdf page 83 from nasan format.pdf (157.2 KB, 11 views)
visitor is offline   Reply With Quote

Old   June 20, 2020, 12:30
Default
  #7
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
I have entered the following expression;

ave(MethanolM.Molar Fraction)@BoundaryOfInterest

Got the following message in the monitor tab, while trying to link this expression.
"
The variable 'Molar Fraction' referenced by parameter 'Expression Value' in object'/Flow:Flow Analysis ....is not allowed to have a phase prefix.
"

It sounds like i need to go back to the materials property tab. Find a suitable materials property for methanol, which can be boiled and evaporated.
visitor is offline   Reply With Quote

Old   June 20, 2020, 15:27
Default
  #8
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
you at least should use:

areaAve(MethanolM.Molar Fraction)@BoundaryOfInterest

or

massFlowAve(MethanolM.Molar Fraction)@BoundaryOfInterest

or

volumeAve(MethanolM.Molar Fraction)@VolumeOfInterest

Last edited by Gert-Jan; June 20, 2020 at 17:12.
Gert-Jan is offline   Reply With Quote

Old   June 21, 2020, 04:29
Default
  #9
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Thanks Gert.

Will try it out.

It's interesting that when I try the conventional way by selecting the coordinates point (Output Control>monitor), could not see Molar Fraction. For now i have selected MethanolM.Volume Fraction.

Still don't know what to enter for material properties. Need something to take care of phase change, boiling. I have selected General Material for methanol and: -
Molar mass 32.94 [kg kmol^-1]
Density 791 [kg m^-3]
Specific heat capacity 2500 [J kg^-1 K^-1]

Q1:: Reference state ??
Default settings are for Specified Point ;

Q2:: Ref. Temperature 25 C

Q3:: Reference Specific Enthalpy >Ref. Spec. Enthalpy 0 J/kg

Q4:: Reference Specific Entropy>Ref. Spec. Entropy 0 J/kg/K

Buoyancy Properties
Q5:: Value>Thermal Expansivity 11.9e-4 [K^-1]

Basically methanol named MethanolM is present in water, and set to boil. Water selected IAPWS Library, this takes care if water phase change. Not to sure with methanol material properties setup.

I have this link with materials property on methanol. What can be extracted from the link below to fill Q1 to Q5?
Deleted link***

Last edited by visitor; June 21, 2020 at 07:16.
visitor is offline   Reply With Quote

Old   June 22, 2020, 04:49
Default
  #10
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Don't know if this suffices for a fourth order polynomial for Methanol, and zero pressure coefficients. If someone can tell me this is correct, I can progress with it and share it with others.

Please see attached pdf.
Attached Files
File Type: pdf zero pressure polynomial coeffs.pdf (164.8 KB, 6 views)
visitor is offline   Reply With Quote

Old   June 22, 2020, 05:05
Default
  #11
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
If you go to Materials you need to go to Import Library Data to import Methanol. Go to Gas Phase Combustion and select CH3OHvl. This is a vapour Liquid pair for methanol. When using these, you can include evaporation since the liquid and gas are linked automatically.
You need the same for water: H2Ovl

Be carefull, the CFD does not use any activity coefficients, azeotrope or whatsoever. If you need to include that as well, you indeed need your own materials. But then I'm out.

Regarding the monitor points, if you have your mouse on the monitoring point definition in Pre, use your RMB and select: "Edit in command editor". There you can change the Volume fraction in Mole fraction using your keyboard. Hope it works.
Gert-Jan is offline   Reply With Quote

Old   June 22, 2020, 07:42
Default
  #12
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Thanks Gert. Will try out your suggestions.

Just for sharing, i did get vapour with default methanol material properties. See attached screenshot for inputs. It's just that I am not sure if the "Reference State" inputs are correct. With Ref. Temperature 25 C, and Reference Pressure 1 atm. For Reference Specific Enthalpy and Reference Specific Entropy, ?? I don't and don't if needed for vaporising.

Thanks
Attached Images
File Type: jpg Screenshot_20200622-132213.jpg (65.1 KB, 11 views)
visitor is offline   Reply With Quote

Old   June 22, 2020, 08:55
Default
  #13
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Quote:
Originally Posted by visitor View Post
I have entered the following expression;

ave(MethanolM.Molar Fraction)@BoundaryOfInterest

Got the following message in the monitor tab, while trying to link this expression.
"
The variable 'Molar Fraction' referenced by parameter 'Expression Value' in object'/Flow:Flow Analysis ....is not allowed to have a phase prefix.
"
I think you have not described your setup accurately here. A phase and a material are different concepts in ANSYS CFX.

Do you have an entry such MATERIAL: MethanolM anywhere? Based on the message you do not. You cannot compute the Molar Fraction of a mixture, but you can compute the Molar Fraction of a component in the mixture.

Q: which materials is your mixture made of?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   June 22, 2020, 15:10
Default
  #14
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
The liquid mixture is 0.9 water and 0.1 methanol in volume fractions. I do get vapour which is then condensed. Specific enthalpy was set at -727e3 J/kg at reference temperature 25 C.

Now with gas phase combustion materials, CH3OHvl, I got this error message in Fluid Specific Models;
"When using a homogeneous binary mixture one equilibrium constraint and one equilibrium fraction must be specified".
Question?
Which is which for CH3OH & CH3OHl? Equilibrium constraint/fraction?

Similar for water, H2O & H2Ol?

The other error message
"
Equilibrium phase change in one phase in a multiphase run is not supported by the solver for this combination of thermodynamic states.
"

Thanks
visitor is offline   Reply With Quote

Old   June 23, 2020, 04:19
Default
  #15
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Either gas (CH3OHv) or liquid (CH3OHl) is calculated. The other is the constraint: 1-calculated fraction. You pick one, I would pick the one from which you have the most.


The second message says you cannot have CH3OHvl combination simultaneaously with H2Ovl. It is one or the other. This limits the options you have when modeling the combined evaporation of water and methanol simultaneously.
If you really need it, you need to go back to your initial approach. Or combine it somehow. Contact ANSYS.
Gert-Jan is offline   Reply With Quote

Old   June 23, 2020, 05:07
Default
  #16
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Thanks Gert & Opaque. I can include you in the aknowledgement section of paper, when I get round to writing up. If you accept, please give me your email, thanks.

I am just interested in methanol, mole fraction at the condenser outlet. Not interested in water. I assume if I ignore this message, everything will be fine, will try it out.
"
Equilibrium phase change in one phase in a multiphase run is not supported by the solver for this combination of thermodynamic states.
"

Thanks
visitor is offline   Reply With Quote

Old   June 23, 2020, 06:40
Default
  #17
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
The equilibrium/constraint issue resolved. Though I am not too sure, if for example the liquid phase is constrained. This should show once validation against experimental data is done. The liquid phase, will change in fractions, as boiling happen.

Regarding below, I have suppressed message and run processing. Output for water and methanol volume fractions are similar. Looking for a solution for this, obviously I will need equilibrium phase change in the two phases, water and methanol.
"
Equilibrium phase change in one phase in a multiphase run is not supported by the solver for this combination of thermodynamic states.
"
Thanks.
visitor is offline   Reply With Quote

Old   June 24, 2020, 01:39
Default
  #18
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
After suppressing the warning message
"
Equilibrium phase change ....
"

I got a result, methanol is twice (about 2.4) the amount of water in volume fraction at the condenser outlet.

Now I am trying to measure the liquid vapour equilibrium, as a check. Liquid mole evaporation must equal vapour mole in equilibrium condition.

Measured mole concentration CH3OH gave 36.38 mol/m3, and CH3OH l gave 24540.6 mol/m3. It doesn't make sense.
visitor is offline   Reply With Quote

Old   June 24, 2020, 06:20
Default
  #19
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Thanks for all participants.

I think we have covered a few interesting points. It will be good if more database is entered. Unless I am wrong.
visitor is offline   Reply With Quote

Old   June 24, 2020, 06:59
Default
  #20
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Take 1 m3 of methanol with a density of 792 kg/m3 and a molar weight of 32 g/mol makes 24750 mol/m3. Looks correct to me.

However, I don't know:
- what your intention is;
- what question you exactly have;
- how you determined these numbers;
- in which phase they are present (if any);
- how your geometry looks like,

In other words: don't expect us to be the Wizard of CFX to help you without any background/knowlegde/pictures/etc.
Gert-Jan 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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 05:53
Can I achieve better convergence? sheaker CFX 12 September 19, 2019 15:36
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


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