![]() % 'trainbr' takes longer but may be better for challenging problems. Input = importdata('InputData.txt') % InputData.txt includes 13000 dataset Eventually, dx = 0.008 was selected since having smaller step size will not satisfy the convergence condition. Hence, dt = 1x10 −6 was selected to be the time step, as for the space step, the smaller the step size the more accurate the solution. As indicated by figures 3(a) and 3(b), having dt = 1x10 −6 will not result in drastic change in the temperature profile and especially the maximum temperature as in the case of dt = 5x10 −7. ![]() However, dt has an effect on the stability of the solution which was checked by changing dx for a given dt. ![]() As shown in the figure, the maximum temperature does not change significantly with changing the time step. In figure 2, the maximum temperature was plotted against dt used. Second, the selected values should give a stable temperature. First, the condition for convergence given in equation 9 must be satisfied, and this condition was considered in all simulations done to select the best set of sizes. ![]() The selection of step size is based on three criteria. Finally, the step sizes (dt and dx) are selected to establish a code that generates stable and accurate solution. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |