This directory contains Node.js examples demonstrating how to use the FEAScript library to solve various partial differential equations in their general form.
This example demonstrates solving a one-dimensional advection-diffusion problem with a Gaussian source term. The problem models the transport of a substance under the effects of both diffusion and advection. For detailed information on the model setup, refer to the corresponding tutorial in the FEAScript website.
Each example also includes an HTML variant (e.g., advectionDiffusion1D.html) that runs the same simulation in the browser with built-in visualization using Plotly.js. Simply open the HTML file in a web browser to run.
echo '{"type":"module"}' > package.jsonnpm install feascript mathjsnode advectionDiffusion1D.js(for the "Advection-Diffusion with Gaussian Source" example)
