|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
#include <grass/N_pde.h>
Go to the source code of this file.
Functions | |
| N_geom_data * | N_alloc_geom_data (void) |
| Allocate the pde geometry data structure and return a pointer to the new allocated structure. | |
| void | N_free_geom_data (N_geom_data *geom) |
| Release memory of a pde geometry data structure. | |
| N_geom_data * | N_init_geom_data_3d (RASTER3D_Region *region3d, N_geom_data *geodata) |
| Initiate a pde geometry data structure with a 3d region. | |
| N_geom_data * | N_init_geom_data_2d (struct Cell_head *region, N_geom_data *geodata) |
| Initiate a pde geometry data structure with a 2d region. | |
| double | N_get_geom_data_area_of_cell (N_geom_data *geom, int row) |
| Get the areay size in square meter of one cell (x*y) at row. | |
| N_geom_data * N_alloc_geom_data | ( | void | ) |
Allocate the pde geometry data structure and return a pointer to the new allocated structure.
Definition at line 29 of file n_geom.c.
References G_calloc, and NULL.
Referenced by N_init_geom_data_2d(), and N_init_geom_data_3d().
| void N_free_geom_data | ( | N_geom_data * | geom | ) |
Release memory of a pde geometry data structure.
| geom | N_geom_data * |
| double N_get_geom_data_area_of_cell | ( | N_geom_data * | geom, |
| int | row | ||
| ) |
Get the areay size in square meter of one cell (x*y) at row.
This function works for two and three dimensions
| geom | N_geom_data * |
| row | int |
Definition at line 196 of file n_geom.c.
References G_debug().
Referenced by N_callback_gwflow_2d(), N_callback_gwflow_3d(), N_callback_solute_transport_2d(), and N_callback_solute_transport_3d().
| N_geom_data * N_init_geom_data_2d | ( | struct Cell_head * | region, |
| N_geom_data * | geodata | ||
| ) |
Initiate a pde geometry data structure with a 2d region.
If the projection is not planimetric, a double array will be created based on the number of rows of the provided region storing all computed areas for each row
| region | struct Cell_head * |
| geodata | N_geom_data * - if a NULL pointer is given, a new structure will be allocatet and returned |
Definition at line 117 of file n_geom.c.
References Cell_head::cols, Cell_head::ew_res, G_area_of_cell_at_row(), G_begin_cell_area_calculations(), G_calloc, G_database_units_to_meters_factor(), G_debug(), G_free(), G_get_set_window(), N_alloc_geom_data(), Cell_head::ns_res, NULL, Rast_set_window(), and Cell_head::rows.
Referenced by N_init_geom_data_3d().
| N_geom_data * N_init_geom_data_3d | ( | RASTER3D_Region * | region3d, |
| N_geom_data * | geodata | ||
| ) |
Initiate a pde geometry data structure with a 3d region.
If the projection is not planimetric, a double array will be created based on the number of rows of the provided region
| region3d | RASTER3D_Region * |
| geodata | N_geom_data * - if a NULL pointer is given, a new structure will be allocatet and returned |
Definition at line 73 of file n_geom.c.
References G_database_units_to_meters_factor(), G_debug(), G_get_set_window(), N_alloc_geom_data(), N_init_geom_data_2d(), NULL, and Rast3d_region_to_cell_head().