24/12/2011
Study Step
Study Step
Controls:
Which Meshes to use
Which Physics Interfaces to solve for
Some fundamental settings for the study type (e.g.
the continuation solver for a Stationary or the time
span for a Time Dependent)
Solver Sequence
Solver Sequence
24/12/2011
Variables
Controls:
Variables Not Solved For
Initial Values
Scaling
Corresponds roughly to Old
Solver Manager Init Page
24/12/2011
Solver Settings
Corresponds to Solver
Parameters of 3.5a.
Solver tolerances are set here
Computing a Solution
Automatically generate a Solver
Sequence corresponding to the Study
steps and compute the solution.
24/12/2011
24/12/2011
Computing a solution
Use the nodes up to and
including this node (here
Variables).
24/12/2011
Study Steps
You can add multiple study steps by right-clicking on the Study node
COMSOL automatically uses the solution of the first study step as the
initial value for the second study step
24/12/2011
Solver Configurations
24/12/2011
24/12/2011
Revisit: k = (0.1+10*(T>25[K]))
Instead of using a jump in k, use a smoothing function
Now try: k = 0.1+DK*flc2hs(T-25,STEP)
10
24/12/2011
Converging?
Not converging?
Perform a mesh
refinement study.
Try a finer mesh
and check that the
solution is similar.
Not converging?
Direct methods
Iterative methods
11
24/12/2011
k3 u2 0
b Ku 0
k1 k3 u3 0
u3
Solution
u2
u sol u 0
r (u)
r u 0
r u 0
usol
u
r(u) = 4u - 3
r(u) = 4
u0 = 0
usol u0
r u0
4 0 3
0
0.75
r u0
4
u sol 0
b
K 1b
K
12
24/12/2011
13
24/12/2011
14
24/12/2011
Ku = b
MKu = Mb
15
24/12/2011
16
24/12/2011
17
24/12/2011
Direct
Robustness of the algorithm is only very weakly dependent upon K
The direct solvers in COMSOL are:
PARDISO: fast, BEST FIRST CHOICE FOR SHARED MEMORY
SPOOLES: slow, uses the least memory (Can run distributed)
MUMPS: slow, robust, uses the most memory BEST FIRST CHOICE FOR CLUSTER
Iterative
Slower than Direct
Convergence depends on condition number of K
Different physics require different solver configurations (bad)
18
24/12/2011
Time-dependent problems
Time-dependent formulation
Time-dependent Study
19
24/12/2011
Voltage:
Absolute tolerance: 0.001V
20
24/12/2011
True solution
t
Solutions within
Relative tolerance
Solutions within
Tighten both the
Absolute tolerance absolute and relative
t
u
t
21
24/12/2011
time
Response
time
22
24/12/2011
u(tinitial) = [Ksteady-state]-1b(tinitial)
Solution:
Use flc1hs function to ramp load
and to keep db/dt(t=0)=0
t
Segregated Solvers
23
24/12/2011
Segregation
Coupled solver
Segregated solver
Physics 1
Physics 2
Physics 1
Physics 2
Physics 3
Physics 3
Segregation
Microwave-thermal-structural
Multiphysics couplings
24
24/12/2011
Segregated step
Study > Solver Sequences > Solver
Sequence > Stationary > Segregated
Choose the
variable/s that you
want to solve in this
segregated step
Choose the linear
system solver and
the damping method
for each segregated
step
25
24/12/2011
26