Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.12 KB

File metadata and controls

33 lines (20 loc) · 1.12 KB

FEAScript generalFormPDE Logo

General Form PDE Examples

This directory contains Node.js examples demonstrating how to use the FEAScript library to solve various partial differential equations in their general form.

Examples

1. Advection-Diffusion with Gaussian Source (advectionDiffusion1D.js)

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.

Running the Node.js Examples

1. Create package.json with ES module support:

echo '{"type":"module"}' > package.json

2. Install dependencies:

npm install feascript mathjs

3. Run the example:

node advectionDiffusion1D.js

(for the "Advection-Diffusion with Gaussian Source" example)