51
mjm@ nd . edu http://www. nd . edu /~ mjm http://www. nd . edu /~ chegdept Use of Mathematica as a Teaching Tool for (Computational) Fluid Dynamics and Transport Phenomena Mark J. McCready University of Notre Dame

LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

  • Upload
    dangnhu

  • View
    217

  • Download
    2

Embed Size (px)

Citation preview

Page 1: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Use of Mathematica as a Teaching Toolfor (Computational) Fluid Dynamics and

Transport Phenomena

Mark J. McCreadyUniversity of Notre Dame

Page 2: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Outline� Mixing

� Importance of dimensionless groups

� Experimental study of mixing of viscous materials

� Numerical solution to flow in a rectangular duct� Mathematica used to show finite difference vs finite element

� Mathematica notebooks on computational fluidflow and heat transfer problems� Boundary-layer flow, Falkner-Skan problem

� Natural convection thermal boundary layer

� Mathematica notebooks for other fluid flowproblems� Creeping flow past a sphere

� Introduction to multiphase flows

Page 3: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Dimensionless groups

� A big theme throughout the Junior-LevelFluid Dynamics course is the importance ofcomparing competing or cooperatingeffects and how dimensionless groupsinherently do this.

� To make the point we did a laboratoryexercise on mixing and combined withdimensional analysis.

Page 4: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Mixing Experiment

Page 5: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

ColoringLiquidSoap

Page 6: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Toothpaste and Karo Syrup

Page 7: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

They can be mixed

Page 8: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Mixing questions usingDimensional analysis

Page 9: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Mixing Answers

� Viscous mixing

µµ µω

1

23 2, ,

L

R

P

L

Page 10: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Dimensionless groups do not needto be on technical subjects

CrHow Smart You Are

How Smart You Think You Are≡

Page 11: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

DimensionlessConfucius Proverb

� He who knows not and knows he knows notis a child, teach him, Cr~1

� He who knows not and knows not he knowsnot is a fool, shun him, Cr<<1

� He who knows and knows not he knows isasleep, awaken him, Cr>>1

� He who knows and knows he knows is wise,follow him Cr~1

Page 12: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Dimensionless Proverb

� Child ~ Wise person

Page 13: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Dimensional Analysis NoteBook

Page 14: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Mathematica Note Books

Many of these (and other useful materials) are also available from MathSource, at the Wolfram Research website. This and other courses that use Mathematica materials can be found at the Mathematica Courseware web site.

A simple Mathematica primer, Mathematica_primer.1.nb. (Notebook) Mathematica Primer(html)

A basic introduction to dimensional analysis including physical motivation and how to solve pipe flow. dimensional.analysis.nb. (Notebook) dimensional.analysis.html (html)

A simple primer on why we use log-log plots and what they mean, Primer on log-log and semilog plots. (Notebook) Primer on log-log and semilog plots(html)

An exhaustive solution of the lubricated flow example ("core-annular flow") from Middleman 3.2.3, pp79-82). It demonstrates a number of Mathematica features and several important basic ideas from this course, lubricatedflow.nb (notebook format)lubricatedflow.html (html, this is not as good as the Mathematica version, but you don't need MathReader.)

This one shows how to use the chain rule to nondimensionalize differential equations. It also makes a point that the Resulting dimensionless terms are of order 1. Making a differential equation dimensionless (Notebook format)Making a differential equation dimensionless (html)

Page 15: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Finite Difference and Finite Elementsolution to flow in a Rectangular Duct

Mark J. McCready
http://www.nd.edu/~mjm/RectangularDuct.nb
Page 16: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Objectives for �CFD�� BS engineers, whether we like it or not, will

increasingly be using computationalpackages and analytical instruments thatare �turn key� (they don�t understand howthey work). We need to instill in themboth a healthy skepticism that they needto verify the answers, and enoughfundamental understanding of thedifferent subject so that they can.

Page 17: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

As the aspect ratio is varied from one, thesolution become increasingly inaccurate. The

finite different method works better

Page 18: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Comparison of solutionsAnalytical

Finite diff.

Finite element

Page 19: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Boundary-Layer flows

Mark J. McCready
http://www.nd.edu/~mjm/boundarylayer.nb
Page 20: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Boundary-Layer Flow (cont)

Page 21: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Boundary Layer Flow

Page 22: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Problem set-up

Page 23: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Problem set-up continued

Page 24: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Flow overa flatplate

solution

Page 25: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Flow past a wedge

Page 26: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Flowpast awedge

Page 27: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Solutioncode

Page 28: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 29: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Plots at different angles

Page 30: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Solution of natural convection boundary - layer flow near a heated flat plate

Page 31: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 32: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 33: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 34: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 35: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 36: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 37: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 38: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Demonstration of the effect of flow regime onpressure drop in multifluid flows

Mark J. McCready
http://www.nd.edu/~mjm/Effect.of.Flow.Regime.pdf
Page 39: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 40: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 41: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 42: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Surprising result

Page 43: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Creeping flow past a stationary sphere

Page 44: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 45: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Flow past a sphere problem

Page 46: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 47: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 48: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Page 49: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Velocity field magnitude

Page 50: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Conclusions� Some elements of mixing are incorporated

into the fluid dynamics course� Laboratory experiment

� Dimensional analysis

� The main idea we attempt to convey aboutcomputational fluid dynamics is that it iswonderful if it works, but make sure yoursolution is correct.� Strategy is like using different excess Gibbs Free

Energy models to design distillation columns witha process simulator

Page 51: LA mixing talk - University of Notre Damemjm/mixing.pdf · Ł Mixing Œ Importance of ... Mathematica used to show finite difference vs finite element ... A simple Mathematica primer,

[email protected] http://www.nd.edu/~mjm http://www.nd.edu/~chegdept

Conclusions (cont.)� Mathematica notebooks can be used to

show students� Computations

� To do algebra that is too tedious for them to do

� To allow them to explore the solution

� To incorporate other media

� Questions remain as to if our approachgives a significant or incremental benefitto the students.