View Issue Details

IDProjectCategoryView StatusLast Update
0003480OpenFOAMBugpublic2020-04-18 14:21
ReporterzhangxusjtuAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Versiondev 
Fixed in Version 
Summary0003480: Error in a fomula of the lagrangian library at /PhaseChangeModel/LiquidEvaporation/LiquidEvaporation.C
DescriptionAt line 197 to calculate the vapor concentration at surface: const scalar Cs = pSat/(RR*Ts);. Here, `Cs` is supposed to be the surface vapor concentration of component i.

According to Raoult's law, the partial pressure of each component of an ideal mixture of liquids is equal to the vapour pressure of the pure component multiplied by its mole fraction in the mixture. The partial vapor pressure of component i can be calculated with `ps = X[lid]*pSat`, and the corresponding vapor concentration should be `Cs = X[lid] * pSat/(RR*Ts)`.
TagsNo tags attached.

Activities

will

2020-04-16 11:59

manager   ~0011292

Last edited: 2020-04-16 11:59

View 2 revisions

Just looking at the code, I agree with you. However, the code is not straightforward, and I can't be 100% sure. I need some evidence that the current implementation is wrong and that your proposal is correct. This is a commonly used model; we can't just change it on a hunch. Do you have any evidence?

It seems to me that you could prove the correct-ness of this model in the presence of multiple species by creating two cases that simulate the evaporation of a single drop (potentially in a single cell). The drop in the first case would be 100% water. The second would be 50% water and 50% some other species with identical properties to water. If the results were the same, then the handling of Raoult's law would be proven consistent. Can you construct such a test?

zhangxusjtu

2020-04-16 12:51

reporter   ~0011294

I agree with you, and the proposed test case is convincing. I will try it later.

Issue History

Date Modified Username Field Change
2020-04-14 13:14 zhangxusjtu New Issue
2020-04-16 11:59 will Note Added: 0011292
2020-04-16 11:59 will Note Edited: 0011292 View Revisions
2020-04-16 12:51 zhangxusjtu Note Added: 0011294