[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
CAPE-OPEN • View topic - Vector parameters in SciLab Unit Operation?

Vector parameters in SciLab Unit Operation?

Moderator: jasper

Vector parameters in SciLab Unit Operation?

Postby cocofan » 09 May 2020, 18:32

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 permeance, which is defined per component and you don't know in advance how many components exist (so you don't know how many scalar parameters you should define).
As an alternative, is it possible to define such parameters as a new property in the thermo package (so it is automatically populated for every component)?
Any solution or workaround to this issue would be appreciated!
cocofan
 
Posts: 11
Joined: 24 March 2020, 02:36

Re: Vector parameters in SciLab Unit Operation?

Postby jasper » 10 May 2020, 08:49

The parameters that are exposed by a property package, that is up to the property package. Apart from that parameter support for property packages is virtually non-existent.

If you want to automatically populate all unit operations of your particular type, I suppose you can have machinery that is specific to your unit operation (perhaps a centrally located data file with data for all compounds?).

The Scilab CAPE-OPEN unit operation currently does not allow for exposing array parameters. Can you illustrate how you would use such a parameter? Is it just so that the user can change it?
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Vector parameters in SciLab Unit Operation?

Postby cocofan » 10 May 2020, 15:54

Attachments
input_param.JPG
input_param.JPG (29.64 KiB) Viewed 10070 times
cocofan
 
Posts: 11
Joined: 24 March 2020, 02:36

Re: Vector parameters in SciLab Unit Operation?

Postby jasper » 11 May 2020, 07:52

User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Vector parameters in SciLab Unit Operation?

Postby cocofan » 11 May 2020, 19:58

cocofan
 
Posts: 11
Joined: 24 March 2020, 02:36

Re: Vector parameters in SciLab Unit Operation?

Postby jasper » 11 May 2020, 20:49

Glad to hear it works.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to Scilab Unit Operation (AmsterCHEM)

Who is online

Users browsing this forum: No registered users and 0 guests

cron