Search found 11 matches

by cocofan
02 June 2020, 13:28
Forum: ChemSep Unit Operation
Topic: Expose internal column design parameters
Replies: 2
Views: 13664

Expose internal column design parameters

Hi, Is there any way to expose the chem sep parameters (e.g., number of trays, feed tray, etc) as user parameters so they can be accessed or manipulated conveniently from outside? Currently, only a handful of input parameters are exposed (figure below), which seem to be more about the solver, rather...
by cocofan
11 May 2020, 19:58
Forum: Scilab Unit Operation (AmsterCHEM)
Topic: Vector parameters in SciLab Unit Operation?
Replies: 5
Views: 17503

Re: Vector parameters in SciLab Unit Operation?

Thanks Jasper. Your solution worked and it is a better approach than defining dozens of scalar parameters. Also, you don't have to worry about the right order of components as they are called by names, rather than index. I just had to change size(compNames,2) to size(compNames,1) as it seems the com...
by cocofan
10 May 2020, 15:54
Forum: Scilab Unit Operation (AmsterCHEM)
Topic: Vector parameters in SciLab Unit Operation?
Replies: 5
Views: 17503

Re: Vector parameters in SciLab Unit Operation?

Thanks for your response. The few membrane modules I have seen in COCO so far have permeance hard-coded, rather than exposing it as an input parameter. The issue is if I want to make my membrane module generic and usable for any set of components (not known a priori), then I need to leave it to the ...
by cocofan
09 May 2020, 18:32
Forum: Scilab Unit Operation (AmsterCHEM)
Topic: Vector parameters in SciLab Unit Operation?
Replies: 5
Views: 17503

Vector parameters in SciLab Unit Operation?

My question is regarding the input/output parameters in COCO custom models, e.g., SciLab or MATLAB CAPE-OPEN Unit Operations. Is there any way to define a parameter as a vector with its size being the number of components? For example, in a membrane module you may need to ask the user to enter perme...
by cocofan
08 May 2020, 20:45
Forum: COCO (AmsterCHEM)
Topic: Connecting to COCO from MATLAB
Replies: 18
Views: 49525

Re: Connecting to COCO from MATLAB

Hi Jasper, thanks a lot for posting your solution & sorry for the delayed response! I was going to update the post after trying out your workaround, but unfortunately haven't had a chance to do so yet. I'll let you know as soon as I can test it.
by cocofan
13 April 2020, 14:52
Forum: COCO (AmsterCHEM)
Topic: Connecting to COCO from MATLAB
Replies: 18
Views: 49525

Re: Connecting to COCO from MATLAB

Sure. I'll post the results with Python once I get it to work. I tried calling cofestand from the command prompt (to avoid any overhead from Octave) and again it took the same amount of time. Here's the command line output in case it helps diagnose the issue (it's doing a bunch of stuff before start...
by cocofan
12 April 2020, 17:32
Forum: COCO (AmsterCHEM)
Topic: Connecting to COCO from MATLAB
Replies: 18
Views: 49525

Re: Connecting to COCO from MATLAB

Thanks @jasper for your suggestion regarding Python. It sounds pretty convenient and I'll look into it. As for Cofestand, the clock time is 7-8 s on average for each call (not just the first one), although the cputime shows only ~2 s. I disabled the antivirus and didn't get any noticeable changes. I...
by cocofan
12 April 2020, 05:40
Forum: COCO (AmsterCHEM)
Topic: Connecting to COCO from MATLAB
Replies: 18
Views: 49525

Re: Connecting to COCO from MATLAB

Thanks a lot @jasper for your prompt reply and writing that piece of Python code for me. You were right about the speed bottleneck, which is Cofestand, rather than the zip/unzip process (the cpu time Cofestand takes for this particular example is an order of magnitude higher than that for zipping or...
by cocofan
10 April 2020, 09:52
Forum: COCO (AmsterCHEM)
Topic: Connecting to COCO from MATLAB
Replies: 18
Views: 49525

Re: Connecting to COCO from MATLAB

Thanks @jasper and @samvithvr for sharing this. So, as I understand, it is not even possible to pull (get) information from COCO directly into MATLAB using ActiveX(?). Also, I followed the xml approach proposed by @jasper and built a sample case where Octave (or MATLAB) is used to optimize a simple ...

Go to advanced search