2
SimTek - an edX-based platform for mathematical multi-physics simulation S. Banzas (1), C. Alonso-Montes (2), J. Jansson (2,*) (1) Fac. Informatics Universidade da Coruña (SPAIN) (2) BCAM - Basque Center for Applied Mathematics (SPAIN) (*) Computational Technology Laboratory, School of Computer Science and Communication, KTH (SWEDEN) [email protected],{calonso,jjansson}@bcamath.org I. STATE OF THE ART Massive Open Online Course (MOOC) platforms, e.g. Coursera[1], edX[2] and Udacity[3], are used by a wide variety of higher education institutions, offering online courses worldwide. Computational Mathematics (CM) and in particular Computational Fluid Dynamics (CFD) is widely used in many industrial sectors (e.g. aeronautics, medicine, etc) which requires high skills in mathematics as well as engineering. In this scenario, a MOOC platform plays a great role offering several educational resources adapted to different educational backgrounds, dealing with a diverse student segment (ranging from pure mathematicians towards engineers in various disciplines). The SimTek platform aims to provide a range of educational resources related to CM, and also offers a web interface to the FEniCS[4] framework for multiphysics simulation with the possibility of using remote High-Performance Computing (HPC) resources. The main goal is to reduce the learning step to approach mathematical multi-physics simulation combined with allowing students to formulate their own simulations using FEniCS remotely. We have used experience from teaching CM and CFD courses, mainly at KTH and BCAM, to define aims and specifications for the platform. II. SIMTEK: AN OVERVIEW FEniCS allows a user to build advanced multi-physics simulation programs or “solvers” based on a few lines of high- level mathematical input, in principle the partial differential equation (PDEs) in mathematical notation describing the multi-physics phenomena. However, good programming knowledge (in Python) and good mathematical skills are required, especially for beginners. Furthermore, CFD simulations can require large computational time and resources, not being readily available to students. Finally, the lack of an integrated graphical user interface makes usage of the FEniCS technology difficult by non-experts. SimTek was defined as an edX-based platform providing a basic web infrastructure to host educational resources related with PDEs, mathematical computing, multi-physics simulations etc, as well as interface to HPC remotely with FEniCS. Several technologies were integrated to tailor to our needs (see Illustration 1): a code editor with syntax highlighting and error reporting, the integration with ParaViewWeb[5] to visualize the solutions, and the integration of FEniCS as a remotely solver engine to be used in combination with HPC resources. Basic security has also been implemented. The code editor eases the usage of FEniCS by non-expert users, thanks to availability in a web interface with syntax highlighting and error reporting. ParaViewWeb allows the user to interact with the solutions, in the same way as standalone applications. Moreover, there is the possibility to provide access to HPC capabilities through the edX infrastructure for remote execution. III. FUTURE DEVELOPMENTS SimTek offers an initial platform to distribute and share specific educational material for courses in CM and CFD. It can also serve as a shared resource to access to remote usage of FEniCS on HPC resources. However, the SimTek development showed some issues to be taken into account. The learning curve to set up and to tailor edX to specific needs is high, due to the lack of documentation. In some cases, customized solutions were done to satisfy our requirements. Security, especially regarding Python execution, is still an issue in scenarios with untrusted users. The SimTek platform will be tested in two courses during Spring 2015, offering student feedback for future development. ACKNOWLEDGMENTS This work was funded by the Basque Government (BERC 2014-2017) and the Spanish Ministry of Economy and Competitiveness MINECO: BCAM Severo Ochoa accreditation (SEV-2013-0323) REFERENCES [1] Coursera official website (2015): https://www.coursera.org/ [2] edX official website (2015): https://www.edx.org/ [3] Udacity official website (2015): https://www.udacity.com/ [4] FEniCS project, official website (2015): http://fenicsproject.org/ [5] ParaViewWeb(2015): http://www.paraview.org/Wiki/ParaViewWeb Illustration 1: Diagram of the SimTek system

SimTek - an edX-based platform for mathematical multi ... · ParaViewWeb allows the user to interact with the solutions, in the same way as standalone applications. Moreover, there

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SimTek - an edX-based platform for mathematical multi ... · ParaViewWeb allows the user to interact with the solutions, in the same way as standalone applications. Moreover, there

SimTek - an edX-based platform for mathematicalmulti-physics simulationS. Banzas (1), C. Alonso-Montes (2), J. Jansson (2,*)

(1) Fac. Informatics Universidade da Coruña (SPAIN) (2) BCAM - Basque Center for Applied Mathematics (SPAIN) (*)Computational Technology Laboratory, School of Computer Science and Communication, KTH (SWEDEN)

[email protected],{calonso,jjansson}@bcamath.org

I. STATE OF THE ART

Massive Open Online Course (MOOC) platforms, e.g.Coursera[1], edX[2] and Udacity[3], are used by a widevariety of higher education institutions, offering onlinecourses worldwide. Computational Mathematics (CM) and inparticular Computational Fluid Dynamics (CFD) is widelyused in many industrial sectors (e.g. aeronautics, medicine,etc) which requires high skills in mathematics as well asengineering. In this scenario, a MOOC platform plays a greatrole offering several educational resources adapted to differenteducational backgrounds, dealing with a diverse studentsegment (ranging from pure mathematicians towardsengineers in various disciplines). The SimTek platform aimsto provide a range of educational resources related to CM, andalso offers a web interface to the FEniCS[4] framework formultiphysics simulation with the possibility of using remoteHigh-Performance Computing (HPC) resources. The maingoal is to reduce the learning step to approach mathematicalmulti-physics simulation combined with allowing students toformulate their own simulations using FEniCS remotely. Wehave used experience from teaching CM and CFD courses,mainly at KTH and BCAM, to define aims and specificationsfor the platform.

II. SIMTEK: AN OVERVIEW

FEniCS allows a user to build advanced multi-physicssimulation programs or “solvers” based on a few lines of high-level mathematical input, in principle the partial differentialequation (PDEs) in mathematical notation describing themulti-physics phenomena. However, good programmingknowledge (in Python) and good mathematical skills arerequired, especially for beginners. Furthermore, CFDsimulations can require large computational time andresources, not being readily available to students. Finally, thelack of an integrated graphical user interface makes usage ofthe FEniCS technology difficult by non-experts. SimTek was defined as an edX-based platform providing abasic web infrastructure to host educational resources relatedwith PDEs, mathematical computing, multi-physicssimulations etc, as well as interface to HPC remotely withFEniCS. Several technologies were integrated to tailor to ourneeds (see Illustration 1): a code editor with syntaxhighlighting and error reporting, the integration withParaViewWeb[5] to visualize the solutions, and the integrationof FEniCS as a remotely solver engine to be used incombination with HPC resources.

Basic security has also been implemented. The code editoreases the usage of FEniCS by non-expert users, thanks toavailability in a web interface with syntax highlighting anderror reporting. ParaViewWeb allows the user to interact withthe solutions, in the same way as standalone applications.Moreover, there is the possibility to provide access to HPCcapabilities through the edX infrastructure for remoteexecution.

III. FUTURE

DEVELOPMENTS

SimTek offers aninitial platform todistribute and sharespecific educationalmaterial for coursesin CM and CFD. Itcan also serve as ashared resource toaccess to remoteusage of FEniCSon HPC resources.However, theSimTekdevelopmentshowed some

issues to be taken into account. The learning curve to set upand to tailor edX to specific needs is high, due to the lack ofdocumentation. In some cases, customized solutions weredone to satisfy our requirements. Security, especiallyregarding Python execution, is still an issue in scenarios withuntrusted users.The SimTek platform will be tested in two courses duringSpring 2015, offering student feedback for futuredevelopment.

ACKNOWLEDGMENTS

This work was funded by the Basque Government (BERC2014-2017) and the Spanish Ministry of Economy andCompetitiveness MINECO: BCAM Severo Ochoaaccreditation (SEV-2013-0323)

REFERENCES

[1] Coursera official website (2015): https://www.coursera.org/[2] edX official website (2015): https://www.edx.org/[3] Udacity official website (2015): https://www.udacity.com/[4] FEniCS project, official website (2015): http://fenicsproject.org/[5] ParaViewWeb(2015): http://www.paraview.org/Wiki/ParaViewWeb

Illustration 1: Diagram of the SimTek system

Page 2: SimTek - an edX-based platform for mathematical multi ... · ParaViewWeb allows the user to interact with the solutions, in the same way as standalone applications. Moreover, there

1. Specify your equation and program: debug & run

Syntax Highlighting

Online Error Checking

SimTek - an edX-based platform for Mathematical Multi-physics Simulation

S. Banzas (1), C. Alonso-Montes (2), J. Jansson (2,*)(1) Fac. Informatics Universidade da Coruña (SPAIN)

(2) BCAM - Basque Center for Applied Mathematics (SPAIN) (*) Computational Technology Laboratory, School of Computer Science and Communication, KTH (SWEDEN)

[email protected],{calonso,jjansson}@bcamath.org

Motivation

SimTek General Schema

The SimTek platform aims to provide a range of educational resources related to computational mathematics, and also offers a web interfaceto the FEniCS framework for multiphysics simulation in mathematical notation with the possibility of using remote High Performance Computing (HPC) resources. The main goal is to reduce the learning step to approach mathematical multi-physics simulation.

Features

Python EditorSyntax highlingting Error reporting performed online, before sending to execute

Web Visualization of the solutionParaViewWeb for output visualizationAdvanced User Interaction of the final solution

Remote execution with FEniCSPossibility to use external & remote HPC resources, making theseresources available for the large public

SecurityBasic security implemented to access the platformSecurity on the execution of external code

*

* Image from FutUndBeidl in Flickr

AcknowledgmentsThis work was funded by the Basque Government (BERC 2014-2017) and the Spanish Ministry of Economy and Competitiveness MINECO: BCAM Severo Ochoa accreditation (SEV-2013-0323)

References[1] Coursera official website (2015): https://www.coursera.org/ [4] FEniCS project, official website (2015): http://fenicsproject.org/[2] edX official website (2015): https://www.edx.org/ [5] ParaViewWeb(2015): http://www.paraview.org/Wiki/ParaViewWeb[3] Udacity official website (2015): https://www.udacity.com/

Advanced View with advanced user interaction

See your solution and interact with it!

2. See your output, your simulation is done!

Check your numerical output of your solutionYou will always have all the informationof your solution in several formatsPick up the one that better fits your needs!

Your simulation output is in Paraview formatParaView is an open-source, multi-platform data analysis and visualization application built on top of VTK. SimTek has an embedded version of ParaviewWeb offering several functionalities to interact with your solution within theplatform:* Move it in the 3D space* Change to different perspectives or zoom the solution parts* Choose among several types of visualizations (streamlines,oriented glyphs, contours/isosurfaces, colormaps, etc)

FENICS

SimTek Platform

Editor

Ed

uca

tional

Reso

urc

es

& L

ess

ons

Server

NFS ServerShared Data

PC SmartPhone/Tablet