Skip to content

This Python script solves the Navier-Stokes equations using Physics-Informed Neural Network. This approach enables the modeling of fluid dynamics problems by learning the velocity field and pressure distribution around a cylindrical obstacle in a flow, as is commonly encountered in computational fluid dynamics (CFD).

Notifications You must be signed in to change notification settings

kerimcaliskan182/NavierStokesEqSolnWithPINN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Navier-Stokes Equations Solution Using Deep Learning

This repository contains a Python implementation of a Deep Learning-based approach to solving the Navier-Stokes equations, which are fundamental in fluid dynamics. The solution utilizes a Physics-Informed Neural Network (PINN) to model fluid flow around a cylindrical obstacle, capturing complex flow patterns such as vortices.

Features

  • Utilizes the PINN architecture to enforce the Navier-Stokes equations directly within the loss function, ensuring the learned model adheres to physical laws.
  • Demonstrates how to preprocess fluid dynamics data for use in deep learning models.
  • Offers insights into leveraging automatic differentiation for solving partial differential equations (PDEs) relevant to fluid mechanics.

Requirements

Before running the script, ensure you have the following packages installed:

  • torch: For building and training the neural network model.
  • numpy: For handling numerical operations.
  • scipy: Used for loading the dataset.
  • matplotlib: For visualizing the results.

You can install these packages using pip:

pip install torch numpy scipy matplotlib

Data Source

The data used in this project for training and testing the Physics-Informed Neural Network model was obtained from the following source:

This dataset is part of a collection of data used for various physics-informed machine learning projects. Specifically, the cylinder_wake.mat file contains the data used for solving the Navier-Stokes equation in our project.

How to Access the Data

To use the same dataset for your experiments, please follow these steps:

  1. Visit the HPM Data Repository.
  2. Navigate to the folder containing the dataset you are interested in. For this project, the relevant file is cylinder_wake.mat.
  3. Download the dataset directly to your local machine or clone the entire repository using Git:
git clone https://github.com/maziarraissi/HPM.git

About

This Python script solves the Navier-Stokes equations using Physics-Informed Neural Network. This approach enables the modeling of fluid dynamics problems by learning the velocity field and pressure distribution around a cylindrical obstacle in a flow, as is commonly encountered in computational fluid dynamics (CFD).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages