The perils of hot caustic

Category: engineering anecdotes, process simulation, simulation hints
By: denholm on January 31, 2007 at 10:07 am

Ammonia plants use a combination of steam reforming and shift reactors to convert air, steam, and a hydrocarbon feedstock to a stream containing hydrogen, nitrogen, and CO2. The CO2 needs to be removed before the H2/N2 stream is sent to the synthesis loop. The CO2 removal is accomplished using a caustic scrubbing system.

I was developing an overall ammonia plant model for a customer in Japan. About mid-way through the project my Japanese colleagues came to the US for a review meeting in which we tried to match the model results against plant operational data (temperatures, pressures, flow meter readings, chemical analyses).

Everything was matching up rather well… Except for the chemical analysis of the CO2 scrubber underflow. The plant’s analyses were consistently much lower in dissolved CO2 than what my model was calculating. We went round and round trying to figure out what might be wrong with the model physical properties, the control settings for the absorption and stripping columns, etc. We just couldn’t see anything wrong with the model. We could force it to match the plant’s underflow analysis but we then had much too much CO2 getting into the synthesis loop. So my colleagues called the plant back in Japan and asked if there was any way their analysis could be incorrect. They were told (rather vehemently) that there was no way that the analyses could be in error… That plant personnel had taken the underflow sample every shift for nearly twenty years and that the analysis was always the same.

That’s where the light began to dawn. My Japanese colleagues and I had naively assumed that the analysis was the output from some inline automatic analyzer. When I was told that plant personnel “took the sample” I began to suspect that this was a case of sampling error. The underflow from the Benfield unit would be rather hot and at some pressure. I asked my colleagues to call back and ask how the sample was taken and whether it was kept at the same pressure until it was analyzed.

While they checked back with the plant, I reran the model including an underflow sample stream that I flashed to atmospheric pressure. And the model’s predicted sample composition matched the plant analysis perfectly. And then my colleagues got off the phone and confirmed that the sample was taken by opening a valve and catching a stream of hot caustic in a bucket. So the problem was solved. When the pressurized caustic solution was dropped to atmospheric pressure a large part of the CO2 flashed off and that totally changed the sample composition. And the analysis was always the same because it was always flashed to the same state.

We also discussed the point that this sampling exercise was both dangerous to the operator and totally pointless. I later found out that the plant discontinued the practice as soon as my colleagues got back to Japan.

Model validation is a critical step that must be performed before a model can be safely used to study or improve a process. But validation is very much an art. Most large scale process models assume steady-state operation but no large process is every really at steady-state so trying to decide when you are “close enough” is a challenge. In addition, the operational data that you must validate against always has errors. In my experience over modeling dozens of plants, it works out about 50/50. In other words, if you have a significant discrepancy between the model and the plant data about half the time you’ve done something wrong in the model and about half the time the plant data is wrong. That ratio obviously depends on how careful you are in your initial model development and how well run the plant is.

Open Source vs CAPE OPEN

Category: process simulation, process design & development, open source, CAPE-OPEN
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 not 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.

« Previous PageNext Page »