/approximator

Uses PyTorch to approximate arbitrary functions (currently 2D -> 1D).

Primary LanguagePython

Approximator

A tool to use neural networks to approximate arbitrary functions (currently equation) by specifying a domain and one or multiple residuals for (parts of) the domain. Can be used especially for the approximation of solutions of partial differential equations. Based on PyTorch.

Examples (in examples)

Sinus

Approximate an explicitly given function.

Circle

Approximate a piecewise given function.

Conservation

equation
Approximate the solution of an initial-boundary value problem governed by the conservation equation by using its residual.

Laplace

Approximate a solution of an initial-boundary value problem governed by Laplace's equation:
equation

Uses StepsDiscretization to ensure that start and endpoints of domain are in the discretized domain, this is important for boundary conditions. Pretraining is used to first fit the neural network to the boundary conditions, then to the PDE.

Heat

Approximate the heat equation:
equation

Heat equation approximation

Richardson-Richards equation

Approximate the Richardson-Richards equation in the setup described by Michael A. Celia, Efthimios T. Bouloutas and Rebecca L. Zarba in 1990.

The RRE:
equation
with constitutive equation:
equation

RRE approximation