https://github.com/NVIDIA/physicsnemo-sym

Framework providing pythonic APIs, algorithms and utilities to be used with PhysicsNeMo core to physics inform model training as well as higher level abstraction for domain experts

https://github.com/NVIDIA/physicsnemo-sym

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.2%) to scientific vocabulary

Keywords

deep-learning machine-learning nvidia-gpu physics pytorch

Keywords from Contributors

climate-science weather
Last synced: 5 months ago · JSON representation

Repository

Framework providing pythonic APIs, algorithms and utilities to be used with PhysicsNeMo core to physics inform model training as well as higher level abstraction for domain experts

Basic Info
Statistics
  • Stars: 270
  • Watchers: 14
  • Forks: 103
  • Open Issues: 55
  • Releases: 12
Topics
deep-learning machine-learning nvidia-gpu physics pytorch
Created about 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Security

README.md

PhysicsNeMo Symbolic

Project Status: Active - The project has reached a stable, usable state and is being actively developed. GitHub Code style: black <!-- markdownlint-enable --> PhysicsNeMo Sym | Getting started | Documentation | Contributing Guidelines | Communication

What is PhysicsNeMo Symbolic?

PhysicsNeMo Symbolic (PhysicsNeMo Sym) is sub-module of PhysicsNeMo framework that provides algorithms and utilities to explicitly physics inform the training of AI models.

Please refer to the PhysicsNeMo framework to learn more about the full stack.

This includes utilities for explicitly integrating symbolic PDEs, domain sampling and computing PDE-based residuals using various gradient computing schemes.

Please refer to the Physics informing surrogate model for Darcy flow that illustrates the concept.

It also provides an abstraction layer for developers that want to compose a training loop from specification of the geometry, PDEs and constraints like boundary conditions using simple symbolic APIs. Please refer to the Lid Driven cavity that illustrates the concept.

Additional information can be found in the PhysicsNeMo documentation.

Getting started

Please use the getting started guide here for PhysicsNeMo

Please refer Introductory Example for usage of the physics utils in custom training loops and Lid Driven cavity for an end-to-end PINN workflow.

Installation

Please ensure you have installed PhysicsNeMo using the steps here.

You can then install this package following the steps outlined below:

PyPi

The recommended method for installing the latest version of PhysicsNeMo Symbolic is using PyPi:

bash pip install "Cython" pip install nvidia-physicsnemo.sym --no-build-isolation

Note, the above method only works for x86/amd64 based architectures. For installing PhysicsNeMo Sym on Arm based systems using pip, Install VTK from source as shown here and then install PhysicsNeMo-Sym and other dependencies.

bash pip install nvidia-physicsnemo.sym --no-deps pip install "hydra-core>=1.2.0" "termcolor>=2.1.1" "chaospy>=4.3.7" "Cython==0.29.28" \ "numpy-stl==2.16.3" "opencv-python==4.5.5.64" "scikit-learn==1.0.2" \ "symengine>=0.10.0" "sympy==1.12" "timm>=1.0.3" "torch-optimizer==0.3.0" \ "transforms3d==0.3.1" "typing==3.7.4.3" "pillow==10.0.1" "notebook==6.4.12" \ "mistune==2.0.3" "pint==0.19.2" "tensorboard>=2.8.0"

Container

The recommended PhysicsNeMo docker image can be pulled from the NVIDIA Container Registry:

bash docker pull nvcr.io/nvidia/physicsnemo/physicsnemo:<tag>

From Source

Package

For a local build of the PhysicsNeMo Symbolic Python package from source use:

```Bash git clone git@github.com:NVIDIA/physicsnemo-sym.git && cd physicsnemo-sym

pip install --upgrade pip pip install . ```

Source Container

To build release image insert next tag and run below:

bash docker build -t physicsnemo-sym:deploy \ --build-arg TARGETPLATFORM=linux/amd64 --target deploy -f Dockerfile .

Currently only linux/amd64 and linux/arm64 platforms are supported.

Contributing to PhysicsNeMo

PhysicsNeMo is an open source collaboration and its success is rooted in community contribution to further the field of Physics-ML. Thank you for contributing to the project so others can build on top of your contribution.

For guidance on contributing to PhysicsNeMo, please refer to the contributing guidelines.

Cite PhysicsNeMo

If PhysicsNeMo helped your research and you would like to cite it, please refer to the guidelines

Communication

  • Github Discussions: Discuss new architectures, implementations, Physics-ML research, etc.
  • GitHub Issues: Bug reports, feature requests, install issues, etc.
  • PhysicsNeMo Forum: The PhysicsNeMo Forum hosts an audience of new to moderate-level users and developers for general chat, online discussions, collaboration, etc.

Feedback

Want to suggest some improvements to PhysicsNeMo? Use our feedback form.

License

PhysicsNeMo is provided under the Apache License 2.0, please see LICENSE.txt for full license text.

Owner

  • Name: NVIDIA Corporation
  • Login: NVIDIA
  • Kind: organization
  • Location: 2788 San Tomas Expressway, Santa Clara, CA, 95051

GitHub Events

Total
  • Create event: 12
  • Issues event: 24
  • Release event: 3
  • Watch event: 33
  • Delete event: 6
  • Member event: 2
  • Issue comment event: 81
  • Push event: 40
  • Pull request review comment event: 21
  • Pull request review event: 43
  • Pull request event: 47
  • Fork event: 13
Last Year
  • Create event: 12
  • Issues event: 24
  • Release event: 3
  • Watch event: 33
  • Delete event: 6
  • Member event: 2
  • Issue comment event: 81
  • Push event: 40
  • Pull request review comment event: 21
  • Pull request review event: 43
  • Pull request event: 47
  • Fork event: 13

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 131
  • Total Committers: 13
  • Avg Commits per committer: 10.077
  • Development Distribution Score (DDS): 0.29
Past Year
  • Commits: 55
  • Committers: 5
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.091
Top Committers
Name Email Commits
Kaustubh Tangsali 7****i 93
Nicholas Geneva 5****a 14
Mohammad Amin Nabian m****n@n****m 5
ram-cherukuri 1****i 4
Clement Etienam 3****m 4
Peter Sharpe p****e@g****m 2
Ashwini Awatiger 5****r 2
Akshay Subramaniam 6****r 2
Ryo Misawa 6****n 1
Michal Takac t****2@g****m 1
Louis Guitton l****n 1
Alexey Kamenev a****v@g****m 1
abokov-nv a****v@n****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 42
  • Total pull requests: 137
  • Average time to close issues: 7 months
  • Average time to close pull requests: 5 days
  • Total issue authors: 29
  • Total pull request authors: 19
  • Average comments per issue: 1.29
  • Average comments per pull request: 1.92
  • Merged pull requests: 116
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 55
  • Average time to close issues: 5 months
  • Average time to close pull requests: 4 days
  • Issue authors: 10
  • Pull request authors: 10
  • Average comments per issue: 1.4
  • Average comments per pull request: 1.22
  • Merged pull requests: 43
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ktangsali (6)
  • NickGeneva (3)
  • Karl-JT (2)
  • cfd1 (2)
  • zinccat (2)
  • zhangzhen117 (2)
  • shourya-p-otta (2)
  • LoveCheeseHB (1)
  • SandrineRakotonarivo (1)
  • radhikrammohan (1)
  • sangnguyens (1)
  • mikeatm (1)
  • vnikoofard (1)
  • HydrogenSulfate (1)
  • ghasemiAb (1)
Pull Request Authors
  • ktangsali (95)
  • NickGeneva (11)
  • mnabian (5)
  • ram-cherukuri (5)
  • clementetienam (2)
  • jsilter (2)
  • pefarrell (2)
  • abokov-nv (2)
  • Alexey-Kamenev (2)
  • peterdsharpe (2)
  • fgvangessel-umd (1)
  • michaltakac (1)
  • chaous (1)
  • emmanuel-ferdman (1)
  • saikrishnanc-nv (1)
Top Labels
Issue Labels
bug (21) ? - Needs Triage (17) external (17) enhancement (11) documentation (4) 0 - Backlog (4) question (2) 2 - In Progress (2) 1 - On Deck (1) distributed (1)
Pull Request Labels
! - Release (18) 3 - Ready for Review (8) bug (3) open source (2) enhancement (2) 5 - Ready to Merge (1) 2 - In Progress (1)

Dependencies

.github/workflows/blossom-ci.yml actions
  • NVIDIA/blossom-action main composite
  • actions/checkout v2 composite
Dockerfile docker
  • $BASE_CONTAINER latest build
  • builder latest build
  • deploy latest build
  • pysdf-install latest build
examples/reservoir_simulation/2D/requirements.txt pypi
  • FyeldGenerator *
  • accelerate *
  • ema-pytorch *
  • gdown *
  • gstools *
  • joblib *
  • kneed *
  • numba *
  • py-cpuinfo *
  • pyDOE *
  • pyvista *
  • scikit-image *
  • scikit-mps *
  • tensorflow ==2.9.1
examples/reservoir_simulation/3D/requirements.txt pypi
  • FyeldGenerator *
  • accelerate *
  • ema-pytorch *
  • gdown *
  • gstools *
  • joblib *
  • kneed *
  • numba *
  • py-cpuinfo *
  • pyDOE *
  • pyvista *
  • scikit-image *
  • scikit-mps *
  • tensorflow ==2.9.1
examples/reservoir_simulation/Norne/Dockerfile docker
  • nvcr.io/nvidia/modulus/modulus 23.09 build