Skip to content

tmaric/pinnfoam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFOAM Workshop 17 Training - Towards physics-based deep learning in OpenFOAM: Combining OpenFOAM with the PyTorch C++ API

Author

Tomislav Maric, MMA, Mathematics Department, TU Darmstadt, [email protected]

Installation

Dependencies

  • OpenFOAM-v2312
  • python Pandas, matplotlib

Installation

   pinnfoam> ./Allwmake

Usage

In pinnfoam/run/unit_box_domain

    unit_box_domain > blockMesh && pinnFoamSetSphere && pinnFoam 

Visualization

Run

    unit_box_domain > paraview --state=visualize.pvsm 

To view training loss diagrams jupyter notebook and open pinnFoam-visualize-single-training.ipynb', then execute Re-run and Clear Data`.

Grid Search

A primitive Grid Search using python.subprocess is implemented in run/pinnFoam-grid-search.ipynb, just re-run this Jupyter notebook. Visualization of the Grid Search is done by run/pinnFoam-visualize.ipynb.

License

GPL v3.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published