Search found 14 matches

by cocofan
17 July 2025, 17:27
Forum: Process modelling and simulation
Topic: cofestand does not return handle to command line
Replies: 5
Views: 47606

Re: cofestand does not return handle to command line

Thanks for your reply. I checked the task manager. The issue is that upon running cofestand in cmd (COFEstand C:\Users\Guest1\Desktop\compressors.fsd), both cofe.exe and cofestand.exe start to appear in the task manager and neither goes away after the simulation run is competed. The prompt comes bac...
by cocofan
16 July 2025, 19:12
Forum: Process modelling and simulation
Topic: cofestand does not return handle to command line
Replies: 5
Views: 47606

Re: cofestand does not return handle to command line

Thank you Jasper for your reply. I guess I didn't explain it well. I mean when I run cofestand on a coco file in cmd, the command prompt (>) is not returned until I press Ctrl+C. This causes issues when I want to run cofestand in a for loop inside MATLAB because each time I'd need to manually close ...
by cocofan
05 July 2025, 06:34
Forum: Process modelling and simulation
Topic: cofestand does not return handle to command line
Replies: 5
Views: 47606

cofestand does not return handle to command line

Sorry if this section is not the most relevant to my question. I'm using cofestand to run coco files from the command line or Octave. However, after running and saving the file successfully by cofestand, it does not return the handle to the host application (e.g., Octave or cmd). Consequently, the n...
by cocofan
02 June 2020, 13:28
Forum: ChemSep Unit Operation
Topic: Expose internal column design parameters
Replies: 2
Views: 30092

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: 40443

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: 40443

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: 40443

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: 73890

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: 73890

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...

Go to advanced search