This post is about mathematical formulas for my reference.
Integration by parts
For ordinary functions of one variable, the rule for integration by parts follows immediately from integrating the product rule
ddx(fg)=dfdxg+fdgdx,∫baddx(fg)dx=∫badfdxgdx+∫bafdgdxdx,fg|ba=∫badfdxgdx+∫bafdgdxdx.Rearraging, we obtain
∫badfdxgdx=fg|ba−∫bafdgdxdx.In an analogous way, we can obtain a rule for integration by parts for the divergence of a vector field by starting from the product rule for the divergence
∇⋅(fG)=(∇f)⋅G+f(∇⋅G).integrating both sides yields
∫∇⋅(fG)dτ=∫(∇f)⋅Gdτ+∫f(∇⋅G)dτ.Now use the divergence theorem to rewrite the first term, leading to
∫(fG)⋅dA=∫(∇f)⋅Gdτ+∫f(∇⋅G)dτ.which can be rearranged to
∫f(∇⋅G)dτ=∫(fG)⋅dA−∫(∇f)⋅Gdτ.which is the desired integration by parts.
Typical Steps in Finite Element Analysis of Electromagnetics
We have the divergence theorem,
∫Ω∇⋅→w dΩ=∫Γ→w⋅ˆn dΓ,where Ω is the integral domain, and Γ is the integral boundary, and →w is a vector field, and ˆn is the normal to the integral boundary outward.
For a scalar field u in Poisson equation of the electrostatics, we wiil have the following steps used in the formulation of weak form of the Poisson equation.
∇⋅(v ϵ∇u)=∇v⋅(ϵ∇u)+v∇⋅(ϵ∇u),where v is the test scalar field. If apply integral over domain to the above equation, we have
∫Ωv∇⋅(ϵ∇u) dΩ=∫Ω∇⋅(vϵ∇u) dΩ+∫Ω∇v⋅ϵ∇u dΩ=∫Γvϵ∇u⋅ˆn dΓ+∫Ω∇v⋅ϵ∇u dΩwhere we apply the divergence theorem in the second step.
For a vector filed →u in the Helmholtz equation of waveguide problems, we will have the following steps used in the formulation of weak form of the Helmholtz equation.
Recall from the vector analysis, we have the following equality,
∇⋅(→a×→b)=→b⋅∇×→a−→a⋅∇×→b.We have the following steps in the formulation of Helmholtz equation with Eq. (2),
∇⋅[→v×(1μr∇×→u)]=1μr∇×→u⋅∇×→v−→v⋅[∇×(1μr∇×→u)],where →v is the test vector field. We can apply the integral over the domain for the above equation, we have
∫Ω→v⋅[∇×(1μr∇×→u)] dΩ=∫Ω1μr∇×→u⋅∇×→v dΩ−∫Ω∇⋅[→v×(1μr∇×→u)] dΩ,=∫Ω1μr∇×→u⋅∇×→v dΩ−∫Γ→v×(1μr∇×→u)⋅ˆn dΓ,=∫Ω1μr∇×→u⋅∇×→v dΩ−∫Γ1μr∇×→u⋅(ˆn×→v) dΓ,where we apply divergence theorem for the second step and we apply the following equality for the third step,
→a⋅(→b×→c)=→b⋅(→c×→a)=→c⋅(→a×→b).Boundary conditions 1
One-dimensional scalar field ϕ
For a one-dimensional scalar field ϕ, we have three kinds of boundary conditions.
- boundary condition of the first kind:
which is typically called as Dirichlet boundary condition.
- boundary condition of the third kind:
which is called Robin boundary condition.
- boundary condition of the second kind:
γ=0, a special case of the third boundary condition, is also termed as Neumann condition.
Two-dimensional scalar field ϕ
Fig. Two-dimensional domain having a discontinuity interface .
For a two-dimensional scalar field ϕ, the three kinds of boundary conditions are
- boundary condition of the first kind, also known as Dirichlet boundary condition:
- boundary condition of the third kind, known as Robin boundary:
- boundary condition of the second kind:
The boundary condition of the second kind is a special case of the above equation with γ=0 which is known as Neumann boundary condition.
Three-dimensional scalar field ϕ
For a three-dimensional scalar field ϕ, the three kinds of boundary conditions are
- boundary condition of the first kind, also known as Dirichlet boundary condition:
- boundary condition of the third kind, known as Robin boundary:
- boundary condition of the second kind:
The boundary condition of the second kind is a special case of the above equation with γ=0 which is known as Neumann boundary condition.
Reference
-
Jian-Ming Jin, The finite element method in electromagnetics (2015). ↩