Skip to main content

A toolkit for Physics-Informed Neural Networks

Project description

PINN-kit

A toolkit for Physics-Informed Neural Networks (PINNs). This package provides tools and utilities for implementing and training physics-informed neural networks for solving differential equations.

Features

  • Easy-to-use interface for defining physics-informed neural networks
  • Support for various types of differential equations
  • Domain handling utilities
  • Training and evaluation tools

Installation

PINN-kit supports macOS, Linux, and Windows. You can install it using pip, which will also automatically install all required dependencies, including torch.

Create a Virtual Environment (Recommended)

It is recommended to use a virtual environment with Python 3.12 to avoid dependency conflicts.

macOS & Linux

python3.12 -m venv venv
source venv/bin/activate

Windows

Open Command Prompt or PowerShell and run:

python3.12 -m venv venv
venv\Scripts\activate

Install PINN-kit

macOS & Linux

pip install pinn-kit

Windows

Open Command Prompt or PowerShell and run:

pip install pinn-kit

Note: There is no need to install torch separately; it will be installed automatically with pinn-kit.

PINN-kit is easy to use

from pinn_kit import PINN, Domain

# Create a domain
domain = Domain(...)

# Initialize a PINN
pinn = PINN(...)

# Define the loss terms
def loss():
    return loss_function

# Train the network
pinn.train_model(...)

Documentation

For detailed documentation, please visit our documentation page.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinn_kit-0.1.2.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pinn_kit-0.1.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file pinn_kit-0.1.2.tar.gz.

File metadata

  • Download URL: pinn_kit-0.1.2.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pinn_kit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c0c236a47c0740e32cd6f33b9be19b2cca5916c481583141b714d0607ac5bedb
MD5 c11fb4cb8b2da5788c4a434dc670e276
BLAKE2b-256 4091886ba9912ce41831719cfa9be1725d8a21cf65160e5e120de4ebf749da6a

See more details on using hashes here.

File details

Details for the file pinn_kit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pinn_kit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pinn_kit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f269a777db88ea8366acf5f563700d17caefd8df55c2eb93b13a0033ec9627d
MD5 a3b4f0744a9579f517d911f8095f0afa
BLAKE2b-256 fdec662e2cd6a752c1d81507ed437fa700ec562b8afafdb4302e9742e70fd22b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page