30
1 www.esi-group.com Copyright © ESI Group, 2017. All rights reserved. Copyright © ESI Group, 2017. All rights reserved. www.esi-group.com Scilab Technical Insights Technical insights into latest version Scilab 6 and new developments G/EO/17,014 Raphael Auphan & Yann Debray | Scilab - ESI Group 2017/11/16

C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

  • Upload
    ngominh

  • View
    216

  • Download
    2

Embed Size (px)

Citation preview

Page 1: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

1www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Scilab Technical InsightsTechnical insights into latest version Scilab 6 and new developments

G/EO/17,014

Raphael Auphan & Yann Debray | Scilab - ESI Group2017/11/16

Page 2: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

2www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Agenda

•10:00 – 10:30 Keynote by Franck Delplace

•10:30 – 11:00 Scilab & Scilab Cloud

•11:00 – 11:30 Use cases

•11:30 – 12:00 Technical Insights

•12:00 – 12:15 Q & A - Closing

Page 3: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

3www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.©ScilabEnterprises

Application Development&Deployment Algorithms

Data

UserInterface

PackagedEngineeringApp

High-level view of ScilabThreekeyareasofvalue

Maths-basedModel

Visualization Optimization

Codegeneration

Modeling&Simulation ScientificDataAnalytics

Post-processingStatistics

Imageprocessing

Data-drivenModel

MachineLearningModelReduction

Page 4: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

4www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

4

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Current evolution of Scilab

Page 5: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

5www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Matlab vs Scilab: with & without toolboxes

Functional coverage with bare softwareSCILAB MATLAB

MATHEMATICS 100% 100%CONTROL SYSTEM 77% 0%

OPTIMIZATION 74%14%

SIGNAL PROCESSING 70% 19%

STATISTICS 60%10%

Functionnal coverage with additional toolboxesSCILAB + TOOLBOXES MATLAB + TOOLBOXES (*)

MATHEMATICS 100% 100%CONTROL SYSTEM 87% 100%OPTIMIZATION 82% 100%SIGNAL PROCESSING 70% 100%STATISTICS 70% 100%

5©ScilabEnterprises

(*)ForreferencethetoolboxesrequiredforMatlab,eachtoolbox+1,000€/seat

Page 6: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

6www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Scilab platform to support new codes and leverage legacy codes

ScilabDesktop/ScilabCloud

Numericalcomputing

Scilabinterpreter Matlabinterpreter(powered byOctave)

Datavisualization Algorithmdevelopment

Applicationdeployment

Pythoninterpreter(powered byPython,Numpy &Scipy)

Xcos systemmodeling

Imageprocessing

Signalprocessing

Machinelearning

Controlsystems

Codegeneration

Proprietarytoolboxes…

Scilabcode

Matlabcode

Pythoncode

Systemdiagrams

Domainspecifictoolboxes

Platform

Apps

Page 7: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

7www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Integrate Scilab, Matlab & Python codes in a Scilab application

In a Scilab app:

• Scilab code

function y=regr(A)//Linear regression

reglin(A);endfunction

Page 8: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

8www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Integrate Scilab, Matlab & Python codes in a Scilab application

In a Scilab app:

• Scilab code• Matlab code

function y=regr(A)//Linearregressionreglin(A);

endfunction

function y=regr(A)%Linearregressiony =fitlm(A);

end

Page 9: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

9www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Integrate Scilab, Matlab & Python codes in a Scilab application

In a Scilab app:

• Scilab code• Matlab code• Python code

function y=regr(A)//Linearregressionreglin(A);

endfunction

functiony=regr(A)%Linearregressiony=fitlm(A);

end

from scipy imports

def regr(A):y=s.linregress(A)returny

Page 10: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

10www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Engineers working with different environments can collaborate with Scilab

development deployment

Scilabcode

Matlabcode

ScilabPlatform

Matlabinterpreter(powered byOctave)

Page 11: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

11www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

11

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Last version Scilab 6

Page 12: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

12www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Better memory managementNo more stack

Page 13: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

13www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Static code analyzerLint

Page 14: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

14www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

show (or s) command shows information (number, enable, functionname, line and condition) about your existing breakpoints

Debugger

Adding a breakpoint to stop the for loop of the compute functionat line 4 when the variable i reach the value of 4Disable breakpoints:disable 1Execute the codeIterate and test intermediate values

Page 15: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

15www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Coverage and Profiling

Page 16: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

16www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

What’s NEW in Scilab

• Scilab Computer Vision Module

• Scilab Model Reduction Toolbox

• Link between Google Spreadsheet & Scilab Cloud

16©ScilabEnterprises– Confidential

Page 17: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

17www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

17

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Scilab Computer Vision ModuleExamples of applications

Page 18: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

18www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Find Objects in PictureConverting from Color to Gray and Binary image

Page 19: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

19www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Find Objects in PictureDilation or erosion

Page 20: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

20www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Affine transformationsTranslation, rotation, scaling, shearing

Page 21: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

21www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

21

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Scilab Model Reduction ToolboxExamples of applications in

Computational Fluid Dynamics & Multiphysics

Page 22: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

22www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

First 4 dominant POD modes for pressure

4 modes

99.96% of the global energy

Mod

es e

nerg

y

APPLICATION : SHAPE OPTIMIZATIONSurrogate Model of an Airfoil

Minimize Drag over lift: 𝑓 𝑥 = 𝐶&𝐶'

Page 23: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

23www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

APPLICATION : NON-INTRUSIVE PREDICTION

Interpolation tool for parametric study

Multi-parametric prediction for steady cases - CVD reactor ACE+

Mono-parametric prediction for unsteady cases - Wind Turbine

Velocity field prediction for new rotation speed

Im(Az) field prediction for Frequency / Current / Flow

varying parameters

Page 24: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

24www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

APPLICATION : DATA COMPRESSION

Snapshots projection on reduced basis for later reconstruction

Page 25: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

25www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

APPLICATION : INTRUSIVE PREDICTION

Mathematical based model reduction

Solving ODE on each mesh node→

Solving ODE on each simulation mode

Navier-Stokes Momentum Equation projected on reduced basis

Mathematical model for wind turbine

Page 26: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

26www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

26

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Link between Google Spreadsheet & Scilab CloudWeather data example

Page 27: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

27www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Link between Google Spreadsheet & Scilab Cloud

Page 28: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

28www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

28

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Conclusion

Page 29: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

29www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Scilab in ESI Group – high-level roadmap

Strengthen connectivity with CAE software and offer Reduced Model capabilities

Integrate Python & Matlab execution in Scilab software so that multiple codes can run alongside Scilab code (team flexibility, broadening the ecosystem)

Develop further offerings with partners for model-based code generation for embedded systems (ready for cyber-physical systems)

Leverage Scilab and Scilab Cloud to augment scientific and engineering collaboration between teams in academia/research and in the industry

29©ScilabEnterprises– Confidential

Page 30: C Scilab Technical Insights 20171116scilab.io/wp-content/uploads/2017/12/C_Scilab_Technical_Insights... · SIGNAL PROCESSING 70% 19% STATISTICS 60% 10 % Functionnalcoveragewithadditionaltoolboxes

30www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

We are avai lable for meet ing wi th you this af ternoon.Come and meet us!

Contact:[email protected]:+33688206701