Skip to content

hvcl/Hydist_C

Repository files navigation

Development Notes

  • many changes happened in support_funcs.cpp, need to be carefull when check functions in UVZsolver.cpp since they call many kernels in support_funcs.cpp

Done:

  • Get rid of global constant
  • Load all inputs from files
  • Tested Memcopy from host to device
  • Rewrite makefile
  • Check kernels without constants in support_funcs.cpp
  • Test kernels without constants in UVZsolver_multithreads.cpp
  • change sediment transport kernels to work with non_constant versions
  • Put things to gether
  • Call kernels one by one to check if things are in their right positions
  • Test final result for hydraulic module
  • test sediment transport functions
  • test the program with sediment transport

Todo:

  • Use new tridiag solver to test performance

Running Instruction:

  1. Fill in correct coefficients for input mesh in Load_coeffs() function in loader.cpp files
  2. Copy input files to Inputs/ directory with corresponding names:
  • bandodosau.txt : depth map of to-be compute mesh data
  • hsnhotroiA.txt: visco coefficient map
  • hsnham.txt: roughness index map
  • Fw_map.txt: Fw coefficient map
  • FS_bientren.txt: FS boundary condition for upper boundary
  • FS_bienduoi.txt: FS boundary condition for lower boundary
  • FS_bientrai.txt: FS boundary condition for left side boundary
  • FS_bienphai.txt: FS boundary condition for right side boundary
  • bientren.txt: boundary condition for upper boundary
  • bienduoi.txt: boundary condition for lower boundary
  • bientrai.txt: boundary condition for left side boundary
  • bienphai.txt: boundary condition for right side boundary
  • boundary_type.txt: boundary type of each side (solid type or water type)
  1. Run standardize_inp.py to transpose inputs into Python-style coordinates
  2. run command: ~$ make to compile changes
  3. input arguments in args.txt with following options:
  • -f Directory that contains input files -h Number of running hour -m number of running mins -s number of running seconds -i time interval in which output is saved -b time, in second, at which Sediment transport is started to be computed
  1. run command: $ ./rep `cat args.txt` to run rep file with the specified arguments in args.txt

About

C++ version of Hydist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages