I am trying to establish a connection between R and Aspen Plus (a chemical process simulator). I have succeeded in making the connection between MATLAB and Aspen Plus ( -aspen-plus-matlab-link), but not with R.
I have asked this same question to the Aspen Tech Suport Center. Here is there answer: The Aspen Plus Windows user interface is an ActiveX Automation Server. The ActiveX technology (also called OLE Automation) enables an external Windows application to interact with Aspen Plus through a programming interface using a language such as Microsoft's Visual Basic. The server exposes objects through the COM object model. If the R programming language can interact with the COM interface, then it should work. Any ideas?
Thank you Mara. I'm using the RDCOMClient package, but still without much success. In matlab I would use the actxserver() function (to create a COM server) and the invoke() function (to invoke a method in the COM object). I'm just not being able to do the same in R;
I have successfully used this technique to open an Excel file, write to a cell which itself triggers a proprietary API available only as an Excel add-in, get the results in Excel, write those to a file and finally read this file in R.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.
I need to pick a few base methods for different components in Aspen Plus, and I'm having a hard time finding information on it. It seems it should be possible in HYSYS. Is it not possible in Aspen Plus? I would need to use NRTL for a couple polar molecules and Wilson for oil compounds. Until now I've only needed to pick a single option for the base method when starting a new document.
My usual approach (for mixtures including polar / non polar components) with another software (Prode Properties) is to select a EOS with complex mixing rules, for example Peng Robinson - NRTL with Huron Vidal mixing rules (just to mention a possible combination).
Well, I'm might very well be saying something that isn't possible. I'm doing a project and getting little help. It seems the supervisor wants me to find the correct base method(/s?), and since I'm using both polar and non-polar components, a certain base method doesn't work for all. NRTL would work well for the polar fluids, but Wilson (from what I've read) would work well for the oil. But Aspen only let's me pick one base method. I interpret the supervisors instructions as if I would need to use both, to account for both behaviors, but it's not possible (?). I'm a little confused by all this. Can these Huran Vidal mixing rules be used to "combine" NRTL and Wilson?
complex mixing rules allow to combine the concept of activity (see NRTL, Wilson, UNIQUAC etc.) with an equation of state such as Soave Redlich Kwong , Peng Robinson etc.
Simulators include different mixing rules (for example, my copy of Prode Properties has Huron Vidal, MHV2, LCVM plus several others and Aspen should include similar options) .
Depending from application, you can select a complex mixing rule as Huron Vidal to obtain good results for both polar (for example water-methanol etc.) components and non-polar components such as hydrocarbons.
An advantage of this approach is that the procedure applies the classical quadratic rule for all non polar components thus obtaining the same results of base EOS.
I would suggest that you discuss this topic with your supervisor since there are also other models as, for example, CPA (with association) , SAFT (with association) etc. which could be (or not) suitable for your application....
Its really not clear what your are trying to do. Are these compounds on the same stream? What are the polar compounds and how are they mixing with the 'oil' compounds (real or pseudo?). Is this an oil stream with some polar compounds in it like H2S COS H2O etc?
For the most part the polar compound is methanol, and from what I've read NRTL or UNIQUAC would simulate that best. And regarding the non-polar, for the most part it's a certain fatty acid methyl ester (as biodiesel), which Wilson would simulate well. Other minor compounds would be water, triglyceride and glycerol. They would be in the same stream yes. And I would be seeing how it would be affected to run that stream through certain equipment. My problem is that I'm not sure if the base method I was choosing was good enough for all compounds, and I though you could pick what base method would work for each compound, but after having read some literature I think I was quite wrong. I now believe I can only choose one for this task, and possibly use some complex mixing rule with it, but I think I'm not equipped to handle that at this stage. The best I could do is pick the "best" method, and I believe NRTL is it, since the polar interactions outweigh the non-polar. Do you think I'm on the right path?
Guess it depends what you are trying to to do. I'm assuming this is all one phase, or is it two phase or do you need to check if its two phase? Do you need to flash it? Seems like the main thing to worry about is the methanol and ester and NRTL seems a logical choice. Tuning anything to get the trace compounds correct will require real data to tune whatever method you pick and maybe not worth the effort if they really are trace compounds. Are any of these azeotropic? If not, then NRTL and SRK should be reasonable. If you have real data you can tune the NRTL or SRK parameters to match the data.
With a large tire width, the NCM Aspen + is hugely capable. Developed in Iceland for riding on snow and ice the Fat bikes large tires surface area make it great for soft terrain including sand and gravel. This E-bike is designed with a tough aluminium frame, and a strong rigid handlebar and saddle for improved ergonomics and performance. The high top tube, makes the bike sturdy and strong allowing the power you put down to be effectively transferred to the road.
Our on-line store is open 24/7 and we ship Monday through Friday, excluding some holidays. Orders received for products without shipping restrictions on its product page will ship the same business day when received before 12:00 p.m. PST. Orders in high demand will have an estimated production time listed on its product page and will ship according to the date listed.
I have had my Aspen + for a few months. Great bike made for tall people 180cm plus. No dealer nearby so got direct, Country NSW, delivery ok but tracking lacking but these are unusual times. Assembly was easy only a couple of adjustments. Great performance and battery very good have had over 100km on a charge. Had an issue with the display but Leon were very helpful and a replacement in a couple of days. I have always ranked a company by their response to a problem. Thumbs up here. Recommend great product in this price range.
Bought an Aspen Plus Fat Tyre Bike and does it get the looks. Added the off road kit, man you have to be quick to pick one of these babies up, and I promise (well sort of), that I will only use it off road. Great service and advice from Shane thank you.
For any season ride. Only small drawback, a bit heavy, but I knew it before buying the bike. A buy that everything works perfectly, the battery charges quickly and has a good autonomy. Very solid and very well built. I really love my bike. I received it on time,
One of the best Ebikes out there. I already owned a regular Aspen but I decided to get the Aspen Plus as well. If you are thinking on investing on a Ebike go for it. This bike does not disappoint. And it makes you want to ride more and longer distances.
c80f0f1006