Beruflich Dokumente
Kultur Dokumente
Menubar options
Point evaluation
Cut lines
Cut planes
Slice
Isosurface
Volume
Surface
Line (edge)
Arrow (in volume)
Streamline
Animate (transient
and parametric only)
3
Select the desired
geometric entities
Results can be
visualized only on
the desired
geometric entities
Derived Values
See the
coordinates under
Results > Data
Sets > Cut Line
3
Check the plot
along that cut line
in an automatically
created new 1D
Plot Group
See the
coordinates
under
Results >
Data Sets >
Cut Plane
3
Check the plot along
that cut plane in an
automatically created
new 2D Plot Group
Revolving solution
See model file:
Example_results_revolve
2D solution
3D solution
Exporting results
Structural model
Eigenfrequency analysis
Mode shapes
u f
utt (u) 0
Coefficient Form
In the domain
diffusion
source
absorption
2u
u
ea 2 d a
(cu u ) u au f
t
t
mass
damped
mass
convection
n ( cu u ) g
ur
convection
source
on boundary
inside subdomain
on subdomain boundary
initial/thermal
stress
2u
u
ea 2 d a
(cu u ) u au f
t
t
mass
damped
mass
This is how
COMSOL solves
other physics
body force
(gravitation)
ea
density
da
damping coefficient
cu
stress
pambient
h
lubricant
p < pambient
1 d h3 dp
r
v
r dr 12 dr
Boundary Conditions:
dp
0 at r = 0 and
dr
p = 0 at r = r0
Forces mu cu ku p(t ) 0
p(t)
u0 u0 , u0 u0
u u ku 0
u 0 1, u 0 0
2k , critically damped
2k , overdamped
2k , underdamped
overdamped, =100
beta is a parameter
critically damped, =10
underdamped, =1
mass flux vd A
Outlet, Pressure,
no viscous stress
1 mm
4 mm
P = 0 Pa
Wall, no slip
Integration coupling
operator on inlet:
spf.rho*u*1[m]
Solution, exhibiting
entrance effect
The mass flux integral is taken per unit
length out of the modeling plane
155
mass_flux_required is a parameter
mass_flux is a variable
Spherical symmetry
represented as 1D
Equation-based model
Time-dependent
FEA formulation
Linear problem
Nonlinear problem
Suggestions on convergence
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 1
Node 2
k1(u3 - 0 ) + k2(u2 - 0 ) = c
k2(u2 - 0 ) - k3(u3 - u2) = 0
k1(u3 - 0 ) + k3(u3 - u2) = p
Three equations, three
unknowns: c,u2, u3
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
u2
k1 c
u3
k3 u2 0
k1 k3 u3 p
Ku=b
u=K-1b
k1= 6 N/m
k2=k3= 4 N/m
p=2 N
u2 0.125
u
0
.
250
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
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
Algorithm:
1) Start at a point, e.g. u0 = 0
2) Find the slope, f(u0)
f (u)
(1)
(3)
f u0
usolution 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 2 k3
f u
p k3
k3 u2 0
k1 k3 u3 0
f (u) = b - Ku,
f u0
usolution u0
f ' u0
2
usolution 0
0.5
4
u0 = 0
f u 0
b Ku 0 b
u solution u 0
0
f' u 0
K
K
u solution K 1b
Algorithm:
f (u)
3) Terminate when:
f i 1 / f i & ui 1 / ui tolerance
k2 = exp(u2-u1)
u1
u2
u3
f ui
1
ui 1 ui
ui Sui bui K ui ui
f ' ui
Iterate until:
p= 2
k3 = 4
f i 1 / f i & ui 1 / ui tolerance
u0= -1
f (u)
slow
convergence
u
fast
convergence
f (u)
|fi|
f ui
ui 1 ui
f ' ui
final |fi+1|
recompute fi+1(ui+1)
intermediate |fi+1|
undamped |fi+1|
end
Recall that:
Load
k = exp(u) N/m
f (u) = 2 - exp(u) u
p=2N
f (u)
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
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
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?
What does the temperature and thermal conductivity solution look like?
Try solving case #3 with an initial temperature of 50[K], how does this
affect the solution? What about the other cases?
Set back to T=0 afterwards
Tmax
?
T
Qin
Initial mesh
Final mesh
Meshes > Mesh 2
Convergence Criteria
Non-linear solver algorithm
f (U ) 0
Linearized about an initial guess point
U0
f ' U 0 U f U 0 U1 U 0 U
'
Calculate relative error E: f U 0 E f U1
If
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)[W/(m*K)]
Try: DK, STEP = 0 8 2.5 4 5 2 7.5 0.5 10 0.25
Converging?
Not converging?
Perform a mesh
refinement study.
Try a finer mesh
and check that the
solution is similar.
Not converging?
Electromagnetic Waves
Frequency domain study
Direct methods
Iterative methods
k3 u2 0
b Ku 0
k1 k3 u3 0
u3
Solution
u2
u sol
r (u)
r u 0
u0
r u 0
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
u3
r(u) = bu-Kuu
Condition
number = 1
Condition
number = 2
u2
Condition
number = 10
Ku = b
MKu = Mb
Heat Transfer
All other surfaces
insulated
T=0K
k = 1 W/mK
V=0V
= 1S/m
V=1V
q=100 W/m2
kT 0
in the domain
V 0
in the domain
n kT 100 mW2
right boundary
V 1V
right boundary
T 0K
left boundary
V 0V
left boundary
T 0
other boundaries
V 0
other boundaries
fT = KTuT - bT
fV = KVuV - bV
fT (uT) = KTuT - bT
fV (uV) = KVuV - bV
fT uT
f u
0
K T
f u
0
uT bT
Su b
fV uV uV bV
0
0 uT bT
K V uV bV
fT / uV = 0
fV / uT = 0
u sol u0 S 1 Ku 0 b
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
fT = KTuT - bT
fV = KV(uT)uV - bV
fT (uT) = KTuT - bT
fV (uV) = KV(uT)uV - bV
fT uT
f u
fV uT
uT bT
K u u b
fV uV uV bV
0
u i 1 u i Su i K u i u i b
1
u i 1 u i f u i u f u i
1
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
Qvol (T ,V )
V=V(T,V)
T=T(T,V)
(T,V)
V=V(T,V)
k(T,V)
fT = KT(uV,uT)uT - bT(uV,uT)
fT uT
f u
fV uT
General NewtonRaphson multiphysics iteration:
fV = KV(uV,uT)uV - bV(uV,uT)
fT uV uT bT uV , uT
K u u bu
fV uV uV bV uV , uT
u i 1 u i Su i K u i u i bu i
1
u i 1 u i f u i u f u i
1
Qvol (T ,V )
T=T(T,V)
V=V(T,V)
(T,V)
V=V(T,V)
k(T,V)
fT uT
f u
fV uT
fT uV uT bT uV , uT
K u u bu
fV uV uV bV uV , uT
If one or both of these are zero, then the memory requirements are less
One-way coupled
Information passes from one physics to the next, in one direction
Two-way coupled
Information gets passed back and forth between physics
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
The results of one physics affects both that, and other, physics
Fully coupled
All of the above
Weakly coupled
The physics do not strongly affect the loads/properties in other physics
Strongly coupled
The opposite of weakly coupled
fT uV uT bT uV , uT
fV uV uV bV uV , uT
is damping
fT uV uT bT
fV uV uV bV
f uT
f u T
0
uT bT
fV uV uV bV
0
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
An uncoupled problem
Electric currents
Heat Transfer
TL=0
k=1 W/mK
VL=0
=1 S/m
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
Heat Transfer
Q(V) W/m3
TL=0
k=1 W/mK
VL=0
=1 S/m
q=100 W/m2
J=10 A/m2
Case 2
exp(-T/600)
Electric
Conductivity
1
Tmax
exp(-T/600)
Jin
Electric
Conductivity
Tmax
Same as before
Case 2
exp(-T/600)
exp(-T/600)
V
Ramp up applied voltage range(0,20,140)
How high can it go?
Why?
Try boundary layer mesh with 50 layers where needed.
Keep mesh size to fine.
Segregated step
Study > Solver Configurations > Solver
1> Stationary Solver1>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
Everything else
BC
Boundary conditions
represent the outside
BC
Model
Something else
BC
Infinite Elements
PML
See model file: Example_PML
Radiation - Cylindrical
PML - Cylindrical
3-physics: Piezoelectric
material (structural +
electrical) + Acoustics
Uses symmetry
Perfectly Matched Layer
Custom mesh
Frequency domain
mm scale geometry
Time-dependent problems
Time-dependent formulation
T
kT Q
t
u
f (u) Ku b
t
u ut 1 ut
K t ut bt
t
t
ut 1 t K t ut bt ut
u ut 1 ut
K t 1ut 1 bt 1
t
t
I tK t 1 ut 1 ut tbt 1
Governing Equation
Explicit time-stepping
Slower
Simple
Faster
Implicit time-stepping
More stable
t-2
t-1
t+1
True solution
t
Solutions within
Relative tolerance
Solutions within
Tighten both the
Absolute tolerance absolute and relative
t
u
t
Voltage:
Absolute tolerance: 0.001V
time
Response
time
u(tinitial) = [K]-1b(tinitial)
Solution:
t
Observe the solution with respect to time and
monitor the magnitude of the changes as the
tolerances are increased.
The problem is converged when you say it is.
Outside envelop is absolute
and relative tolerance
Try yourself:
increasing
time
Tinit
Transient 1-D slab
Tfixed
flc1hs(t-0.01,0.01)
If it is not converging:
Refine the mesh
Smooth out abrupt differences in loads and properties as reasonable
Try linearized properties
Some non-linear properties may require a very fine mesh and small time-step
Laminar flow
Multiple pulsating inlets
with phase difference
Swept mesh
Time-dependent boundary
conditions
Setting absolute tolerance
Summary
Meshing techniques
Postprocessing techniques
PDE interface
Time-dependent study
End of Slides