Page 1 of 1

Example written in C#

PostPosted: 24 February 2023, 16:22
by JulieCouturier
Hello,

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

Best regards,

Re: Example written in C#

PostPosted: 25 February 2023, 13:13
by jasper
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.

Re: Example written in C#

PostPosted: 25 February 2023, 13:16
by jasper
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.