Skip to content
Projetos

Sobre

PINNStudio: A graphical platform for forward and inverse physics-informed neural networks

Aprendizado de máquina

Como estes números são medidos

O que você pode fazer

  • Forward and inverse problems. Solve a known equation, or learn unknown coefficients or a whole unknown field from measured data while the solution is found. Learn more: forward problems, inverse problems, parameter-estimation tutorial.
  • ODEs and PDEs in 1D, 2D and 3D. Steady or time-dependent equations and coupled systems, fractional equations, and integro-differential ODEs (Volterra integrals), typed as residuals such as du_t + u*du_x - 0.01/pi*du_xx. Learn more: equations, coupled systems.
  • Training methods. Multi-phase training (for example Adam, then L-BFGS), residual-based adaptive refinement, time windows and bc-PINN, causal training, RBA and SA-PINN point weights, and an exact initial condition or exact periodicity. Learn more: choosing a training strategy, RAR, RBA and SA-PINN, causal training, time windows.
  • Parameter sweeps. Vary network, sampling, training, loss-weight and equation-constant settings one at a time, in all combinations, as paired values or with a Bayesian search, and compare the runs on one plot. Full guide.

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

PINNStudio icon PINNStudio

A graphical platform for forward and inverse physics-informed neural networks

PyPI version Python versions License: MIT Platform tests

Documentation  ·  Installation  ·  Tutorials  ·  Examples  ·  Troubleshooting  ·  FAQ

PINNStudio is an open-source desktop application for configuring, training, and evaluating physics-informed neural networks (PINNs) through a graphical interface. It supports forward and inverse problems for ordinary and partial differential equations, including coupled systems in up to three spatial dimensions. Users can define governing equations, geometries, initial and boundary conditions, neural network architectures, and training strategies without writing problem-specific Python scripts.

Built on DeepXDE and PyTorch, PINNStudio generates executable training scripts and provides live training monitoring, solution visualization, reference-based error analysis, and model restoration. Scripts can also be exported and run independently, making numerical workflows easier to inspect, reproduce, and extend.

Screen recording of PINNStudio: choosing the Burgers 1D example, viewing its equation, clicking Solve, the live loss plot and Training Log during training, then the loss history, the solution u(x, t) and the error analysis

Solving the Burgers 1D example (Raissi et al.) in PINNStudio: choose the example, check the equation, click Solve, and inspect the loss, the solution and the error against the reference. A real run on an NVIDIA RTX 4090; the training (about 40 s) is shown at 2× speed.

See PINNStudio in Action

Explore solutions and parameter-estimation results generated with PINNStudio's built-in examples. These illustrative runs are separate from the benchmark experiments. Select an example to view its equations, configuration, and reported results.

Animation: the three Lorenz coefficients C1, C2, C3 converging to their true values during training
Lorenz system
ODE · inverse
Animation: the PINN solution u(x, t) of the 1D Burgers equation steepening into a shock at x = 0
Burgers equation
1D PDE · time-dependent
Animation: the magnitude |h|(x, t) of the 1D nonlinear Schrödinger solution over time
Schrödinger equation
1D PDE · coupled system
The velocity component u(x, y) of the 2D Kovasznay flow computed by the PINN
Navier–Stokes, Kovasznay flow
2D PDE · steady
Animation: the order parameter h(x, y, t) of the 2D Allen-Cahn equation evolving from sin(4πx)cos(4πy)
Allen–Cahn equation
2D PDE · phase field
Animation: temperature u(x, y, z, t) in a unit cube heated from one face
Heat equation in 3D
3D PDE · time-dependent

Key capabilities

  • Forward and inverse problems. Solve a known equation, or learn unknown coefficients or a whole unknown field from measured data while the solution is found. Learn more: forward problems, inverse problems, parameter-estimation tutorial.
  • ODEs and PDEs in 1D, 2D and 3D. Steady or time-dependent equations and coupled systems, fractional equations, and integro-differential ODEs (Volterra integrals), typed as residuals such as du_t + u*du_x - 0.01/pi*du_xx. Learn more: equations, coupled systems.
  • Domains and conditions. Built-in shapes and combinations of them, or a domain drawn in the Sketch (2D, or boxes and spheres in 3D) or imported from a 2D DXF or SVG drawing; Dirichlet, Neumann, Robin, periodic, point-data and operator conditions, or conditions imposed exactly through the network output. Learn more: geometry, boundary conditions, exact constraints.
  • Training methods. Multi-phase training (for example Adam, then L-BFGS), residual-based adaptive refinement, time windows and bc-PINN, causal training, RBA and SA-PINN point weights, and an exact initial condition or exact periodicity. Learn more: choosing a training strategy, RAR, RBA and SA-PINN, causal training, time windows.
  • Parameter sweeps. Vary network, sampling, training, loss-weight and equation-constant settings one at a time, in all combinations, as paired values or with a Bayesian search, and compare the runs on one plot. Full guide.
  • Error analysis and plots. Relative L₂, MSE, maximum and mean absolute error against reference data or an exact formula, with line and surface plots, animations and a history of every saved run. Learn more: Error Analysis, error metrics.
  • Standalone scripts and restore. Every problem exports as a DeepXDE/PyTorch script. In the project's check of the built-in examples (Tuned settings, shortened CPU runs, fixed seeds), the script trained the same model as Solve in all 89 configurations compared: 88 independent comparisons with bitwise-identical losses and weights, and one identical by construction. The other 4 of the 93 configurations do not apply to the comparison (three inverse modes that do not exist and the parameter-sweep example) (export check). A saved model can be reloaded and plotted again without retraining. Learn more: generated scripts, checkpoints and restoring.
  • 64 built-in examples. From simple ODEs to the Navier-Stokes equations in 3D: 49 of DeepXDE's documented PINN examples and 15 PINNStudio templates, several following published PINN benchmarks, almost all with an exact solution or reference data. Example gallery.

Installation

PINNStudio needs Python 3.11 or newer. In a Python environment you already have (a virtual or conda environment is recommended):

pip install pinnstudio

Or install with one command, without installing Python first. The installer sets up PINNStudio with its own Python and the PyTorch build that matches your computer's GPU (or a CPU-only build), and adds PINNStudio to the Start menu and desktop (Windows), the Applications folder in your home folder (macOS) or the app menu (Linux). Python and git do not need to be installed.

macOS / Linux (in a terminal):

curl -LsSf https://raw.githubusercontent.com/AsfandyarKhan72/PINNStudio/main/get-pinnstudio.sh | sh

Windows (in PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/AsfandyarKhan72/PINNStudio/main/get-pinnstudio.ps1 | iex"

You can read the scripts before running them: get-pinnstudio.sh and get-pinnstudio.ps1. The install takes a few minutes, and at the end it says which version was installed and whether training will run on the GPU. Running the same command again updates PINNStudio. The installer installs the latest release from PyPI; the CHANGELOG lists what each release changed.

A GPU is optional. On the test PC (RTX 4090) the GPU trained four of the five timed problems 3 to 19 times faster than the CPU, but a small ODE problem trained faster on the CPU (training speed). PINNStudio is tested on GitHub Actions on Linux, Windows and macOS (x64 and ARM) with Python 3.11 to 3.14.

The installation guide covers choosing a CUDA build of PyTorch, the source install for development, the systems PINNStudio is tested on, Intel Macs and Windows on ARM, updating and uninstalling, and common installation problems.

Quick start

  1. Open PINNStudio from its icon, or run pinnstudio in a terminal. It opens on the Start tab.
  2. Under Examples on the Start tab, click Heat 1D – Dirichlet. Every setting fills in, and the model tree on the left shows each part of the problem.
  3. Press Solve (or Ctrl+Enter). The loss is plotted while the model trains (Results → Live loss).
  4. When the run finishes, Results → Overview shows the loss and the solution, and Results → Error analysis gives the relative L₂ error against the exact solution, with comparison plots.

The first-run guide walks through the same steps in more detail, and the tutorials set up problems from an empty window.

Examples

A selection of the 64 built-in examples: DeepXDE's documented examples, templates that follow published papers, and PINNStudio's own templates. Each loads from the toolbar's Examples list with one of two settings: Default, the source's own settings (DeepXDE's, the paper's method or the template's), or Tuned, the setup selected from the benchmarked alternatives by the accuracy and run-time rules in benchmarks/README.md. When the Default settings are within those margins, Tuned keeps them.

Example Dimension What it shows
Lorenz ODE – unknown C₁, C₂, C₃ ODE Three coefficients of the Lorenz system learned from data
Burgers 1D – Raissi et al. 1D, time-dependent The Burgers benchmark of Raissi et al. (2019), forward and inverse
Schrödinger 1D 1D, time-dependent A coupled system for the real and imaginary parts
Poisson 2D – L-shape 2D, steady A polygon domain with a re-entrant corner
Helmholtz 2D – square with hole 2D, steady A domain with a hole and a Neumann condition on its edge
Linear elasticity 2D – plate 2D, steady Displacements and stresses as five coupled outputs
Allen-Cahn 2D – Mattey & Ghosh 2D, time-dependent A phase-field problem, by default with the paper's bc-PINN method
Navier-Stokes 3D – Beltrami flow 3D, time-dependent Incompressible flow with velocity and pressure outputs

The example gallery describes every example: its equations, domain, conditions and settings. The results and figures of each example are in benchmarks/examples.md.

Documentation

Reproducibility and benchmarks

The examples were trained with their Default settings and, for the 41 examples with the largest errors, with the changes tried in the tuning study (55 entries there, which counts an example's forward and inverse modes, and the templates' best-setup starts, separately), and the records are kept in the repository, together with problem files that load the tuned setups. benchmarks/README.md compares, for each example, the source's settings with PINNStudio's best and, for templates taken from a paper, with the error the paper reports. The Reproducibility section of the website describes how the reference solutions were computed, how seeds, precision and hardware are handled, and how the exported scripts are checked against Solve. The errors reported there are relative L₂ errors of the main output at the last reference time (papers' errors over all times are given separately), from seed 2026, or the median of seeds 1, 2 and 2026 where a setting was run three times. Runs use a fixed random seed by default, and each run saves its settings next to its results.

Citation

If PINNStudio is useful in your work, please cite the version you used. PINNStudio 1.6.0 is archived on Zenodo, DOI 10.5281/zenodo.24023305; the same information is in CITATION.cff. A paper describing PINNStudio is in preparation.

@software{khan2026pinnstudio,
  author    = {Khan, Asfandyar and Mamivand, Mahmood},
  title     = {PINNStudio: A graphical platform for forward and inverse physics-informed neural networks},
  version   = {1.6.0},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24023305},
  url       = {https://doi.org/10.5281/zenodo.24023305}
}

Acknowledgment

PINNStudio is built on DeepXDE (Lu et al., 2021), PyTorch and Qt for Python (PySide6). We are especially grateful to Lu Lu and the DeepXDE developers: DeepXDE is the physics-informed learning library that every script PINNStudio generates runs on, and its documented examples are included among PINNStudio's examples, each linked to its original script. PINNStudio is an independent project and is not affiliated with or endorsed by the DeepXDE developers.

The examples that reproduce published benchmarks follow the problem setups of the original papers: Burgers 1D – Raissi et al. follows Raissi, Perdikaris & Karniadakis (2019); Burgers 2D – Mathias et al. follows Mathias et al. (2022); the Allen-Cahn and Cahn-Hilliard examples follow Wight & Zhao (2021) and Mattey & Ghosh (2022); and Poisson 2D – L-shape is the demonstration example of the DeepXDE paper (Lu et al., 2021). Full references are listed on the website's Scientific references page.

Authors: Asfandyar Khan and Mahmood Mamivand. Developed under the supervision of Prof. Mahmood Mamivand, Computational Materials Design Lab, Boise State University.

The authors acknowledge support from the National Science Foundation under Award No. 2602175. We would like to acknowledge the high-performance computing support of the Borah compute cluster (DOI: 10.18122/oit/3/boisestate) provided by Boise State University's Research Computing Department.

Contributing

Bug reports, feature requests, and pull requests are welcome — see CONTRIBUTING.md.

Contact

Asfandyar Khan
PhD Candidate, Materials Science and Engineering
Boise State University
Email: [email protected]

License

PINNStudio is released under the MIT License. Copyright (c) 2026 Asfandyar Khan. Every release has been published under this license.

Generated scripts. PINNStudio writes a Python script for each problem: the script Export script saves, and the script Solve runs. You may use, change and share a generated script, including the parts of PINNStudio's code templates it contains, under terms of your choice. The libraries it imports (such as DeepXDE, PyTorch, NumPy and Matplotlib) keep their own licenses.

Your input and your results. What you enter into PINNStudio (equations, constants, settings, geometry, data) and what you produce by running PINNStudio or a generated script (data files, figures, animations, trained model weights, logs) are not part of PINNStudio, and PINNStudio's copyright holder claims no rights in them.

Third-party software. PINNStudio's interface is built on Qt for Python (PySide6-Essentials, with shiboken6 and the Qt 6 libraries), used under the GNU Lesser General Public License version 3 (LICENSES/LGPL-3.0.txt, which refers to LICENSES/GPL-3.0.txt). PINNStudio also runs on DeepXDE (LGPL-2.1), PyTorch (BSD-3-Clause), NumPy, SciPy, Matplotlib and pandas. All of these are installed as separate packages and keep their own licenses; some of the interface's icons are derived from Lucide (ISC) and Feather (MIT). PINNStudio is an independent project, not affiliated with or endorsed by the developers of these packages. See THIRD_PARTY_LICENSES.md.

Application icon and reference data. The PINNStudio application icon was created for PINNStudio, with the assistance of Claude (Anthropic), and is part of PINNStudio under the same license. The reference solutions in reference_data/ were computed for PINNStudio by its author, with the scripts in tools/ (see THIRD_PARTY_LICENSES.md), using the numerical methods documented on the website's Reference data page.

Explore projetos relacionados

Carregando…