320 likes | 485 Views
Quasi-1D Finite Element Method for Isothermal Flow of Ionized Gas Through a Nozzle. Robert Lee lee@ee.eng.ohio-state.edu. In FD, one approximates the derivatives by finite differences. In FEM, one approximates the unknown variable by basis functions
E N D
Quasi-1D Finite Element Methodfor Isothermal Flow of Ionized GasThrough a Nozzle Robert Lee lee@ee.eng.ohio-state.edu
In FD, one approximates the derivatives by finite differences. In FEM, one approximates the unknown variable by basis functions On similar grids, the matrix equation produced by FEM and FD may actually be the same Comparison of finite differencesversus finite elements
FEM is ideally suited for unstructured grids while FD is applied to structured grids Comparison of finite differencesversus finite elements (cont’d 2) structured unstructured
Method of Weighted Residuals The method of weighted residuals is now the most popular way to obtain an equation for the application of FEM. L is the operator (in our case diff. eq. of interest, and u is the unknown variable. f(x) is the forcing function. Let us define an approximation of u given by Then
Method of Weighted Residuals (cont’d 2) We must try to force R(x) = 0. One possible way called point matching is 0 1
Method of Weighted Residuals (cont’d 3) Point matching is equivalent to the following: We must consider other functions.
The basis functions fj(x)are generated by simple functions defined piecewise (element by element) over the FEM grid. The basis and weighting must be smooth enough such that their derivatives in the weight residual equation exists (assume nth order derivatives), i.e., Finite Element Method (FEM) FEM provides a systematic and very general way of generating the basis functions (usually polynomial approximations. The criteria are:
The basis functions are chosen in such a way that the coefficients defining the unknown quantity are precisely the value of the unknown quantity at the nodes. FEM (cont’d 2)
1 2 3 4 5 FEM (cont’d 3) Let us consider a 1-D grid Element Node Coordinate
1 1 2 2 3 3 4 4 5 5 FEM (cont’d 4) Assuming that we want to use the same functions for both the basis and weighting functions, the simplest function is the linear function shown below 1
Application to Conservation of Mass (cont’d 2) We evaluate the above expression element by element M is the number of elements Apply integration by parts,
Application to Conservation of Mass (cont’d 3) leads to Note: Most of the endpoint contributions cancel out if A is continuous since r and u are continuous. Consider two elements
Application to Conservation of Mass (cont’d 4) After plugging in approximation of r and u,
Single Element Evaluation Consider integral for one element
Single Element Evaluation (cont’d 2) Let us consider the integral over a single element And ignore the contribution from the boundary
Mapping from Global to Local System m m+1 Global node number 1 Local node number 2 Additional notation:
Element Evaluation in Local System Reordering terms,
Application to Conservation of Momentum After linearization, FD in time, and applying the method of weighted residuals, the expression for a single element is
Application to Conservation of Momentum (cont’d 2) Applying integration by parts, grouping terms, and disregarding B.C.’s,
Application to Conservation of Momentum (cont’d 3) Substituting basis function representation for unknowns and converting to local system,
Local Matrix Build Subscripts associated with indices i j in equations.
Local Matrix Build (cont’d 2) For example,
Local Matrix Build (cont’d 3) For example,
Transferring Local Matrix to Global Matrix Local Node # 1 2 1 2 1 2 1 2 1 2 3 4 5 Global Node # For element
Evaluation of Area A Assume A varies linearly within element Wm,
Numerical Integration: Gauss Quadrature Gauss quadrature of order N is given by
Numerical Integration: Gauss Quadrature (cont’d 2) Note: Gauss quadrature is especially well suited for polynomial functions since for large enough N, RN=0. A polynomial of order 2N-1 can be exactly integrated by a quadrature of order N. For our case, we need coordinate transformation,
Numerical Integration: Gauss Quadrature (cont’d 2) The highest order polynomial of interest for our problem is of order 4. We need quadrature of order 3,