XXVI IUPAP Conference on Computational Physics ...

6 downloads 1883 Views 79KB Size Report
Javascript library which makes the simulation of physics phenomena very easy. While a ... Moreover, the user could use the app EjsS Reader (available at.
XXVI IUPAP Conference on Computational Physics, CCP2014 Contribution ID : 229

EjsS: A JavaScript library which makes computational-physics education simpler Content : Nowadays, the teaching in computational physics is based on the usage of powerful instructional tools (e.g. Mathematica) and the programming in several software languages (e.g. Java) to do algebraic and numerical calculations, graphics and animations for a variety of mathematics and physics problems. However, the deployment of these animations requires that the author have training and skills in graphics programming, which could be too demanding in teaching scenarios. In this sense, we propose EjsS (Easy JavaScript Simulations) is a new Javascript library which makes the simulation of physics phenomena very easy. While a simple movement of a spring in raw programming language (e.g. WebGL or Java) would turn out hundreds of lines, an EjsS equivalent is only a fraction of that. Moreover, EjsS does not require that the author must have advanced knowledge in software programming because it includes an authoring tool, called EjsS Editor [1], to make the definition of simulations easier. The author uses EjsS Editor to define the physics model and to link model definitions to the components of the view. The editor includes 2D, 3D and UI elements, which include properties that can be linked to simulation variables. Also it is possible to define groups or sets to apply transformations to several elements together. Finally, the editor includes the automatic generation of code that integrates the simulation definition into the EjsS library. In relation to the technologies, EjsS is based on JavaScript and HTML5 and uses WebGL and SVG. Note it does not require other graphical libraries (e.g. Three.js) or UI library (e.g. jQuery), so EjsS is an independent library optimized to graphically show physics simulations. Therefore, it can be used in any web browser with HTML5 and WebGL support (currently, most of them) in any kind of device, such as smartphones or tablets. Moreover, the user could use the app EjsS Reader (available at iTunnes and Google Play) to organize his/her simulations and connect directly to the OSP Collection [2].

References :

[1] Ejs Editor. Available at www.um.es/fem/EjsWiki. [2] Open Source Physics Collection. Available at www.compadre.org/osp.

Primary authors : Prof. GARCIA-CLEMENTE, Felix J. (Universidad de Murcia, Spain) Co-authors : Prof. ESQUEMBRE, Francisco (Universidad de Murcia, Spain) Presenter : Prof. GARCIA-CLEMENTE, Felix J. (Universidad de Murcia, Spain) Session classification : --not yet classified-Track classification : Computational-physics education Type : Poster presentation