Example #1
0
def ns2de_test():

    #*****************************************************************************80
    #
    ## NS2DE_TEST tests the NS2DE library.
    #
    #  Location:
    #
    #    http://people.sc.fsu.edu/~jburkardt/py_src/navier_stokes_2d_exact/ns2de_test.py
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    07 March 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from grid_2d import grid_2d_test
    from ns2de_gnuplot import ns2de_gnuplot_lucas_test
    from ns2de_gnuplot import ns2de_gnuplot_spiral_test
    from ns2de_gnuplot import ns2de_gnuplot_taylor_test
    from ns2de_matplotlib import ns2de_matplotlib_lucas_test
    from ns2de_matplotlib import ns2de_matplotlib_spiral_test
    from ns2de_matplotlib import ns2de_matplotlib_taylor_test
    from parameter_spiral_test import parameter_spiral_test
    from parameter_taylor_test import parameter_taylor_test
    from r8vec_amax import r8vec_amax_test
    from r8vec_amin import r8vec_amin_test
    from r8vec_max import r8vec_max_test
    from r8vec_min import r8vec_min_test
    from r8vec_norm_l2 import r8vec_norm_l2_test
    from r8vec_print import r8vec_print_test
    from r8vec_uniform_ab import r8vec_uniform_ab_test
    from resid_lucas import resid_lucas_test
    from resid_spiral import resid_spiral_test
    from resid_taylor import resid_taylor_test
    from rhs_lucas import rhs_lucas_test
    from rhs_spiral import rhs_spiral_test
    from rhs_taylor import rhs_taylor_test
    from uvp_lucas import uvp_lucas_test
    from uvp_lucas import uvp_lucas_test2
    from uvp_spiral import uvp_spiral_test
    from uvp_spiral import uvp_spiral_test2
    from uvp_taylor import uvp_taylor_test
    from uvp_taylor import uvp_taylor_test2

    print ''
    print 'NS2DE_TEST'
    print '  Python version'
    print '  Test the NS2DE library.'

    r8vec_amax_test()
    r8vec_amin_test()
    r8vec_max_test()
    r8vec_min_test()
    r8vec_norm_l2_test()
    r8vec_print_test()
    r8vec_uniform_ab_test()

    grid_2d_test()
    #
    #  Taylor Vortes Flow
    #
    uvp_taylor_test()
    uvp_taylor_test2()
    rhs_taylor_test()
    resid_taylor_test()
    ns2de_gnuplot_taylor_test()
    ns2de_matplotlib_taylor_test()
    parameter_taylor_test()
    #
    #  Spiral Flow.
    #
    uvp_spiral_test()
    uvp_spiral_test2()
    rhs_spiral_test()
    resid_spiral_test()
    ns2de_gnuplot_spiral_test()
    ns2de_matplotlib_spiral_test()
    parameter_spiral_test()
    #
    #  Lucas Bystricky Flow.
    #
    uvp_lucas_test()
    uvp_lucas_test2()
    rhs_lucas_test()
    resid_lucas_test()
    ns2de_gnuplot_lucas_test()
    ns2de_matplotlib_lucas_test()
    #
    #  Terminate.
    #
    print ''
    print 'NS2DE_TEST:'
    print '  Normal end of execution.'

    return
Example #2
0
def ns2de_test ( ):

#*****************************************************************************80
#
## NS2DE_TEST tests the NS2DE library.
#
#  Location:
#
#    http://people.sc.fsu.edu/~jburkardt/py_src/navier_stokes_2d_exact/ns2de_test.py
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    07 March 2015
#
#  Author:
#
#    John Burkardt
#
  from grid_2d                import grid_2d_test
  from ns2de_gnuplot          import ns2de_gnuplot_lucas_test
  from ns2de_gnuplot          import ns2de_gnuplot_spiral_test
  from ns2de_gnuplot          import ns2de_gnuplot_taylor_test
  from ns2de_matplotlib       import ns2de_matplotlib_lucas_test
  from ns2de_matplotlib       import ns2de_matplotlib_spiral_test
  from ns2de_matplotlib       import ns2de_matplotlib_taylor_test
  from parameter_spiral_test  import parameter_spiral_test
  from parameter_taylor_test  import parameter_taylor_test
  from r8vec_amax             import r8vec_amax_test
  from r8vec_amin             import r8vec_amin_test
  from r8vec_max              import r8vec_max_test
  from r8vec_min              import r8vec_min_test
  from r8vec_norm_l2          import r8vec_norm_l2_test
  from r8vec_print            import r8vec_print_test
  from r8vec_uniform_ab       import r8vec_uniform_ab_test
  from resid_lucas            import resid_lucas_test
  from resid_spiral           import resid_spiral_test
  from resid_taylor           import resid_taylor_test
  from rhs_lucas              import rhs_lucas_test
  from rhs_spiral             import rhs_spiral_test
  from rhs_taylor             import rhs_taylor_test
  from uvp_lucas              import uvp_lucas_test
  from uvp_lucas              import uvp_lucas_test2
  from uvp_spiral             import uvp_spiral_test
  from uvp_spiral             import uvp_spiral_test2
  from uvp_taylor             import uvp_taylor_test
  from uvp_taylor             import uvp_taylor_test2

  print ''
  print 'NS2DE_TEST'
  print '  Python version'
  print '  Test the NS2DE library.'

  r8vec_amax_test ( )
  r8vec_amin_test ( )
  r8vec_max_test ( )
  r8vec_min_test ( )
  r8vec_norm_l2_test ( )
  r8vec_print_test ( )
  r8vec_uniform_ab_test ( )

  grid_2d_test ( )
#
#  Taylor Vortes Flow
#
  uvp_taylor_test ( )
  uvp_taylor_test2 ( )
  rhs_taylor_test ( )
  resid_taylor_test ( )
  ns2de_gnuplot_taylor_test ( )
  ns2de_matplotlib_taylor_test ( )
  parameter_taylor_test ( )
#
#  Spiral Flow.
#
  uvp_spiral_test ( )
  uvp_spiral_test2 ( )
  rhs_spiral_test ( )
  resid_spiral_test ( )
  ns2de_gnuplot_spiral_test ( )
  ns2de_matplotlib_spiral_test ( )
  parameter_spiral_test ( )
#
#  Lucas Bystricky Flow.
#
  uvp_lucas_test ( )
  uvp_lucas_test2 ( )
  rhs_lucas_test ( )
  resid_lucas_test ( )
  ns2de_gnuplot_lucas_test ( )
  ns2de_matplotlib_lucas_test ( )
#
#  Terminate.
#
  print ''
  print 'NS2DE_TEST:'
  print '  Normal end of execution.'

  return
Example #3
0
def s2de_test ( ):

#*****************************************************************************80
#
## S2DE_TEST tests the NS2DE library.
#
#  Location:
#
#    http://people.sc.fsu.edu/~jburkardt/py_src/stokes_2d_exact/s2de_test.py
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    12 February 2015
#
#  Author:
#
#    John Burkardt
#
  from grid_2d            import grid_2d_test
  from r8vec_amax         import r8vec_amax_test
  from r8vec_amin         import r8vec_amin_test
  from r8vec_max          import r8vec_max_test
  from r8vec_min          import r8vec_min_test
  from r8vec_norm_l2      import r8vec_norm_l2_test
  from r8vec_print        import r8vec_print_test
  from r8vec_uniform_ab   import r8vec_uniform_ab_test
  from resid_stokes1      import resid_stokes1_test
  from resid_stokes2      import resid_stokes2_test
  from resid_stokes3      import resid_stokes3_test
  from rhs_stokes1        import rhs_stokes1_test
  from rhs_stokes2        import rhs_stokes2_test
  from rhs_stokes3        import rhs_stokes3_test
  from stokes_gnuplot     import stokes1_gnuplot_test
  from stokes_gnuplot     import stokes2_gnuplot_test
  from stokes_gnuplot     import stokes3_gnuplot_test
  from stokes_matplotlib  import stokes1_matplotlib_test
  from stokes_matplotlib  import stokes2_matplotlib_test
  from stokes_matplotlib  import stokes3_matplotlib_test
  from uvp_stokes1        import uvp_stokes1_test
  from uvp_stokes2        import uvp_stokes2_test
  from uvp_stokes3        import uvp_stokes3_test

  print ''
  print 'S2DE_TEST'
  print '  Python version'
  print '  Test the S2DE library.'

  r8vec_amax_test ( )
  r8vec_amin_test ( )
  r8vec_max_test ( )
  r8vec_min_test ( )
  r8vec_norm_l2_test ( )
  r8vec_print_test ( )
  r8vec_uniform_ab_test ( )

  grid_2d_test ( )

  uvp_stokes1_test ( )
  rhs_stokes1_test ( )
  resid_stokes1_test ( )
  stokes1_gnuplot_test ( )
  stokes1_matplotlib_test ( )

  uvp_stokes2_test ( )
  rhs_stokes2_test ( )
  resid_stokes2_test ( )
  stokes2_gnuplot_test ( )
  stokes2_matplotlib_test ( )

  uvp_stokes3_test ( )
  rhs_stokes3_test ( )
  resid_stokes3_test ( )
  stokes3_gnuplot_test ( )
  stokes3_matplotlib_test ( )
#
#  Terminate.
#
  print ''
  print 'S2DE_TEST:'
  print '  Normal end of execution.'

  return