Methane Solubility

버전 (10.6 KB) 작성자: William Waite
Calculates the solubility of methane in water.
다운로드 수: 873
업데이트 날짜: 2012/6/11

라이선스 보기

Given pressure (in MPa), Temperature (in Kelvin) and Salinity (in either mol/kg or parts per thousand), this function uses the formulae in Tischenko et al (2005) and Duan et al (1992, 2006) to calculate the solubility of methane inside and outside the methane hydrate stability field.
This function will compute solubilities either over a range of pressures, temperatures or salinities, or for discrete pressure, temperature, salinity points. Two demonstration can be seen using the following code:

To calculate solubility over a range of conditions:

P = [5:.5:15]';
T = [273:.5:293]';
S = [0:10:30];
SalinityUnits = 'ppt';
Datatype = 'range';
NetCH4Solubility = MethaneSolubility(P,T,S,SalinityUnits,Datatype);
xlabel('Temperature (K)')
ylabel('Pressure (MPa)')
zlabel('Methane Solubility (moles CH4 per kg water)')

To calculate solubility for discrete data points:

P = [5:.5:15]';
T = [273:1:293]';
S = [0:1:20]';
SalinityUnits = 'ppt';
Datatype = 'points';
NetCH4Solubility = MethaneSolubility(P,T,S,SalinityUnits,Datatype);

인용 양식

William Waite (2024). Methane Solubility (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
Help CenterMATLAB Answers에서 Oceanography and Hydrology에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보

This version updates the U.S. Geological Survey disclaimer.

This update is only to ensure the acknowledgments written in the script are also included on the Mathworks download page. "Methane Solubility" gratefully acknowledges the XSteam script by Magnus Holmgren and the Progressbar script by Steve Hoelzer.