1
John Wendelbo Senior CFD Engineer [email protected] Flow Science +1 505 982 0088 x140 Brian Fox CFD Engineer [email protected] Flow Science +1 505 982 0088 x110 USSD Annual Conference – April 3- 7, 2017 – Anaheim, CA Numerical modeling of Piano Key Weirs using FLOW-3D Abstract The CFD software FLOW-3D is one of the more common tools used by engineers in the numerical study of Piano Key weir discharge characteristics. It is important for CFD practitioners to be keenly aware of what constitutes good modeling practice for these structures. A direct implication is that modelers need to understand the effects and uncertainties that are associated with the choices one makes in creating a CFD model: the type of turbulence model chosen and its respective parameter details, the effect of grid refinement on the solution, the effect of using different types of meshing approaches, the effect of pressure convergence criterion and more. Does any of this even matter? How much? This work systematically explores the FLOW-3D modeling setup parameter space and compares FLOW-3D results with known experimental results. The results compare an experimental study of the discharge-head relationship for PK weirs with FLOW-3D modeling results. The work also highlights various simulation design strategies, model setup parameters and numerical options that may affect simulation results. Experimental Setup Upstream BC: Stagnation Pressure defined as at the inlet Downstream BC: Pressure BC to allow free discharge and unsubmerged tailwater condition Geometry: Generated in CAD and imported as an STL file Multiple mesh blocks defined to allow for varying mesh element sizes and a decreased cell count to reduce simulation time Flume Wall BC: Flume floor defined as a Wall Boundary Symmetry BC: Because of symmetry in weir geometry, only a portion of the weir was included in the model to reduce the simulation time. Mesh elements sized to resolve the thickness of the weir walls Results Discussion Anderson, Ricky M., "Piano Key Weir Head Discharge Relationships" (2011). All Graduate Theses and Dissertations. 880. http://digitalcommons.usu.edu/etd/880 Anderson (2011) completed a physical model study to evaluate discharge vs. head relationships of P-K weirs. The physical model was constructed with a 4- cycle flat crested P-K weir using various configurations of inlet and outlet width (Wi/Wo) that were tested over a range of discharges. FLOW-3D predictions for weir discharge at a given were generally less than 5% of experimental data. Mesh design was determined to be the most important component of the simulation setup. Aspects of mesh design that improved performance included: Modeling only a section of the weir using a symmetry boundary condition to reduce the domain and decrease runtime. Modeled discharges with the reduced domain compared within less than 2% of the full width model. Defining mesh planes to ensure FAVOR™ captures weir geometry for maximum resolution. Limiting cell sizes to be smaller than the thickness of the weir walls ensures that geometry is fully resolved by FAVOR™. Cell sizes larger than weir walls may result in gaps or holes in the weir geometry. The cell size limitation may pose practical difficulties in simulations with large domains and thin weir walls. This can be mitigated by using advanced conformal meshing options or high performance computing options. Various numerical options were tested to improve the simulation setup for accuracy and runtime. It was found that the default numerical options typically produced the best result. As is well known for spillway applications using FLOW- 3D, first order methods were found to produce more accurate predictions of discharge over higher order momentum advection methods. Three VOF methods were tested and found to provide similar estimates in discharge. Pressure solver convergence was improved in several cases by increasing the GMRES subspace size. In this validation study, the physical model geometry from Anderson (2011) for the case of Wi/Wo = 1 was replicated in FLOW-3D. Boundary conditions were defined to specify an inlet total hydraulic head ( ), and the calculated discharge was measured across the structure. Simulation Design and Sensitivity Testing Pressure Boundary Conditions In general, the discharge capacity of a weir can be related to the total upstream head ( ) using the weir equation. The total head includes the sum of both the piezometric ( ) and velocity head 2 2 . = 2 3 2 2/3 In FLOW-3D, users can define two different types of pressure boundaries to specify a fixed or . The stagnation pressure boundary corresponds to defining an , and the static pressure boundary corresponds to defining an at the inlet. Selecting the correct pressure boundary type will depend on the type of available experimental data. E.G.L. 0.000 0.100 0.200 0.300 0.400 0.500 0.600 0.000 0.100 0.200 0.300 0.400 0.500 0.600 0.700 0.800 0.900 1.000 Discharge Coefficient, CD HT / P H T /P vs C D 0 1 2 3 4 5 6 7 8 9 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 Discharge (cfs) Total Head, HT H T vs Q 0 1 2 3 4 5 6 7 8 9 0 0.1 0.2 0.3 0.4 0.5 0.6 Discharge (cfs) Piezometric Head, HP H P vs Q Comparison of experimental results from Anderson (2011) and FLOW-3D simulation results for a mesh resolution of 3-7 cells across the weir crest. The results show that FLOW-3D predictions of discharge and discharge coefficient are generally within 5% or less of the experimental data. Mesh Design: Grid Refinement Sensitivity The maximum cell size was limited to the thickness of the weir wall to ensure FAVOR resolved these objects. Grid refinement was tested for different , but it was found that most results were generally less than 5% regardless of additional mesh refinement. 0% 1% 2% 3% 4% 5% 0 2 4 6 8 10 12 14 % CD Error # Cells Resolved at Weir Crest H1 H3 H4 H5 Momentum Advection Different momentum advection methods were evaluated but the results show that higher order methods did not improve simulation results of discharge over the weir for a defined . GMRES Subspace The pressure-velocity field is solved in FLOW-3D using the GMRES method. This is typically the most efficient pressure solver in FLOW-3D and is used by default. For simulations where the pressure solver has difficulty converging, it may be necessary to increase the GMRES subspace parameter. For simulations with high cell counts, this parameter was increased from the default value of 15 to a value of 30, leading to improved solver convergence and simulation speed ups of 10x. VOF The volume of fluid (VOF) method is used by FLOW-3D to track the free surface interface and there are several different advection methods for the VOF function in FLOW- 3D. Three of these methods were compared and all provided similar discharge results. Numerical Options FLOW-3D is a registered trademark in the US and other countries FLOW-3D Setup

Numerical modeling of Piano Key Weirs using FLOW-3D · PDF fileNumerical modeling of Piano Key Weirs using FLOW-3D ... weir walls ensures that geometry is fully resolved by FAVOR™

  • Upload
    dangque

  • View
    219

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Numerical modeling of Piano Key Weirs using FLOW-3D · PDF fileNumerical modeling of Piano Key Weirs using FLOW-3D ... weir walls ensures that geometry is fully resolved by FAVOR™

John Wendelbo Senior CFD [email protected] Science+1 505 982 0088 x140

Brian FoxCFD [email protected] Science+1 505 982 0088 x110

USSD Annual Conference – April 3- 7, 2017 – Anaheim, CA

Numerical modeling of Piano Key Weirs using FLOW-3D

Abstract

The CFD software FLOW-3D is one of the more common tools used by engineers in the numerical study of PianoKey weir discharge characteristics. It is important for CFD practitioners to be keenly aware of what constitutesgood modeling practice for these structures. A direct implication is that modelers need to understand theeffects and uncertainties that are associated with the choices one makes in creating a CFD model: the type ofturbulence model chosen and its respective parameter details, the effect of grid refinement on the solution, theeffect of using different types of meshing approaches, the effect of pressure convergence criterion and more.Does any of this even matter? How much? This work systematically explores the FLOW-3D modeling setupparameter space and compares FLOW-3D results with known experimental results. The results compare anexperimental study of the discharge-head relationship for PK weirs with FLOW-3D modeling results. The workalso highlights various simulation design strategies, model setup parameters and numerical options that mayaffect simulation results.

Experimental Setup

Upstream BC:StagnationPressure definedas 𝐻𝑇 at theinlet

Downstream BC:Pressure BC to allow freedischarge and unsubmergedtailwater condition

Geometry:Generated in CAD andimported as an STL file

Multiple mesh blocks defined to allow for varying mesh element sizes and a decreased cell count to reduce simulation time

Flume Wall BC:Flume floor defined as a Wall Boundary

Symmetry BC:Because of symmetry in weirgeometry, only a portion of theweir was included in the modelto reduce the simulation time.

Mesh elements sized to resolve the thickness of the weir walls

Results Discussion

Anderson, Ricky M., "Piano Key Weir Head Discharge Relationships" (2011). All Graduate Theses and Dissertations. 880. http://digitalcommons.usu.edu/etd/880

Anderson (2011) completed a physical model study to evaluate discharge vs.head relationships of P-K weirs. The physical model was constructed with a 4-cycle flat crested P-K weir using various configurations of inlet and outletwidth (Wi/Wo) that were tested over a range of discharges.

FLOW-3D predictions for weir discharge at a given 𝐻𝑇 weregenerally less than 5% of experimental data. Mesh design wasdetermined to be the most important component of thesimulation setup. Aspects of mesh design that improvedperformance included:

• Modeling only a section of the weir using a symmetryboundary condition to reduce the domain and decreaseruntime. Modeled discharges with the reduced domaincompared within less than 2% of the full width model.

• Defining mesh planes to ensure FAVOR™ captures weirgeometry for maximum resolution.

• Limiting cell sizes to be smaller than the thickness of theweir walls ensures that geometry is fully resolved byFAVOR™. Cell sizes larger than weir walls may result ingaps or holes in the weir geometry. The cell size limitationmay pose practical difficulties in simulations with largedomains and thin weir walls. This can be mitigated byusing advanced conformal meshing options or highperformance computing options.

Various numerical options were tested to improve thesimulation setup for accuracy and runtime. It was found thatthe default numerical options typically produced the bestresult. As is well known for spillway applications using FLOW-3D, first order methods were found to produce more accuratepredictions of discharge over higher order momentumadvection methods. Three VOF methods were tested and foundto provide similar estimates in discharge. Pressure solverconvergence was improved in several cases by increasing theGMRES subspace size.

In this validation study, the physical model geometry from Anderson(2011) for the case of Wi/Wo = 1 was replicated in FLOW-3D. Boundaryconditions were defined to specify an inlet total hydraulic head (𝐻𝑇), andthe calculated discharge was measured across the structure.

Simulation Design and Sensitivity Testing

Pressure Boundary Conditions

In general, the discharge capacity of a weir can berelated to the total upstream head (𝐻𝑇) using the weirequation. The total head includes the sum of both the

piezometric (𝐻𝑝) and velocity head𝑉2

2𝑔.

𝑄 = 𝐶𝐷2

32𝑔𝐿𝐻𝑇

2/3

In FLOW-3D, users can define two different types ofpressure boundaries to specify a fixed 𝐻𝑇 or 𝐻𝑝. The

stagnation pressure boundary corresponds to definingan 𝐻𝑇 , and the static pressure boundary correspondsto defining an 𝐻𝑝 at the inlet. Selecting the correct

pressure boundary type will depend on the type ofavailable experimental data.

E.G.L.

𝑽𝟐

𝟐𝒈 𝑯𝑻

𝑯𝑷

𝑭𝒍𝒐𝒘𝑫𝒊𝒓𝒆𝒄𝒕𝒊𝒐𝒏

0.000

0.100

0.200

0.300

0.400

0.500

0.600

0.000 0.100 0.200 0.300 0.400 0.500 0.600 0.700 0.800 0.900 1.000

Dis

char

ge C

oe

ffic

ien

t, C

D

HT / P

HT/P vs CD

0

1

2

3

4

5

6

7

8

9

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7

Dis

char

ge (

cfs)

Total Head, HT

HT vs Q

0

1

2

3

4

5

6

7

8

9

0 0.1 0.2 0.3 0.4 0.5 0.6

Dis

char

ge (

cfs)

Piezometric Head, HP

HP vs Q

Comparison of experimental results from Anderson (2011) and FLOW-3D simulation results for a mesh resolution of 3-7 cells across the weir crest. The results show that FLOW-3D predictions of discharge and discharge coefficient are generally within 5% or less of the experimental data.

Mesh Design: Grid Refinement Sensitivity

The maximum cell size was limited to thethickness of the weir wall to ensure FAVORresolved these objects. Grid refinement wastested for different 𝐻𝑇, but it was found thatmost results were generally less than 5%regardless of additional mesh refinement.

0%

1%

2%

3%

4%

5%

0 2 4 6 8 10 12 14

% C

DEr

ror

# Cells Resolved at Weir Crest

H1

H3

H4

H5

Momentum AdvectionDifferent momentum advection methods were evaluatedbut the results show that higher order methods did notimprove simulation results of discharge over the weir for adefined 𝐻𝑇.

GMRES SubspaceThe pressure-velocity field is solved in FLOW-3D using theGMRES method. This is typically the most efficient pressuresolver in FLOW-3D and is used by default. For simulationswhere the pressure solver has difficulty converging, it maybe necessary to increase the GMRES subspace parameter.For simulations with high cell counts, this parameter wasincreased from the default value of 15 to a value of 30,leading to improved solver convergence and simulationspeed ups of 10x.

VOFThe volume of fluid (VOF) method is used by FLOW-3D totrack the free surface interface and there are severaldifferent advection methods for the VOF function in FLOW-3D. Three of these methods were compared and allprovided similar discharge results.

Numerical Options

FLOW-3D is a registered trademark in the US and other countries

FLOW-3D Setup