Pipe flow simulation in OpenFoam using symmetry boundary condition
Objective: The Matlab code below writes the blockMeshDict file of chosen angle required to run the simulation for symmetry boundary condition in OpenFoam: clear all close all clc re = 2100; %Reynolds number d = 0.01; %Diameter r = d/2; %Radius l_h = 0.06*re*d; %Hydrodynamic entrance length theta = 45; %Angle of wedge boundary = "symmetry";…