Search found 20 matches

by greTol
07 August 2018, 12:22
Forum: DWSIM
Topic: SetOverallProp fails on material object
Replies: 3
Views: 36987

Re: SetOverallProp fails on material object

DWSIM 5.2 Update 10: Same error message as before (see attached screenshot).
[edit: screenshot updated]
by greTol
30 November 2017, 16:22
Forum: DWSIM
Topic: SetOverallProp fails on material object
Replies: 3
Views: 36987

SetOverallProp fails on material object

Hi, I try to solve my unit operation in DWSIM and get an error message when calling 'SetOverallProp' on the material object. My problem is that the particular code in the unit operation is generated by AmsterCHEM's COM CAPE-OPEN Wizard (C++) and the socket is part of DWSIM (vb). The same unit operat...
by greTol
30 November 2017, 15:52
Forum: DWSIM
Topic: Calculate following Validate
Replies: 2
Views: 19190

Re: Calculate following Validate

This discussion continued in the DWSIM forum (https://sourceforge.net/p/dwsim/discussion/844528/thread/3682f2f1/). Here are my conclusions: In the DWSIM socket we have/had 1) Validate() 2) RestorePorts() -> this invalidates the unit operation, because the "portConnectionChanged" event is f...
by greTol
20 October 2017, 13:22
Forum: DWSIM
Topic: Calculate following Validate
Replies: 2
Views: 19190

Calculate following Validate

Hi Daniel, I have a request regarding calling 'validate' and 'calculate' of CAPE-OPEN unit operations in DWSIM. My ScaledMixerSplitter CAPE-OPEN unit operation already runs in COFE 3.2 and Aspen Plus v9, but unfortunately not yet in DWSIM. The problem seems to be that the unit operation is somehow r...
by greTol
12 April 2017, 14:58
Forum: Scilab Unit Operation (AmsterCHEM)
Topic: Scilab UnitOp calc thermo without feed
Replies: 3
Views: 18572

Scilab UnitOp calc thermo without feed

Hi Jasper, I added a scilab unit operation to a flowsheet. This unit only has one port: An output. When I call "getSinglePhaseProperty" to get the activity coefficient e1_greek_gamma_i = getSinglePhaseProperty("activityCoefficient","liquid",e1_T,e1_p,e1_x_i); I get the ...
by greTol
02 March 2017, 17:01
Forum: DWSIM
Topic: Adding CO Unit Operation cannot be canceled
Replies: 1
Views: 12176

Adding CO Unit Operation cannot be canceled

DWSIM 4.2 (Update 3) When I drag&drop a "CAPE-OPEN Unit Operation" from the "Custom Blocks" frame into the flowsheet, the "Add CAPE-OPEN Unit Operation" dialog pops up, giving the options to 1) select a detected CO-UO and press OK or 2) press Cancel Problem: When I ...
by greTol
15 July 2015, 12:07
Forum: Unit Operations
Topic: COM CAPE-OPEN Wizard GetOverallPropery()
Replies: 5
Views: 29323

Re: COM CAPE-OPEN Wizard GetOverallPropery()

Great, now it works! My main problem was the missing "CheckArray" call. Without that, the count was not initialized and GetCount() always returned 0. Here comes the corrected code snippet for the interested reader: CBStrConst bstrPressure(L"pressure"); wstring error; COMSmartPtr<...
by greTol
14 July 2015, 16:14
Forum: Unit Operations
Topic: COM CAPE-OPEN Wizard GetOverallPropery()
Replies: 5
Views: 29323

Re: COM CAPE-OPEN Wizard GetOverallPropery()

I corrected the special property argument in my code. So far, I thought temperature, flow and pressure are quite common properties. That's why I set that special parameter to 'false' ;-) The other reason: I use COCO/COFE for testing and expected it to use "Material11". There the 'special p...
by greTol
14 July 2015, 15:27
Forum: Unit Operations
Topic: COM CAPE-OPEN Wizard GetOverallPropery()
Replies: 5
Views: 29323

COM CAPE-OPEN Wizard GetOverallPropery()

Hello again, I used the COM CAPE-OPEN Wizard 2.0 to generate a unit operation framework. Classes for parameters, ports, material etc. are therefore automatically generated. 1. There is a typo in the "material" classes: It reads "Propery" instead of "Property", e.g. &quo...
by greTol
10 July 2015, 14:38
Forum: Unit Operations
Topic: C++ mixer splitter implementation without ATL
Replies: 5
Views: 21048

Re: C++ mixer splitter implementation without ATL

Some basic question regarding the COMSmartPtr and the access of collection elements: //This is given (created by the COM CO Wizard 2.0) Collection<Parameter,true> parameterCollection; //Now I want to access elements of this collection: //This gives no error, but I need a RealParameter COMSmartPtr<Pa...

Go to advanced search