Vous êtes sur la page 1sur 33

Hands-On Session

Yağmur Gülkanat
Res.Assist.
How to Log in
How to log in

ssh gpu**@10.128.2.14 –X

Then enter your password like:

GpU_**

Hands-On Session 23.01.2014 2


Before starting, basic Linux commands

Hands-On Session 23.01.2014 3


Installation of OpenFOAM

Hands-On Session 23.01.2014 4


Set up of the OpenFOAM environment

Hands-On Session 23.01.2014 5


Set up of the OpenFOAM environment

Hands-On Session 23.01.2014 6


Useful alias definitions

Hands-On Session 23.01.2014 7


Creating Run Directory

mkdir –p $FOAM_RUN

cp –r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily $FOAM_RUN

cd OpenFOAM/ygulkanat-1.6-ext/run/pitzDaily

ls

Hands-On Session 23.01.2014 8


Basic Case Structure

Hands-On Session 23.01.2014 9


Basic Case Structure

Hands-On Session 23.01.2014 10


PitzDaily Tutorial

• Steady Turbulent Flow Over a Backward-Facing Step


PitzDaily File Structure – 0 File

Hands-On Session 23.01.2014 11


PitzDaily File Structure – Constant, System Files

Hands-On Session 23.01.2014 12


Problem Definition

• In this example we shall investigate steady turbulent


flow over a backward-facing step. The problem
description is taken from one used by Pitz and Daily in
an experimental investigation against which the
computed solution can be compared. This example
introduces the following OpenFOAM features for the
first time:

- generation of a mesh using blockMesh using full


mesh grading capability;

- steady turbulent flow.

Hands-On Session 23.01.2014 13


Problem Specification

Hands-On Session 23.01.2014 14


Governing Equations

Hands-On Session 23.01.2014 15


Initial-boundary conditions, properties

Hands-On Session 23.01.2014 16


Solver properties

Hands-On Session 23.01.2014 17


Mesh Generation

Hands-On Session 23.01.2014 18


Mesh Information

Hands-On Session 23.01.2014 19


Boundary Conditions and Initial Fields

Hands-On Session 23.01.2014 20


U Velocity File

Hands-On Session 23.01.2014 21


p pressure file

Hands-On Session 23.01.2014 22


Case Control

Hands-On Session 23.01.2014 23


Case Control - fvSchemes

Hands-On Session 23.01.2014 24


Case Control - fvSolution

Hands-On Session 23.01.2014 25


Case Control - controlDict

Hands-On Session 23.01.2014 26


Running the case and post-processing

- blockMesh

- simpleFoam

- paraFoam

Hands-On Session 23.01.2014 27


Running the case and post-processing

Hands-On Session 23.01.2014 28


Running the case and post-processing

Hands-On Session 23.01.2014 29


References

• OpenFOAM® Documentation, http://www.openfoam.org/docs/

• PitzDaily Example,
http://www.foamcfd.org/Nabla/guides/ProgrammersGuidese13.html#x19-
560003.2

• User Forum (http://www.cfd-online.com/Forum/)

• Wiki (http://openfoamwiki.net)

References 23.01.2014 59
Q&A

Vous aimerez peut-être aussi