Graph Calculator在后处理方面的应用想必已经为很多人所熟知了,详细些的内容可以阅读文末的“其它参考链接”。此处提供个小案例,供大家消遣: # findthe amount of oil accumulated by each well during certain time interval x =wopr * (time >= 215) * (time <= 550) w1 =cum_sum_t(x) export(w1, name = 'PeriodProd', units = "liquid_surface_volume")
【应用案例-AHM】
Graph Calculator中的自定义曲线可以用于智能历史拟合的目标函数。
比如在注水模型中,当我们有现场实际的生产数据-产油量和注水量时,可以将相渗端点、特定区域的渗透率等作为拟合变量,将采收率(Oil Recovery Factor)的误差和注水倍数(WaterInjection/PV)的误差之和作为优化目标: #Addingthe squared deviation to the objective function value objective+= (float (kin[min_t]) - ref_kin) ** 2 + (float (prok[min_t]) - ref_prok) ** 2 (完整代码较为复杂,暂不提供,此处仅提供思路。)