introduction to comsol multiphysics - kesco · introduction to comsol multiphysics july 9, 2015...

22
Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Upload: votruc

Post on 21-Jun-2018

306 views

Category:

Documents


19 download

TRANSCRIPT

Page 1: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Introduction to COMSOL Multiphysics

July 9, 2015Yosuke Mizuyama, Ph.D.

COMSOL, Inc.

Introductory tutorial in Kanda

Page 2: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

KEYWORDS

Partial differential equations (PDEs)

Multiphysics

Equation-based interface

Application builder

Finite element method (FEM)

Page 3: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Partial differential equations

Almost all physical phenomena can be described by partial differential equations (PEDs).

,

For given find such that Γ

Γ Ω

Page 4: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

It is VERY easy to solve this PDE for simple geometries and IC, BCs

Solution

= 0 = 1

= 0

= 0

Fourier’s law

Page 5: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Solution

= 0= 0

= 0

= 0

It is VERY easy to solve this PDE for simple geometries and IC, BCs

Page 6: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Solution

= 0

= 0

It is VERY easy to solve this PDE for simple geometries and IC, BCs

= 1

Page 7: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Solution

= 0

= 0= 0

This geometry is still simple but it is EXTREMELY DIFFICULT to solve this PDE by hand or in your head.

= 0= 1

= 0

Page 8: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

This is way beyond a hand calculation! – Non-linear problem.

Solution

= 0 = 1= 0

= 0

Page 9: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

In general, almost all cases fall into the class that has “non-trivial” or “non-analytical” solutions.

Then we need numerical methods to solve the problem, which includes FEM, FDM, FVM, BEM, etc.

Page 10: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

The finite element method

The domain is meshed into a collection of finite elements . The governing PDEs are satisfied in each local element. The original PDEs (called strong form) are formulated to a weak

form, which reduces the spatial derivative order by 1.

Ω Ω discretization

Weak formulation

Page 11: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Compared to the finite difference method

The domain is tessellated into a collection of finite grid . The spatial derivatives in a strong form is explicitly discretized.

Ω Ωdiscretization

Page 12: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

The FEM tries to find solutions in a larger function space for a weak form rather than a narrow one for a strong form on an element.

Function space for

strong form

Function space for weak form

The finite element method

Page 13: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

,,

The finite element method

Solutions to the strong form

Page 14: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

,,

The finite element methodSolutions to the weak form

Page 15: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

The finite element method

The error estimate theory predicts the mesh dependence for the FEM accuracy.

Page 16: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

The finite element method

Mesh size

L2 e

rror

The error estimate theory predicts the mesh dependence for the

FEM accuracy.

Page 17: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

The finite element method

Pros

Solid mathematical background for the error estimate, convergence and stability established by the functional analysis.

High adaptability for complex geometries.

Natural boundary condition is embedded.

Cons

Needs more memoryMore computation time Needs mathematical

knowledge

Page 18: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Multiphysics

Most physics are multiphysics.

Fluid / structure Electric / heat / structure Ray / heat / structure

Page 19: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Multiphysics

Page 20: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

COMSOL provides a general coefficient form

0====== faea βγα

fauuuuctud

tue aa =+∇⋅+−+∇⋅∇−

∂∂+

∂∂ βγα )(2

2

fauuuuctud

tue aa =+∇⋅+−+∇⋅∇−

∂∂+

∂∂ βγα )(2

2

0)( =∇⋅∇− ucud ta

Equation-based interface

Page 21: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Equation-based interface

Type in any expression in math and logical operator

Page 22: Introduction to COMSOL Multiphysics - KESCO · Introduction to COMSOL Multiphysics July 9, 2015 Yosuke Mizuyama, Ph.D. COMSOL, Inc. Introductory tutorial in Kanda

Worldwide Sales Offices