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_flow_points2" 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 "flow_point.txt" "center_flow_point" 00024 00025 # load points from text file 00026 pnts_read "press_c.xyz" "center_press_point" 00027 00028 ## 00029 ## construct grid 00030 ## 00031 grid_get -1000 1000 5 -1000 1000 5 00032 00033 ## 00034 ## create gridding rules 00035 ## 00036 00037 # resulting surface at curve = value... 00038 curve 250 "press" 00039 00040 # law of conservation of mass 00041 lcm_simple 16.4 1 1e-6 00042 00043 # add "resulting surface at points = points values" with weight 00044 points_add 1 "center_press_point" 00045 00046 # add flow from/to points 00047 flow_points "center_flow_point" 00048 00049 ## 00050 ## run gridding algorithm 00051 ## 00052 surfit 00053 00054 ## 00055 ## save results 00056 ## 00057 00058 # unload grid from memory 00059 grid_unload 00060 00061 # save all to surfit datafile 00062 file_save "flow_points2.dat"
surfit: open source gridding and contouring software.