View source: R/flownet_plotting.R
is_grid_rectangular | R Documentation |
Check if a flownet solution is given on a rectangular grid, i.e. nodes are organised in horizontal rows and vertical columns. The distances between rows and columns may vary.
For each domain in the grid, the function checks if the number of nodes is equal to the product of unique x and y-positions. If this is true for all domains, the grid is regular and the function returns 'TRUE'.
is_grid_rectangular(dp)
dp |
tibble with flow net solution. Should contain fields 'x' and 'y' for positions of the nodes |
'TRUE' is the grid is rectangular, 'FALSE' is not
#rectangular grid df <- flownet_geometry_rectangular() dp <- flownet_solve_rectangular(df) is_grid_rectangular(dp) #quadrilateral grid df <- flownet_geometry_quadrilateral() dp <- flownet_solve_quadrilateral(df) is_grid_rectangular(dp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.