Solve Reaction-Diffusion Problem: This Problem Is Already Done, But If You Had To Start From Scratch You Would
Solve Reaction-Diffusion Problem: This Problem Is Already Done, But If You Had To Start From Scratch You Would
Solve Reaction-Diffusion Problem: This Problem Is Already Done, But If You Had To Start From Scratch You Would
solved using collocation at Gauss points (Legendre points) and Moments method
This problem is already done, but if you had to start from scratch you would:
1 Open visual basic editor and import OCCdll.bas and LUFactor.bas
2 Make sure Excel can find the dll by:
(a) putting it in the "current directory" (click on file open to determine the current directory)
(b) using an explicit path in the basic code
(c) putting it somewhere on the path
3 use OCC_Setup with supplied values for symmetry, type and geometry
4 The use supplied functions to get coefficients and solve the linear system
Symmetric formulation
C array Eq. (1.10) (note: symmetric matrix)
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
Calculation of Mass Matrix for Moments Method using higher Gaussian quadrature:
8 use 2 degrees higher to get exact integration
X W R W*R
#VALUE! #VALUE! #VALUE! #VALUE! L* - interp. polynomials thru interior pts L- interp. polynomials thru all pts
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
W L* (WL*) transpose
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
WRL* (WRL*) transpose
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
ry of Flux Calculation
total
0.18429 exact (from large n)
0.60000
#VALUE! Orthogonal Collocation first derivative
#VALUE! Orthogonal Collocation Eq (1.24)
#VALUE! Moments interpolated rates
0.17557 Moments, approx. quadrature (5 pt Gauss)
#VALUE! Moments, exact rate integration (6 pt Gauss) 0.40000
#VALUE! collocation
#VALUE! Moments interpolated rates
-4.73% Moments, approx. quadrature (5 pt Gauss)
#VALUE! Moments, exact rate integration
0.20000
D mass matrix bug in this function, no first and last columns (calculation below)
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
interpolated rates RHS Solution Mmult Residual
#VALUE! #VALUE! #VALUE! #VALUE! 0.0000 #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE! 0.0000 #VALUE! #VALUE!
solution
RHS 0.0000 1st Deriv.
#VALUE! #VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE!
#VALUE! #VALUE! #VALUE! #VALUE!
0.0000