NAG Library Manual, Mark 27.2
Interfaces:  FL   CL   CPP   AD 

NAG CL Interface Introduction
Example description

nag_pde_dim1_parab_convdiff_remesh (d03psc) Example Program Results


Example 1

  npts =   61 atol =    1.000e-04 rtol =    1.000e-04

(User-supplied callback uvin1, first invocation.)
(User-supplied callback monit1, first invocation.)
(User-supplied callback bndry1, first invocation.)
(User-supplied callback pdef1, first invocation.)
(User-supplied callback nmflx1, first invocation.)
 t =  0.100
 x           0.2000   0.3000   0.4000   0.5000   0.6000   0.7000   0.8000
 Approx u    0.0000   0.1198   0.9461   0.1182   0.0000   0.0000   0.0000

 t =  0.200
 x           0.2000   0.3000   0.4000   0.5000   0.6000   0.7000   0.8000
 Approx u    0.0000   0.0007   0.1631   0.9015   0.1629   0.0001   0.0000

 t =  0.300
 x           0.2000   0.3000   0.4000   0.5000   0.6000   0.7000   0.8000
 Approx u    0.0000   0.0000   0.0025   0.1924   0.8596   0.1946   0.0002

 Number of integration steps in time =     92
 Number of function evaluations =    443
 Number of Jacobian evaluations =    39
 Number of iterations =    231



Example 2

 npts =   61 atol =    5.000e-04 rtol =    5.000e-02

 Track centre point, x,  of moving front

    t        x        Exact x

   0.02      0.13      0.125
   0.04      0.15      0.145
   0.06      0.17      0.165
   0.08      0.19      0.185
   0.10      0.21      0.205
   0.12      0.23      0.225
   0.14      0.25      0.245
   0.16      0.27      0.265
   0.18      0.29      0.285
   0.20      0.31      0.305