Introduction to Comsol

Embed Size (px)

Citation preview

  • 8/9/2019 Introduction to Comsol

    1/43

  • 8/9/2019 Introduction to Comsol

    2/43

    COMSOL -Remote Connection

    ,indows user&o launch remote des%top

    -&$R&

    R1 t2pe mstsc.e4e

    Or in Vista

    -tart

    $ll 5rograms

    $ccessories Remote Des%top Connection

    se 2our !CC login and password.

    6ou will 7e connected remotel2 to !CC machines

    ac or #inu4 user

    3

    terminal-1.chemeng.utah.edu

    terminal-2.chemeng.utah.eduterminal-3.chemeng.utah.eduterminal-4.chemeng.utah.edu

    terminal-5.chemeng.utah.eduterminal-6.chemeng.utah.eduterminal-7.chemeng.utah.edu

    terminal-8.chemeng.utah.eduterminal-9.chemeng.utah.eduterminal-10.chemeng.utah.eduterminal-

    Search for the software ou need

    on line

    http://www.che.utah.edu/wpcms/?page_id=308mailto:[email protected]://www.che.utah.edu/wpcms/?page_id=308
  • 8/9/2019 Introduction to Comsol

    3/43

    Connecting with Windows 7

    4

  • 8/9/2019 Introduction to Comsol

    4/43

    Connecting from OSX (Tested on 10.8)

    5

  • 8/9/2019 Introduction to Comsol

    5/43

    Connecting from Windows XP

    6

  • 8/9/2019 Introduction to Comsol

    6/43

    7

    COMSOL!."

    www.comsol.com

    !ac"ground and a##lications of $%&S%' (ree )e*inar+ http://www.comsol.com/events/webinars/

    (ree tutorial $,s

    #dated information

  • 8/9/2019 Introduction to Comsol

    7/43

    8

    COMSOL Application

    You can use COMSOL Multiphysics in many application

    areas, just a few examples being:

    9 Chemical reactions

    9 Diffusion9 lui! !ynamics

    9 uel cells an! electrochemistry

    9 "ioscience

    9 #coustics

    9 $lectromagnetics

    9 %eophysics

    http://www.comsol.com/http://www.comsol.com/events/webinars/http://www.comsol.com/
  • 8/9/2019 Introduction to Comsol

    8/43

    9

    COMSOL Application

    9 &eat transfer9 Microelectromechanical systems 'M$MS(9 Microwa)e engineering9 Optics

    9 *hotonics9 *orous me!ia flow9 +uantum mechanics9 a!io-fre.uency components

    9 Semicon!uctor !e)ices9 Structural mechanics9 /ransport phenomena9 0a)e propagation

  • 8/9/2019 Introduction to Comsol

    9/43

    10

    The COMSOL Modules

    12 #C3DC Mo!ule

    42 #coustics Mo!ule

    52 Chemical $ngineering Mo!ule

    62 $lectrochemistry

    72 lui! flow

    82 &eat transfer92 *lasma

    2 a!io fre.uency

    ;2 Structural mechanics

    1

  • 8/9/2019 Introduction to Comsol

    10/43

    11

    The Chemical Engineering Module

    /he Chemical $ngineering Mo!ule presents a powerful way of

    mo!eling e.uipment an! processes in chemical engineering2

    >t pro)i!es customi=e! interfaces an! formulations for

    momentum, mass, an! heat transport couple! with chemical

    reactionsfor applications such as:

    9 eaction engineering an! !esign

    9 &eterogeneous catalysis

    9 Separation processes

    9 uel cells an! in!ustrial electrolysis

    9 *rocess control together with Simulin?

  • 8/9/2019 Introduction to Comsol

    11/43

    12

    The Chemical Engineering Module

    COMSOL Multiphysics excels in sol)ing systems of couple!

    nonlinear *D$sthat can inclu!e:

    9 &eat transfer

    9 Mass transfer through !iffusion an! con)ection9 lui! !ynamics

    9 Chemical reaction ?inetics

    9@arying material properties

    /he multiphysics capabilities of COMSOL can fully couple an!

    simultaneously mo!el flui! flow, massan! heat transport,

    an! chemical reactions2

  • 8/9/2019 Introduction to Comsol

    12/43

    13

    The Chemical Engineering Module

    >nfluid dynamicsyou can mo!el flui! flow throughporous me!ia

    or characteri=e flow with the Aa)ier-Sto?es e.uations2

    >t is easy to represent chemical reactionsby sourceor sin?terms

    in mass an! heat balances2

    #ll formulations exist for both Cartesianan! Cylindrical

    coor!inates 'for axisymmetric mo!els( as well as for stationary

    an! time-!epen!ent cases2

  • 8/9/2019 Introduction to Comsol

    13/43

    14

    The Chemical Engineering Module

    /he a)ailable application mo!esare:

    12 Momentum balances

    9 >ncompressible Aa)ier-Sto?es e.uations

    9 DarcyBs law9 "rin?man e.uations

    9 Aon-Aewtonian flow

    9 Aonisothermal an! wea?ly compressible flow

    9 /urbulent flow, ?- turbulence mo!el

    9 /urbulent flow, ?- turbulence mo!el

    9 Multiphase flow

  • 8/9/2019 Introduction to Comsol

    14/43

    15

    The Chemical Engineering Module

    42 $nergy balances

    9 &eat con!uction

    9 &eat con)ection an! con!uction

    52 Mass balances

    9 Diffusion

    9 Con)ection an! !iffusion

    9 $lectro?inetic flow

    9 Maxwell-Stefan !iffusion an! con)ection

    9 Aernst-*lanc? transport e.uations

  • 8/9/2019 Introduction to Comsol

    15/43

    16

    The Modeling Process

    /he mo!eling process in COMSOL consists ofsix main steps:

    12 Selecting the appropriate application modein theModel

    Navigator2

    42 Drawing or importing the mo!elgeometryin the DrawMo!e2

    52 Setting up thesubdomaine.uations an! boundarycon!itions

    in the *hysics Mo!e2

    4. Meshingin the Mesh Mo!e2

    5. Solvingin the Sol)e Mo!e2

    6. Postprocessingin the *ostprocessing Mo!e2

    1

  • 8/9/2019 Introduction to Comsol

    16/43

    17

    1. The Model Navigator

    0hen starting COMSOL Multiphysics, you are greete! by the

    Model Navigator2 &ere you begin the mo!eling process an!

    control all program settings2 >t lets you select space !imension

    an! application mo!esto begin wor?ing on a new mo!el, open

    an existing mo!el you ha)e alrea!y create!, or open an entry

    in the Mo!el Library2

    COMSOL Multiphysics pro)i!es an integrate! graphical user

    interface where you can buil! an! sol)e mo!els by using

    pre!efine! physics mo!es

    18

  • 8/9/2019 Introduction to Comsol

    17/43

    18

    . Creating !eometr"

    #n important part of the mo!eling process is creating the

    geometry2 /he COMSOL Multiphysics user interface contains

    a set of C#D toolsfor geometry mo!eling in 1D, 4D, an! 5D2

    /he C#D >mport Mo!ulepro)i!es an interface for import of

    *arasoli!, S#/ '#C>S(, S/$*, an! >%$S formats2

    >n combination with the programming tools, you can e)en use

    images an! magnetic resonance imaging 'M>( !ata to create a

    geometry2

    19

  • 8/9/2019 Introduction to Comsol

    18/43

    19

    A#es and !rid

    >n the COMSOL Multiphysics user interface you can set limits

    for the mo!el axes an! a!just the gri! lines2 /he gri! an!

    axis settingshelp you get just the right )iew to pro!uce a

    mo!el geometry2 /o change these settings, use the #xes3%ri!

    Settings!ialog box that you open from the Optionsmenu2

    You can also set the axis limits with the =oom functions2

    20

  • 8/9/2019 Introduction to Comsol

    19/43

    20

    A#es and !rid

    /he !efault names for coor!inate systems )ary with the space

    !imension:

    Mo!els that you open using the space !imensions 1D, 4D,

    an! 5D use the Cartesian coor!inates x, y, an! =2

    >n 1D axisymmetric geometries the !efault coor!inate is r,

    the ra!ial !irection2 /he x-axis represents r2

    >n 4D axisymmetric geometries the x-axis represents r, thera!ial !irection, an! the y-axis represents =, the height

    coor!inate2

    21

  • 8/9/2019 Introduction to Comsol

    20/43

    21

    $. Modeling Ph"sics and E%uations

    rom thePhysicsmenu you can specify all the physics an!

    e.uations that !efine a mo!el inclu!ing:

    9 "oun!ary an! interface con!itions

    9 Domain e.uations

    9 Material properties

    9 >nitial con!itions

    22

  • 8/9/2019 Introduction to Comsol

    21/43

    22

    &. Creating Mesh

    0hen the geometry is complete an! the parameters are !efine!,

    COMSOL Multiphysics automatically meshes the geometry2

    &owe)er, you can ta?e charge of the mesh-generation process

    through a set of control parameters2

    or a 4D geometry the mesh generator partitions the

    sub!omains into triangularor .ua!rilateralmesh elements2

    Similarly, in 5D the mesh generator partitions the sub!omains

    into tetrahe!ral, hexahe!ral, orprismmesh elements2

    23

  • 8/9/2019 Introduction to Comsol

    22/43

    23

    '. Solution

    Aext comes the solution stage2 &ere COMSOL Multiphysics

    comes with a suite of sol)ers for stationary, eigen)alue, an!

    time-!epen!entproblems2

    or sol)ing linear systems, the software features both !irectan!iterati)esol)ers2 # range of precon!itioners are a)ailable for

    the iterati)e sol)ers2 COMSOL sets up sol)er !efaults

    appropriate for the chosen application mo!e an! automatically

    !etects linearity an! symmetry in the mo!el2

    # segregate!sol)erpro)i!es efficient solution schemes for large

    multiphysics mo!els, turbulence mo!eling, an! other

    challenging applications2

    24

  • 8/9/2019 Introduction to Comsol

    23/43

    24

    (. Postprocessing

    or postprocessing, COMSOL pro)i!es tools for plotting an!postprocessing any mo!el .uantity or parameter:

    9 Surface plots

    9 Slice plots

    9 >sosurfaces9 Contour plots

    9 #rrow plots

    9 Streamline plots an! particle tracing

    9 Cross-sectional plots

    9 #nimations

    9 Data !isplay an! interpolation

    9 >ntegration on boun!aries an! sub!omains

    25

  • 8/9/2019 Introduction to Comsol

    24/43

    25

    )eport !enerator

    /o !ocument your mo!els, the COMSOL eport %enerator

    pro)i!es a comprehensi)e report of the entire mo!el,

    inclu!ing graphics of the geometry, mesh, an! postprocessing

    .uantities2

    You can print the report !irectly or sa)e it as an &/ML file for

    )iewing through a web browser an! further e!iting2

    26

  • 8/9/2019 Introduction to Comsol

    25/43

    26

    $omsol &ulti#hsics 4.2

    etting Started

    &ust *e "nown

    /ro#erties of theuidmaterial

    %* ectie of the ro*lem

    COMSOL -Example

    Flow Past theCylinder

    27

  • 8/9/2019 Introduction to Comsol

    26/43

    27

    am#le+ (low /ast a $linder- !enchmar" test for$(, algorithms

    nstead incom#ressi*le ow

    $linder+ % center otherwise stead statesmmetric ow

    )a"e formation-nordered eddies

    'arge drag on *od

    Re2nolds ; 7ased on c2linder diameter

    (. -low 'low 7elow Re ; (00" stead2 'low start with this to correct simple errors andmista%es"

  • 8/9/2019 Introduction to Comsol

    27/43

    28

    Select S#ace ,imension+

    29

  • 8/9/2019 Introduction to Comsol

    28/43

    29

    Select &ode+

    30

  • 8/9/2019 Introduction to Comsol

    29/43

    30

    31

  • 8/9/2019 Introduction to Comsol

    30/43

    31

    ,e;ne the #arameters+

    32

  • 8/9/2019 Introduction to Comsol

    31/43

    32

    eometr &aterial and !oundar+

    33

  • 8/9/2019 Introduction to Comsol

    32/43

    33

    Rectangle 1

    1 In the o!el "#il!er win!ow$ ri%ht&clic' o!el 1()eometr* 1 an!

    choose +ectan%le.

    2 )o to the ,ettin%s win!ow -or +ectan%le.

    3 ocate the ,ie section. In the i!th e!it -iel!$ t*pe 2.2.

    4 In the ei%ht e!it -iel!$ t*pe 0.4.

    Circle 1

    1 In the o!el "#il!er win!ow$ ri%ht&clic' )eometr* 1 an! choose ircle.

    2 )o to the ,ettin%s win!ow -or ircle.

    3 ocate the osition section. In the e!it -iel!$ t*pe 0.2.

    4 In the * e!it -iel!$ t*pe 0.2.

    5 ocate the ,ie an! ,hape section. In the +a!i#s e!it -iel!$ t*pe 0.05.

    34

  • 8/9/2019 Introduction to Comsol

    33/43

    34

    Difference 1

    1 +i%ht&clic' )eometr* 1 an! choose i--erence.

    2 )o to the ,ettin%s win!ow -or i--erence.

    3 ocate the i--erence section. n!er bects to a!!$ clic' ctivate ,election.

    4 ,elect the obect r1 onl*.

    5 n!er bects to s#btract$ clic' ctivate ,election.

    6 ,elect the obect c1 onl*.

    7 In the o!el "#il!er win!ow$ ri%ht&clic' )eometr* 1 an! choose "#il! ll.

    35

  • 8/9/2019 Introduction to Comsol

    34/43

    35

    M A T E R I A L S

    aterial 1

    1 In the o!el "#il!er win!ow$ ri%ht&clic' o!el 1(aterials an! choose aterial.

    2 )o to the ,ettin%s win!ow -or aterial.

    3 ocate the aterial ontents section. In the aterial contents table$ enter the

    36

  • 8/9/2019 Introduction to Comsol

    35/43

    36

    Inlet 1

    1 In the o!el "#il!er win!ow$ ri%ht&clic' o!el 1(aminar low an! choose Inlet.

    2 ,elect "o#n!ar* 1 onl*.

    3 )o to the ,ettin%s win!ow -or Inlet.

    4 ocate the ;elocit* section. In the 0 e!it -iel!$ t*pe

    1&s?=step1>t@1/sA?.

    Outlet 11 In the o!el "#il!er win!ow$ ri%ht&clic' aminar low an! choose #tlet.

    2 ,elect "o#n!ar* 4 onl*.

    37

  • 8/9/2019 Introduction to Comsol

    36/43

    M E S H :1 In the o!el "#il!er win!ow$ clic' o!el 1(esh 1.

    2 )o to the ,ettin%s win!ow -or esh.

    3 ocate the esh ,ettin%s section. rom the Blement sie list$ select iner.

    4 lic' the "#il! ll b#tton.

    38

  • 8/9/2019 Introduction to Comsol

    37/43

    Step 1: Time Dependent

    1 In the o!el "#il!er win!ow$ epan! the ,t#!* 1 no!e$ then clic' ,tep 1: Cime epen!ent.

    2 )o to the ,ettin%s win!ow -or Cime epen!ent.

    3 ocate the ,t#!* ,ettin%s section. In the Cimes e!it -iel!$ t*pe ran%e>0$0.2$3.4? ran%e>3.5$0.02$7?.

    4 In the o!el "#il!er win!ow$ ri%ht&clic' ,t#!* 1 an! choose ,how e-a#lt ,olver.

    5 Bpan! the ,t#!* 1(,olver on-i%#rations no!e

    39

  • 8/9/2019 Introduction to Comsol

    38/43

    Solver 11 In the o!el "#il!er win!ow$ epan! the ,t#!* 1(,olver on-i%#rations(,olver 1

    no!e$ then clic' Cime&epen!ent ,olver 1.

    2 )o to the ,ettin%s win!ow -or Cime&epen!ent ,olver.

    3 lic' to epan! the Cime ,teppin% section.

    4 rom the ,teps ta'en b* solver list$ select Interme!iate.

    5 In the o!el "#il!er win!ow$ ri%ht&clic' ,t#!* 1 an! choose omp#te.

    40

  • 8/9/2019 Introduction to Comsol

    39/43

    Solver

  • 8/9/2019 Introduction to Comsol

    40/43

    elocit!:

    42

  • 8/9/2019 Introduction to Comsol

    41/43

    "re##ure:

    43

  • 8/9/2019 Introduction to Comsol

    42/43

    "o#t "roce##ing $"article Tracing%&&&&&&&:

    44

  • 8/9/2019 Introduction to Comsol

    43/43

    An! 'ue#tion