使用Ocean API访问油藏工程数据的问题



我正在构建一个插件,需要使用海洋API访问油藏工程领域数据。我可以使用Simulation root访问开发策略,但无法获得开发策略的类型。无论是历史策略还是预测策略。任何方式都可以知道这些信息。

遗憾的是,没有Ocean API可以访问开发策略的类型。我将把你的用例添加到我们的需求系统中。

谨致问候,Carole

在Petrel RE API中面临多种限制,并且必须通过EclipseKeywordEditor才能实现目标,我不得不说这是一个容易的目标。DevelopmentStrategy.StrategyType房地产可以提供帮助:

以下代码适用于我的Petrel 2012.1:

SimulationRoot sroot = SimulationRoot.Get(PetrelProject.PrimaryProject);
DevelopmentStrategyCollection dsCol = DevelopmentStrategyCollection.NullObject;
if (sroot.HasDevelopmentStrategyCollection)
{
dsCol = sroot.DevelopmentStrategyCollection;
foreach (DevelopmentStrategy strat in dsCol.DevelopmentStrategies)
{
PetrelLogger.InfoOutputWindow(string.Format("{0} is a {1} strat",strat.Name,strat.StrategyType));
}
}

DevGuide没有列出它,IntelliSense没有显示它,但你可以打开对象浏览器,看到它实际上在那里(事实上是灰色的)。

最新更新