Open Source vs CAPE OPEN

Category: CAPE-OPEN, open source, process design & development, process simulation
By: denholm on January 8, 2007 at 2:05 pm

I should state at the outset that I know little about the current state of CAPE OPEN and how well it is serving the process industries. (If someone wants to send me their comments on the current state of CAPE-OPEN, I will be happy to append it here).

CAPE-OPEN

My feeling is that the CAPE-OPEN initiative came about to address some key concerns of the “consumers” of process simulation software. These concerns were as follows:

  • What happens to my considerable investment of time and effort in developing models of my plants and processes if the vendor of my commercial simulation software goes out of business?
  • What happens if the vendor of my commercial simulation software decides to jack up the license fees higher than I can afford or think is reasonable?
  • What happens if the vendor does not choose to add features to the simulator that I feel are necessary?
  • What if the vendor does provide adequate levels of customer support and/or the simulator is too buggy.
  • What happens if my simulation vendor is merged with another vendor and my simulation software is no longer going to be supported or further developed?

All of these boil down to the issue of “vendor lock-in”. If you spend man-decades developing models of your plants and processes… And those models are important to your continuing operation and improvement of said plants and processes… And you are licensing your simulation software for some set period… Then your vendor has you over a barrel.

The vendor knows there is a large barrier to your switching to a competitor’s product… Your engineers would need to be retrained and every one of your models would have to be redeveloped from scratch for the competitor’s simulator. So the vendor’s sales department will tend to increase there prices at license renewal time to just short of the excruciating point that you will “bite the bullet” and switch.

My impression was that CAPE-OPEN was developed by the process industry consumers of simulation technology to try and reduce that barrier to switching simulators. The idea being to develop a standard way of representing a process, its chemical components, unit operations, and connectivity and requiring all the commercial simulator vendors to add interfaces to their software that would both generate and read process descriptions that obeyed the CAPE-OPEN format.

As an example of how this might work… Let’s say my company has built a model of a vinyl chloride plant using ASPEN PLUS but we are no longer happy with AspenTech… According to CAPE-OPEN, we should then be able to tell the ASPEN PLUS software to generate a complete, vendor-neutral, CAPE-OPEN representation of our VCM process.

We then license, say, PRO/II. According to CAPE-OPEN, we should be able to tell PRO/II to read the CAPE-OPEN representation of our VCM process. We then push a button,and “poof”, we run our first PRO/II simulation. Should only take a few minutes and now all we need to worry about is learning how to use the PRO/II interface.

Unfortunately, I doubt it is (or ever will be) that simple… For a variety of reasons:

  • The CAPE-OPEN interfaces are being developed by the simulation vendors. It really isn’t in their interest to have it work and their support of the initiative will be grudging at best.
  • You are getting out of the frying pan and into the fire. OK, say you can generate a vendor-neutral process description. Which vendor’s simulator are you going to read it in to? None of the simulation vendors are doing well financially; none seem to be well managed; none are serving their customers well.
  • Getting a model of any complexity to work in any simulator is challenging and there will always be subtle or not-so-subtle differences in how each simulator represents and converges a given flowsheet or piece of equipment.

[Again, if anyone wants to email me their experiences as a user of CAPE-OPEN I would appreciate it.]

OPEN SOURCE

I don’t think the term OPEN SOURCE had even been coined back when CAPE-OPEN began but, in hindsight, I think pushing for the development of one or more OPEN SOURCE simulators would have been of much greater service to the process industries. These could have been (can be) developed from scratch or created by converting an existing commercial/closed-source simulator to be open source. We have seen examples of the latter in recent years in Sun’s “open sourcing” of Solaris and Java.

Please note that Open Source does not simply mean providing or using software for free. There are costs associated with using Open Source software… It is simply a different business model and there are quite a number of successful companies that are making money while writing or supporting open source software (e.g. IBM, RedHat, Sun, Novell, etc.)… And thousands of companies and government agencies happily using Open Source software such as the various flavors of Linux, Apache, MySQL, etc.

I see some huge potential advantages for the process industries if one or more open source process simulators were to be developed:

  • Users would no longer at the mercy of the vendor’s salesmen and lawyers when it comes license renewal time… There would be no license in the old sense. What would be negotiated would be a service contract and if user was not been happy with the service they would be free to walk without losing access to the simulation software.
  • The user would no longer be subject to the vendor’s development priorities. A vendor may (quite legitimately) feel that some requested capability is not widely applicable to the general customer base and therefore not worth developing. But, with an open source arrangement, the user(s) who need the capability could develop it themselves or comissions a third-party to develop it.
  • And with open source simulators there would be a cottage industries of individuals and companies developing, implementing, and supporting the products.
  • The user community is always in a position to judge the code quality and architecture of the simulator because a wide community of programmers, engineers, and consultants can see the code for themselves.

As far as I know there are no general purpose open source process simulators available or under development at this point. (If anyone knows of any, please email me and I will amend this section). Virtual Materials (a physical properties software outfit up in Calgary) made an effort at this with a simulator called Sim42 but, unfortunately, they did not get any response from the commercial user community and the effort was suspended. There is successful, actively used and developed, open source process-related software such as Cantera (for simulating reacting systems) but they all seem to be limited in scope and focus and I am aware of no general purpose simulators.

Modeling the future: Synfuels from Aussie Coal

Australia is a large country (with a small population) which has lots of coal reserves, quite a lot of natural gas, and virtually no oil.

Back in the 1980’s after the first Middle East oil embargo and against the continuing backdrop of Middle East political unrest, the Australian Department of Primary Industries decided to study whether and how Australia’s abundant coal reserves might be used to produce synthetic liquid fuels (e.g. diesel, jet fuel, gasoline, etc.) in case imported oil became scarce or unavailable.

DPIE (never, we were told, to be pronounced “dopie” ;) ) commissioned Broken Hill Proprietary’s R&D arm to develop a pilot-scale coal liquefaction process and run experiments on the various coals available in Australia. My recollection is that they looked at coals from the Victoria, New South Wales, and Queensland.

For those unfamiliar with Australia, Broken Hill Proprietary (or BHP) is the 800 lb gorilla of the Australian economy. Not only is it a huge company but is also the primary player in terms of industrial R & D. In a US context, it is as if you combined IBM, GM, GE, and Microsoft into a single entity.

So BHP set up pilot plant facilities at their R&D campus in a suburb of Melbourne and began running tests on the various domestic coals. The actual liquefaction process was largely based on what had already been shown to work in the US and Europe.

I don’t remember the BHP process in any detail but, like all coal liquefaction processes, it involved processing pulverized coal with coal-derived liquids and hydrogen under high pressure and high temperature. This then produced two streams, an ash residue stream and a liquid roughly comparable to crude oil. It was this synthetic crude oil that was intended for additional processing to produce synthetic diesel, kerosene, and gasoline. A fraction would also be recycled back to liquefy additional coal.

Of course, the pilot plant process was intended to collect data on the process and the immediate synthetic crude product. It did not provide any directly useful information on the overall process economics.

So DPIE commissioned us (AspenTech) to develop a simulation of the complete process including coal pre-processing, coal hydroliquefaction (based on the BHP pilot-plant data), the synfuel refining section, and all the other support sections (e.g. hydrogen production).

The simulation was intended to represent an actual commercial-scale plant, its operating costs, and capital costs with a view to determining what the net cost of the final transport fuels would be in equivalent dollars per barrel. This would then give one idea of how high world oil prices would have to be for a coal-based synfuel plant to be competitive.

The other purpose of the modeling effort was to ensure that BHP was collecting enough consistent data to support such a study.

The process side simulation was challenging (this was a large model with a lot of distillation columns, reactors, and recycle streams) and the economic side required a lot of assumptions. For example, databases used to estimate capital equipment costs were US-based, no Australian capital equipment cost data was available.

It was a very interesting, challenging project and I enjoyed my stay in Australia (I was out there for a total of 6 months) and it was fun working with my colleagues at BHP.

The conclusion of the project was rather bemusing and, I suppose, shows how naive engineers are. One of the things we’d been asked for in the RFP was a comparison of the process economics for the different Aussie coals (Victoria, New South Wales, and Queensland). So our final report had a table comparing the results and we had text discussing this… Basically, the model showed that Queensland coal had the best economics and our conclusions said as much. But DPIE kept delaying approval of the report and, since our final payment was dependent on the report being accepted, we were getting a bit anxious. But no one was giving us any specifics on why the report was not being accepted.

Eventually, one of the BHP managers had to give us a little explanation of Australian politics… That Victoria was a much more populous state than Queensland and therefore had more MPs and more clout in the Federal bureaucracy than Queensland did… And that DPIE did not want to approve our report while it explicitly stated that the Queensland coal was a better choice than the Victoria coal. (Neither were they willing to tell us that directly.. ;) )

So we changed the text of the conclusions… The comparison tables still showed that the Queensland coal produced less expensive synthetic fuels but we didn’t explicitly mention that in the final conclusion. And… The revised report was accepted.

Now that world oil prices are up around $60 a barrel, I wonder if anyone in Australia is revisiting this area to see what the current synfuel economics look like.

Next Page »