Loading...
Searching...
No Matches
N_heatflow.h
Go to the documentation of this file.
/*****************************************************************************
*
* MODULE: Grass PDE Numerical Library
* AUTHOR(S): Soeren Gebbert, Berlin (GER) Dec 2006
* soerengebbert <at> gmx <dot> de
*
* PURPOSE: Calculation of heatflow
* part of the gpde library
*
* COPYRIGHT: (C) 2000 by the GRASS Development Team
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
* for details.
*
*****************************************************************************/
#ifndef _N_HEATFLOW_H_
#define _N_HEATFLOW_H_
#include "N_pde.h"
typedef struct {
N_array_3d *t; /*temperature */
N_array_3d *t_start; /*temperature start conditions */
N_array_3d *gamma_x; /*x part of the gamma tensor */
N_array_3d *gamma_y; /*y part of the gamma tensor */
N_array_3d *gamma_z; /*z part of the gamma tensor */
N_array_3d *q; /*sources and sinks */
N_array_3d *rho; /*density */
N_array_3d *c; /*c */
N_array_3d *status; /*active/inactive/dirichlet cell status */
double dt; /*calculation time */
} N_heatflow_data3d;
typedef struct {
N_array_2d *t; /*temperature */
N_array_2d *t_start; /*temperature start conditions */
N_array_2d *gamma_x; /*x part of the gamma tensor */
N_array_2d *gamma_y; /*y part of the gamma tensor */
N_array_2d *q; /*sources and sinks */
N_array_2d *rho; /*density */
N_array_2d *c; /*c */
N_array_2d *status; /*active/inactive/dirichlet cell status */
double dt; /*calculation time */
} N_heatflow_data2d;
extern N_data_star *N_callback_heatflow_3d(void *heatdata, N_geom_data *geom,
int depth, int row, int col);
extern N_data_star *N_callback_heatflow_2d(void *heatdata, N_geom_data *geom,
int row, int col);
extern N_heatflow_data3d *N_alloc_heatflow_data3d(int depths, int rows,
int cols);
extern N_heatflow_data2d *N_alloc_heatflow_data2d(int rows, int cols);
extern void N_free_heatflow_data3d(N_heatflow_data3d *data);
extern void N_free_heatflow_data2d(N_heatflow_data2d *data);
#endif
N_alloc_heatflow_data3d
N_heatflow_data3d * N_alloc_heatflow_data3d(int depths, int rows, int cols)
N_alloc_heatflow_data2d
N_heatflow_data2d * N_alloc_heatflow_data2d(int rows, int cols)
N_callback_heatflow_3d
N_data_star * N_callback_heatflow_3d(void *heatdata, N_geom_data *geom, int depth, int row, int col)
N_free_heatflow_data3d
void N_free_heatflow_data3d(N_heatflow_data3d *data)
N_free_heatflow_data2d
void N_free_heatflow_data2d(N_heatflow_data2d *data)
N_callback_heatflow_2d
N_data_star * N_callback_heatflow_2d(void *heatdata, N_geom_data *geom, int row, int col)
N_pde.h
N_array_2d
Definition N_pde.h:132
N_array_3d
Definition N_pde.h:175
N_data_star
Matrix entries for a mass balance 5/7/9 star system.
Definition N_pde.h:295
N_geom_data
Geometric information about the structured grid.
Definition N_pde.h:101
N_heatflow_data2d
Definition N_heatflow.h:38
N_heatflow_data2d::q
N_array_2d * q
Definition N_heatflow.h:43
N_heatflow_data2d::dt
double dt
Definition N_heatflow.h:49
N_heatflow_data2d::rho
N_array_2d * rho
Definition N_heatflow.h:44
N_heatflow_data2d::t
N_array_2d * t
Definition N_heatflow.h:39
N_heatflow_data2d::c
N_array_2d * c
Definition N_heatflow.h:45
N_heatflow_data2d::t_start
N_array_2d * t_start
Definition N_heatflow.h:40
N_heatflow_data2d::status
N_array_2d * status
Definition N_heatflow.h:47
N_heatflow_data2d::gamma_y
N_array_2d * gamma_y
Definition N_heatflow.h:42
N_heatflow_data2d::gamma_x
N_array_2d * gamma_x
Definition N_heatflow.h:41
N_heatflow_data3d
Definition N_heatflow.h:22
N_heatflow_data3d::gamma_z
N_array_3d * gamma_z
Definition N_heatflow.h:27
N_heatflow_data3d::t
N_array_3d * t
Definition N_heatflow.h:23
N_heatflow_data3d::t_start
N_array_3d * t_start
Definition N_heatflow.h:24
N_heatflow_data3d::gamma_x
N_array_3d * gamma_x
Definition N_heatflow.h:25
N_heatflow_data3d::dt
double dt
Definition N_heatflow.h:34
N_heatflow_data3d::rho
N_array_3d * rho
Definition N_heatflow.h:29
N_heatflow_data3d::q
N_array_3d * q
Definition N_heatflow.h:28
N_heatflow_data3d::c
N_array_3d * c
Definition N_heatflow.h:30
N_heatflow_data3d::status
N_array_3d * status
Definition N_heatflow.h:32
N_heatflow_data3d::gamma_y
N_array_3d * gamma_y
Definition N_heatflow.h:26