GRASS 8 Programmer's Manual 8.6.0dev(2026)-b43c9b8403
Loading...
Searching...
No Matches
N_heatflow.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * MODULE: Grass PDE Numerical Library
4 * AUTHOR(S): Soeren Gebbert, Berlin (GER) Dec 2006
5 * soerengebbert <at> gmx <dot> de
6 *
7 * PURPOSE: Calculation of heatflow
8 * part of the gpde library
9 *
10 * SPDX-FileCopyrightText: 2000 GRASS Development Team
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 *****************************************************************************/
14
15#ifndef _N_HEATFLOW_H_
16#define _N_HEATFLOW_H_
17#include "N_pde.h"
18
19typedef struct {
20 N_array_3d *t; /*temperature */
21 N_array_3d *t_start; /*temperature start conditions */
22 N_array_3d *gamma_x; /*x part of the gamma tensor */
23 N_array_3d *gamma_y; /*y part of the gamma tensor */
24 N_array_3d *gamma_z; /*z part of the gamma tensor */
25 N_array_3d *q; /*sources and sinks */
26 N_array_3d *rho; /*density */
27 N_array_3d *c; /*c */
28
29 N_array_3d *status; /*active/inactive/dirichlet cell status */
30
31 double dt; /*calculation time */
32
34
35typedef struct {
36 N_array_2d *t; /*temperature */
37 N_array_2d *t_start; /*temperature start conditions */
38 N_array_2d *gamma_x; /*x part of the gamma tensor */
39 N_array_2d *gamma_y; /*y part of the gamma tensor */
40 N_array_2d *q; /*sources and sinks */
41 N_array_2d *rho; /*density */
42 N_array_2d *c; /*c */
43
44 N_array_2d *status; /*active/inactive/dirichlet cell status */
45
46 double dt; /*calculation time */
47
49
51 int depth, int row, int col);
53 int row, int col);
54extern N_heatflow_data3d *N_alloc_heatflow_data3d(int depths, int rows,
55 int cols);
56extern N_heatflow_data2d *N_alloc_heatflow_data2d(int rows, int cols);
57
59
61#endif
N_heatflow_data3d * N_alloc_heatflow_data3d(int depths, int rows, int cols)
N_heatflow_data2d * N_alloc_heatflow_data2d(int rows, int cols)
N_data_star * N_callback_heatflow_3d(void *heatdata, N_geom_data *geom, int depth, int row, int col)
void N_free_heatflow_data3d(N_heatflow_data3d *data)
void N_free_heatflow_data2d(N_heatflow_data2d *data)
N_data_star * N_callback_heatflow_2d(void *heatdata, N_geom_data *geom, int row, int col)
Matrix entries for a mass balance 5/7/9 star system.
Definition N_pde.h:292
Geometric information about the structured grid.
Definition N_pde.h:98
N_array_2d * q
Definition N_heatflow.h:40
N_array_2d * rho
Definition N_heatflow.h:41
N_array_2d * t
Definition N_heatflow.h:36
N_array_2d * c
Definition N_heatflow.h:42
N_array_2d * t_start
Definition N_heatflow.h:37
N_array_2d * status
Definition N_heatflow.h:44
N_array_2d * gamma_y
Definition N_heatflow.h:39
N_array_2d * gamma_x
Definition N_heatflow.h:38
N_array_3d * gamma_z
Definition N_heatflow.h:24
N_array_3d * t
Definition N_heatflow.h:20
N_array_3d * t_start
Definition N_heatflow.h:21
N_array_3d * gamma_x
Definition N_heatflow.h:22
N_array_3d * rho
Definition N_heatflow.h:26
N_array_3d * q
Definition N_heatflow.h:25
N_array_3d * c
Definition N_heatflow.h:27
N_array_3d * status
Definition N_heatflow.h:29
N_array_3d * gamma_y
Definition N_heatflow.h:23