Skip to content

MyProjectsMK/Flow_in_the_U-bend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow in the U-bend

The repository contains an OpenFOAM case (U-bend_0) dedicated to perform CFD simulations of air flow in a U-shaped ventilation duct and scripts written in Python 2.7 (run_calculations) supposed to automate calculations and investigate the point of flow separation from an inner wall of the U-bend.

Structure of the repository

Figure 1

The repository consists of two main folders: run_controls and U-bend_3D_fineMesh_0. The first one contains scripts written in Python which are responsible for automation of CFD simulations and extracting some significant data from the results of the calculations. The second one contains files of an OpenFOAM case of flow in the U-bend.

The run_controls folder contains the following files:

  • detachment_point.py - responsible for localizing the point of flow separation from an inner wall of the U-Bend
  • remove_debris.py - responsible for removing needless files created by other scripts and OpenFOAM
  • run.py - responsible for managing the whole process of CFD simulations; it utilizes pyFoam library to communicate with OpenFOAM
  • write_read_turb_coeffs.py - responsible for setting proper values of turbulence models' coefficients in OpenFOAM files; it utilizes pyFoam library to communicate with OpenFOAM.

The U-bend_3D_fineMesh_0 folder contains the following folders:

  • 0 - boundary conditions
  • constant - mesh and some solver settings
  • system - the rest of solver settings.

Geometry and BCs

3D model of the U-bend: Figure 2

Boundary conditions: Figure 3

Inlet stands for velocity inlet, outlet stands for pressure outlet. Detachment 1 and detachment 2 are 'wall' type BCs created in order to detect the point of flow separation from an inner wall of the U-Bend.

Mesh

Figure 4 Mesh consists of hex type elements. It is thickened near walls in order to more precisely simulate boundary layer.

Results

Velocity of flow in the U-bend visualized using ParaView: Figure 5

Graph of the detachment points obtained in several CFD simulations. The figure was created by the detachment_point.py script:

Figure 6

Spreadsheet containing coordinates of the detachment points obtained in several CFD simulations and values of turbulence model's coefficients used in respective cases. The file was created by the detachment_point.py script:

Figure 7

Releases

No releases published

Packages

No packages published