C Scilab Technical Insights...
Transcript of C Scilab Technical Insights...
![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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/1.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/2.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/3.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/4.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/5.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/6.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/7.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/8.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/9.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/10.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/11.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/12.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/13.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/14.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/15.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/16.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/17.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/18.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/19.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/20.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/21.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/22.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/23.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/24.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/25.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/26.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/27.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/28.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/29.jpg)
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](https://reader034.fdocument.pub/reader034/viewer/2022051601/5ab530067f8b9ab47e8c98a1/html5/thumbnails/30.jpg)
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