Assistance with numerical analysis assignment on deriving the Fourier number equation
The 1D equation can be written as:
If we discretize this numerical analysis assignment equation by using central differences for the diffusion term (right-hand side) and an explicit method for the time-derivative, it will help us get the following equation:
That can be rearranged to obtain
Where Fo is the Fourier number:
Therefore, Fo is a function of the time step and spatial resolution. The explicit method was implemented in For all the cases a), b), c), and d) by using different combinations of Fo and the number of segments:
The results for C were extended up to 200s as the timestep obtained from the conditions given is 22.2
The model under the conditions of C – Explicit is not stable as the time step is too large.
Help with evaluating the accuracy of the Fourier number in numerical analysis homework
The results are also presented in the following plots. Figure 1 shows the profiles at 5s (or the closest to 5s). The most accurate results for this numerical analysis homework is obtained for D, which helped in identifying the best spatial resolution as 12 segments are considered. It was conducted with the same number of segments, and therefore it is shown that the most accurate result is obtained for Fo=1/3 that corresponds to a smaller timestep. This means that the accuracy increases with higher resolution and smaller timesteps (that actually means a better resolution in time). Finally, it does not converge since the timestep is too large to be used with an explicit method.
Figure 1: Profile of Temperature at t=5s.
For an implicit discretization in time, the equation comes:
This equation can be rearranged as follows:
Where and Therefore:
Thomas algorithm application by online numerical analysis tutors
The above system can be solved using the Thomas algorithm in more complex cases. For this simple test, the online numerical analysis tutor solved the system using the backslash division.
Figure 2 shows the results for a, b,d, and c-implicit at 22s – note that the time step obtained for 22s and therefore, it is not possible to present the results as 15s as required in the assignment). The first important conclusion is that unlike the explicit method with Fo=5, it actually converges. This means that implicit methods allow much larger time steps, which is important for more complex simulations that are computationally heavier. The second important conclusion is that the result obtained with the implicit method differs substantially from all the other methods and, more importantly, is more accurate as the implicit methods are generally better at representing the diffusion.
Figure 1: Profile of Temperature at t=22s.