Skip to main content

Physics4All DSL: A domain-specific language for democratising physics simulations and advancing DSL engineering with JetBrains MPS.

Meacham, S., de La Bourdonnaye, C., Pech, V. and Alfraihi, H., 2026. Physics4All DSL: A domain-specific language for democratising physics simulations and advancing DSL engineering with JetBrains MPS. In: MODELSWARD 2026, 7-9 March 2026, Marbella, Spain.

Full text available as:

[thumbnail of MODELSWARD_2026_19_CR.pdf]
Preview
PDF
MODELSWARD_2026_19_CR.pdf - Accepted Version
Available under License Creative Commons Attribution Non-commercial.

737kB

Official URL: https://www.insticc.org/node/technicalprogram/mode...

Abstract

Simulations are essential in physics education but remain difficult for non-programmers to design and adapt. Existing tools often limit customisation, hindering teachers and students from tailoring experiments to their needs. This paper presents Physics4All, a domain-specific language (DSL) built with JetBrains MPS to democratise the creation of physics simulations. Physics4All introduces domain-specific constructs—worlds, objects, forces, dimensions, and vectors—expressed in familiar mathematical notation. Its modular generation pipeline supports multiple targets (Java and JavaScript), enabling simulations to run across platforms without altering models. Key innovations include implicit unit conversion, reusable forces and objects, and live type checking for correctness. Beyond the educational domain, these features illustrate generalisable DSL engineering principles for modularity, abstraction, and reusability. We evaluated Physics4All through a metrics-based comparison with a GPL baseline and an empirical case study involving secondary school teachers and educational technology developers. The comparison highlighted substantial reductions in implementation effort, while the case study confirmed high suitability, expressiveness, and productivity, with usability and maintainability identified as areas for improvement. Compared to widely used tools such as PhET, Algodoo, and COMSOL, Physics4All offers greater customisation while remaining accessible to non-programmers. The results demonstrate how DSLs can expand the reach and impact of simulation-based education while contributing to broader discussions on domain-specific language engineering.

Item Type:Conference or Workshop Item (Paper)
Uncontrolled Keywords:Domain-Specific Languages; Physics Education; Simulation; JetBrains MPS; Model-Driven Engineering
Group:Faculty of Media, Science and Technology
ID Code:41854
Deposited By: Symplectic RT2
Deposited On:30 Mar 2026 15:29
Last Modified:30 Mar 2026 15:29

Downloads

Downloads per month over past year

More statistics for this item...
Repository Staff Only -