GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)d2f347782a

#include "N_pde.h"
Go to the source code of this file.
Data Structures  
struct  N_solute_transport_data3d 
struct  N_solute_transport_data2d 
Functions  
N_data_star *  N_callback_solute_transport_3d (void *solutedata, N_geom_data *geom, int col, int row, int depth) 
This is just a placeholder. More...  
N_data_star *  N_callback_solute_transport_2d (void *solutedata, N_geom_data *geom, int col, int row) 
This callback function creates the mass balance of a 5 point star. More...  
N_solute_transport_data3d *  N_alloc_solute_transport_data3d (int cols, int rows, int depths) 
Allocate memory for the solute transport data structure in three dimensions. More...  
N_solute_transport_data2d *  N_alloc_solute_transport_data2d (int cols, int rows) 
Allocate memory for the solute transport data structure in two dimensions. More...  
void  N_free_solute_transport_data3d (N_solute_transport_data3d *data) 
Release the memory of the solute transport data structure in three dimensions. More...  
void  N_free_solute_transport_data2d (N_solute_transport_data2d *data) 
Release the memory of the solute transport data structure in two dimensions. More...  
void  N_calc_solute_transport_disptensor_2d (N_solute_transport_data2d *data) 
Compute the dispersivity tensor based on the solute transport data in 2d. More...  
void  N_calc_solute_transport_disptensor_3d (N_solute_transport_data3d *data) 
Compute the dispersivity tensor based on the solute transport data in 3d. More...  
void  N_calc_solute_transport_transmission_2d (N_solute_transport_data2d *data) 
Compute the transmission boundary condition in 2d. More...  
void  N_calc_solute_transport_transmission_3d (N_solute_transport_data3d *data) 
N_solute_transport_data2d* N_alloc_solute_transport_data2d  (  int  cols, 
int  rows  
) 
Allocate memory for the solute transport data structure in two dimensions.
The solute transport data structure will be allocated including all appendant 2d arrays. The offset for the 2d arrays is one to establish homogeneous Neumann boundary conditions at the calculation area border. This data structure is used to create a linear equation system based on the computation of solute transport in porous media with the finite volume method.
cols  int 
rows  int 
Definition at line 442 of file n_solute_transport.c.
N_solute_transport_data3d* N_alloc_solute_transport_data3d  (  int  cols, 
int  rows,  
int  depths  
) 
Allocate memory for the solute transport data structure in three dimensions.
The solute transport data structure will be allocated including all appendant 3d arrays. The offset for the 3d arrays is one to establish homogeneous Neumann boundary conditions at the calculation area border. This data structure is used to create a linear equation system based on the computation of solute transport in porous media with the finite volume method.
cols  int 
rows  int 
depths  int 
Definition at line 389 of file n_solute_transport.c.
void N_calc_solute_transport_disptensor_2d  (  N_solute_transport_data2d *  data  ) 
Compute the dispersivity tensor based on the solute transport data in 2d.
The dispersivity tensor is stored in the data structure. To compute the dispersivity tensor, the dispersivity lengths and the gradient field must be present.
This is just a simple tensor computation which should be extended.
data  N_solute_transport_data2d * 
Definition at line 637 of file n_solute_transport.c.
void N_calc_solute_transport_disptensor_3d  (  N_solute_transport_data3d *  data  ) 
Compute the dispersivity tensor based on the solute transport data in 3d.
The dispersivity tensor is stored in the data structure. To compute the dispersivity tensor, the dispersivity lengths and the gradient field must be present.
This is just a simple tensor computation which should be extended.
data  N_solute_transport_data3d * 
Definition at line 698 of file n_solute_transport.c.
void N_calc_solute_transport_transmission_2d  (  N_solute_transport_data2d *  data  ) 
Compute the transmission boundary condition in 2d.
This function calculates the transmission boundary condition for each cell with status N_CELL_TRANSMISSION. The surrounding gradient field is used to verfiy the flow direction. If a flow goes into a cell, the concentration (data>c) from the neighbour cell is added to the transmission cell. If the flow from several neighbour cells goes into the cell, the concentration mean is calculated.
The new concentrations are written into the data>c_start array, so they can be handled by the matrix assembling function.
data  N_solute_transport_data2d * 
Definition at line 563 of file n_solute_transport.c.
void N_calc_solute_transport_transmission_3d  (  N_solute_transport_data3d *  data  ) 
N_data_star* N_callback_solute_transport_2d  (  void *  solutedata, 
N_geom_data *  geom,  
int  col,  
int  row  
) 
This callback function creates the mass balance of a 5 point star.
The mass balance is based on the common solute transport equation:
This equation is discretizised with the finite volume method in two dimensions.
solutedata  * N_solute_transport_data2d  a void pointer to the data structure 
geom  N_geom_data * 
col  int 
row  int 
Definition at line 180 of file n_solute_transport.c.
N_data_star* N_callback_solute_transport_3d  (  void *  solutedata, 
N_geom_data *  geom,  
int  col,  
int  row,  
int  depth  
) 
This is just a placeholder.
Definition at line 27 of file n_solute_transport.c.
void N_free_solute_transport_data2d  (  N_solute_transport_data2d *  data  ) 
Release the memory of the solute transport data structure in two dimensions.
data  N_solute_transport_data2d * 
Definition at line 521 of file n_solute_transport.c.
void N_free_solute_transport_data3d  (  N_solute_transport_data3d *  data  ) 
Release the memory of the solute transport data structure in three dimensions.
data  N_solute_transport_data2d * 
Definition at line 483 of file n_solute_transport.c.