00001 # 00002 # load plugins 00003 # 00004 load libfreeflow[info sharedlibextension] 00005 00006 # remove all previous data and functionals 00007 clear_data 00008 00009 # set name of surface 00010 set map_name "map_points" 00011 00012 # set tolerance for cg solver 00013 set tol 5e-7 00014 00015 ## 00016 ## load initial data 00017 ## 00018 00019 # load curve from text file 00020 curv_read "press.xyz" "press" 00021 00022 # load points from text file 00023 pnts_read "press_c.xyz" "center_press_point" 00024 00025 ## 00026 ## construct grid 00027 ## 00028 grid_get -1000 1000 5 -1000 1000 5 00029 00030 ## 00031 ## create gridding rules 00032 ## 00033 00034 # resulting surface at points = points values 00035 points "center_press_point" 00036 00037 # law of conservation of mass 00038 curve 250 "press" 00039 00040 # law of conservation of mass 00041 lcm_simple 16.4 1 1e-6 00042 00043 ## 00044 ## run gridding algorithm 00045 ## 00046 surfit 00047 00048 ## 00049 ## save results 00050 ## 00051 00052 # unload grid from memory 00053 grid_unload 00054 00055 # save all to surfit datafile 00056 file_save "points.dat" 00057
surfit: open source gridding and contouring software.