Hi again, Currently we only provide a Python module to the Windows users of OpenTURNS. If you manage to interface your C++ function with Python (see eg https://stackoverflow.com/questions/145270/calling-c-c-from-python), then you should have a look at the PythonFunction class in OpenTURNS, see: http://openturns.github.io/openturns/latest/user_manual/_generated/openturns.PythonFunction.html http://openturns.github.io/openturns/latest/examples/functional_modeling/python_function.html
You also have a dedicated section in the Developer's guide: http://openturns.github.io/openturns/latest/developer_guide/wrapper_development.html Don't hesitate to contact me directly if you need further help. Cheers Régis Le jeudi 26 mars 2020 à 21:17:21 UTC+1, Mori Alessandro <[email protected]> a écrit : Hello, I am using OpenTURNS in a C++ code. I have to create a Function defined by a C++ routine (Sample someName(Sample input) or Point someOtherName(Point input)). Is there any example showing how to do this (maybe using a pointer to the C++ routine)? Thank you, Alessandro Alessandro Mori Computational ElectroMagnetic Engineering System Analyst IDS Ingegneria Dei Sistemi S.p.A. www.idscorporation.com Pisa Headquarters: Via Enrica Calabresi, 24 - Loc. Montacchiello 56121 Pisa (PI) - Italy Tel: +39 050 3124 289 Fax: +39 050 3124 201 e-mail: [email protected] Capitale Sociale 13.171.240 Euro i.v. – C.C.I.A.A. Pisa, R.E.A. n° 77042 - C.F. 00672210507 – P. IVA (VAT) IT 00672210507 Share Capital 13.171.240 euro fully paid – registered at the Pisa Chamber of Commerce, R.E.A. n. 77042 – Tax number and VAT code (IT) 00672210507 - e-mail (PEC): [email protected] (for use in Italy only) P Save a tree, please don't print this e-mail unless you really need to. ******************************************************************************************************************************************************** This email and any attachments are confidential and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication, either whole or partial, is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. ******************************************************************************************************************************************************** _______________________________________________ OpenTURNS users mailing list [email protected] http://openturns.org/mailman/listinfo/users _______________________________________________ OpenTURNS users mailing list [email protected] http://openturns.org/mailman/listinfo/users
