Acoustic streaming modeling Milad Setareh Applied Mechanics/Fluid - - PowerPoint PPT Presentation

acoustic streaming modeling
SMART_READER_LITE
LIVE PREVIEW

Acoustic streaming modeling Milad Setareh Applied Mechanics/Fluid - - PowerPoint PPT Presentation

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Acoustic streaming modeling Milad Setareh Applied Mechanics/Fluid Dynamics, Amirkabir University of Technology, Tehran Polytechnic Tehran, Iran


slide-1
SLIDE 1

Introduction Mathematical modeling of acoustic streaming Modifications Running the case

Acoustic streaming modeling

Milad Setareh

Applied Mechanics/Fluid Dynamics, Amirkabir University of Technology, Tehran Polytechnic Tehran, Iran

December, 2016

Milad Setareh Acoustic streaming modeling 2016 1 / 20

slide-2
SLIDE 2

Introduction Mathematical modeling of acoustic streaming Modifications Running the case

Outline

Introduction Mathematical modeling of acoustic streaming Modifications Running the case

Milad Setareh Acoustic streaming modeling 2016 2 / 20

slide-3
SLIDE 3

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Introduction

Introduction

Acoustic streaming is a vortex flow which shows the interaction between acoustic waves and fluid. Acoustic streaming is a steady flow in a fluid driven by the absorption of high amplitude acoustic oscillations.

Milad Setareh Acoustic streaming modeling 2016 3 / 20

slide-4
SLIDE 4

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Expansion of variables

Expansion of variables

Time discretization of ultrasonic waves less than 10−6s Acoustic streaming relaxation times about 1 s Since solving the complete NavierStokes equations would take a long time, it is necessary to apply an adequate approach to overcome this problem. ρ = ρ0 + ρ1 + ρ2 u = u0 + u1 + u2 p = p0 + p1 + p2 (1)

Milad Setareh Acoustic streaming modeling 2016 4 / 20

slide-5
SLIDE 5

Introduction Mathematical modeling of acoustic streaming Modifications Running the case First order equations

First order equations

∂ρ1 ∂t + ρ0∇ ·

  • u1

= 0 (2) ρ0 ∂u1 ∂t = −∇ · p1 + µ∇2u1 (3) p1 = c2ρ1 (4)

Milad Setareh Acoustic streaming modeling 2016 5 / 20

slide-6
SLIDE 6

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Second order equations

Second order equations

∂ρ2 ∂t + ρ0∇ ·

  • u2

=

  • −∇ ·
  • ρ1u1

(5) ρ0 ∂u2 ∂t = −∇ · p2 + µ∇2u2 +

  • −ρ1 ∂u1

∂t − ρ0 u1 · ∇

  • u1
  • (6)

p2 = c2ρ2 (7)

Milad Setareh Acoustic streaming modeling 2016 6 / 20

slide-7
SLIDE 7

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers

Copy the existing solvers

Copy the sonicLiquidFoam and buoyantBoussinesqSimpleFoam solvers in the local solvers directory and change its name. cd $WM_PROJECT_USER_DIR mkdir -p applications/solvers/compressible/sonicLiquidFoam cd applications/solvers/compressible cp -r $FOAM_SOLVERS/compressible/sonicLiquidFoam . cd sonicLiquidFoam mv sonicLiquidFoam.C mySonicLiquidFoam.C sed -i "s/sonicLiquidFoam/mySonicLiquidFoam/g" Make/files sed -i "s/FOAM_APPBIN/FOAM_USER_APPBIN/g" Make/files wclean wmake

Milad Setareh Acoustic streaming modeling 2016 7 / 20

slide-8
SLIDE 8

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers

Copy the existing solvers

cd $WM_PROJECT_USER_DIR mkdir -p applications/solvers/heatTransfer/buoyantBoussinesq\ SimpleFoam cd applications/solvers/heatTransfer cp -r $FOAM_SOLVERS/heatTransfer/buoyantBoussinesq\ SimpleFoam . cd buoyantBoussinesqSimpleFoam mv buoyantBoussinesqSimpleFoam.C myBuoyantBoussinesq\ SimpleFoam.C sed -i "s/buoyantBoussinesqSimpleFoam/myBuoyantBoussinesq\ SimpleFoam/g" Make/files sed -i "s/FOAM_APPBIN/FOAM_USER_APPBIN/g" Make/files wclean wmake

Milad Setareh Acoustic streaming modeling 2016 8 / 20

slide-9
SLIDE 9

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers (mySonicLiquidFoam)

creatFileds.H

Add the following lines into creatFileds.H for mySonicLiquidFoam

  • solver. Also, replace createphi.H instead of compressibleCreatePhi.H

volVectorField sumAcousticForce ( IOobject ( "sumAcousticForce", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("meanAcousticForce", dimensionSet(0,1,-2,0,0,0,0), vector(0,0,0)) );

Milad Setareh Acoustic streaming modeling 2016 9 / 20

slide-10
SLIDE 10

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers (mySonicLiquidFoam)

volVectorField meanAcousticForce ( IOobject ( "meanAcousticForce", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedVector("meanAcousticForce", dimensionSet(0,1,-2,0,0,0,0), vector(0,0,0)) );

Milad Setareh Acoustic streaming modeling 2016 10 / 20

slide-11
SLIDE 11

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers (mySonicLiquidFoam)

Modify the solver

Remove compressibleCourantNo.H and replace it with CourantNo.H sed -i "s/compressibleCourantNo.H/CourantNo.H/g" mySonicLiquidFoam.C Also, we change the initial value of ρ to 1+psi*p in the createFields.H. For considering kinematic viscosity, it is better to change mu to nu in readTransportProperties.H file. cd $WM_PROJECT_USER_DIR/applications/solvers/compressible/sonicLiquidFoam sed -i "s/rhoO/1/g" createFields.H sed -i "s/mu/nu/g" readTransportProperties.H

Milad Setareh Acoustic streaming modeling 2016 11 / 20

slide-12
SLIDE 12

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers (mySonicLiquidFoam)

mySonicLiquidFoam.C

Delete the line #include "rhoEqn.H" Add float iter=0.0 before run.time loop. Add #include "readPISOControls.H" after #include "createMesh.H Remove //#include "pimpleControl.H" and pimpleControl pimple(mesh); Remove all lines started form pimple loop and ended with correct density.Then, paste the below code instead. fvVectorMatrix UEqn ( fvm::ddt(U)

  • fvm::laplacian(nu, U)

); solve(UEqn == -fvc::grad(p)); // --- PISO loop for (int corr=0; corr<nCorr; corr++) { volScalarField rAU(1.0/UEqn.A()); U = rAU*UEqn.H(); surfaceScalarField phid ( "phid", psi *( (fvc::interpolate(U) & mesh.Sf()) // + fvc::ddtPhiCorr(rAU, rho, U, phi) ) ); phi = (1/psi)*phid; Milad Setareh Acoustic streaming modeling 2016 12 / 20

slide-13
SLIDE 13

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers (mySonicLiquidFoam) fvScalarMatrix pEqn ( fvm::ddt(psi,p) + fvc::div(phi) //+ fvm::div(phid, p)

  • fvm::laplacian(rAU, p)

); pEqn.solve(); phi += pEqn.flux(); #include "continuityErrs.H" U -= rAU*fvc::grad(p); U.correctBoundaryConditions(); } rho = 1 + psi*p; iter=iter+1.0; sumAcousticForce=sumAcousticForce+fvc::div(phi, U)+(rho-1)*fvc::ddt(U); meanAcousticForce=sumAcousticForce/iter; Milad Setareh Acoustic streaming modeling 2016 13 / 20

slide-14
SLIDE 14

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Create the new solvers (myBuoyantBoussinesqSimpleFoam)

creatFileds.H

Add the following lines into creatFileds.H for myBuoyantBoussinesqSimpleFoam solver.

volVectorField meanAcousticForce ( IOobject ( "meanAcousticForce", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); To import the driving momentum source into U equation, we should add meanAcousticForce at the last line of UEqn.

Milad Setareh Acoustic streaming modeling 2016 14 / 20

slide-15
SLIDE 15

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Cases

Cases

Download all files from course homepage and copy them into FOAM_RUN directory. you can see 2 directories into cavity. cavityFirstOrder : the case for testing mySonicLiquidFoam cavitySecondOrder : the case for testing myBuoyantBoussinesqSimpleFoam Milad Setareh Acoustic streaming modeling 2016 15 / 20

slide-16
SLIDE 16

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Boundary conditions This figure shows boundary and initial conditions for first and second order equations. Milad Setareh Acoustic streaming modeling 2016 16 / 20

slide-17
SLIDE 17

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Property of fluid and simulation parameter Parameter Value Sound Speed 1440 m/s Frequency 10 MHz Pressure Amplitude 20 kPa Density 998 kg/m3 Kinematic viscosity 89 e-08 m2/s Time Step–1storder 10−9s Simulation time–1storder O

  • 10−5

s psi 4.44 e-07 s2/m2 Milad Setareh Acoustic streaming modeling 2016 17 / 20

slide-18
SLIDE 18

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Run and results For running cavityFirstOrder, execute the file named AllrunFirstOrderCavity. this file is a script file. Below figure shows pressure field into domain. As you see, acoustic waves propagate from the source and move along vertical direction.

  • 10

10 20 p

  • 19.9

20

Milad Setareh Acoustic streaming modeling 2016 18 / 20

slide-19
SLIDE 19

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Run and results For running cavitySecondOrder, execute the file named AllrunSecondOrderCavity. this file is a script file. below figure shows velocity field into domain. as shown, there are two large steady vortex which is created due to propagation of acoustic waves.

0.0004 0.0008 0.0012

U Magnitude 0.00158

Milad Setareh Acoustic streaming modeling 2016 19 / 20

slide-20
SLIDE 20

Introduction Mathematical modeling of acoustic streaming Modifications Running the case Run and results

Thank you for your attention

Milad Setareh Acoustic streaming modeling 2016 20 / 20