Introduction To Comsol
Introduction To Comsol
Introduction To Comsol
COMSOL 4.3
Remote Connection
http://www.che.utah.edu/wpcms/?page_id=308
Chemical Engineering Department (ICC)
Login and password
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-4.3
www.comsol.com
Updated information
COMSOL Application
You can use COMSOL Multiphysics in many application
areas, just a few examples being:
Chemical reactions
Diffusion
Fluid dynamics
Fuel cells and electrochemistry
Bioscience
Acoustics
Electromagnetics
Geophysics
COMSOL Application
Heat transfer
Microelectromechanical systems (MEMS)
Microwave engineering
Optics
Photonics
Porous media flow
Quantum mechanics
Radio-frequency components
Semiconductor devices
Structural mechanics
Transport phenomena
Wave propagation
10
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
AC/DC Module
Acoustics Module
Chemical Engineering Module
Electrochemistry
Fluid flow
Heat transfer
Plasma
Radio frequency
Structural mechanics
Mathematics
The optional modules are optimized for specific application areas. They offer discipline
standard terminology and interfaces, materials libraries, specialized solvers, elements, and
visualization tools.
11
12
13
In fluid dynamics you can model fluid flow through porous media
or characterize flow with the Navier-Stokes equations.
It is easy to represent chemical reactions by source or sink terms
in mass and heat balances.
All formulations exist for both Cartesian and Cylindrical
coordinates (for axisymmetric models) as well as for stationary
and time-dependent cases.
14
15
2.
3.
Energy balances
Heat conduction
Mass balances
Diffusion
Electrokinetic flow
16
2.
3.
4.
5.
6.
17
18
2. Creating Geometry
An important part of the modeling process is creating the
geometry. The COMSOL Multiphysics user interface contains
a set of CAD tools for geometry modeling in 1D, 2D, and 3D.
The CAD Import Module provides an interface for import of
Parasolid, SAT (ACIS), STEP, and IGES formats.
In combination with the programming tools, you can even use
images and magnetic resonance imaging (MRI) data to create a
geometry.
19
20
Models that you open using the space dimensions 1D, 2D,
and 3D use the Cartesian coordinates x, y, and z.
21
22
4. Creating Mesh
When the geometry is complete and the parameters are defined,
COMSOL Multiphysics automatically meshes the geometry.
However, you can take charge of the mesh-generation process
through a set of control parameters.
For a 2D geometry the mesh generator partitions the
subdomains into triangular or quadrilateral mesh elements.
Similarly, in 3D the mesh generator partitions the subdomains
into tetrahedral, hexahedral, or prism mesh elements.
23
5. Solution
Next comes the solution stage. Here COMSOL Multiphysics
comes with a suite of solvers for stationary, eigenvalue, and
time-dependent problems.
For solving linear systems, the software features both direct and
iterative solvers. A range of preconditioners are available for
the iterative solvers. COMSOL sets up solver defaults
appropriate for the chosen application mode and automatically
detects linearity and symmetry in the model.
A segregated solver provides efficient solution schemes for large
multiphysics models, turbulence modeling, and other
challenging applications.
24
6. Postprocessing
For postprocessing, COMSOL provides tools for plotting and
postprocessing any model quantity or parameter:
Surface plots
Slice plots
Isosurfaces
Contour plots
Arrow plots
Streamline plots and particle tracing
Cross-sectional plots
Animations
Data display and interpolation
Integration on boundaries and subdomains
25
Report Generator
To document your models, the COMSOL Report Generator
provides a comprehensive report of the entire model,
including graphics of the geometry, mesh, and postprocessing
quantities.
You can print the report directly or save it as an HTML file for
viewing through a web browser and further editing.
26
COMSOL -Example
Flow Past the
Cylinder
Getting Started
Comsol Multiphysics 4.2
Must be known
Properties of the
fluid/material
Objective of the problem
27
Fast flow - (Re # = 100)- developed Von Karman vortex street (not fully turbulence)
28
Select Space Dimension:
29
Select Mode:
30
31
Define the parameters:
32
Geometry, Material and Boundary:
33
Rectangle 1
1 In the Model Builder window, right-click Model 1>Geometry 1 and
choose Rectangle.
2 Go to the Settings window for Rectangle.
3 Locate the Size section. In the Width edit field, type 2.2.
4 In the Height edit field, type 0.4.
Circle 1
1 In the Model Builder window, right-click Geometry 1 and choose Circle.
2 Go to the Settings window for Circle.
3 Locate the Position section. In the x edit field, type 0.2.
4 In the y edit field, type 0.2.
5 Locate the Size and Shape section. In the Radius edit field, type 0.05.
34
Difference 1
1 Right-click Geometry 1 and choose Difference.
2 Go to the Settings window for Difference.
3 Locate the Difference section. Under Objects to add, click Activate Selection.
4 Select the object r1 only.
5 Under Objects to subtract, click Activate Selection.
6 Select the object c1 only.
7 In the Model Builder window, right-click Geometry 1 and choose Build All.
35
M AT E R I AL S
Material 1
1 In the Model Builder window, right-click Model 1>Materials and choose Material.
2 Go to the Settings window for Material.
3 Locate the Material Contents section. In the Material contents table, enter the
36
Inlet 1
1 In the Model Builder window, right-click Model 1>Laminar Flow and choose Inlet.
2 Select Boundary 1 only.
3 Go to the Settings window for Inlet.
4 Locate the Velocity section. In the U0 edit field, type
U_mean*6*s*(1-s)*step1(t[1/s]).
Outlet 1
1 In the Model Builder window, right-click Laminar Flow and choose Outlet.
2 Select Boundary 4 only.
37
MESH :
1
2
3
4
38
Step 1: Time Dependent
1 In the Model Builder window, expand the Study 1 node, then click Step 1: Time Dependent.
2 Go to the Settings window for Time Dependent.
3 Locate the Study Settings section. In the Times edit field, type range(0,0.2,3.4) range(3.5,0.02,7).
4 In the Model Builder window, right-click Study 1 and choose Show Default Solver.
5 Expand the Study 1>Solver Configurations node
39
Solver 1
1 In the Model Builder window, expand the Study 1>Solver Configurations>Solver 1
node, then click Time-Dependent Solver 1.
2 Go to the Settings window for Time-Dependent Solver.
3 Click to expand the Time Stepping section.
4 From the Steps taken by solver list, select Intermediate.
5 In the Model Builder window, right-click Study 1 and choose Compute.
40
Solver
Karman
path
Fully developed
flow
41
Velocity:
42
Pressure:
43
Post Processing (Particle Tracing)!!!!!!!:
44
Any Question