User:Eml5526.s11.team2/hwk5
Problem 5.1: Deriving the Weak Form From the Strong Form (Data 1b) [edit]
Given: Strong Form, Boundary Conditions, and Basis Functions [edit]
The Strong Form from lecture 9-1 and Fish and Belytschko p. 73:
|
|
(1.1) |
|
|
(1.2) |
|
|
(1.3) |
|
|
(1.4) |
|
|
(1.5) |
Find: The Weak Form in Order to Solve for
with Following Basis Functions [edit]
Solve for
and
using the following basis functions until the error
.
- Polynomial Basis Function

- Exponential Basis Function

- Fourier Basis Function

On the domain defined by,
|
|
Solution: Using Boundary Conditions and Constraint Breaking Solutions [edit]
Exact Solution [edit]
Exact Solution Showing all Steps Find the exact solution of
As presented in the problem statement we will solve the following ODE
Rearranging the ODE provided in (1.1) and integrating once gives
Next we must satisfy the essential boundary conditions
Therefore the first order separable ODE has the form
To solve for
Recall that a polynomial P(x) with a numerator N(x), denominator D(x), quotient Q(x), and remainder R(x) such that P(x) has degree(D(x)) < degree(N(x)), then P(x) can be written as
Next we will use long division to simplify the integrand.
The polynomial in the integrand can therefore be written as
Now the integration becomes trivial since it can be written as a sum of three easily evaluated integrals
Then if we integrate using u-substitution for the first integral in (1.14) by letting
We get the following result
To determine the
Solving for
Now
|
||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. Approximating Solution Using Polynomial Basis Function [edit]
Here is the matlab code used to obtain the approximating solutions: Matlab Code
|
|
(1.21) |
Multiplying Equ 2.20 by w(x) and integrating within the domain:
|
|
(1.22) |
Next we will integrate by parts to obtain,
|
|
(1.23) |
Since
we can simplify (2.22) in the following way to obtain the weak form,
|
|
(1.24) |
Now we can use the polynomial basis functions,
|
|
(1.25) |
|
|
(1.26) |
|
|
(1.27) |
Which allows us to write the weak form (2.25) in terms of our matrices
,
and
.
|
|
(1.28) |
Next we wish to obtain the solution to
by solving the following system of equations,
|
|
(1.29) |
Solving for the approximating solution, the d matrix can transposed and multiplied by the basis function matrix:
|
|
(1.30) |
Using the provided matlab code to obtain the d coefficients and applying to the basis function:
n=8 [edit]
We found that for
the error was of the order
. Using the Matlab code and rounding off to the nearest hundredths place gives the matrices
and ![\displaystyle \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/a/1/0/a108f88191fbe559ed27f9cfc6e8f900.png)
|
|
Using our Matlab code we obtain the following solution for
. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.
|
|
(1.31) |
Matlab Code [edit]
| MATLAB Code for Problem 5.1 |
|---|
clear all; clc; format long syms x Uh; U = 241/54*log((2+3*x)/2)+(20*x-15*x^2+144)/36; % Exact Solution m = 9; % Global Equidistant Nodes d_0 = 4; % Basis Function Vector b_i = sym(ones(m,1)); for i=1:m if rem(i,2)==0 b_i(i)=sin(i/2*(x-1)); else b_i(i)=cos((floor(i/2)+1)*(x-1))-1; end end % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) - subs((30)*b_i(i),x,0); end d = zeros(m+1,1); Kfff = zeros(m+1,m+1); Kfff(1,1) = 1; Kfff(2:m+1,2:m+1) = Kff % Displaying Kff Fff = d_0*ones(m+1,1) Fff(2:m+1,1) =Ff % Displaying Ff d = Kfff\Fff; % Solve for d i=1,2,...,m Uh = dot(d,b_i) % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) |
Plot: Comparing the exact solution
to
for
[edit]
The plots for solutions and error at x=.5 are as follows:
Plot: Showing the error
[edit]
For the polynomial approximate solution, with the increasing number of nodes, the error decreases. For this particular instance, the error XXXXXXX
2. Approximating Soultion Using Fourier Basis Function [edit]
Here is the matlab code used to obtain the approximating solutions: Matlab Code
Using the same process as the polynomial solution and using the general equation from equation 2.21, the fourier solution is obtained the same way. W(x) is now equation 5.35 from HW4
Using the provided matlab code to obtain the d coefficients and applying to the basis function:
n=8 [edit]
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices
and ![\displaystyle \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/a/1/0/a108f88191fbe559ed27f9cfc6e8f900.png)
|
|
Using our Matlab code we obtain the following solution for
. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.
|
Matlab Code [edit]
| MATLAB Code for Problem 5.1 |
|---|
clear all; clc; format long syms x Uh; U = 241/54*log((2+3*x)/2)+(20*x-15*x^2+144)/36; % Exact Solution m = 9; % Global Equidistant Nodes d_0 = 4; % Basis Function Vector b_i = sym(ones(m,1)); for i=1:m if rem(i,2)==0 b_i(i)=sin(i/2*(x-1)); else b_i(i)=cos((floor(i/2)+1)*(x-1))-1; end end % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) - subs((30)*b_i(i),x,0); end d = zeros(m+1,1); Kfff = zeros(m+1,m+1); Kfff(1,1) = 1; Kfff(2:m+1,2:m+1) = Kff % Displaying Kff Fff = d_0*ones(m+1,1) Fff(2:m+1,1) =Ff % Displaying Ff d = Kfff\Fff; % Solve for d i=1,2,...,m Uh = dot(d,b_i) % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) |
Plot: Comparing the exact solution
to
for
[edit]
The plots for solutions and error at x=.5 are as follows:
Plot: Showing the error
[edit]
3. Approximating Soultion Using Exponential Basis Function [edit]
Here is the matlab code used to obtain the approximating solutions: Matlab Code
Using the same process as the polynomial solution and using the general equation from equation 2.21, the exponential solution is obtained the same way. W(x) is now equation 5.41 from HW4
Using the provided matlab code to obtain the d coefficients and applying to the basis function:
n=8 [edit]
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices
and ![\displaystyle \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/a/1/0/a108f88191fbe559ed27f9cfc6e8f900.png)
|
|
Using our Matlab code we obtain the following solution for
. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.
|
Matlab Code [edit]
| MATLAB Code for Problem 5.1 |
|---|
clear all; clc; format long syms x Uh; U = 241/54*log((2+3*x)/2)+(20*x-15*x^2+144)/36; % Exact Solution m = 9; % Global Equidistant Nodes d_0 = 4; % Basis Function Vector b_i = sym(ones(m,1)); for i=1:m if rem(i,2)==0 b_i(i)=sin(i/2*(x-1)); else b_i(i)=cos((floor(i/2)+1)*(x-1))-1; end end % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) - subs((30)*b_i(i),x,0); end d = zeros(m+1,1); Kfff = zeros(m+1,m+1); Kfff(1,1) = 1; Kfff(2:m+1,2:m+1) = Kff % Displaying Kff Fff = d_0*ones(m+1,1) Fff(2:m+1,1) =Ff % Displaying Ff d = Kfff\Fff; % Solve for d i=1,2,...,m Uh = dot(d,b_i) % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) |
Plots [edit]
The plots for solutions and error at x=.5 are as follows:
Problem 5.2: Deriving the Weak Form From the Strong Form (Data 1) [edit]
Given: Strong Form, Boundary Conditions, and Basis Functions [edit]
The Strong Form from lecture 9-1 and Fish and Belytschko p. 73:
|
|
(2.1) |
|
|
(2.2) |
|
|
(2.3) |
|
|
(2.4) |
|
|
(2.5) |
Find: The Weak Form in Order to Solve for
with Following Basis Functions [edit]
Solve for
and
using the following basis functions until the error
.
- Polynomial Basis Function

- Exponential Basis Function

- Fourier Basis Function

On the domain defined by,
|
|
Solution: Using Boundary Conditions and Constraint Breaking Solutions [edit]
Exact Solution [edit]
Exact Solution Integration Find the exact solution of
As presented in the problem statement we will solve the following ODE
Rearranging the ODE provided in (2.1) and integrating once gives
Next we must satisfy the essential boundary conditions
Therefore the first order separable ODE has the form
To solve for
Recall that a polynomial P(x) with a numerator N(x), denominator D(x), quotient Q(x), and remainder R(x) such that P(x) has degree(D(x)) < degree(N(x)), then P(x) can be written as
Next we will use long division to simplify the integrand.
The polynomial in the integrand can therefore be written as
Now the integration becomes trivial since it can be written as a sum of three easily evaluated integrals
Then if we integrate using u-substitution for the first integral in (2.14) by letting
We get the following result
To determine the
Solving for
Now
|
||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. Approximating Solution Using Polynomial Basis Function [edit]
Here is the matlab code used to obtain the approximating solutions: Matlab Code
|
|
(2.21) |
Multiplying Equ 2.20 by w(x) and integrating within the domain:
|
|
(2.22) |
Next we will integrate by parts to obtain,
|
|
(2.23) |
Since
we can simplify (2.22) in the following way to obtain the weak form,
|
|
(2.24) |
Now we can use the polynomial basis functions,
|
|
(2.25) |
|
|
(2.26) |
|
|
(2.27) |
Which allows us to write the weak form (2.25) in terms of our matrices
,
and
.
|
|
(2.28) |
Next we wish to obtain the solution to
by solving the following system of equations,
|
|
(2.29) |
Solving for the approximating solution, the d matrix can transposed and multiplied by the basis function matrix:
|
|
(2.30) |
Using the provided matlab code to obtain the d coefficients and applying to the basis function:
n=2 [edit]
|
|
(2.31) |
n=4 [edit]
|
|
(2.32) |
n=6 [edit]
|
|
(2.33) |
n=8 [edit]
We found that for
the error was of the order
. Using the Matlab code and rounding off to the nearest hundredths place gives the matrices
and ![\displaystyle \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/a/1/0/a108f88191fbe559ed27f9cfc6e8f900.png)
|
|
Using our Matlab code we obtain the following solution for
. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.
|
|
(2.34) |
Matlab Code: [edit]
| MATLAB Code for Problem 5.2 |
|---|
clear all; clc; format long syms x Uh; U = -118/27*log((2+3*x)/5) + (20*x-15*x^2+139)/36; % Exact Solution m = 2; % Global Equidistant Nodes d_0 = 4; x_m = zeros(m); for i=1:m x_m(i)=(i-1)/(m-1); end % Basis Function Vector b_i = sym(ones(m,1)); for i=1:m for j=1:m b_i(i)=(x-1)^(i); end end % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) + subs((12+18*x)*b_i(i),x,0); end d = zeros(m,1); Kff % displaying Kff Ff % displaying Ff d = Kff\Ff; % Solve for d i=1,2,...,m d = [d_0;d] % Prepend d_0 |
Plot: Comparing the exact solution
to
for
[edit]
The plots for solutions and error at x=.5 are as follows:
Plot: Showing the error
[edit]
For the polynomial approximate solution, with the increasing number of nodes, the error decreases. For this particular instance, the error XXXXXXX
2. Approximating Soultion Using Fourier Basis Function [edit]
Here is the matlab code used to obtain the approximating solutions: Matlab Code
Using the same process as the polynomial solution and using the general equation from equation 2.21, the fourier solution is obtained the same way. W(x) is now equation 5.35 from HW4
Using the provided matlab code to obtain the d coefficients and applying to the basis function:
n=2 [edit]
|
|
(2.34) |
n=4 [edit]
|
|
(2.35) |
etc...
n=8 [edit]
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices
and ![\displaystyle \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/a/1/0/a108f88191fbe559ed27f9cfc6e8f900.png)
Matlab [edit]
| MATLAB Code for Problem 5.2 |
|---|
clear all; clc; format long syms x Uh; U = -118/27*log((2+3*x)/5) + (20*x-15*x^2+139)/36; % Exact Solution m = 9; % Global Equidistant Nodes d_0 = 4; % Basis Function Vector b_i = sym(ones(m,1)); for i=1:m if rem(i,2)==0 b_i(i)=sin(i/2*(x-1)); else b_i(i)=cos((floor(i/2)+1)*(x-1))-1; end end % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) + subs((12+18*x)*b_i(i),x,0); end d = zeros(m+1,1); Kfff = zeros(m+1,m+1); Kfff(1,1) = 1; Kfff(2:m+1,2:m+1) = Kff% Lazy way of displaying Kff Fff = d_0*ones(m+1,1) Fff(2:m+1,1) =Ff % Lazy way of displaying Ff d = Kfff\Fff; % Solve for d i=1,2,...,m Uh = dot(d,b_i) % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) |
Plot: Comparing the exact solution
to
for
[edit]
The plots for solutions and error at x=.5 are as follows:
Plot: Showing the error
[edit]
3. Approximating Soultion Using Exponential Basis Function [edit]
Here is the matlab code used to obtain the approximating solutions: Matlab Code
Using the same process as the polynomial solution and using the general equation from equation 2.21, the exponential solution is obtained the same way. W(x) is now equation 5.41 from HW4
Using the provided matlab code to obtain the d coefficients and applying to the basis function:
n=2 [edit]
|
|
(2.36) |
n=4 [edit]
|
|
(2.37) |
n=8 [edit]
Using the Matlab code and rounding off to the nearest hundredths place gives the matrices
and ![\displaystyle \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/a/1/0/a108f88191fbe559ed27f9cfc6e8f900.png)
|
|
Using our Matlab code we obtain the following solution for
. We have chosen to report these values in the long format to demonstrate that rounding error has not occurred.
|
The plots for solutions and error at x=.5 are as follows:
Matlab [edit]
| MATLAB Code for Problem 5.2 |
|---|
clear all; clc; format long syms x Uh; U = -118/27*log((2+3*x)/5) + (20*x-15*x^2+139)/36; % Exact Solution m = 30; % Global Equidistant Nodes d_0 = 4; % Basis Function Vector % Basis Function Vector b_i = sym(ones(m,1)); for i=1:m for j=1:m b_i(i)=exp(i*(x-1))-1; end end % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) + subs((12+18*x)*b_i(i),x,0); end d = zeros(m,1); Kff % displaying Kff Ff % displaying Ff d = Kff\Ff; % Solve for d i=1,2,...,m d = [d_0;d] % Prepend d_0 b_i = [1;b_i] % Prepend b_0 Uh = d'*b_i % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) |
Problem 5.3: Torsion of a Bar [edit]
Modified version of HW 4.4 defined on page 2 of Lecture 21 from Fish & Belytschko Page 73 Problem 3.7
Given [edit]
|
|
(5.3.1) |
|
|
(5.3.2) |
|
|
(5.3.3) |
|
|
(5.3.4) |
|
|
(5.3.5) |
Where the Weak Form for a bar in torsion can be defined as
|
|
(5.3.2) |
Make use of the Lagrange Interpolation Basis Function (LIBF) with uniform discretization (equidistant nodes) using
where the LIBF can defined as follows
|
|
(5.3.3) |
Find [edit]
a) Explain how Langrange Interpolation Basis Functions (LIBF) are used as Constraint Breaking Solutions
b) Plot all LIBF used
c) Use matlab quad function or WolframAlpha.com to integrate
d) Plot approximate vs exact solution and convergence error versus equidistant nodes (m)
Solution [edit]
(a) [edit]
Langrange Interpolation Basis Functions satisfy the condition of the constraint breaking solution by assuming a value of zero at every node except for the node where the LIBF is defined there it assumes a value of 1. It acts like the Kronecker Delta
|
|
(5.3.4) |
(b) [edit]
The following is the LIBF for the 
Figure 1: LIBF m = 4([1])
|
The following is the LIBF for the 
Figure 1: LIBF m = 6([2])
|
The following is the LIBF for the 
Figure 1: LIBF m = 8([3])
|
(c) [edit]
Plot: Comparing the exact solution
to
for
[edit]
The plots for solutions and error at x=.5 are as follows:
Plot: Showing the error
[edit]
(d) [edit]
Matlab Code [edit]
| MATLAB Code for Problem 5.3 |
|---|
clear all; clc; syms x b; m = 4; % Uniform Discretization x_m = zeros(m,1); for i=1:m x_m(i)=(i-1)/(m-1); end % Construct the Lagrange interpolating basis function L = sym(ones(m,1)); for i=1:m for j=1:m if(j~=i) L(i)=L(i)*(x-x_m(j))/(x_m(i)-x_m(j)); L(i) = expand(L(i)); end end end L % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) - 6*subs((2+3*x)*b_i(i),x,1); end d = zeros(m,1); Kff % Lazy way of displaying Kff Ff % Lazy way of displaying Ff d = Kff\Ff; % Solve for d i=1,2,...,m d = [d_0;d] % Prepend d_0 b_i = [1;b_i] % Prepend b_0 Uh = d'*b_i % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) p1 = ezplot(libf(1,m), 1,8); set( p1,'Color','blue', 'LineStyle', '--', 'LineWidth', 2); title('LIBF m = 4') xlabel('Number of Nodes') ylabel('Value of LIBF') hold on p2 = ezplot(libf(2,m), 1,8); set( p2,'Color','red', 'LineStyle', '--', 'LineWidth', 2); p3 = ezplot(libf(3,m), 1,8); set( p3,'Color','green', 'LineStyle', '--', 'LineWidth', 2); p4 = ezplot(libf(4,m), 1,8); set( p4,'Color','cyan', 'LineStyle', '--', 'LineWidth', 2); axis tight p5 = ezplot(libf(5,m), 1,8); set( p5,'Color','magenta', 'LineStyle', '--', 'LineWidth', 2); p6 = ezplot(libf(6,m), 1,8); set( p6,'Color','yellow', 'LineStyle', '--', 'LineWidth', 2); axis tight p7 = ezplot(libf(7,m), 1,8); set( p7,'Color','blue', 'LineStyle', '--', 'LineWidth', 2); p8 = ezplot(libf(8,m), 1,8); set( p8,'Color','red', 'LineStyle', '--', 'LineWidth', 2); axis tight title('LIBF m = 8') xlabel('Number of Nodes') ylabel('Value of LIBF') h = legend('Node1','Node2','Node3','Node4','Node5','Node6','Node7','Node8',-1); hold off |
Problem 5.4: Torsion of a Bar [edit]
Modified version of HW 4.4 defined on page 2 of Lecture 21 from Fish & Belytschko Page 73 Problem 3.7
Given [edit]
|
|
(5.3.1) |
|
|
(5.3.2) |
|
|
(5.3.3) |
|
|
(5.3.4) |
|
|
(5.3.5) |
Where the Weak Form for a bar in torsion can be defined as
|
|
(5.3.6) |
Make use of the Lagrange Interpolation Basis Function (LIBF) with uniform discretization (equidistant nodes) using
where the LIBF can defined as follows
|
|
(5.3.6) |
Find [edit]
a) Explain how Langrange Interpolation Basis Functions (LIBF) are used as Constraint Breaking Solutions
b) Plot all LIBF used
c) Use matlab quad function or WolframAlpha.com to integrate
d) Plot approximate vs exact solution and convergence error versus equidistant nodes (m)
Solution [edit]
(a) [edit]
Langrange Interpolation Basis Functions satisfy the condition of the constraint breaking solution by assuming a value of zero at every node except for the node where the LIBF is defined there it assumes a value of 1. It acts like the Kronecker Delta
|
|
(5.4.4) |
(b) [edit]
The following is the LIBF for the 
Figure 1: LIBF m = 4([4])
|
The following is the LIBF for the 
Figure 1: LIBF m = 6([5])
|
The following is the LIBF for the 
Figure 1: LIBF m = 8([6])
|
(c) [edit]
Our solution
and our weight functions can be approximated using the following definitions,
|
|
|
To approximate our solution u, we divide our x domain into m nodal subdivisions. Additionally, we will use m LIBF to approximate our solution. These LIBF will have the following form,
|
|
|
Therefore, for m=4, we take the first 4 Lagrange Interpolation Basis Functions, or more specifically,
|
|
|
|
|
|
|
|
|
|
|
|
Here we want to develop equations for
and
and solve for
, similar to the previous problems.
(d) [edit]
Plot: Comparing the exact solution
to
for
[edit]
The plots for solutions and error at x=.5 are as follows:
Plot: Showing the error
[edit]
Matlab Code [edit]
| MATLAB Code for Problem 5.3 |
|---|
clear all; clc; syms x b; m = 4; % Uniform Discretization x_m = zeros(m,1); for i=1:m x_m(i)=(i-1)/(m-1); end % Construct the Lagrange interpolating basis function L = sym(ones(m,1)); for i=1:m for j=1:m if(j~=i) L(i)=L(i)*(x-x_m(j))/(x_m(i)-x_m(j)); L(i) = expand(L(i)); end end end L % Construct K and F Kff=ones(m,m); Ff=ones(m,1); for i=1:m for j=1:m Kff(i,j)=int(diff(b_i(i))*(2+3*x)*diff(b_i(j)),0,1); end Ff(i)=int(b_i(i)*5*x,0,1) - 6*subs((2+3*x)*b_i(i),x,1); end d = zeros(m,1); Kff % Lazy way of displaying Kff Ff % Lazy way of displaying Ff d = Kff\Ff; % Solve for d i=1,2,...,m d = [d_0;d] % Prepend d_0 b_i = [1;b_i] % Prepend b_0 Uh = d'*b_i % This come out simplified with fractions. % You can just look at b_i and d to write out Uh U05=vpa(subs(U,0.5)) Uh05=vpa(subs(Uh,0.5)) error = abs(U05 - Uh05) p1 = ezplot(libf(1,m), 1,8); set( p1,'Color','blue', 'LineStyle', '--', 'LineWidth', 2); title('LIBF m = 4') xlabel('Number of Nodes') ylabel('Value of LIBF') hold on p2 = ezplot(libf(2,m), 1,8); set( p2,'Color','red', 'LineStyle', '--', 'LineWidth', 2); p3 = ezplot(libf(3,m), 1,8); set( p3,'Color','green', 'LineStyle', '--', 'LineWidth', 2); p4 = ezplot(libf(4,m), 1,8); set( p4,'Color','cyan', 'LineStyle', '--', 'LineWidth', 2); axis tight p5 = ezplot(libf(5,m), 1,8); set( p5,'Color','magenta', 'LineStyle', '--', 'LineWidth', 2); p6 = ezplot(libf(6,m), 1,8); set( p6,'Color','yellow', 'LineStyle', '--', 'LineWidth', 2); axis tight p7 = ezplot(libf(7,m), 1,8); set( p7,'Color','blue', 'LineStyle', '--', 'LineWidth', 2); p8 = ezplot(libf(8,m), 1,8); set( p8,'Color','red', 'LineStyle', '--', 'LineWidth', 2); axis tight title('LIBF m = 8') xlabel('Number of Nodes') ylabel('Value of LIBF') h = legend('Node1','Node2','Node3','Node4','Node5','Node6','Node7','Node8',-1); hold off |
Problem 5.5 : Calculix-Using CCX module [edit]
Disk Problem [edit]
After building disc in cgx module then we might want to know that properties of nodes,lines, surfaces, and bodies so now lets look at how we can get more information what we have done for our model.
First we have to open our program. To do this run the following ;
Open calculix and go to directory where the basic examples stays in your harddrive.
Then type to open disc example:
Now we want to learn about point properties. To see point properties in our graph secren type
We need to mesh disc to see the mesh properties to mesh the disc please type following steps
What we have done so far is that we opened disc and meshed it with quadratic elements. So we are ready to see element properties on our graph screen. To see properties of elements type,
Also we can get more specific properties form the special editor of calculix called 'SciTE.' We can go to examples directory and just basically right click on disc example and open with by editing. SciTE automatically will be opened.
From below we can easly see the properties of all components of disc. Especially point properties are boxed.
Generating Different Meshes [edit]
We will do the same procedures as we have done before. Our model is prepared. So we will mesh our model and take properties of different kinds of meshes for 2-D. Our meshes for 2-D are:
-

(N)
CCX module [edit]
In this module we will analyze for unknowns that we are interested in. This unknowns can be displacements or temperatures. Also we can find fluxes between these nodes.
For the first step go to directory where beam example stays in your harddrive.
Find beampl.inp and right click on it. Then edit it by selecting open with. SciTe automatically will be opened. Every command inside is ready so we have assumed the we have completed by the mesh and ready for solving.So click tools and click 'solve'.
You have to see that
Then click tools and click 'post prosess'.
Results
Problem 5.6: The Quadratic Lagrangian Element Basis Function [edit]
Given: [edit]
Given the Linear Lagrangian Element Basis Function,
from Lecture 30-6
Find: [edit]
The Quadratic Lagrangian Element Basis Function
Solution: [edit]
The above is the depiction of the basis function satisfying the CBS for element node i-1
The above is the depiction of the basis function satisfying the CBS for element node i
The above is the depiction of the basis function satisfying the CBS for element node i+1
Next we overlay the three functions to show the shape function for the quadratic Lagrangian
Problem 5.7 Weak form solution using LLEIF [edit]
Given [edit]
Solve the following discrete weak form with Linear Lagrange Element Interpolation Basis.
-
![\displaystyle
\sum {{c_i}\left[ {\sum {{{\tilde K}_{ij}}{d_j} - {{\tilde F}_i}} } \right]} = 0](//upload.wikimedia.org/math/e/5/3/e53dd3fbb03e82ad711bc644c56eac54.png)
(3.7.1)
Where
-

(3.7.2)
-

(3.7.3)
Such that
-

(3.7.4)
-

(3.7.5)
Find [edit]
a. Explain How LLEBF is used in constraint breaking solution(CBS) [edit]
b. Plot all the LLEBF used in nel=4 [edit]
c. Use Matlab Quad, WA for integration [edit]
d. Plot
vs
[edit]
Plot
vs n (total no. of dof's)
Solution [edit]
a. Using LLEBF in constraint breaking solution(CBS) [edit]
We have following constraint to be satisfied to use weak form
-

(3.7.6)
At node 1 (i.e. at x=0) all the basis function are zero except 1.
-

(3.7.7)
-

(3.7.8)
-

(3.7.9)
For
-

(3.7.10)
-

(3.7.11)
To satisfy homogeneous boundary condition while using Linear Lagrange Element Interpolation Functions, we just have to select our
such that
.
b.Plots of LLEBF for nel=4. [edit]
c Formulation of K and F on element level [edit]
We can divide the total domain into elemental domain.
-

(3.7.12)
Values of K and F will be summation of K and F over the elements
-

(3.7.13)
-

(3.7.14)
-

(3.7.15)
-

(3.7.16)
There will be two basis function for each element. Generalised values of these basis function will be as follow
-

(3.7.17)
-

(3.7.18)
d. Solution using Matlab [edit]
| Matlab Code to find approximate solution |
|---|
|
Matlab Code: clc clear all close all for y=1:1:4 N=2*y; N_dof(y)=2*y+1; intial=0; syms z digits(15) for i=1:N+1 x(i)=intial; intial=intial+(1/N); u(i)=vpa(241/54*log((2+3*x(i))/2)+(20*x(i)-15*x(i)^2+144)/36);% Exact Solution end k=zeros(N+1,N+1); a_2=2+3*z; F=zeros(N+1,1); for e=1:N for r=1:N+1 b(r)=0*z; end b_d=zeros(N+1,1); b(e)=b(e)+((x(e+1)-z)/(x(e+1)-x(e)));%calculation of basis matrix b(e+1)=b(e+1)+((z-x(e))/(x(e+1)-x(e))); b_d(e)=b_d(e)+vpa(-1/(x(e+1)-x(e)));% derivatives of basis matrix b_d(e+1)=b_d(e+1)+vpa(1/(x(e+1)-x(e))); s=x(e); t=x(e+1); p=b(e)*5*z; q1=b(e+1)*5*z; F(e)=F(e)+vpa(int(p,s,t));%calculations of force matrix F(e+1)=F(e+1)+vpa(int(q1,s,t)); for i=1:N+1 for j=1:N+1 q=b_d(i)*a_2*b_d(j); k(i,j)=k(i,j)+vpa(int(q,z,s,t));% calculation of stiffness matrix end end end %N_2(N/2)=N_2+1; F(N+1)=F(N+1)+12;%inclusion of natural boundry condition in weak form k(1,1)=1e10;% Using Penality method F(1)=k(1,1)*4; %imposing essential boundry condition u_h=vpa((k)\F);% apporimate displacement err(y)=u((N/2)+1)-u_h((N/2)+1);% calculation of error figure(y) plot(x,u,x,u_h,'*-') legend('exact solution','FEA Solution') xlabel('x cordinate') ylabel('displacement') end figure(y+1) plot(N_dof,err,'o-') xlabel('Degrees of Freedom') ylabel('error u(0)-u_h(0)') |
Plot of exact solution and approximate solution with 2 elements
Plot of exact solution and approximate solution with 4 elements
Plot of exact solution and approximate solution with 6 elements
Plot of exact solution and approximate solution with 8 elements
Plot of error vs dof's
-

(3.7.19)
-

(3.7.20)
where nel= number of elements.
for 16 elements
dof's=16+1=17
comment [edit]
Solution is converging with increasing no. of elements. For n=16 error is less than 0.0001.
Problem 5.8:Using LLEBF to solve G1DM1.0/D1 [edit]
Given [edit]
G1DM1.0/D1 : Model for elastic bar problem was given in meeting 9.
-
![\displaystyle
\frac{\mathrm{d} }{\mathrm{d} x}\left [ (2+3x)\frac{\mathrm{d} u}{\mathrm{d} x} \right ]+5x=0](//upload.wikimedia.org/math/9/7/0/9701775721137c4458a2ce6d25cad872.png)
(8.1)
-

(8.2)
-

(8.3)
Weak Form
-
![\displaystyle
\int_{\Omega }\frac{\mathrm{d} w}{\mathrm{d} x}AE\frac{\mathrm{d} u}{\mathrm{d} x}dx-\left ( wAt \right )_{\Gamma _{h}}-\int_{\Omega }wbdx=0 \Rightarrow \Omega =]0,1[](//upload.wikimedia.org/math/2/5/a/25a0eca7b54cc3bb4089776fc64602a5.png)
(8.4)
We have to manipulate weak form in order to use for element matrices. As to element mesh we use weak form for each elements and then we can take summation for all elements to get global matrices.
-

(8.5)
Approximate functions gives as in F&B Book,
-

(8.6)
-

(8.7)
Where N is called as 'shape functions' and L is called 'gather matrices'.
-
![\displaystyle
N^{e}=\frac{1}{l^{e}}[\begin{matrix}
x_{2}^{e}-x & x-x_{1}^{e}
\end{matrix}]](//upload.wikimedia.org/math/b/b/6/bb6e5bc2f1ad9475e4b656559006b508.png)
(8.8)
-
![\displaystyle
B^{e}=\frac{1}{l^{e}}[\begin{matrix}
-1 & 1
\end{matrix}]](//upload.wikimedia.org/math/0/2/8/0281d9aa90198d2a0b280d5ccda91303.png)
(8.9)
Solution [edit]
Analytical Solution [edit]
-

(8.10)
-

(8.11)
-

(8.12)
-
![\displaystyle
-\frac{5}{2}\left [ \frac{1}{54}(9x^2-12x+8log(3x+2)-12) \right ]-\left [ \frac{1}{3}log(3x+2) \right ]+c_{2}](//upload.wikimedia.org/math/4/e/5/4e52818540eccd3d8eb19c026d08a770.png)
(8.13)
Using other boundry condition ;
-

(8.14)
-

(8.15)
FEA solutions [edit]
When evaluating unknowns on distributed nodes our shape functions must meet some conditions.Our approximate functions must be complete in each element. As saying completeness we are saying that by using our nodal values we must be able to identify coefficients in our approximate solutions. After some manipulation we conclude with shape functions. For each nodes we have shape functions and for middle nodes shape functions come from adjacent elements.
For example two element mesh ;
-
![\displaystyle
N=N^{(1)}L^{(1)}+N^{(2)}L^{(2)}=[\begin{matrix}
N_{1}^{(1)} & N_{2}^{(1)}+N_{1}^{(2)} & N_{2}^{(2)}
\end{matrix}]](//upload.wikimedia.org/math/c/0/1/c014c04901581caa833fb5e667f48e58.png)
(8.16)
For this example at x1 (first node) only N1 will be 1. Others will be zero. So we verify CBS.[1]
Using 4 elements [edit]
Lets find shape functions for 4 elements.
-
![\displaystyle\begin{align}
&N^{(1)}=\frac{1}{0.25}[\begin{matrix}
0.25-x & x
\end{matrix}]\\
&N^{(2)}=\frac{1}{0.25}[\begin{matrix}
0.5-x & x-0.25
\end{matrix}]\\
&N^{(3)}=\frac{1}{0.25}[\begin{matrix}
0.75-x & x-0.5
\end{matrix}]\\
&N^{(4)}=\frac{1}{0.25}[\begin{matrix}
1-x & x-0.75
\end{matrix}]
\end{align}](//upload.wikimedia.org/math/5/5/5/5557349a793ad54fe609d323db0be4a6.png)
(8.17)
These shape functions are useful for us to make connection between nodes. After defining these tools now we can find stiffness matrices for all elements. Then after finding all of stiffness matrices for elements we can construct global stiffness matrix.
-

(8.18)
-
![\displaystyle\begin{align}
{{K}^{e}}&=\int\limits_{x_{1}^{e}}^{x_{2}^{e}}{\frac{1}{{{l}^{e}}}\left[ \begin{matrix}
-1 \\
1 \\
\end{matrix} \right]}(2+3x)\frac{1}{{{l}^{e}}}[\begin{matrix}
-1 & 1 \\
\end{matrix}]dx \\
&=\frac{1}{{{({{l}^{e}})}^{2}}}\left[ \begin{matrix}
1 & -1 \\
-1 & 1 \\
\end{matrix} \right]\left[ 2(x_{2}^{e}-x_{1}^{e})+\frac{3}{2}(x_{2}^{e2}-x_{1}^{e2}) \right]
\end{align}](//upload.wikimedia.org/math/c/6/e/c6e40bbcc3527823f54c3797398c4b38.png)
(8.19)
-
![\displaystyle
{{K}^{e}}=\frac{1}{{{l}^{e}}}\left[ \begin{matrix}
1 & -1 \\
-1 & 1 \\
\end{matrix} \right]\left[ 2+\frac{3}{2}(x_{2}^{e}+x_{1}^{e}) \right]](//upload.wikimedia.org/math/4/8/1/4814fe5b7367145e72ba5ef03c20577c.png)
(8.20)
-

(8.21)
-

(8.22)
-

(8.23)
-

(8.24)
We can construct global stiffness matrix now. This will be distribution of all four element stiffness matrices into appropriate places. For our convenience i will use direct method. But it is useful using below equation for computing purposes.
-

(8.25)
-
![\displaystyle
K=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
9.5 \\
-9.5 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} & \begin{matrix}
\begin{matrix}
-9.5 \\
22 \\
\end{matrix} \\
-12.5 \\
0 \\
0 \\
\end{matrix} \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 \\
-12.5 \\
\end{matrix} \\
28 \\
\begin{matrix}
-15.5 \\
0 \\
\end{matrix} \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 \\
0 \\
\end{matrix} \\
-15.5 \\
34 \\
-18.5 \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 \\
0 \\
\end{matrix} \\
0 \\
-18.5 \\
18.5 \\
\end{matrix} \\
\end{matrix} \right]](//upload.wikimedia.org/math/a/4/c/a4ca917641c4ba018576e313540d50ca.png)
(8.26)
The next step we have to find force matrices. Which ha two components. Lets first find force matrix at natural boundary condition and second distributed force matrix on our domain.
-

(8.27)
-
![\displaystyle
f_{{\Gamma }^{(1)}}=6\left[ \begin{matrix}
N_{1}^{(1)}({{x}_{1}}) \\
N_{2}^{(1)}({{x}_{2}}) \\
\end{matrix} \right]=\left[ \begin{matrix}
6 \\
0 \\
\end{matrix} \right]](//upload.wikimedia.org/math/f/3/9/f39fce3cc599d792c34a217e4032180b.png)
(8.28)
-
![\displaystyle\begin{align}
&f_{{\Gamma }^{(2)}}=f_{{\Gamma }^{(3)}}=f_{{\Gamma }^{(4)}}=6\left[ \begin{matrix}
N_{1}^{(e)}({{x}_{1}}) \\
N_{2}^{(e)}({{x}_{2}}) \\
\end{matrix} \right]=\left[ \begin{matrix}
0 \\
0 \\
\end{matrix} \right]
&for
& e=2,3,4
\end{align}](//upload.wikimedia.org/math/e/2/8/e28871af250f683088bd234247133112.png)
(8.29)
-
![\displaystyle\begin{align}
f_{\Gamma _{h}} &=\sum_{e=1}^{nel}L^{eT}f_{\Gamma _{h}}^{e} \\
&=\left[ \begin{matrix}
\begin{matrix}
6 \\
0 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} \right]
\end{align}](//upload.wikimedia.org/math/9/3/5/93555196aeaa86e93aa55377fa3a5cc1.png)
(N)
-
![\displaystyle\begin{align}
f_{\Omega }^{e} & =\int_{x_{1}^{e}}^{x_{2}^{e}}N^{eT}b(x)dx\\
&=\int\limits_{x_{1}^{e}}^{x_{2}^{e}}{\frac{1}{{{l}^{e}}}\left[ \begin{matrix}
x_{2}^{e}-x \\
x-x_{1}^{e} \\
\end{matrix} \right]}5xdx \\
&=\frac{5}{{{l}^{e}}}\left[ \begin{matrix}
\frac{x_{2}^{e}(x_{2}^{e2}-x_{1}^{e2})}{2}-\frac{(x_{2}^{e3}-x_{1}^{e3})}{3} \\
\frac{(x_{2}^{e3}-x_{1}^{e3})}{3}-\frac{x_{1}^{e}(x_{2}^{e2}-x_{1}^{e2})}{2} \\
\end{matrix} \right]
\end{align}](//upload.wikimedia.org/math/a/0/2/a02cc2b612e030b6addcfd453434a71e.png)
(8.30)
-
![\displaystyle
f_{\Omega }^{(1)}=\left[ \begin{matrix}
0.05208334 \\
0.10416666 \\
\end{matrix} \right]](//upload.wikimedia.org/math/9/9/5/995be1ef260403478c153a99bfa5e7f5.png)
(8.31)
-
![\displaystyle
f_{\Omega }^{(2)}=\left[ \begin{matrix}
0.2083334 \\
0.2604166 \\
\end{matrix} \right]](//upload.wikimedia.org/math/6/3/4/6346dd860d5d304f41d818bad047a5e7.png)
(8.32)
-
![\displaystyle
f_{\Omega }^{(3)}=\left[ \begin{matrix}
0.36458334 \\
0.41666666 \\
\end{matrix} \right]](//upload.wikimedia.org/math/6/2/d/62dc7173ec5a38fe30617f799ebec83b.png)
(8.33)
-
![\displaystyle
f_{\Omega }^{(4)}=\left[ \begin{matrix}
0.52083334 \\
0.57291666 \\
\end{matrix} \right]](//upload.wikimedia.org/math/6/d/4/6d441a81cf0531a4b6596febafc8c60b.png)
(8.34)
-
![\displaystyle\begin{align}
f_{\Omega }&=\sum_{e=1}^{4}L^{eT}f_{\Omega }^{e}
&\left[ \begin{matrix}
\begin{matrix}
0.05208334 \\
0.3125 \\
\end{matrix} \\
0.625 \\
0.9375 \\
0.57291666 \\
\end{matrix} \right]
\end{align}](//upload.wikimedia.org/math/b/6/f/b6f12643cdd41f3ac42dfe68fcab13c9.png)
(8.35)
-
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
9.5 \\
-9.5 \\
\end{matrix} & \begin{matrix}
-9.5 \\
22 \\
\end{matrix} & \begin{matrix}
0 \\
-12.5 \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 & 0 \\
\end{matrix} \\
\begin{matrix}
0 & 0 \\
\end{matrix} \\
\end{matrix} \\
0 & -12.5 & 28 & \begin{matrix}
-15.5 & 0 \\
\end{matrix} \\
0 & 0 & -15.5 & \begin{matrix}
34 & -18.5 \\
\end{matrix} \\
0 & 0 & 0 & \begin{matrix}
-18.5 & 18.5 \\
\end{matrix} \\
\end{matrix} \right]\left[ \begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
\end{matrix} \\
{{d}_{3}} \\
{{d}_{4}} \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
0.05208334 \\
0.3125 \\
\end{matrix} \\
0.625 \\
0.9375 \\
0.57291666 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
6 \\
0 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
{{r}_{1}} \\
\end{matrix} \right]](//upload.wikimedia.org/math/7/e/f/7efcec0ba30a0b62bc26caa37a108f16.png)
(8.36)
-
![\displaystyle
\left[ \begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
{{d}_{4}} \\
\end{matrix} \right]=\left[ \begin{matrix}
2.0257 \\
1.3886 \\
0.8794 \\
0.4285 \\
\end{matrix} \right]](//upload.wikimedia.org/math/b/1/0/b10d2d783be94c6af298aca09f85e9f6.png)
(8.37)
Comparing results with exact ones at the nodes;
-
![\displaystyle\begin{align}
&\left[ \begin{matrix}
2.0257 \\
1.3886 \\
0.8794 \\
0.4285 \\
\end{matrix} \right]+\left[ \begin{matrix}
4 \\
4 \\
4 \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
6.0257 \\
5.3886 \\
4.8794 \\
4.4285 \\
\end{matrix} \right]
&{{d}_{exact}}=\left[ \begin{matrix}
6.0331 \\
5.3911 \\
4.8802 \\
4.4286 \\
\end{matrix} \right]
\end{align}](//upload.wikimedia.org/math/3/6/3/363acc4a807cdcef401f9e1a114b9555.png)
(8.38)
Using 6 elements [edit]
Shape functions for 6 elements
-
![\displaystyle\begin{align}
& N^{(1)}=\frac{1}{0.1666}[\begin{matrix}
0.1666-x & x
\end{matrix}]\\
&N^{(2)}=\frac{1}{0.1666}[\begin{matrix}
0.3333-x & x-0.16666
\end{matrix}]\\
& N^{(3)}=\frac{1}{0.1666}[\begin{matrix}
0.5-x & x-0.3333
\end{matrix}]\\
&N^{(4)}=\frac{1}{0.1666}[\begin{matrix}
0.6666-x & x-0.5
\end{matrix}]\\
& N^{(5)}=\frac{1}{0.1666}[\begin{matrix}
0.8332-x & x-0.6666
\end{matrix}]\\
& N^{(6)}=\frac{1}{0.1666}[\begin{matrix}
1-x & x-0.8332
\end{matrix}]\\
\end{align}](//upload.wikimedia.org/math/4/d/6/4d61f3c3c2353091d8d2d7e80136fa68.png)
(8.39)
-
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
13.5048 & -13.5048 & 0 & 0 \\
\end{matrix} & 0 & 0 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
-13.5048 & 30.0105 & -16.5057 & 0 \\
\end{matrix} & 0 & 0 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & -16.5057 & 36.0132 & -19.5075 \\
\end{matrix} & 0 & 0 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & -19.5075 & 42.0157 \\
\end{matrix} & -22.5084 & 0 & 0 \\
\end{matrix} \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & 0 & -22.5084 \\
\end{matrix} & 48.0164 & -25.508 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & 0 & 0 \\
\end{matrix} & -25.508 & 54.008 & -28.5 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & 0 & 0 \\
\end{matrix} & 0 & -28.5 & 28.5 \\
\end{matrix} \\
\end{matrix} \right]\left[ \begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
{{d}_{4}} \\
\end{matrix} \\
{{d}_{5}} \\
{{d}_{6}} \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
6.0232199942 \\
0.13890282 \\
0.277972087 \\
0.416641681 \\
\end{matrix} \\
0.555277743 \\
0.694970317 \\
0.394287575 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
0 \\
0 \\
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
{{r}_{1}} \\
\end{matrix} \right]](//upload.wikimedia.org/math/2/8/f/28f33c80f924e9e7b9125a26f83ee95d.png)
(8.40)
-
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
\end{matrix} \\
{{d}_{4}} \\
{{d}_{5}} \\
{{d}_{6}} \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
2.0292 \\
1.5831 \\
1.2098 \\
\end{matrix} \\
0.8797 \\
0.575 \\
0.2845 \\
\end{matrix} \right]](//upload.wikimedia.org/math/a/3/2/a327c0627b544e15dc422b2d7e65d334.png)
(8.41)
-
![\displaystyle\begin{align}
& \left[ \begin{matrix}
\begin{matrix}
2.0292 \\
1.5831 \\
1.2098 \\
\end{matrix} \\
0.8797 \\
0.575 \\
0.2845 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
4 \\
4 \\
4 \\
\end{matrix} \\
4 \\
4 \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
6.0292 \\
5.5831 \\
5.2098 \\
\end{matrix} \\
4.8797 \\
4.575 \\
4.2845 \\
\end{matrix} \right]
& {{d}_{exact}}=\left[ \begin{matrix}
\begin{matrix}
6.0331 \\
5.5853 \\
5.2109 \\
\end{matrix} \\
4.8802 \\
4.5753 \\
4.2847 \\
\end{matrix} \right]
\end{align}](//upload.wikimedia.org/math/f/d/3/fd301b0a545a5deec1aea4005466a477.png)
(8.42)
Using 8 elements [edit]
Shape functions for 8 elements
-
![\displaystyle\begin{align}
& N^{(1)}=\frac{1}{0.125}[\begin{matrix}
0.125-x & x
\end{matrix}]\\
&N^{(2)}=\frac{1}{0.125}[\begin{matrix}
0.25-x & x-0.125
\end{matrix}]\\
& N^{(3)}=\frac{1}{0.125}[\begin{matrix}
0.375-x & x-0.25
\end{matrix}]\\
&N^{(4)}=\frac{1}{0.125}[\begin{matrix}
0.5-x & x-0.375
\end{matrix}]\\
& N^{(5)}=\frac{1}{0.125}[\begin{matrix}
0.625-x & x-0.5
\end{matrix}]\\
& N^{(6)}=\frac{1}{0.125}[\begin{matrix}
0.75-x & x-0.625
\end{matrix}]\\
& N^{(7)}=\frac{1}{0.125}[\begin{matrix}
0.875-x & x-0.75
\end{matrix}]\\
& N^{(8)}=\frac{1}{0.125}[\begin{matrix}
1-x & x-0.875
\end{matrix}]\\
\end{align}](//upload.wikimedia.org/math/c/3/1/c31824acb533c42bce3902d271c5a9ef.png)
(8.43)
-
![\displaystyle
\left[ \begin{matrix}
17.5 & -17.5 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
-17.5 & 38 & -20.5 & 0 & 0 & 0 & 0 & 0 & 0 \\
0 & -20.5 & 44 & -23.5 & 0 & 0 & 0 & 0 & 0 \\
0 & 0 & -23.5 & 50 & -26.5 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & -26.5 & 56 & -29.5 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & -29.5 & 62 & -32.5 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & -32.5 & 68 & -35.5 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 & -35.5 & 74 & -38.5 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & -38.5 & 38.5 \\
\end{matrix} \right]\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
\end{matrix} \\
{{d}_{4}} \\
{{d}_{5}} \\
{{d}_{6}} \\
\end{matrix} \\
{{d}_{7}} \\
{{d}_{8}} \\
{{d}_{9}} \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
6.01302084 \\
0.078125 \\
\end{matrix} \\
0.15625 \\
\end{matrix} \\
0.234375 \\
0.31250004 \\
0.390625 \\
\end{matrix} \\
0.46874373 \\
0.546875 \\
0.29947916 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
0 \\
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
{{r}_{1}} \\
\end{matrix} \right]](//upload.wikimedia.org/math/a/f/2/af28c2a259bcc486ab04fa188d94b3e9.png)
(8.44)
-
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
\end{matrix} \\
{{d}_{3}} \\
\end{matrix} \\
{{d}_{4}} \\
{{d}_{5}} \\
\end{matrix} \\
{{d}_{6}} \\
{{d}_{7}} \\
{{d}_{8}} \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
2.0312 \\
1.6876 \\
\end{matrix} \\
1.3904 \\
1.1246 \\
0.8800 \\
\end{matrix} \\
0.6497 \\
0.4286 \\
0.213 \\
\end{matrix} \right]](//upload.wikimedia.org/math/b/2/d/b2d45eaf38b4ab855696acba4310ede6.png)
(8.45)
-
![\displaystyle\begin{align}
&\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
2.0312 \\
1.6876 \\
\end{matrix} \\
1.3904 \\
1.1246 \\
0.8800 \\
\end{matrix} \\
0.6497 \\
0.4286 \\
0.213 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
4 \\
4 \\
\end{matrix} \\
4 \\
4 \\
4 \\
\end{matrix} \\
4 \\
4 \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
6.0312 \\
5.6876 \\
\end{matrix} \\
5.3904 \\
5.1246 \\
4.88 \\
\end{matrix} \\
4.6497 \\
4.4286 \\
4.213 \\
\end{matrix} \right]
&{{d}_{exact}}=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
6.0331 \\
5.6866 \\
\end{matrix} \\
5.3911 \\
5.1249 \\
4.8802 \\
\end{matrix} \\
4.6498 \\
4.4286 \\
4.213 \\
\end{matrix} \right]
\end{align}](//upload.wikimedia.org/math/4/9/e/49e7daf3002865fd11b81b2fb889134f.png)
(8.46)
References [edit]
- ↑ Fish and Belytschko FEA Anlaysis
Contributing Members & Referenced Lecture [edit]
|
|
|||||
| Problem Number | Lecture | Assigned To | Solved By | Typed By | Proofread By |
| 5.1 | Lecture 26-2 | Chris,Tim | Chris,Tim | Chris,Tim | XXX |
| 5.2 | Lecture 26-2 | Chris,Tim | Chris,Tim | Chris,Tim | XXX |
| 5.3 | Lecture 29-6 | Danny,Phil | XXX | XXX | XXX |
| 5.4 | Lecture 29-6 | Danny,Phil | XXX | XXX | XXX |
| 5.5 | Lecture 29-7 | Chris,Tim | Oztekin | Oztekin | XXX |
| 5.6 | Lecture 30-6 | Danny,Phil | XXX | XXX | xxx |
| 5.7 | Lecture 30-6 | Erman,Taj | Shahtaj | Shahtaj | Oztekin |
| 5.8 | Lecture 30-7 | Erman,Taj | Oztekin | Oztekin | XXX |
![\frac{\partial }{{\partial x}}\left[ {J G \frac{{\partial \phi}}{{\partial x}}} \right] + m = 0](http://upload.wikimedia.org/math/9/9/d/99d729e38d5c4ca2ff5efa31ea254c9c.png)




with Following Basis Functions


![\Omega = \left] {\alpha ,\beta } \right[ = \left] { 0,1} \right[](http://upload.wikimedia.org/math/d/2/3/d235acacfd016d82eaa1e0167c1a7ce3.png)
![\displaystyle
\frac{d}{{dx}}\left[ (2+3x)\frac{{du}}{{dx}}\right] + 5x = 0](http://upload.wikimedia.org/math/4/2/7/427c5df470070be9b7a73f30cf792c2e.png)






in (1.9) we must evaluate the following integral







, we must apply the necessary boundary conditions to the result obtained in (1.17)


![\frac{\partial}{\partial x} \left[ {\left( {{\text{2}} + {\text{3x}}} \right) \frac{{\partial u}}{{\partial x}}} \right] + 5x = 0](http://upload.wikimedia.org/math/f/5/b/f5b577242eee6782cdc3c54cf9bbd13f.png)
![\displaystyle \int_0^{1} {w(x) \cdot \left[\frac{\partial}{\partial x}\left [ (2+3x)\frac{\partial u}{\partial x} \right ]+5x\right] } dx = 0](http://upload.wikimedia.org/math/f/5/e/f5e82af2cd53358e1df3a4cb76ab9429.png)

![-30w(1) - \int_0^1 {\left[ {\frac{{dw}}{{dx}}\left( {2 + 3x} \right)\frac{{du}}{{dx}}} \right]} dx + \int_0^1 {5xw(x)} dx = 0](http://upload.wikimedia.org/math/a/f/f/aff4fd5ad99825ac6240d4b476fe81d4.png)



![\underbrace{\left[ \int_0^1 {{\frac{{\partial b_i(x)}}{{\partial x}} (2 + 3x)\frac{{\partial b_j(x)}}{{\partial x}}} } dx \right]}_{{\color{red}\bold{K}_{FF}}} \underbrace{d_i}_{{\color{red}\bold{d}_{F}}} = \underbrace{\left[ \int_0^1 {5xb_i(x)} dx - 30b_i(x)|_{x=1} \right]}_{{\color{red}\bold{F}_{F}}}](http://upload.wikimedia.org/math/4/b/b/4bbe65e0ac7d7b20d700c3a1238d47ed.png)
![\displaystyle
\left[ \bold{K_{FF}} \right]_{{\color{red}n \times n}} \left[ \bold{d_{F}} \right]_{{\color{red}n \times 1}}= \left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}](http://upload.wikimedia.org/math/d/b/0/db0e41cf14b8d53def642c17c4139d79.png)

![\displaystyle
\left[ \bold{K_{FF}} \right]_{{\color{red}n \times n}}=\left( \begin{matrix}
7/2 & 4 & 17/4 & 22/5 & 9/2 & 32/7 & 37/8 & 14/3\\
4 & 17/3 & 33/5 & 36/5 & 160/21 & 111/14 & 49/6 & 376/45\\
17/4 & 33/5 & 81/10 & 64/7 & 555/56 & 21/2 & 329/30 & 624/55\\
22/5 & 36/5 & 64/7 & 74/7 & 35/3 & 188/15 & 728/55 & 152/11\\
9/2 & 160/21 & 555/56 & 35/3 & 235/18 & 156/11 & 665/44 & 620/39\\
32/7 & 111/14 & 21/2 & 188/15 & 156/11 & 171/11 & 217/13 & 1608/91\\
37/8 & 49/6 & 329/30 & 728/55 & 665/44 & 217/13 & 469/26 & 96/5\\
14/3 & 376/45 & 624/55 & 152/11 & 620/39 & 1608/91 & 96/5 & 308/15\\
\end{matrix} \right)](http://upload.wikimedia.org/math/e/c/9/ec92fdfc11f8cc06ea08a3b66dba5b11.png)
![\displaystyle
\left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}={{\left( \begin{matrix}
41/3 \\ 53/4 \\ 13 \\ 77/6 \\ 89/7 \\ 101/8 \\ 113/9 \\ 25/2\\ \\
\end{matrix} \right)}^{T}}](http://upload.wikimedia.org/math/1/1/1/1115d9b5fd3ca404b544e762ee663b46.png)
![\displaystyle
\left[ \bold{d_{F}} \right]_{{\color{red}n \times 1}}=
{{\left( \begin{matrix}
& 4.0000000 \\
& 7.2497811 \\
& -5.4294546 \\
& 4.9208409 \\
& -5.0302374 \\
& 4.5191594 \\
& -3.0192656 \\
& 1.2522298 \\
& -0.23479307 \\
\end{matrix} \right)}}](http://upload.wikimedia.org/math/a/2/3/a237f2e40e03b03968418463f4f22f1e.png)

for 



![\displaystyle
\left[ \bold{K_{FF}} \right]_{{\color{red}n \times n}}=\left( \begin{matrix}
1.1444 & -1.3612 & 3.2564 & -0.5408 & 3.7008 & 2.3208 & 1.2335 & 4.7249 \\
-1.3612 & 2.3556 & -4.1866 & 2.4001 & -5.8462 & -0.0674 & -4.7299 & -2.9460 \\
3.2564 & -4.1866 & 9.5121 & -2.3503 & 11.6194 & 5.4649 & 5.7892 & 12.8497 \\
-0.5408 & 2.4001 & -2.3503 & 4.4879 & -5.4725 & 5.3501 & -8.9290 & 3.8999 \\
3.7008 & -5.8462 & 11.6194 & -5.4725 & 16.8127 & 2.2054 & 14.2443 & 12.2128 \\
2.3208 & -0.0674 & 5.4649 & 5.3501 & 2.2054 & 14.6873 & -9.6620 & 19.6948 \\
1.2335 & -4.7299 & 5.7892 & -8.9290 & 14.2443 & -9.6620 & 23.4828 & -3.0985 \\
4.7249 & -2.9460 & 12.8497 & 3.8999 & 12.2128 & 19.6948 & -3.0985 & 32.5172 \\
\end{matrix} \right)](http://upload.wikimedia.org/math/1/0/a/10a06d1f113bfff6ac9623f1e688f4a3.png)
![\displaystyle
\left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}={{\left( \begin{matrix}
4 & -6.1075 & 11.6035 & -18.9907 & 13.0886 & -27.2503 & 3.4218 & -23.8065 & -8.5011 \\
\end{matrix} \right)}^{T}}](http://upload.wikimedia.org/math/0/e/3/0e345b40c6db445649e1d9d5f43f9935.png)
![\displaystyle
\left[ \bold{d_{F}} \right]_{{\color{red}n \times 1}}=
{{\left( \begin{matrix}
4.0000 & 47.4091 & 48.5755 & -3.4993 & -30.6212 & -4.1185 & 7.2053 & 0.9062 & -0.4248 \\
\end{matrix} \right)^T}}](http://upload.wikimedia.org/math/7/c/0/7c0656a310d9636b093634f2c46001f7.png)


![\displaystyle
\left[ \bold{K_{FF}} \right]_{{\color{red}n \times n}}= 10^8\left( \begin{matrix}
0.0000 & 0.0000 & 0.0000 & 0.0000 & 0.0000 & 0.0000 & 0.0001 & 0.0003 \\
0.0000 & 0.0000 & 0.0000 & 0.0000 & 0.0001 & 0.0002 & 0.0006 & 0.0017\\
0.0000 & 0.0000 & 0.0000 & 0.0001 & 0.0003 & 0.0008 & 0.0022 & 0.0062\\
0.0000 & 0.0000 & 0.0001 & 0.0003 & 0.0008 & 0.0025 & 0.0072 & 0.0206\\
0.0000 & 0.0001 & 0.0003 & 0.0008 & 0.0026 & 0.0077 & 0.0225 & 0.0649\\
0.0000 & 0.0002 & 0.0008 & 0.0025 & 0.0077 & 0.0232 & 0.0682 & 0.1973\\
0.0001 & 0.0006 & 0.0022 & 0.0072 & 0.0225 & 0.0682 & 0.2014 & 0.5858\\
0.0003 & 0.0017 & 0.0062 & 0.0206 & 0.0649 & 0.1973 & 0.5858 & 1.7106\\
\end{matrix} \right)](http://upload.wikimedia.org/math/1/4/4/144ad1d9f552b894e0f46481966a6fd3.png)
![\displaystyle
\left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}={{10^4\left( \begin{matrix}
4 & 0.0023 & 0.0085 & 0.0249 & 0.0692 & 0.1885 & 0.5107 & 1.3817 & 3.7387 \\
\end{matrix} \right)}^{T}}](http://upload.wikimedia.org/math/d/6/c/d6c68ef21a7e821c4f82d2ebb36a7bca.png)
![\displaystyle
\left[ \bold{d_{F}} \right]_{{\color{red}n \times 1}}=
{{\left( \begin{matrix}
& 4.000000000000 \\
& -416.206015822685 \\
& 1802.371470713180 \\
& -4682.097146605770 \\
& 7738.463302468000 \\
& -8239.102282958180 \\
& 5487.180599937650 \\
& -2083.316654302480 \\
& 344.581494129590 \\
\end{matrix} \right)}}](http://upload.wikimedia.org/math/8/4/6/84607cfebe5ce46fefc2b40f79a843d8.png)



















![12w(0) - \int_0^1 {\left[ {\frac{{dw}}{{dx}}\left( {2 + 3x} \right)\frac{{du}}{{dx}}} \right]} dx + \int_0^1 {5xw(x)} dx = 0](http://upload.wikimedia.org/math/b/4/6/b46bf23d37a268b49dbbac0d51257456.png)

![\underbrace{\left[ \int_0^1 {{\frac{{\partial b_i(x)}}{{\partial x}} (2 + 3x)\frac{{\partial b_j(x)}}{{\partial x}}} } dx \right]}_{{\color{red}\bold{K}_{FF}}} \underbrace{d_i}_{{\color{red}\bold{d}_{F}}} = \underbrace{\left[ \int_0^1 {5xb_i(x)} dx + (12+18x)b_i(x)|_{x=0} \right]}_{{\color{red}\bold{F}_{F}}}](http://upload.wikimedia.org/math/4/e/e/4eed1803bde75b55dccaa7376df6cc16.png)



![\displaystyle
\left[ \bold{K_{FF}} \right]_{{\color{red}n \times n}}=\left( \begin{matrix}
3.50 & -3.00 & 2.75 & -2.60 & 2.50 & -2.49 & 2.38 & -2.33 \\
-3.00 & 3.67 & -3.90 & 4.00 & -4.05 & 4.07 & -4.08 & 4.09 \\
2.75 & -3.90 & 4.50 & -4.86 & 5.09 & -5.25 & 5.37 & -5.45 \\
-2.60 & 4.00 & -4.86 & 5.43 & -5.83 & 6.13 & -6.36 & 6.54 \\
2.50 & -4.05 & 5.09 & -5.83 & 6.39 & -6.82 & 7.16 & -7.44 \\
-2.43 & 4.07 & -5.25 & 6.13 & -6.82 & 7.36 & -7.81 & 8.18 \\
2.38 & -4.08 & 5.37 & -6.36 & 7.16 & -7.81 & 8.35 & -8.80 \\
-2.33 & 4.09 & -5.45 & 6.54 & -7.44 & 8.18 & -8.80 & 9.33 \\
\end{matrix} \right)](http://upload.wikimedia.org/math/d/9/a/d9a97c57935fde8ad849ba858cf1c191.png)
![\displaystyle
\left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}={{\left( \begin{matrix}
-12.83 & 12.42 & -12.15 & 12.17 & -12.12 & 12.09 & -12.07 & 12.06 \\
\end{matrix} \right)}^{T}}](http://upload.wikimedia.org/math/c/5/b/c5b70343214bd71cc7605c7ede47fcb7.png)
![\displaystyle
\left[ \bold{d_{F}} \right]_{{\color{red}n \times 1}}=
{{\left( \begin{matrix}
& 4.000000000000 \\
& -2.899914248271 \\
& 0.373061337131 \\
& -0.279875467206 \\
& 0.324030513018 \\
& 0.438725044951 \\
& 0.810687654673 \\
& 0.613125135156 \\
& 0.229921935886 \\
\end{matrix} \right)}}](http://upload.wikimedia.org/math/4/e/4/4e4b2642ca6f0ddf5a0d4770bed34c46.png)




![\displaystyle
\left[ \bold{K_{FF}} \right]_{{\color{red}n \times n}}=\left( \begin{matrix}
1.72 & 2.63 & 3.17 & 3.51 & 3.75 & 3.92 & 4.05 & 4.15 \\
2.63 & 4.23 & 5.27 & 6.00 & 6.53 & 6.94 & 7.26 & 7.52 \\
3.17 & 5.27 & 6.74 & 7.83 & 8.67 & 9.33 & 9.87 & 10.31 \\
3.51 & 6.00 & 7.83 & 9.25 & 10.37 & 11.28 & 12.03 & 12.67 \\
3.75 & 6.53 & 8.67 & 10.37 & 11.75 & 12.89 & 13.85 & 14.67 \\
3.92 & 6.94 & 9.33 & 11.28 & 12.89 & 14.25 & 15.41 & 16.41 \\
4.05 & 7.26 & 9.87 & 12.03 & 13.85 & 15.41 & 16.75 & 17.92 \\
4.15 & 7.52 & 10.31 & 12.67 & 14.67 & 16.41 & 17.92 & 19.25 \\
\end{matrix} \right)](http://upload.wikimedia.org/math/d/5/9/d59fc5311394d691c478fa97f12c1e95.png)
![\displaystyle
\left[ \bold{F_{F}} \right]_{{\color{red}n \times 1}}={{\left( \begin{matrix}
-8.25 & -11.46 & -12.76 & -13.34 & -13.62 & -13.78 & -13.88 & -13.95 \\
\end{matrix} \right)}^{T}}](http://upload.wikimedia.org/math/a/7/b/a7ba2d03ad518b112916c329fe8cf300.png)

.















![\displaystyle
[All Programs]\Rightarrow [bConverged]\Rightarrow [Calculix]\Rightarrow [Calculix Command]](http://upload.wikimedia.org/math/e/9/9/e99a764f53aa99b4d55fc5d43baed484.png)
![\displaystyle
...\Rightarrow [Program Files]\Rightarrow [bConverged] \Rightarrow [Calculix] \Rightarrow [Cgx] \Rightarrow [Examples] \Rightarrow [Basic]](http://upload.wikimedia.org/math/e/f/7/ef7a10f2e6fec51cc790a68968a49249.png)

![\displaystyle
[cgx]\Rightarrow [disc]](http://upload.wikimedia.org/math/b/b/d/bbdb04fa34a34c9e9537d931ee8d9802.png)















![\displaystyle
....[Program Files]\Rightarrow [bConverged]\Rightarrow [Calculix]\Rightarrow [ccx]\Rightarrow [test]](http://upload.wikimedia.org/math/9/f/1/9f1964c401e82aac9a255da3435f89c4.png)










![\displaystyle
\sum {{c_i}\left[ {\sum {{{\tilde K}_{ij}}{d_j} - {{\tilde F}_i}} } \right]} = 0](http://upload.wikimedia.org/math/e/5/3/e53dd3fbb03e82ad711bc644c56eac54.png)




vs 





![Figure1: LLEBF Plots for no. of elements =4([7])](http://upload.wikimedia.org/wikiversity/en/9/9d/Hw_5_Q_7LLEBF_Plots.png)









![\displaystyle
\frac{\mathrm{d} }{\mathrm{d} x}\left [ (2+3x)\frac{\mathrm{d} u}{\mathrm{d} x} \right ]+5x=0](http://upload.wikimedia.org/math/9/7/0/9701775721137c4458a2ce6d25cad872.png)


![\displaystyle
\int_{\Omega }\frac{\mathrm{d} w}{\mathrm{d} x}AE\frac{\mathrm{d} u}{\mathrm{d} x}dx-\left ( wAt \right )_{\Gamma _{h}}-\int_{\Omega }wbdx=0 \Rightarrow \Omega =]0,1[](http://upload.wikimedia.org/math/2/5/a/25a0eca7b54cc3bb4089776fc64602a5.png)



![\displaystyle
N^{e}=\frac{1}{l^{e}}[\begin{matrix}
x_{2}^{e}-x & x-x_{1}^{e}
\end{matrix}]](http://upload.wikimedia.org/math/b/b/6/bb6e5bc2f1ad9475e4b656559006b508.png)
![\displaystyle
B^{e}=\frac{1}{l^{e}}[\begin{matrix}
-1 & 1
\end{matrix}]](http://upload.wikimedia.org/math/0/2/8/0281d9aa90198d2a0b280d5ccda91303.png)



![\displaystyle
-\frac{5}{2}\left [ \frac{1}{54}(9x^2-12x+8log(3x+2)-12) \right ]-\left [ \frac{1}{3}log(3x+2) \right ]+c_{2}](http://upload.wikimedia.org/math/4/e/5/4e52818540eccd3d8eb19c026d08a770.png)


![\displaystyle
N=N^{(1)}L^{(1)}+N^{(2)}L^{(2)}=[\begin{matrix}
N_{1}^{(1)} & N_{2}^{(1)}+N_{1}^{(2)} & N_{2}^{(2)}
\end{matrix}]](http://upload.wikimedia.org/math/c/0/1/c014c04901581caa833fb5e667f48e58.png)
![\displaystyle
\Omega =]0,1[](http://upload.wikimedia.org/math/3/1/0/310c6b77fcb70e0fdae62567ada1296b.png)

![\displaystyle\begin{align}
&N^{(1)}=\frac{1}{0.25}[\begin{matrix}
0.25-x & x
\end{matrix}]\\
&N^{(2)}=\frac{1}{0.25}[\begin{matrix}
0.5-x & x-0.25
\end{matrix}]\\
&N^{(3)}=\frac{1}{0.25}[\begin{matrix}
0.75-x & x-0.5
\end{matrix}]\\
&N^{(4)}=\frac{1}{0.25}[\begin{matrix}
1-x & x-0.75
\end{matrix}]
\end{align}](http://upload.wikimedia.org/math/5/5/5/5557349a793ad54fe609d323db0be4a6.png)

![\displaystyle\begin{align}
{{K}^{e}}&=\int\limits_{x_{1}^{e}}^{x_{2}^{e}}{\frac{1}{{{l}^{e}}}\left[ \begin{matrix}
-1 \\
1 \\
\end{matrix} \right]}(2+3x)\frac{1}{{{l}^{e}}}[\begin{matrix}
-1 & 1 \\
\end{matrix}]dx \\
&=\frac{1}{{{({{l}^{e}})}^{2}}}\left[ \begin{matrix}
1 & -1 \\
-1 & 1 \\
\end{matrix} \right]\left[ 2(x_{2}^{e}-x_{1}^{e})+\frac{3}{2}(x_{2}^{e2}-x_{1}^{e2}) \right]
\end{align}](http://upload.wikimedia.org/math/c/6/e/c6e40bbcc3527823f54c3797398c4b38.png)
![\displaystyle
{{K}^{e}}=\frac{1}{{{l}^{e}}}\left[ \begin{matrix}
1 & -1 \\
-1 & 1 \\
\end{matrix} \right]\left[ 2+\frac{3}{2}(x_{2}^{e}+x_{1}^{e}) \right]](http://upload.wikimedia.org/math/4/8/1/4814fe5b7367145e72ba5ef03c20577c.png)





![\displaystyle
K=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
9.5 \\
-9.5 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} & \begin{matrix}
\begin{matrix}
-9.5 \\
22 \\
\end{matrix} \\
-12.5 \\
0 \\
0 \\
\end{matrix} \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 \\
-12.5 \\
\end{matrix} \\
28 \\
\begin{matrix}
-15.5 \\
0 \\
\end{matrix} \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 \\
0 \\
\end{matrix} \\
-15.5 \\
34 \\
-18.5 \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 \\
0 \\
\end{matrix} \\
0 \\
-18.5 \\
18.5 \\
\end{matrix} \\
\end{matrix} \right]](http://upload.wikimedia.org/math/a/4/c/a4ca917641c4ba018576e313540d50ca.png)

![\displaystyle
f_{{\Gamma }^{(1)}}=6\left[ \begin{matrix}
N_{1}^{(1)}({{x}_{1}}) \\
N_{2}^{(1)}({{x}_{2}}) \\
\end{matrix} \right]=\left[ \begin{matrix}
6 \\
0 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/f/3/9/f39fce3cc599d792c34a217e4032180b.png)
![\displaystyle\begin{align}
&f_{{\Gamma }^{(2)}}=f_{{\Gamma }^{(3)}}=f_{{\Gamma }^{(4)}}=6\left[ \begin{matrix}
N_{1}^{(e)}({{x}_{1}}) \\
N_{2}^{(e)}({{x}_{2}}) \\
\end{matrix} \right]=\left[ \begin{matrix}
0 \\
0 \\
\end{matrix} \right]
&for
& e=2,3,4
\end{align}](http://upload.wikimedia.org/math/e/2/8/e28871af250f683088bd234247133112.png)
![\displaystyle\begin{align}
f_{\Gamma _{h}} &=\sum_{e=1}^{nel}L^{eT}f_{\Gamma _{h}}^{e} \\
&=\left[ \begin{matrix}
\begin{matrix}
6 \\
0 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} \right]
\end{align}](http://upload.wikimedia.org/math/9/3/5/93555196aeaa86e93aa55377fa3a5cc1.png)
![\displaystyle\begin{align}
f_{\Omega }^{e} & =\int_{x_{1}^{e}}^{x_{2}^{e}}N^{eT}b(x)dx\\
&=\int\limits_{x_{1}^{e}}^{x_{2}^{e}}{\frac{1}{{{l}^{e}}}\left[ \begin{matrix}
x_{2}^{e}-x \\
x-x_{1}^{e} \\
\end{matrix} \right]}5xdx \\
&=\frac{5}{{{l}^{e}}}\left[ \begin{matrix}
\frac{x_{2}^{e}(x_{2}^{e2}-x_{1}^{e2})}{2}-\frac{(x_{2}^{e3}-x_{1}^{e3})}{3} \\
\frac{(x_{2}^{e3}-x_{1}^{e3})}{3}-\frac{x_{1}^{e}(x_{2}^{e2}-x_{1}^{e2})}{2} \\
\end{matrix} \right]
\end{align}](http://upload.wikimedia.org/math/a/0/2/a02cc2b612e030b6addcfd453434a71e.png)
![\displaystyle
f_{\Omega }^{(1)}=\left[ \begin{matrix}
0.05208334 \\
0.10416666 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/9/9/5/995be1ef260403478c153a99bfa5e7f5.png)
![\displaystyle
f_{\Omega }^{(2)}=\left[ \begin{matrix}
0.2083334 \\
0.2604166 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/6/3/4/6346dd860d5d304f41d818bad047a5e7.png)
![\displaystyle
f_{\Omega }^{(3)}=\left[ \begin{matrix}
0.36458334 \\
0.41666666 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/6/2/d/62dc7173ec5a38fe30617f799ebec83b.png)
![\displaystyle
f_{\Omega }^{(4)}=\left[ \begin{matrix}
0.52083334 \\
0.57291666 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/6/d/4/6d441a81cf0531a4b6596febafc8c60b.png)
![\displaystyle\begin{align}
f_{\Omega }&=\sum_{e=1}^{4}L^{eT}f_{\Omega }^{e}
&\left[ \begin{matrix}
\begin{matrix}
0.05208334 \\
0.3125 \\
\end{matrix} \\
0.625 \\
0.9375 \\
0.57291666 \\
\end{matrix} \right]
\end{align}](http://upload.wikimedia.org/math/b/6/f/b6f12643cdd41f3ac42dfe68fcab13c9.png)
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
9.5 \\
-9.5 \\
\end{matrix} & \begin{matrix}
-9.5 \\
22 \\
\end{matrix} & \begin{matrix}
0 \\
-12.5 \\
\end{matrix} & \begin{matrix}
\begin{matrix}
0 & 0 \\
\end{matrix} \\
\begin{matrix}
0 & 0 \\
\end{matrix} \\
\end{matrix} \\
0 & -12.5 & 28 & \begin{matrix}
-15.5 & 0 \\
\end{matrix} \\
0 & 0 & -15.5 & \begin{matrix}
34 & -18.5 \\
\end{matrix} \\
0 & 0 & 0 & \begin{matrix}
-18.5 & 18.5 \\
\end{matrix} \\
\end{matrix} \right]\left[ \begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
\end{matrix} \\
{{d}_{3}} \\
{{d}_{4}} \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
0.05208334 \\
0.3125 \\
\end{matrix} \\
0.625 \\
0.9375 \\
0.57291666 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
6 \\
0 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
{{r}_{1}} \\
\end{matrix} \right]](http://upload.wikimedia.org/math/7/e/f/7efcec0ba30a0b62bc26caa37a108f16.png)
![\displaystyle
\left[ \begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
{{d}_{4}} \\
\end{matrix} \right]=\left[ \begin{matrix}
2.0257 \\
1.3886 \\
0.8794 \\
0.4285 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/b/1/0/b10d2d783be94c6af298aca09f85e9f6.png)
![\displaystyle\begin{align}
&\left[ \begin{matrix}
2.0257 \\
1.3886 \\
0.8794 \\
0.4285 \\
\end{matrix} \right]+\left[ \begin{matrix}
4 \\
4 \\
4 \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
6.0257 \\
5.3886 \\
4.8794 \\
4.4285 \\
\end{matrix} \right]
&{{d}_{exact}}=\left[ \begin{matrix}
6.0331 \\
5.3911 \\
4.8802 \\
4.4286 \\
\end{matrix} \right]
\end{align}](http://upload.wikimedia.org/math/3/6/3/363acc4a807cdcef401f9e1a114b9555.png)


![\displaystyle\begin{align}
& N^{(1)}=\frac{1}{0.1666}[\begin{matrix}
0.1666-x & x
\end{matrix}]\\
&N^{(2)}=\frac{1}{0.1666}[\begin{matrix}
0.3333-x & x-0.16666
\end{matrix}]\\
& N^{(3)}=\frac{1}{0.1666}[\begin{matrix}
0.5-x & x-0.3333
\end{matrix}]\\
&N^{(4)}=\frac{1}{0.1666}[\begin{matrix}
0.6666-x & x-0.5
\end{matrix}]\\
& N^{(5)}=\frac{1}{0.1666}[\begin{matrix}
0.8332-x & x-0.6666
\end{matrix}]\\
& N^{(6)}=\frac{1}{0.1666}[\begin{matrix}
1-x & x-0.8332
\end{matrix}]\\
\end{align}](http://upload.wikimedia.org/math/4/d/6/4d61f3c3c2353091d8d2d7e80136fa68.png)
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
13.5048 & -13.5048 & 0 & 0 \\
\end{matrix} & 0 & 0 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
-13.5048 & 30.0105 & -16.5057 & 0 \\
\end{matrix} & 0 & 0 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & -16.5057 & 36.0132 & -19.5075 \\
\end{matrix} & 0 & 0 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & -19.5075 & 42.0157 \\
\end{matrix} & -22.5084 & 0 & 0 \\
\end{matrix} \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & 0 & -22.5084 \\
\end{matrix} & 48.0164 & -25.508 & 0 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & 0 & 0 \\
\end{matrix} & -25.508 & 54.008 & -28.5 \\
\end{matrix} \\
\begin{matrix}
\begin{matrix}
0 & 0 & 0 & 0 \\
\end{matrix} & 0 & -28.5 & 28.5 \\
\end{matrix} \\
\end{matrix} \right]\left[ \begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
{{d}_{4}} \\
\end{matrix} \\
{{d}_{5}} \\
{{d}_{6}} \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
6.0232199942 \\
0.13890282 \\
0.277972087 \\
0.416641681 \\
\end{matrix} \\
0.555277743 \\
0.694970317 \\
0.394287575 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
0 \\
0 \\
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
{{r}_{1}} \\
\end{matrix} \right]](http://upload.wikimedia.org/math/2/8/f/28f33c80f924e9e7b9125a26f83ee95d.png)
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
\end{matrix} \\
{{d}_{4}} \\
{{d}_{5}} \\
{{d}_{6}} \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
2.0292 \\
1.5831 \\
1.2098 \\
\end{matrix} \\
0.8797 \\
0.575 \\
0.2845 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/a/3/2/a327c0627b544e15dc422b2d7e65d334.png)
![\displaystyle\begin{align}
& \left[ \begin{matrix}
\begin{matrix}
2.0292 \\
1.5831 \\
1.2098 \\
\end{matrix} \\
0.8797 \\
0.575 \\
0.2845 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
4 \\
4 \\
4 \\
\end{matrix} \\
4 \\
4 \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
6.0292 \\
5.5831 \\
5.2098 \\
\end{matrix} \\
4.8797 \\
4.575 \\
4.2845 \\
\end{matrix} \right]
& {{d}_{exact}}=\left[ \begin{matrix}
\begin{matrix}
6.0331 \\
5.5853 \\
5.2109 \\
\end{matrix} \\
4.8802 \\
4.5753 \\
4.2847 \\
\end{matrix} \right]
\end{align}](http://upload.wikimedia.org/math/f/d/3/fd301b0a545a5deec1aea4005466a477.png)


![\displaystyle\begin{align}
& N^{(1)}=\frac{1}{0.125}[\begin{matrix}
0.125-x & x
\end{matrix}]\\
&N^{(2)}=\frac{1}{0.125}[\begin{matrix}
0.25-x & x-0.125
\end{matrix}]\\
& N^{(3)}=\frac{1}{0.125}[\begin{matrix}
0.375-x & x-0.25
\end{matrix}]\\
&N^{(4)}=\frac{1}{0.125}[\begin{matrix}
0.5-x & x-0.375
\end{matrix}]\\
& N^{(5)}=\frac{1}{0.125}[\begin{matrix}
0.625-x & x-0.5
\end{matrix}]\\
& N^{(6)}=\frac{1}{0.125}[\begin{matrix}
0.75-x & x-0.625
\end{matrix}]\\
& N^{(7)}=\frac{1}{0.125}[\begin{matrix}
0.875-x & x-0.75
\end{matrix}]\\
& N^{(8)}=\frac{1}{0.125}[\begin{matrix}
1-x & x-0.875
\end{matrix}]\\
\end{align}](http://upload.wikimedia.org/math/c/3/1/c31824acb533c42bce3902d271c5a9ef.png)
![\displaystyle
\left[ \begin{matrix}
17.5 & -17.5 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
-17.5 & 38 & -20.5 & 0 & 0 & 0 & 0 & 0 & 0 \\
0 & -20.5 & 44 & -23.5 & 0 & 0 & 0 & 0 & 0 \\
0 & 0 & -23.5 & 50 & -26.5 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & -26.5 & 56 & -29.5 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & -29.5 & 62 & -32.5 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 & -32.5 & 68 & -35.5 & 0 \\
0 & 0 & 0 & 0 & 0 & 0 & -35.5 & 74 & -38.5 \\
0 & 0 & 0 & 0 & 0 & 0 & 0 & -38.5 & 38.5 \\
\end{matrix} \right]\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
{{d}_{3}} \\
\end{matrix} \\
{{d}_{4}} \\
{{d}_{5}} \\
{{d}_{6}} \\
\end{matrix} \\
{{d}_{7}} \\
{{d}_{8}} \\
{{d}_{9}} \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
6.01302084 \\
0.078125 \\
\end{matrix} \\
0.15625 \\
\end{matrix} \\
0.234375 \\
0.31250004 \\
0.390625 \\
\end{matrix} \\
0.46874373 \\
0.546875 \\
0.29947916 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
0 \\
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
0 \\
\end{matrix} \\
0 \\
0 \\
{{r}_{1}} \\
\end{matrix} \right]](http://upload.wikimedia.org/math/a/f/2/af28c2a259bcc486ab04fa188d94b3e9.png)
![\displaystyle
\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
\begin{matrix}
{{d}_{1}} \\
{{d}_{2}} \\
\end{matrix} \\
{{d}_{3}} \\
\end{matrix} \\
{{d}_{4}} \\
{{d}_{5}} \\
\end{matrix} \\
{{d}_{6}} \\
{{d}_{7}} \\
{{d}_{8}} \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
2.0312 \\
1.6876 \\
\end{matrix} \\
1.3904 \\
1.1246 \\
0.8800 \\
\end{matrix} \\
0.6497 \\
0.4286 \\
0.213 \\
\end{matrix} \right]](http://upload.wikimedia.org/math/b/2/d/b2d45eaf38b4ab855696acba4310ede6.png)
![\displaystyle\begin{align}
&\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
2.0312 \\
1.6876 \\
\end{matrix} \\
1.3904 \\
1.1246 \\
0.8800 \\
\end{matrix} \\
0.6497 \\
0.4286 \\
0.213 \\
\end{matrix} \right]+\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
4 \\
4 \\
\end{matrix} \\
4 \\
4 \\
4 \\
\end{matrix} \\
4 \\
4 \\
4 \\
\end{matrix} \right]=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
6.0312 \\
5.6876 \\
\end{matrix} \\
5.3904 \\
5.1246 \\
4.88 \\
\end{matrix} \\
4.6497 \\
4.4286 \\
4.213 \\
\end{matrix} \right]
&{{d}_{exact}}=\left[ \begin{matrix}
\begin{matrix}
\begin{matrix}
6.0331 \\
5.6866 \\
\end{matrix} \\
5.3911 \\
5.1249 \\
4.8802 \\
\end{matrix} \\
4.6498 \\
4.4286 \\
4.213 \\
\end{matrix} \right]
\end{align}](http://upload.wikimedia.org/math/4/9/e/49e7daf3002865fd11b81b2fb889134f.png)

