Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions FSI/cylinderFlap_2D/OpenFOAM-deal.II/Fluid/0.orig/U
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,11 @@ boundaryField

inlet
{
// Time-varying inlet velocity
type uniformFixedValue;
uniformValue table
(
( 0 ( 0 0 0 ) )
( 2. ( 2. 0 0 ) )
( 100 ( 2. 0 0 ) )
);
// Time-varying parabolic inlet profile
type groovyBC;
variables "yp=pts().y;minY=min(yp);maxY=max(yp);para=-1.5*(maxY-pos().y)*(pos().y-minY)/(0.25*pow(maxY-minY,2))*normal();";
valueExpression "time()<2 ? 0.5*(1-cos(0.5*pi*time()))*2*para : 2*para";
value uniform (2 0 0);
}

outlet
Expand Down
Empty file.
34 changes: 17 additions & 17 deletions FSI/cylinderFlap_2D/OpenFOAM-deal.II/Fluid/system/blockMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;
scale 1;

// Geometry parameters
f -0.5; // z-front
b 0.5; // z-back
f -0.1; // z-front
b 0.1; // z-back

// Grid refinement parameters
H1 13; // Nx first block
H2 17; // Nx second block
H3 34; // Nx third block
H4 65; // Nx last block
H5 9; // amount of cells above/below flap

V1 13; // Ny first inlet/outlet block
V2 17; // Ny second inlet block
V3 10; // Amount of cells in radius
V4 9; // Ny above/blow flap to back
V5 14; // Ny top inlet/outlet block
V6 2; // Ny after flap
H1 21; // Nx first block
H2 35; // Nx second block
H3 78; // Nx third block flap in x
H4 120; // Nx last block
H5 14; // amount of cells above/below flap

V1 22; // Ny first inlet/outlet block: Bottom wall to flap block
V2 35; // Ny second inlet block
V3 20; // Amount of cells in radius
V4 14; // Ny above/blow flap to back
V5 23; // Ny top inlet/outlet block: Top wall to flap block
V6 5; // Ny after flap

GR 2.5; // Circular mesh gradient
GO 8; // Outlet grading
GO 11.5; // Outlet grading


vertices
(
Expand Down
Loading