代码拉取完成,页面将自动刷新
using System;
using System.Collections.Generic;
using System.Text;
namespace GeoFly
{
/// <summary>
/// Pristley and Taylor method to calculate PET
/// </summary>
public class PETInPristley :PETInPM
{
/// <summary>
/// 构造函数
/// </summary>
/// <param name="tav"></param>
/// <param name="elev"></param>
/// <param name="yr"></param>
/// <param name="dn"></param>
/// <param name="lat">默认为lat=33</param>
public PETInPristley(double tav, double elev, int yr, int dn, double lat)
: base(tav, elev, yr, dn, lat)
{
dTavk = dTav + 273.15;
pwatvap = new WaterVapor(tav,elev);
}
public double PETByPristley(double alfa,double G)
{
double dret=0;
double dNetRad = NetRadiation(); //net radiation
double dlta = pwatvap.TmpVapCurveSlp(); //slope of the saturation vapor pressure-temperature curve
double gma = pwatvap.PsychroConst(); //psychrometric constant
double lmt = pwatvap.LatHeatVapor(); //latent heat of vaporization
dret = alfa*dlta*(dNetRad-G)/(dlta+gma);
return dret;
}
/// <summary>
/// 同上,只是默认G=0
/// </summary>
/// <param name="alfa"></param>
/// <returns></returns>
public double PETByPristley(double alfa)
{
return this.PETByPristley(alfa,0);
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。