Professional Documents
Culture Documents
Comsol Multiphysics FEM Background
Comsol Multiphysics FEM Background
FEM Background
u1
p= 2 N
k3 = 4 N/m
k2 = 4 N/m
u3
u2
-k1(u3-u1)
Constraint Force
k1(u3-u1)
-k2(u2-u1)
k3(u3-u2)
-k3(u3-u2)
Node 3
c
k2(u2-u1)
Node 2
Node 1
24/12/2011
k1(u3 - 0 ) + k2(u2 - 0 ) = c
k2(u2 - 0 ) - k3(u3 - u2) = 0
k1(u3 - 0 ) + k3(u3 - u2) = p
Constraint Equations
Algebra
(k2)u2 +
(k1)u3 = c
(k2+k3)u2 + (-k3)u3 = 0
(-k3)u2 + (k1+k3)u3 = p
System Equations
k2
k 2 k3
k
3
u
k1 2 c
u3
k3 u2 0
k1 k3 u3 p
Ku=b
u=K-1b
u2 0.125
u3 0.250
k1= 6 N/m
k2=k3= 4 N/m
p=2 N
24/12/2011
solution
load
Linear
load
Non-Linear
k, b
u
Linear
k(u), b(u)
k(u), b(u)
u
Weakly Non-linear
k(u), b(u)
u
Strongly Non-linear
u
Outrageously
Non-linear
24/12/2011
solution
load
No solution
load
No unique solution
k = exp(u) N/m
p=2N
p=2N
f (u) = p - ku = 0
f (u) = 2 - 4 u = 0
f (u) = p ku=0
f (u) = 2 - exp(u) u = 0
f (u)
f (u)
usolution 0.853
usolution= 0.5
u
24/12/2011
f (u) = 2 - 4 u = 0
f (u)
(1)
(2)
usolution u0
usolution=0.5
(3)
f u0
f ' u0
2
usolution 0
0.5
4
f ui
ui 1 ui
f ' ui
k 2 k3
k
3
k3 u2 0
k1 k3 u3 p
0 k k
f u 2 3
p k3
k3 u2 0
k1 k3 u3 0
f (u) = b - Ku,
usolution u0
f u0
f ' u0
2
usolution 0
0.5
4
u solution u 0
u0 = 0
b Ku 0 b
f u 0
0
f' u 0
K
K
u solution K 1b
24/12/2011
f (u) = 2 - exp(u) u
2) Linearization point at u0 = 0
3) Take repeated NewtonRaphson iterations
u
4) Terminate when:
f i 1 / f i & ui 1 / ui tolerance
k2 = exp(u2-u1)
u1
u2
ui 1 ui
p= 2
k3 = 4
u3
f ui
1
ui Sui bui K ui ui
f ' ui
Iterate until:
f i 1 / f i & ui 1 / ui tolerance
24/12/2011
u0= -1
f (u)
slow
convergence
u
fast
convergence
24/12/2011
f (u)
|fi|
f ui
ui 1 ui
f ' ui
final |fi+1|
recompute fi+1(ui+1)
intermediate |fi+1|
end
undamped |fi+1|
Recall that:
Load
k = exp(u) N/m
f (u) = 2 - exp(u) u
p=2N
f (u)
u
Almost all problems have a
zero solution at zero load
Ramping up the load is a
physically reasonable approach
f (u) = 1 - exp(u) u = 0
24/12/2011
Identify non-linearity
- kNL = exp(u)
f (u) = 2 - exp(u) u = 2 - ku
f (u)
f (u) = 2 - {(1-0.5)+(0.5exp(u)}u
f (u) = 2 - exp(u) u
q = 100 W/m2
Mesh
T=0K
Tinitial=0K
Insulated
k, Thermal conductivity
Solution
24/12/2011
k = (1+T/200[K])[W/(m*K)]
k = 0.1+exp(-(T/25[K])^2)[W/(m*K)]
k = (0.1+10*(T>25[K]))[W/(m*K)]
Questions:
How many iterations did each case take? Was damping used?
Tini = 0K, Case 1 = 1, case 2 = 5, case 3 = 7, case 4 = 50 (no convergence)
Tini = 50K, Case 1 = 1, case 2 = 5, case 3 = 13, case 4 = 50 (no convergence)
What does the temperature and thermal conductivity solution look like?
Try solving case #2 with an initial temperature of 50[K], how does this
affect the solution? What about the other cases?
Set back to T=0 afterwards
10
24/12/2011
k =(1-T/200[K])[W/(m*K)]
Tmax
?
T
Qin
Multiphysics Problems
11
24/12/2011
Heat Transfer
All other surfaces
insulated
T=0K
k = 1 W/mK
V=0V
= 1S/m
V=1V
q=100 W/m2
kT 0
n kT 100
T 0K
T 0
W
m2
in the domain
V 0
in the domain
right boundary
V 1V
right boundary
left boundary
V 0V
left boundary
other boundaries
V 0
other boundaries
fT = KTuT - bT
fV = KVuV - bV
12
24/12/2011
Heat Transfer
All other surfaces
insulated
T=0K
k = 1 W/mK
V=1V
V=0V
q=100 W/m2
= (1-0.001T) S/m
fV = KV(uT)uV - bV
fT = KTuT - bT
Heat Transfer
Volumetric resistive
heating due to current
T=0K
Q(V)
k = 1 W/mK
(T)
V=0V
V=1V
q=100 W/m2
fT = KTuT - bT(uv)
fT uT
f u
fV uT
fV = KV(uT)uV - bV
fT uV uT bT uV
K uu bu
fV uV uV bV
u i 1 u i Su i K u i u i bu i
1
Same equation
as before
u i 1 u i f u i u f u i
1
13
24/12/2011
One-way coupled
Two-way coupled
Load coupled
The results from one physics affect only the loading on the other physics
Material coupled
The results from one physics affect the materials properties of other physics
Non-linear coupled
Fully coupled
Weakly coupled
Strongly coupled
The results of one physics affects both that, and other, physics
All of the above
The physics do not strongly affect the loads/properties in other physics
The opposite of weakly coupled
fT uV uT bT uV , uT
fV uV uV bV uV , uT
is damping
14
24/12/2011
f uT
f u T
fV uT
fT uV uT bT
fV uV uV bV
f uT
f u T
0
0 uT bT
fV uV uV bV
Set up the coupled problem and try solving it with a direct solver
If it is not converging:
If you are running out of memory, or the solution time is very long:
Use the segregated solver and select the optimal solver (direct or iterative) for
each physics, or group of physics, in the problem. FOR 3D, START HERE!
Upgrade hardware
Try the PARDISO out-of-core solver
15
24/12/2011
Heat Transfer
TL=0
k=1 W/mK
=1 S/m
VL=0
q=100 W/m2
J=10 A/m2
Thermal
Conductivity
Electric
Conductivity
Normal
Current
Iterations
Solution
Times (sec)
Linear
10
3.572
Non-linear
uncoupled
1-(T/10000)
1-(V/1000)
10
9.422
One-way load
coupled
Joule
Heating
10
27.846
Two-way load
coupled
Joule
Heating
10+(T/100)
29.703
Fully coupled
Joule
Heating
1-(V/1000)
1-(T/10000)
10+(T/100)
29.469
Thermal problem
Electric problem
16
24/12/2011
Case 2
Electric
Conductivity
Tmax
exp(-T/600)
exp(-T/600)
Jin
Electric
Conductivity
1
Same as before
Case 2
exp(-T/600)
Tmax
exp(-T/600)
17
24/12/2011
FEM Background
18