Sie sind auf Seite 1von 38

Nan Zhao

COMSOL-3.5
Remote connection Background Basic Steps in COMSOL with Example Exercise problems

COMSOL

Remote Connection
Chemical Engineering Department (ICC) Login and password

Ask IT staff at chemical engineering department (801) 5857170 support@che.utah.edu

COMSOL -Remote Connection

Windows user
To launch remote desktop START--> RUN--> type "mstsc.exe" Or in Vista Start --> All Programs --> Accessories --> Remote Desktop Connection Use your ICC login and password. You will be connected remotely to ICC machines

Mac or Linux user


Search for the software you need on line

terminal1.chemeng.utah.edu terminal2.chemeng.utah.edu terminal3.chemeng.utah.edu terminal4.chemeng.utah.edu terminal5.chemeng.utah.edu terminal6.chemeng.utah.edu terminal7.chemeng.utah.edu terminal8.chemeng.utah.edu terminal9.chemeng.utah.edu terminal10.chemeng.utah.edu terminal-

COMSOL-3.5
Remote connection Background Basic Steps in COMSOL with Example

Exercise problems

www.comsol.com

Background and applications of COMSOL Free tutorial CDs Updated information


5

COMSOL-3.5
Remote connection

Background
Basic Steps in COMSOL Example and Exercise problems

COMSOL -Basic Steps


Transport Phenomena
Momentum, Heat, Mass

Comsol
Coupled different modules

-Visualize the physics of the problem


-Choose appropriate coordinate system -Setup the Conservation equations -Make some valid assumptions -Simplify the equations -Define the Boundary conditions

-Model Navigator
-Draw the Geometry -Create Subdomain -Define the Boundaries -Meshing -Solver -Post processing

-Solve problem mathematically


-Sketch the profiles -Sensitivity analysis

-Sensitivity analysis

- Not a sequential approach - Not all of these steps are always necessary - Model can be modified at any stage 7

COMSOL -Basic Steps

COMSOL -Basic Steps


Getting Started
Comsol Multiphysics 3.5

Must be known
Properties of the fluid/material Objective of the problem
9

Example: Flow Past a Cylinder- Benchmark test for CFD algorithms


Unsteady, incompressible flow
Wake formationUnordered eddies Large drag on body

Cylinder: Off center, otherwise steady state symmetric flow Objective : Frequency and amplitude of vibration (Forces) at various fluid speed Reynolds # based on cylinder diameter 1. Slow flow (below Re # 100) -steady flow (start with this to correct simple errors and
mistakes)

2. Fast flow - (Re # = 100)- developed Von Karman vortex street (not fully
turbulence)

10

Diameter = 0.1 Steady state analysis Inlet Velocitym = 0.3m/s = ( Re # 20) Max Density 1kg/m3 Dynamic Viscosity = 10-3 Pa*s

Model Navigator

Space dimension: 2D Model: New> Application mode > COMSOL Multiphysics > Fluid dynamics > incompressible Navier-Stokes > Steady-state analysis
11

Model Navigator

12

Geometry:

can also be imported from Solid work, Auto cad

Before drawing geometry: you can choose your scale of drawing environment Option> Axes/ grid setting

13

Subdomain:

Create Composite Objective

CO1 = R1-C1

14

Subdomain settings
Physics > Subdomain Settings

15

Boundary settings
2

6 7 5 8

0
16

Boundaries
Physics > Boundary Settings

Color changes for that boundary

No Slip Velocity Pressure Concentration etc

Control Key: Common multiple boundaries

17

Some useful Options


Constants Expressions

18

Meshing
Finite element method (FEM) Choose the element size to be used in the calculations (menu Mesh)

Refine mesh option

Select, Free mesh parameters option to define your meshing choice ,like Maximum element size, Mesh curvature factor etc.

19

Solver

Go back to the above steps Mesh parameters

20

Solver

21

Post processing: Plot parameters


Display the results in the most convenient way (menu Post processing)
Surface plot Contour Plot Arrow

22

Post Processing and Visualization


Drag coefficient Lift coefficient 5.579263 [5.57-5.59] 0.010675 [0.0104-0.0110]

Post processing > Boundary integration

Message log
23

Time Dependent Simulation


Unsteady State Analysis
Use the same model, Just modified it for the next approach

Diameter = 0.1 m Max Inlet Velocity =1.5 m/s Density = 1kg/m3 Dynamic Viscosity = 10-3 Pa*s

= ( Re # 100)

24

Change the inlet velocity to 1.5 m/s so Reynolds # = 100 Option > Constants

Time Dependent Simulation

Change application mode


Physics> Properties> Transient

Change Solver Parameters

25

Time Dependent Simulation Change Solver Parameters


Solve > Solver Parameters

26

Solver

2D surface plot 3D surface plot Contour plot Arrow plot Streamline plot Boundary plot Animate

Karman path

Fully developed flow

27

Post Processing and Visualization


How suspended particle behave in the flow stream (Tracer) ?

28

Post Processing and Visualization


5 tracers points

Animate

29

COMSOL - Additional features


- Generate report automatically

Extensibility to allow you to implement your own code in COMSOL and to change the built-in code

Platform Independence choose between Windows, Linux, HP-UX, Sun Solari or Mac OSX, and several 64-bit platforms

30

COMSOL Another example-cavity flow

31

COMSOL -Help

COMSOL Multiphysics documentation Help button in the Graphical User Interface Press F1

TA- Pankaj Tiwari


32

COMSOL-3.5
Remote connection

Background
Basic Steps in COMSOL with Example Exercise problems

33

COMSOL Exercise -1

Momentum Transfer
Two immiscible and viscous liquid A and B

34

COMSOL Exercise -2 Heat Transfer


Conduction and Convection heat transfer from Cylinder

35

COMSOL Exercise -3 Mass Transfer


Diffusion process

36

COMSOL Tips Do more excises! Solve the problem, before COMSOL ! Do some experiments on Boundary Conditions, solver parameters!
37

Remark/Suggestion -Start using Comsol

Thank you ?? please

38

Das könnte Ihnen auch gefallen