FreeFem++ & Javascript

Antoine Le Hyaric 1,2

ALHTODO 03/11/18 18:08:01 rewrite

ALHTODO 13/11/18 10:53:30 add a link to ffcs

FreeFem++ is a partial differential equation solver. Its primary users are mathematicians. As for many other software, some computing knowledge is required to install it on the many different computer systems that mathematicians use. But mathematical researchers, teachers or students should not be required to have this level of computing knowledge. The Javascript version of FreeFem++ works straight out of an HTML page, on any recent internet browser, both online or offline, on any operating system where such a browser is available. Creating a FreeFem++ program means editing a standard HTML page, which can become a complete literate program with math equations, editable portions and graphics. FreeFem++.js users can exchange their programs as HTML files with modifiable and fixed parts.

Examples

FreeFem++.js
Run FreeFem++ scripts online.
A Mathematical Model for Electrostatics as a Literate FreeFem++ Program
From chapter 9.1.2 of the FreeFem++ documentation.

FAQ

What is the required computer configuration?
FreeFem++.js works on any computer or smartphone. It runs in the internet browser. No download or install is required.
Where are the numerical computations done?
There is no computational server. FreeFem++.js runs on the machine where a browser is opened. Scripts saved locally as HTML pages with their Javascript dependencies will still work as they do not depend on any online facility.
Will any FreeFem++ script run?
At the moment, scripts will work if they do not contain the following features (not compiled into Javascript yet) : 3d graphs, include files, external tools (UMPPACK, ARPACK, etc), dynamic libraries.
With many thanks to the projects which where used in the making of FreeFem++.js
Debian Linux, Emscripten, MathJax