Professional Documents
Culture Documents
DEVELOPMENT OF A SPREADSHEET-BASED
FUEL CELL SIMULATOR: MODELING 2D FLOW
IN A SERPENTINE CHANNEL
1
BACKGROUND
• Depleting
Fossil fuels • Leads to global warming
• Hydrogen (solution)
Alternative • Clean
Solution • Energy carrier
• Proton Exchange
Membrane Fuel Cell
Needs (PEMFC)
efficient • Convert chemical to
Converter for electrical energy
Hydrogen • Low temperature
operation
• High power density 2
PROTON EXCHANGE MEMBRANE FUEL CELLS (PEMFC)[1]
SOURCE
[1] http://www.mdpi.com/1424-8220/9/11/9104/htm/
[2] https://www.robotshop.com/letsmakerobots/using-a-pem-hydrogen-fuel-cell
[3] https://www.researchgate.net/figure/Geometry-of-the-Bipolar-Plates-serpentine-flow-pattern-left-straight-channel_fig1_257939859
3
Thus, simulation is needed to understand the
fundamental phenomena :-
Commercial Alternative
software
• Needs • Cheaper
training • Reliable
• Expensive • Accessible
by everyone
4
PROBLEM STATEMENTS
• Temperature and water management are problems exist in the fuel cell.
5
OBJECTIVES
6
METHODOLOGY
Literature Review
FYP1
Identifying calculation schematic,
governing equation and boundary
conditions
FYP2
Parametric Analysis
Thesis writing
7
LITERATURE REVIEW
No Year Title Journal Comment
1 2010 Design and Application of a Spreadsheet-based ISIJ International, Vol. 50 application of a 1-
Model of the Blast Furnace Factory dimensional static blast
furnace model,
“Masmod” using
Microsoft Excel
2 2010 Spreadsheet-based modeling of liner wear impact Minerals Engineering GMT software (Grinding
on charge motion in tumbling mills Media Trajectory)
3 2011 Solving Groundwater Flow Inverse Problem Using Hydrologic Engineering Applied numerical
Spreadsheet Solver solution for a ground
water inverse problem by
using Excel.
4 2015 Microsoft EXCEL 2010 offers an improved random Clinica Chimica Acta Microsoft excel offers a
number generator allowing efficient simulation in simulation distribution in
chemical laboratory studies. “Data Analysis Add- In”
such as Gaussian
distribution
5 2016 Streamline performance of Excel in stepwise Computer Applications in Visual Basic Application
implementation of numerical solutions. Engineering Education (VBA) as optimal
programming language in
Microsoft excel simulation
8
CALCULATION DOMAIN SCHEMATIC
5mm
0.5mm 1mm
9
GOVERNING EQUATIONS
DISCRETIZED MOMENTUM
EQUATIONS
STAGGERED GRID
ARRANGEMENT
11
SEMI-IMPLICIT METHOD FOR PRESSURE- LINKED EQUATIONS
(SIMPLE) ALGORITHM
Worksheet Ustar
Worksheet Vstar
Worksheet Pprime
Worksheet Pstar
FLOWCHART OF
SIMPLE ALGORITHM
12
IMPLEMENTATION IN MICROSOFT EXCEL
Vin = 1m/s
Pout= 0 Pa (gage)
• Δ x = 1m
• Δ y = 1m
• 𝜌 air = 1.225 kg/m3
• 𝜇 = 1.73 x 10-5 Pa-s
• Convergence criteria = 13
WORKSHEET, PSTAR
s
INPUT
PARAMATER
VELOCITY
MAGNITUDE
14
s WORKSHEET, USTAR
15
WORKSHEET, VSTAR
s
16
WORKSHEET, PPRIME
s
17
SIMULATION VIDEO
fn + F9 18
RESULT
P distribution
u-velocity
profile
v-velocity
profile
Velocity
magnitude
profile
19
DISCUSSION
error analysis using different number of height (mm)
5
5.118
Percentage Error (%)
4 4.42
3.78
3
1
1.34
1
0
0.5 1 1.5 2 2.5
Height (mm)
20
DISCUSSION
Using different type of fluid, Hydrogen
1
Outlet velocity (m/s)
0.8
0.6
0.4
0.2
0
12 13 14 15 16 17 18 19 20 21 22 23 24 25
Hydrogen 0.208 0.295 0.324 0.397 0.466 0.504 0.52 0.522 0.517 0.511 0.507 0.499 0.468 0.328
Air 0.165 0.261 0.336 0.418 0.484 0.523 0.541 0.544 0.538 0.526 0.506 0.468 0.395 0.235
Number of nodes
21
VALIDATION WITH FLUENT ANSYS
Comparison Microsoft Excel with Fluent ANSYS for Velocity (m/s) against position (mm)
1.6
1.4
1.2
velocity (m/s)
1
0.8
0.6
Microsoft Excel
0.4
0.2 Fluent ANSYS
0
Position (mm)
22
CONCLUSION
• Solve more complex channel while varying the density value instead
of making assumption and increase the number of nodes for better
and precise result.
24
THANK YOU
Q&A
25
SERPENTINE FLOW CHANNEL
26
SOURCE
[4]Munson, Bruce Roy, T. H. Okiishi, Wade W. Huebsch, and Alric P. Rothmayer. Fundamentals of Fluid Mechanics. Hoboken, NJ: John Wiley & Sons, 2013..
Simulation CONT
27
Serpentine flow channel CONT
W = West
E = East
N = North
S = South
29
Governing equations
Navier stokes equation
cont
30
𝜕𝑢 𝜕𝑣 𝜕𝑤
Volumetric deformation is given by :- 𝑑𝑖𝑣 𝐮= + +
𝜕𝑥 𝜕𝑦 𝜕𝑧
𝐷𝑢 𝜕𝑝 𝜕 𝜕𝑢 𝜕 𝜕𝑢 𝜕𝑣 𝜕 𝜕𝑢 𝜕𝑤
𝜌 =− + 2𝜇 + 𝜆𝑑𝑖𝑣 𝑢 + 𝜇 + + + + 𝑆𝑀𝑥
𝐷𝑡 𝜕𝑥 𝜕𝑥 𝜕𝑥 𝜕𝑦 𝜕𝑦 𝜕𝑥 𝜕𝑧 𝜕𝑧 𝜕𝑥
Navier-Stokes Equation Equation 1
𝐷𝑢 𝜕𝑝
𝜌 = − + 𝑑𝑖𝑣 𝜇 . 𝑔𝑟𝑎𝑑 . 𝒖 + 𝑆𝑀𝑥
𝐷𝑡 𝜕𝑥
Equation 2
𝐷∅ 𝜕(𝜌∅)
𝜌 = + 𝑑𝑖𝑣 (𝜌∅𝒖)
𝐷𝑡 𝜕𝑡
31
• By combining equation 1 and 2 to obtain governing equation of
compressible Newtonian fluid, the equation is
𝜕 𝜌𝑢 𝜕𝑝
• + 𝑑𝑖𝑣 𝜌𝑢𝒖 = − + 𝑑𝑖𝑣 𝜇 . 𝑔𝑟𝑎𝑑 . 𝒖 + 𝑆𝑀𝑥 Equation 3A
𝜕𝑡 𝜕𝑥
𝜕 𝜌𝑣 𝜕𝑝
• + 𝑑𝑖𝑣 𝜌𝑣𝒖 = − 𝜕𝑦 + 𝑑𝑖𝑣 𝜇 . 𝑔𝑟𝑎𝑑 . 𝒖 + 𝑆𝑀𝑦 Equation 3B
𝜕𝑡
𝜕 𝜌𝑤 𝜕𝑝
• + 𝑑𝑖𝑣 𝜌𝑤𝒖 = − 𝜕𝑧 + 𝑑𝑖𝑣 𝜇 . 𝑔𝑟𝑎𝑑 . 𝒖 + 𝑆𝑀𝑧 Equation 3C
𝜕𝑡
32
• From Equation 4, the Partial Differential Equation (PDE) of Momentum
Transport Equation can be acquired :-
• x-momentum equation
𝜕 𝜕 𝜕 𝜕𝑢 𝜕 𝜕𝑢 𝜕𝑝 Equation 5A
• (𝜌𝑢𝑢) + (𝜌𝑣𝑢) = 𝜇 + 𝜇 − +𝑆𝑢 0
𝜕𝑥 𝜕𝑦 𝜕𝑥 𝜕𝑥 𝜕𝑦 𝜕𝑦 𝜕𝑥
• y-momentum equation
𝜕 𝜕 𝜕 𝜕𝑣 𝜕 𝜕𝑣 𝜕𝑝
• (𝜌𝑢𝑣) + (𝜌𝑣𝑣) = 𝜇 + 𝜇 − +𝑆𝑣 0 Equation 5B
𝜕𝑥 𝜕𝑦 𝜕𝑥 𝜕𝑥 𝜕𝑦 𝜕𝑦 𝜕𝑦
• Continuity equation
𝜕𝑢 𝜕𝑣
• (𝜌𝑢) + (𝜌𝑣) = 0 Equation 6
𝜕𝑥 𝜕𝑦
33
actual dimension
Percentage error
= 14.44%
34
Mass balance calculation
35
Row 2, vstar worksheet
Coefficient Formulae
Fw (𝜌𝑢)𝑤 + (𝜌𝑢)𝑝
2
Coefficient Formulae
Fe (𝜌𝑢)𝑒 + (𝜌𝑢)𝑝
(2Dw + Fw) Фw – (2Ds + Fs) Фs
2 Su
Fn (𝜌𝑢)𝑛 + (𝜌𝑢)𝑝 Sp
2 - (2Dw + Fw) – (2Ds + Fs)
Fs (𝜌𝑢)𝑠 + (𝜌𝑢)𝑝
2 d 𝐴
𝑎𝑝
Pe 𝐹
𝐷
Dw max [ 0, ( 1-0.1 |Pew| 5 ] + max [Fw, 0]
aw
De max [ 0, ( 1-0.1 |Pee| 5 ] + max [-Fe, 0]
ae
Dn max [ 0, ( 1-0.1 |Pen| 5 ] + max [-Fn, 0]
an
36
Ds max [ 0, ( 1-0.1 |Pes| 5 ] + max [Fs, 0]
a
Percentage error result
Percentage Error %
Initial Adding by column Adding by row
Uin (m/s)
2D (11 x 11) 2D (11 x 12) 2D(11X13) 2D(12X13) 2D(13X13)
37
pressure
MAGNITUDE OF VELOCITY
38
U-velocity
V-VELOCITY
39