petrel

How to run a simulation case using CaseRunner function?

好久不见. 提交于 2019-12-25 18:13:34
问题 I'm currently working on a Petrel plug-in in which I need to run a simulation case (through a "For Loop"), I create my case runner, export it and the run it...but after finishing the simulation and closing the console, I check the CaseRunner.IsRunning property and it shows true ! This cause that the results have not been loaded to the petrel system. I tried to load the results manually after finishing the Run of my case (using caserunner and also using a batch file in my code) and I can't see

How to generate a surface from other surfaces in Petrel

…衆ロ難τιáo~ 提交于 2019-12-24 12:43:28
问题 I have a task to create a new surface in Petrel. I am supposed to generate the average of two surfaces and create a new surface from it (like a mid surface) using Ocean for Petrel software. Is this possible? and where do i start from? I would also appreciate links to resources that would be helpful to me. 回答1: Seslie, You can create surface from Collection be calling method CreateRegularHeightFieldSurface(string name, SpatialLatticeInfo lattice); To create property as

Is it possible to run Petrel in batch mode from a windows service?

假装没事ソ 提交于 2019-12-24 12:14:56
问题 Currently I have a plugin for Petrel that is used in batch mode. So Petrel is launched from the command line, with the class/method to run specified via command line parameters. All fairly straight forward. However, I'd like this operation to be performed from a Windows service. Simple experimentation suggests this won't work due to Petrel needing to open a window and thus needing to be run from a logged in user account. Is there a way around this, or is it impossible to run Petrel from a

How can I update the Name of a Petrel Window?

情到浓时终转凉″ 提交于 2019-12-20 07:53:10
问题 I am trying to update the Name/Display Name of a Petrel Window after the Save event. I implemented my own NameInfo class that inherits from the NameInfo abstract class. public class MyNameInfo : NameInfo { private string name = string.Empty; private string displayName = string.Empty; private string typeName = string.Empty; public override bool CanChangeName { get { return true; } //I return true so I can change the name at runtime. } //Rest of the class implementation } My DisplayName, Name

Show a specific process dialog in petrel?

断了今生、忘了曾经 提交于 2019-12-12 02:04:54
问题 I want to show a specified dialog under simulation category like "Developement Strategy" and do something after its "OK" click. Is there a way to show a native petrel process window? I can see some class and interfaces in " Slb.Ocean.Petrel.UI " like DialogBuilder , DialogPage , IDialogPageFactory , IDialogPage ...but I can't use them, even I don't know if they supply my required objects. 回答1: I think you want to create a Workstep (Slb.Ocean.Petrel.Workflow). The Ocean wizard lets offers a

Standalone application with Petrel and Ocean

霸气de小男生 提交于 2019-12-11 13:38:20
问题 So I am a n00b with the Petrel platform and Ocean SDK. I want to create a standalone application (not a plugin!) that consumes the Ocean SDK to interact with the Petrel projects. One way, I could think of was to create a plug-in that interacts with the app via IPC but is there any other approach that has absolutely no plugin in it. Thanks 回答1: Great to see that you are interested in Petrel and Ocean. Developing standalone applications is not permitted under the Ocean Software Development

Deployment during Development can not find a dll and its references

孤街醉人 提交于 2019-12-11 13:12:17
问题 I created a basic plugin and it worked fine when I deploy it for development with: del "$(ProjectDir)\plugin.xml" "%Ocean2012Home%\PluginPackager.exe" /g "$(TargetPath)" "$(ProjectDir)\plugin.xml" "%Ocean2012Home%\PluginPackager.exe" /mh "$(ProjectDir)\plugin.xml" "%OCEAN2012HOME%\petrel.exe" "$(TargetDir)" As the Ocean Dev Guide indicates. When I try to do something more complex it tells me it can not find one of the dlls and its references. The dll is present where my project is being built

Copy-Paste Items in Petrel using Ocean…?

我怕爱的太早我们不能终老 提交于 2019-12-11 08:09:56
问题 In Petrel, is it possible to COPY-PASTE items in input tree using ocean? I need to have a copy of a specific well or strategy somewhere; how can I do this? For example if I want to have a copy of this well (myWell): Tubing = e.Data.GetData(typeof(TubingString)) as TubingString; Borehole myWell=Tubing.Borehole; into my boreholecollection (Borhol): WellRoot Welrot = Slb.Ocean.Petrel.DomainObject.Well.WellRoot.Get(PetrelProject.PrimaryProject); BoreholeCollection Borhol = Welrot

How can I update the Name of a Petrel Window?

女生的网名这么多〃 提交于 2019-12-02 08:13:31
I am trying to update the Name/Display Name of a Petrel Window after the Save event. I implemented my own NameInfo class that inherits from the NameInfo abstract class. public class MyNameInfo : NameInfo { private string name = string.Empty; private string displayName = string.Empty; private string typeName = string.Empty; public override bool CanChangeName { get { return true; } //I return true so I can change the name at runtime. } //Rest of the class implementation } My DisplayName, Name and TypeName has to be the same, so when the name is changed my code is: public override string Name {