Example written in C#

Example written in C#

Postby JulieCouturier » 24 February 2023, 16:22

Hello,

I would like to know if the example ThermoClientPMETest project available in the repository has a similar example written in C# ?

Best regards,
JulieCouturier
 
Posts: 4
Joined: 25 November 2020, 16:32

Re: Example written in C#

Postby jasper » 25 February 2023, 13:13

At this point, 2 out 3 phases of COBIA have been published:

https://www.colan.org/experiences-projects/cape-open-binary-interop-architecture-cobia/

Bindings to different languages, including .NET, are part of phase III - so currently all COBIA related implementation is C++ only. It will come - but is not yet there.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain

Re: Example written in C#

Postby jasper » 25 February 2023, 13:16

If you do want a C# CAPE-OPEN client, you could use the existing COM binding of course. An example (not command line driven) for a thermo property package in C# is here

https://www.colan.org/software-tools/code-examples/ideal-thermodynamic-example/

which shows how to do the C#/COM binding, but it does not show how to create the Material Object, which is needed in case you want to access 3rd party thermodynamics. Here are somewhat dated unit operation examples in C#

https://colan.repositoryhosting.com/trac/colan_examples/downloads

but again, this is from the PMC side, not the PME side.
User avatar
jasper
 
Posts: 1128
Joined: 24 October 2012, 15:33
Location: Spain


Return to Unit Operations

Who is online

Users browsing this forum: No registered users and 1 guest