mesh sampling for finite element method - machine...

1
Mesh Sampling for Finite Element Method Wanli He Department of Mechanical Engineering, Stanford University Mesh Sampling for Finite Element Method Wanli He Department of Mechanical Engineering, Stanford University Introduction Finite Element Method (FEM) plays an important role in solving partial differ- ential equations. Solid mechanics and structural dynamics is one application of FEM, and it has the governing equation in semi-discrete form in equation 1. M ¨ u + f (u)= f ext (1) The most time consuming part of solving equation 1 is the operator f (u), es- pecially in nonlinear case. We assemble f e (u) from discrete elements to obtain f (u) by equation 2. f (u)= X e∈V f e (u) (2) Method To reduce the assembly cost, we sample a subset of elements V 0 form V and attribute them non-negative weights α e > 0 e ∈V 0 such that f (u) X e∈V 0 α e f e (u) (3) However, f e (u) is a sparse vector since it only contains the local information. Thus, the assembly of sampled elements only produces a sparse internal force vector as well. Alternatively, we can replace it by the weighting matrix W e to broadcast local information, as shown in equation 4. ˆ f (u)= X e∈V 0 W e ˆ f e (u) (4) Data Training set contains {f (i) , ( ˆ f 1,(i) , ˆ f 2,(i) ,..., ˆ f |V|,(i) )}, for i =1, 2,...,n and validation set contains {f (j ) , ( ˆ f 1,(j ) , ˆ f 2,(j ) ,..., ˆ f |V|,(j ) )}, for j =1, 2,...,m. Algorithm Solve optimization problem in equation 5 V 0 * ,W * = arg min V 0 ,W n X i=1 loss(f (i) , X e∈V 0 W e ˆ f e,(i) ) (5) where W = {W e }∀e ∈V 0 , and loss function is the 2-norm square of the difference, i.e., loss(x, y )= ||x - y || 2 2 . Suppose the optimal subset of elements V 0 * is known, solve the optimization problem in equation 6. W * = arg min W J train (V 0 * ) = arg min W n X i=1 loss(f (i) , X e∈V 0 * W e ˆ f e,(i) )+ λ X e∈V 0 * ||W e || 2 F (6) The quality of sampled elements is evaluated by equation 7, which computes the relative global error in validation set. J val (V 0 * ,W * )= v u u t m j =1 loss(f (j ) , e∈V 0 * W e* ˆ f e,(j ) ) m j =1 ||f (j ) || 2 2 (7) Algorithm 1: Mesh sampling (greedy) initialize V 0 ; while not converged do (a) Random sample V s ⊂V ; (b) For i ∈V s if i/ ∈V 0 , let V 0 i ←V 0 ∪{i}, compute W * i arg min J train and evaluate J i = J val (V 0 i ,W * i ); (c) Set V 0 to be the best subset of elements which minimizes J val on step (b), V 0 arg min J i ; end Application We are interested in a dynamic impact problem of a three-dimensional circular bar on a rigid frictionless wall. Material response of the bar is characterized by a model of J 2 flow theory using a logarithmic free energy function and the von Mises yield criterion. Because of the symmetry, only one quarter of the bar is modeled. 1728 20-noded hexahedral elements are used with displacement- only DOFs. The initial velocity of the bar is 227 m/s. The temporal discretization is performed using the explicit central difference method with variable time-step based on the estimation of the critical stability time-step. The simulation runs until T =5 × 10 -5 s. Material properties Geometry Young’s modulus E 117 GPa Length L 32.4 mm Poisson’s ratio ν 0.4 Radius of circular cross-section R 3.2 mm Yield stress σ y 0.4 GPa Isotropic hardening modulus H 0.1 GPa Density ρ 8930 kg/m 3 Fig. 1: Circular bar: mesh (white lines), sampled elements (white solid elements), and probe locations Result Efficiency Accuracy Model I Model II Global relative errors (%) CPU times (s) 1.8 × 10 3 5.64 × 10 2 x-displacement 0.46 Speed-up factors 1.0 3.2 y-displacement 0.92 |V| 1728 70 z-displacement 0.93 x-velocity 4.0 y-velocity 9.6 z-velocity 9.6 Fig. 2: Impact of circular bar: sequence of deformed displacement field at t = 44 μs, t = 63 μs, and t = 80 μs of Model I (left column) and Model II (right column) Fig. 3: Impact of circular bar: displacements and velocities in z-direction at node 2336

Upload: others

Post on 26-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mesh Sampling for Finite Element Method - Machine Learningcs229.stanford.edu/proj2019spr/poster/89.pdf · 2019-06-18 · Mesh Sampling for Finite Element Method Wanli Hey yDepartment

Mesh Sampling for Finite Element Method

Wanli He††Department of Mechanical Engineering, Stanford University

Mesh Sampling for Finite Element Method

Wanli He††Department of Mechanical Engineering, Stanford University

Introduction

Finite Element Method (FEM) plays an important role in solving partial differ-ential equations. Solid mechanics and structural dynamics is one application ofFEM, and it has the governing equation in semi-discrete form in equation 1.

Mu + f (u) = f ext (1)

The most time consuming part of solving equation 1 is the operator f (u), es-pecially in nonlinear case. We assemble fe(u) from discrete elements to obtainf (u) by equation 2.

f (u) =∑e∈V

fe(u) (2)

Method

To reduce the assembly cost, we sample a subset of elements V ′ form V andattribute them non-negative weights αe > 0 ∀e ∈ V ′ such that

f (u) ≈∑e∈V ′

αefe(u) (3)

However, fe(u) is a sparse vector since it only contains the local information.Thus, the assembly of sampled elements only produces a sparse internal forcevector as well. Alternatively, we can replace it by the weighting matrix W e tobroadcast local information, as shown in equation 4.

f (u) =∑e∈V ′

W efe(u) (4)

Data

Training set contains {f (i), (f1,(i), f2,(i), . . . , f |V|,(i))}, for i = 1, 2, . . . , n and

validation set contains {f (j), (f1,(j), f2,(j), . . . , f |V|,(j))}, for j = 1, 2, . . . ,m.

Algorithm

Solve optimization problem in equation 5

V′∗,W ∗ = arg min

V ′,W

n∑i=1

loss(f (i),∑e∈V ′

W efe,(i)) (5)

where W = {W e} ∀e ∈ V ′, and loss function is the 2-norm square of thedifference, i.e., loss(x, y) = ||x− y||22.

Suppose the optimal subset of elements V ′∗ is known, solve the optimizationproblem in equation 6.

W ∗ = arg minW

Jtrain(V′∗)

= arg minW

n∑i=1

loss(f (i),∑e∈V ′∗

W efe,(i)) + λ∑e∈V ′∗

||W e||2F(6)

The quality of sampled elements is evaluated by equation 7, which computesthe relative global error in validation set.

Jval(V′∗,W ∗) =

√√√√∑mj=1 loss(f (j),

∑e∈V ′∗W

e∗fe,(j))∑mj=1 ||f (j)||22

(7)

Algorithm 1: Mesh sampling (greedy)

initialize V ′← ∅;while not converged do

(a) Random sample Vs ⊂ V ;(b) For i ∈ Vs if i /∈ V ′, let V ′i ← V

′ ∪ {i}, compute W ∗i ← arg min Jtrain and evaluateJi = Jval(V ′i,W

∗i );

(c) Set V ′ to be the best subset of elements which minimizes Jval on step (b),V ′← arg min Ji;

end

Application

We are interested in a dynamic impact problem of a three-dimensional circular bar on a rigidfrictionless wall. Material response of the bar is characterized by a model of J2 flow theory using alogarithmic free energy function and the von Mises yield criterion. Because of the symmetry, onlyone quarter of the bar is modeled. 1728 20-noded hexahedral elements are used with displacement-only DOFs. The initial velocity of the bar is 227 m/s. The temporal discretization is performedusing the explicit central difference method with variable time-step based on the estimation of thecritical stability time-step. The simulation runs until T = 5× 10−5 s.

Material properties Geometry

Young’s modulus E 117 GPa Length L 32.4 mm

Poisson’s ratio ν 0.4 Radius of circular cross-section R 3.2 mm

Yield stress σy 0.4 GPa

Isotropic hardening modulus H 0.1 GPa

Density ρ 8930 kg/m3

Fig. 1: Circular bar: mesh (white lines), sampled elements (white solid elements), and probelocations

Result

Efficiency Accuracy

Model I Model II Global relative errors (%)

CPU times (s) 1.8× 103 5.64× 102 x-displacement 0.46

Speed-up factors 1.0 3.2 y-displacement 0.92

|V| 1728 70 z-displacement 0.93

x-velocity 4.0

y-velocity 9.6

z-velocity 9.6

Fig. 2: Impact of circular bar: sequence of deformed displacement field at t = 44 µs,t = 63 µs, and t = 80 µs of Model I (left column) and Model II (right column)

Fig. 3: Impact of circular bar: displacements and velocities in z-direction at node 2336