C Scilab Technical Insights...

Preview:

Citation preview

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

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

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

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

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

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

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

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

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

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)

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

12www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Better memory managementNo more stack

13www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Static code analyzerLint

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

15www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Coverage and Profiling

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

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

18www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Find Objects in PictureConverting from Color to Gray and Binary image

19www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Find Objects in PictureDilation or erosion

20www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Affine transformationsTranslation, rotation, scaling, shearing

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

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: 𝑓 𝑥 = 𝐶&𝐶'

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

24www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

APPLICATION : DATA COMPRESSION

Snapshots projection on reduced basis for later reconstruction

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

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

27www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

Link between Google Spreadsheet & Scilab Cloud

28www.esi-group.com

Copyright © ESI Group, 2017. All rights reserved.

28

Copyright © ESI Group, 2017. All rights reserved.

www.esi-group.com

Conclusion

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

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:ydb@esi-group.comPhone:+33688206701

Recommended