Code Monkey home page Code Monkey logo

openfoam_tutorials_plus's Introduction

OpenFOAM Tutorials Plus

This repository contains several OpenFOAM tutorials, cases and notes.

Here's a brief description:

  • linuxCheatSheet

    OpenFOAM Linux Cheat Sheet.

  • flatPlate

    A simple 2D geometry is used to show the development of a turbulent boundary layer. It's an exercise of Flow over a flat plate - YouTube.

  • magnusEffect

    A rotating cylinder in free stream to show magnus effect. Gmsh is used to generate mesh.

  • abruptContraction

    Abrupt contraction of a rectangular channel where cavitation occures. The blockMeshDict is written with variables. interPhaseChangeFoam, pisoFoam and pimpleFoam are used.

  • waterChannel

    Two-phase open channel flow. It's a fork of the original interFoam tutorial waterChannel. The surfaces function is configured to generate water surfaces (namely, the isosurfaces where alpha.water is equal to 0.5).

  • fishChannel

    A baffled open channel for fish migration in eco-hydraulic engineering. A combination of blockMesh, topoSet, createBaffles, refineMesh, refineWallLayer etc are used for geometry and mesh generation.

  • cavitatingBullet

    The simplified version of the original cavitatingBullet case. The initialization process using potentialFoam is removed in this version to show the basic usage of interPhaseChangeFoam.

  • mpiTest

    Parallel test for clusters using slurm job management tool. It can also be used on other platforms i.e. workstation after small modification. The case is based on damBreak4PhasesFine with multiphaseEulerFoam.

  • programmingTutorials

    Basic tutorials to show how to programme within the framework of OpenFOAM. Refer to the README file within the folder.

Pull requests are welcome! Happy foaming!

openfoam_tutorials_plus's People

Contributors

forest512 avatar makish avatar phresher avatar unnamedmoose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openfoam_tutorials_plus's Issues

Could you help me a little bit on my question?

Hi Dr. Zhang,
Thank you for the shared materials! Recently, I have simulation cases running on Compute Canada, these cases could run well on my laptop. Here is the batch file,

`#!/bin/bash

#SBATCH --account=def-***
#SBATCH --ntasks-per-node=48
#SBATCH --time=12:10:00
#SBATCH --job-name=test1
#SBATCH --output=job-%j.out

module force purge
module load openfoam/7

blockMesh
setFields
decomposePar
mpirun -n 48 interFoam -parallel
reconstructPar`

The blockMesh, setFields, and decomposePar worked well, can be seen in the .out file. However, the calculation only runs for 1 step, then no more results came out, as shown below:
image

May I ask have you seen this kind of problem? I tried a lot, but could not solve the problem. Thank you in advance!

Best
Sloan Liu

Could you give more details about programming tutorials?

Hi Zhang Qi,

I just use OpenFOAM for a couple of months. I feel so happy to find this tutorial. Could you show us more details about the programming tutorials. It is best if you can provide some step by step slides or PDF files.

I found you are Chinese too, can I contact you sometime? Could you feel free to contact me anytime by email ([email protected]).

Looking forward to hearing from you!

Best wishes,
ZHU Xiaosong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.