|
#region 定义数组并存储数据
//定义数组并存储数据
double[] Pwf=new double [50];//用于存储井底流压数据
double[] Q = new double[50]; //用于存储对应井底流压下的产能
double Dbl_temp = Dbl_BoundaryPressure_MPa / 50;
for (int Dbl_i=0; Dbl_i< Pwf.Length; Dbl_i++)
{
Pwf [Dbl_i]= Dbl_i*Dbl_temp;//数组Pwf赋值
Dbl_BottomHolePressure_MPa=Pwf [Dbl_i];//数组Q赋值
Q[Dbl_i] = 底水驱油藏水平井三位稳态解产能.HorizontalWellsInBottomWater(this.Dbl_BoundaryPressure_MPa,
this.Dbl_BottomHolePressure_MPa, this.Dbl_zw_m, this.Dbl_WellboreRadius_m,
this.Dbl_HorizontalWellLength_m,this.Dbl_ReservoirThickness_m,
this.Dbl_TheViscosityOfCrudeOil_mPas, this.Dbl_HorizontalPermeability_mD,
this.Dbl_VerticalPermeability_mD, this.Dbl_CrudeOilVolumeFacto);
}
#endregion
}
private void button2_Click(object sender, EventArgs e)
{
#region 生成Q-Pwf折线图
//折线图坐标轴设定
List<double> xList = new List<double>();
List<double> yList = new List<double>();
for (int Dbl_i=0; Dbl_i< 50; Dbl_i++)
{
double NewPwf = Pwf [Dbl_i];//生成参数井底流压的值
xList.Add(NewPwf);
double NewQ=Q[Dbl_i];
yList.Add(NewQ);
}
chart1.Series[0].Points.Clear();
for (int Int_j = 0; Int_j < xList.Count - 1; Int_j ++)
{
chart1.Series[0].Points.AddXY(xList[Int_j], yList[Int_j]);
}
#endregion
}
|
|