This repository contains the example cases demonstrated in the Introduction to Programming in OpenFOAM 12 series. You’ll find practical examples for:
- Custom Viscosity Model (Power Law)
- Custom Boundary Conditions
- Scalar Transport Equation
These cases are designed to help you explore OpenFOAM’s extendability by adding, modifying, or creating entirely new functionalities.
-
Clone or Download the Repository
Clone this repository or download the ZIP file to your local machine. -
Explore Case Folders
Inside each folder (e.g.,Session1_ViscosityModel,Session2_BoundaryCondition,Session3_ScalarTransport), you’ll find the necessaryblockMeshDict, solver files, and other configuration files. -
Run the Cases
- Compile any custom boundary condition or viscosity model before running your simulation.
- Use the provided
AllrunorAllcleanscripts if available, or manually follow the steps indicated in each session’s documentation.
Feel free to modify the files to fit your own projects or experiment with different parameters.
-
YouTube Playlist (Persian)
Introduction to Programming in OpenFOAM 12 – YouTube Playlist (in Persian) -
Blog Post
Introduction to Programming in OpenFOAM 12 – Blog Post
These resources provide step-by-step explanations, video demonstrations, and additional insights into how to make the most of your custom developments in OpenFOAM.
If you’d like to contribute or suggest improvements, feel free to open an issue or submit a pull request. Collaboration is always welcome!
Happy Coding & Simulating!