MONTE CARLO SIMULATION OF FLUID FLOW

Similar documents
Section 8.2 Polar Coordinates

1D2G - Numerical solution of the neutron diffusion equation

7.2.1 Basic relations for Torsion of Circular Members

Physics 2212 GH Quiz #2 Solutions Spring 2016

Part V: Closed-form solutions to Loop Closure Equations

PHYS 110B - HW #7 Spring 2004, Solutions by David Pace Any referenced equations are from Griffiths Problem statements are paraphrased

Lecture 8 - Gauss s Law

Chapter 3 Optical Systems with Annular Pupils

Φ E = E A E A = p212c22: 1

Electrostatics (Electric Charges and Field) #2 2010

Math 209 Assignment 9 Solutions

Math 1105: Calculus I (Math/Sci majors) MWF 11am / 12pm, Campion 235 Written homework 3

Do not turn over until you are told to do so by the Invigilator.

15 Solving the Laplace equation by Fourier method

I( x) t e. is the total mean free path in the medium, [cm] tis the total cross section in the medium, [cm ] A M

Magnetic field due to a current loop.

7.2. Coulomb s Law. The Electric Force

Continuous Charge Distributions: Electric Field and Electric Flux

I. CONSTRUCTION OF THE GREEN S FUNCTION

CHAPTER 25 ELECTRIC POTENTIAL

EM-2. 1 Coulomb s law, electric field, potential field, superposition q. Electric field of a point charge (1)

Math 2263 Solutions for Spring 2003 Final Exam

8 Separation of Variables in Other Coordinate Systems

Inverse Square Law and Polarization

Right-handed screw dislocation in an isotropic solid

Tutorial Exercises: Central Forces

Physics 2B Chapter 22 Notes - Magnetic Field Spring 2018

( ) [ ] [ ] [ ] δf φ = F φ+δφ F. xdx.

, and the curve BC is symmetrical. Find also the horizontal force in x-direction on one side of the body. h C

Stress, Cauchy s equation and the Navier-Stokes equations

Question 1: The dipole

THE LAPLACE EQUATION. The Laplace (or potential) equation is the equation. u = 0. = 2 x 2. x y 2 in R 2

Rigid Body Dynamics 2. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2018

INTRODUCTION. 2. Vectors in Physics 1

Homework # 3 Solution Key

Qualifying Examination Electricity and Magnetism Solutions January 12, 2006

Chemical Engineering 412

But for simplicity, we ll define significant as the time it takes a star to lose all memory of its original trajectory, i.e.,

On the Sun s Electric-Field

Geometry of the homogeneous and isotropic spaces

Easy. r p 2 f : r p 2i. r p 1i. r p 1 f. m blood g kg. P8.2 (a) The momentum is p = mv, so v = p/m and the kinetic energy is

$ i. !((( dv vol. Physics 8.02 Quiz One Equations Fall q 1 q 2 r 2 C = 2 C! V 2 = Q 2 2C F = 4!" or. r ˆ = points from source q to observer

r cos, and y r sin with the origin of coordinate system located at

Radial Inflow Experiment:GFD III

Fresnel Diffraction. monchromatic light source

ON THE TWO-BODY PROBLEM IN QUANTUM MECHANICS

Diffusion and Transport. 10. Friction and the Langevin Equation. Langevin Equation. f d. f ext. f () t f () t. Then Newton s second law is ma f f f t.

EM Boundary Value Problems

3.6 Applied Optimization

B. Spherical Wave Propagation

Physics Fall Mechanics, Thermodynamics, Waves, Fluids. Lecture 18: System of Particles II. Slide 18-1

Chapter 22: Electric Fields. 22-1: What is physics? General physics II (22102) Dr. Iyad SAADEDDIN. 22-2: The Electric Field (E)

11) A thin, uniform rod of mass M is supported by two vertical strings, as shown below.

The Schwartzchild Geometry

The geometric construction of Ewald sphere and Bragg condition:

Physics 235 Chapter 5. Chapter 5 Gravitation

1 Spherical multipole moments

PHY2061 Enriched Physics 2 Lecture Notes. Gauss Law

2. Electrostatics. Dr. Rakhesh Singh Kshetrimayum 8/11/ Electromagnetic Field Theory by R. S. Kshetrimayum

Flux. Area Vector. Flux of Electric Field. Gauss s Law

University of Illinois at Chicago Department of Physics. Electricity & Magnetism Qualifying Examination

Computational Methods of Solid Mechanics. Project report

Chapter 12: Kinematics of a Particle 12.8 CURVILINEAR MOTION: CYLINDRICAL COMPONENTS. u of the polar coordinate system are also shown in

DOING PHYSICS WITH MATLAB COMPUTATIONAL OPTICS

Chapter 4. Newton s Laws of Motion

Stress Intensity Factor

rt () is constant. We know how to find the length of the radius vector by r( t) r( t) r( t)

Hopefully Helpful Hints for Gauss s Law

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department. Problem Set 10 Solutions. r s

Flux Shape in Various Reactor Geometries in One Energy Group

2 E. on each of these two surfaces. r r r r. Q E E ε. 2 2 Qencl encl right left 0

MAGNETIC FIELD AROUND TWO SEPARATED MAGNETIZING COILS

e.g: If A = i 2 j + k then find A. A = Ax 2 + Ay 2 + Az 2 = ( 2) = 6

An Exact Solution of Navier Stokes Equation

PHYS 301 HOMEWORK #10 (Optional HW)

Magnetic Field. Conference 6. Physics 102 General Physics II

1 Fundamental Solutions to the Wave Equation

Scattering in Three Dimensions

Newton s Laws, Kepler s Laws, and Planetary Orbits

Homework 7 Solutions

OSCILLATIONS AND GRAVITATION

Physics Courseware Electromagnetism

ASTR415: Problem Set #6

Chapter 13 Gravitation

Magnetic fields (origins) CHAPTER 27 SOURCES OF MAGNETIC FIELD. Permanent magnets. Electric currents. Magnetic field due to a moving charge.

Gauss Law. Physics 231 Lecture 2-1

Math 124B February 02, 2012

Review: Electrostatics and Magnetostatics

Ch 30 - Sources of Magnetic Field! The Biot-Savart Law! = k m. r 2. Example 1! Example 2!

Physics 107 TUTORIAL ASSIGNMENT #8

Physics 506 Winter 2006 Homework Assignment #9 Solutions

transformation Earth V-curve (meridian) λ Conical projection. u,v curves on the datum surface projected as U,V curves on the projection surface

PES 3950/PHYS 6950: Homework Assignment 6

Physics 122, Fall October 2012

c n ψ n (r)e ient/ h (2) where E n = 1 mc 2 α 2 Z 2 ψ(r) = c n ψ n (r) = c n = ψn(r)ψ(r)d 3 x e 2r/a0 1 πa e 3r/a0 r 2 dr c 1 2 = 2 9 /3 6 = 0.

Physics 111 Lecture 5 (Walker: 3.3-6) Vectors & Vector Math Motion Vectors Sept. 11, 2009

ASTR 3740 Relativity & Cosmology Spring Answers to Problem Set 4.

Chapter 5 Force and Motion

Chapter 5 Force and Motion

KEPLER S LAWS OF PLANETARY MOTION

Transcription:

MONTE CARLO SIMULATION OF FLUID FLOW M. Ragheb 3/7/3 INTRODUCTION We conside the situation of Fee Molecula Collisionless and Reflective Flow. Collisionless flows occu in the field of aefied gas dynamics. The molecules in this case can impinge on a suface and then be eflected to e-impinge on the suface seveal times befoe escape. These types of flow which involve multiple inteactions occu in intenal as well as extenal flows past bodies of complex geomety. If we conside a suface exposed to a gas unde fee-molecule conditions, the numbe of molecules incident pe unit time on a suface element d at the location diectly fom the extenal gas can be witten as: N () d () The numbe of molecules pe second that stikes d at thei second collision is: N ( ) d = P( ', ) N ( ') d ' d () whee P(,) is the pobability that a molecule eflected fom the element of suface d at the location stikes the new location. The numbe of paticles stiking d at thei thid collision becomes: N ( ) d = P( ', ) N ( ') d ' d (3) 3 As descibed by G. Bid, the total numbe flux at a location becomes the sum: N() = N () + N () + N () +... (4) 3 Substituting fom Eqs.-3 into Eqn. 4 yields: N () = N() + P( ', )[ N ( ') + N ( ') + N ( ') +...] d' 3 (5) This yields a Fedholm integal equation of the second kind: N () = N() + P (',) Nd () ' (6)

This integal equation is analogous to othe equations aising in the field of neuton tanspot, namely the desciption of a neuton beam impinging on a shield, o the slowing down of a neuton in a modeato. This means that the methods of analysis in both fields ae simila. PARTICLE TRACKING IN MONTE CARLO SIMULATIONS The tacking of paticles in complex geometies is an impotant aspect of Monte Calo simulations. Complex geometies ae descibed in paticle tanspot codes in tems of diffeent sufaces whose intesections and unions ae in tun descibed in combinatoial geometies modules. Figue. Geomety fo paticle tacking and detemination of diection cosines. The intesection of paticle tajectoies with diffeent sufaces can be obtained fom thee-dimensional coodinate geomety. Consideing the x-axis as the diection of popagation, the diection cosines of a paticle ae given by: x u = = cosθ y v = = sinθcosφ z w = = sinθsinφ (7)

A staight line tajectoy can be descibed in tems of these u, v and w diection cosines and the initial point fom which the line oiginates: (x, y, z ). We conside the intesection of a line of length l descibed as: x= x + ul. y= y + vl. z = z + wl. (8) with a quadic suface given by: Sxyz (,, ) = ax + a y + a z + 33 a yz + a zx + a xy + 44 3 3 a x+ a y+ a z+ a 4 4 34 = (9) Defining: A= au + av+ aw+ 33 a vw + a wu + a uv 3 3 A = ua ( x+ a y+ a z+ a ) + 3 4 va ( x+ a y+ a z+ a ) + 3 3 4 wa ( x+ a y+ a z+ a ) A= Sx (, y, z) 3 3 33 34 () The positive eal oot of the quadatic equation gives the intesection point of the line and the quadatic suface: Al + Al+ A = () 3 The two eal oots ae: l, A ± 4A 4AA = A 3 A ± A AA = A 3 () The eal oots ae substituted into the equation of the line to detemine the two intesection points:

X = x + ul. Y = y + vl. Z = z + wl. (3) and: X = x + ul. Y = y + vl. Z = z + wl. (4) The positive oot is taken as the new point fom which to stat a new paticle eflection and tanspot. CYLINDRICAL TUBE FREE MOLECULAR FLOW As an application we conside the fee molecula gas flow though a cylindical tube of adius and length b as shown in Fig.. The gas impinges fom the left side and flows though the tube though the pocess of effusion to the ight side along the x-axis. The molecules passing though the tube ae of two categoies:. Those that pass diectly though the tube,. Those that ae eflected once o multiple times though the inne suface of the tube. The total paticle flux though the tube thus takes the fom of Eqn. 6 as: b N = N + N( x) P( x) dx (5) total diect whee P(x) is the pobability that a paticle eflected fom the element of length dx at x passes though the tube. This equation cannot be applied to unsteady flows since it does not contain the time explicitly. Its solution has been fist been attempted by Clausing in 96. The testpaticle Monte Calo method can be applied to its solution by consideing a lage numbe of molecula tajectoies to calculate the values of N total and N diect. The solution to the poblem is dependent on the tube length to diamete atio: b L = (6) as shown in Fig..

Figue. Cylindical Tube Flux poblem geomety. MONTE CARLO PROCEDURE The fist step in simulating the paticle tanspot poblem is to sample the adial position of the souce paticle on the left face of the tube. The appopiate pobability density function fo the adial position is: πd πd p() d = = a π a π d (7) Its cumulative distibution function is equated to a pseudoandom numbe unifomly distibuted ove the unit inteval as: C () π d = = = π a a ρ (8) Upon invesion this yields a sampled adius given by: = aρ (9)

The impinging paticles follow a cosine pobability density function epesenting a souce on a plane coveing a π solid angle, with the pola angle vaying ove the inteval to π/, given by: sinθcosθdθdφ p( θφ, ) dθdφ= () π which can be sepaated into the two pobability density functions fo the pola and the azimuthal angles: p( θφ, ) dθdφ= p( θ) dθ. p( φ) dφ, p( θ) dθ = sinθcos θdθ, dφ p( φ) dφ =. π () The cumulative distibution function fo the azimuthal angle is given by: C( φ) φ dφ φ π π = = = ρ () Upon invesion this yields the sampled azimuthal angle: φ = πρ (3) The cumulative distibution fo the pola angle is given by: θ C( θ) = sinθcosθdθ = cos θd(cos θ) = cos θ = cos θ = ρ θ (4) θ 3 This yields fo the sampled pola cosine of the pola angle: 3 3 µ = cos θ = ( ρ ) ρ (5) The diection cosines can then be calculated accoding to Eqn. 7:

x u = = µ y v = = ( µ ) cosφ z w = = ( µ ) sin φ (6) The paticle tacking pocess then poceeds accoding to the pocedue shown in Fig. 3.! Fee_Molecula_Flow.fo! Fee collisionless molecula flow though a cicula tube! Test Paticle Monte Calo Simulation! Magdi Ragheb pogam Fee_Molecula_Flow eal lt,diect,fdiect,passing,fpassing,l,m,n intege tials eal :: adius=. eal :: length=.! Length to adius atio, lt lt=length/adius wite(*,*) 'Length to adius atio=',lt! Total numbe of tials tials= wite(*,*) 'Total numbe of tials=',tials! Initialize countes! Numbe of paticles passing diectly though tube without! collisions: though diect=.! Total numbe passing though tube passing=.! Loop ove total numbe of tials do i=,tials! Sample a andom adius at tube enty face call andom() =adius*sqt()! Sample souce diection cosines call souce(l,m,n)! Calculate position of souce intesection with cylinde a=m*m b=n*n c=adius*adius d=* position=l*(*m+sqt(c*(a+b)-d*b))/(a+b)! Test fo paticle exiting cylinde if(position.gt.length) goto 777! Calculate diffuse diection cosines fo eflection off the wall! Upon eflection, m eveses to l and m eveses to l call souce(m,l,n)! Detemine next intesection point position=position+.*l*adius*m/(m*m+n*n)! Test if position less than zeo if (position lt..) goto 999! Test fo position lage than length of tube

if (position.gt length) goto 888! Let paticle eflect off bounday go to! Scoe a paticle diectly passing though tube 777 diect=diect+.! Scoe a tansmitted paticle 888 passing=passing+.! Do not scoe, stat new saouce paticle 999 continue end do! Geneate output esults! Faction passing diectly though tube without collisions fdiect=diect/tials! Total faction of paticles passing though tube fpassing=passing/tials wite(*,*)'faction passing diectly though=',fdiect wite(*,*)'total faction passing=',fpassing end suboutine souce(w,u,v) eal u,v,w! Simulation of effusion o gas emission pi=3.459 call andom()! Diection cosine along diection of effusion o z-axis! w=cos(pola angle theta), takes values fom zeo to one costheta=sqt() sintheta=sqt(.-w*w)! Sample azimuthal angle phi call andom() phi=.*pi*! Diection cosines! elative to x-axis u=sintheta*cos(phi)! elative to y-axis v=sintheta*sin(phi)! elative to z-axis w=costheta etun end Figue 3. Monte Calo pocedue fo the cylindical Tube Flux Poblem.

Figue 4. Flow Chat fo computational steps.

A special case of the quadatic suface of Eqn. 9 fo the case of the cylinde is given with: a a = a =,. 33 44 = The initial coodinates take advantage of symmety and and become: z y x =, =, =. Thus one can deduce that the coodinates of the intesection of the paticle s path with the cylinde, using symmety is: x u v + v + w w int = y z int int { [ ( ) } ], v + w = =. The new x coodinate value of the next point of intesection with the cylindical suface becomes: x new u v = x + int int int vint + wint A flow Chat fo the computational steps is shown in Fig. 4. DISCUSSION The esult of the Monte Calo simulation fo a tube with a length to adius atio of unity is shown in Table. It is also compaed to the same analytical esult by Clausius fo the same atio. It should be noticed that the methodology discussed hee is useful fo steady state flows. Howewve since it does not involve the time vaiable explicitly, if unsteady flow is unde consideation, then an appoach involving Diect Simulation Monte Calo (DSMC) becomes the possible altenative. Table. Compaison of Monte Calo and Analytical esults. Monte Calo Simulation Exact Analytical esult 6 paticles Clausing (93) Length to adius atio

Faction passing diectly though Total faction passing though tube.3899 -.683983.67 EXERCISE. Fo the poblem of fee molecula flow though a tube, plot the faction passing diectly though and the total faction passing as a function of the length to adius atio of the tube.