TL;DR: This approach allows students to transition smoothly from blocks to text as they become familiar with syntax, and allows educators to create block vocabularies for specific lessons without working with an entirely new programming language.
Abstract: Pencil Code is a block-based coding tool that helps beginners work with text-based web programming languages. It has been used to allow help first-time programmers of all ages create programs in JavaScript and CoffeeScript.Pencil Code allows students to toggle between text code and blocks freely. This approach allows students to transition smoothly from blocks to text as they become familiar with syntax. It also allows educators to create block vocabularies for specific lessons without working with an entirely new programming language.
TL;DR: The Pencil Code is a highly modular physics-oriented simulation code that can be adapted to a wide range of applications, primarily designed to solve partial differential equations of compressible hydrodynamics but can also evolve Lagrangian particles, their coagulation and condensation, as well as their interaction with the fluid.
Abstract: The Pencil Code is a highly modular physics-oriented simulation code that can be adapted to a wide range of applications. It is primarily designed to solve partial differential equations (PDEs) of compressible hydrodynamics and has lots of add-ons ranging from astrophysical magnetohydrodynamics (MHD) to meteorological cloud microphysics and engineering applications in combustion. Nevertheless, the framework is general and can also be applied to situations not related to hydrodynamics or even PDEs, for example when just the message passing interface or input/output strategies of the code are to be used. The code can also evolve Lagrangian (inertial and noninertial) particles, their coagulation and condensation, as well as their interaction with the fluid.
TL;DR: T tests showed that students learning in a mixed text‐based and block‐based Pencil Code programming environment not only had significantly improved computational thinking but also became more self‐confident and enjoyed learning programming.
TL;DR: The Pencil Code as discussed by the authors is a highly modular physics-oriented simulation code that can be adapted to a wide range of applications, including meteorological cloud microphysics and engineering applications in combustion.
Abstract: The Pencil Code is a highly modular physics-oriented simulation code that can be adapted to a wide range of applications. It is primarily designed to solve partial differential equations (PDEs) of compressible hydrodynamics and has lots of add-ons ranging from astrophysical magnetohydrodynamics (MHD) to meteorological cloud microphysics and engineering applications in combustion. Nevertheless, the framework is general and can also be applied to situations not related to hydrodynamics or even PDEs, for example when just the message passing interface or input/output strategies of the code are to be used. The code can also evolve Lagrangian (inertial and noninertial) particles, their coagulation and condensation, as well as their interaction with the fluid.
TL;DR: A numerical benchmark study for the MUlti-dimensional Stellar Implicit Code (MUSIC) based on widely applicable two- and three-dimensional compressible hydrodynamics problems relevant to stellar interiors and verifying MUSIC by comparing to established codes including ATHENA and the PENCIL code.
Abstract: We present the results of a numerical benchmark study for the MUltidimensional Stellar Implicit Code (MUSIC) based on widely applicable two- and three-dimensional compressible hydrodynamics problems relevant to stellar interiors. MUSIC is an implicit large eddy simulation code that uses implicit time integration, implemented as a Jacobian-free Newton Krylov method. A physics based preconditioning technique which can be adjusted to target varying physics is used to improve the performance of the solver. The problems used for this benchmark study include the Rayleigh-Taylor and Kelvin-Helmholtz instabilities, and the decay of the Taylor-Green vortex. Additionally we show a test of hydrostatic equilibrium, in a stellar environment which is dominated by radiative effects. In this setting the flexibility of the preconditioning technique is demonstrated. This work aims to bridge the gap between the hydrodynamic test problems typically used during development of numerical methods and the complex flows of stellar interiors. A series of multidimensional tests were performed and analysed. Each of these test cases was analysed with a simple, scalar diagnostic, with the aim of enabling direct code comparisons. As the tests performed do not have analytic solutions, we verify MUSIC by comparing it to established codes including ATHENA and the PENCIL code. MUSIC is able to both reproduce behaviour from established and widely-used codes as well as results expected from theoretical predictions. This benchmarking study concludes a series of papers describing the development of the MUSIC code and provides confidence in future applications.