Loading...
Searching...
No Matches
trans_tpfa.h
Go to the documentation of this file.
/*
Copyright 2010 SINTEF ICT, Applied Mathematics.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_TRANS_TPFA_HEADER_INCLUDED
#define OPM_TRANS_TPFA_HEADER_INCLUDED
#include <opm/grid/UnstructuredGrid.h>
#ifdef __cplusplus
extern "C" {
#endif
void
tpfa_htrans_compute(struct UnstructuredGrid *G ,
const double *perm ,
double *htrans);
void
tpfa_trans_compute(struct UnstructuredGrid *G ,
const double *htrans,
double *trans );
void
tpfa_eff_trans_compute(struct UnstructuredGrid *G ,
const double *totmob,
const double *htrans,
double *trans );
#ifdef __cplusplus
}
#endif
#endif /* OPM_TRANS_TPFA_HEADER_INCLUDED */
UnstructuredGrid.h
Main OPM-Core grid data structure along with helper functions for construction, destruction and readi...
UnstructuredGrid
Data structure for an unstructured grid, unstructured meaning that any cell may have an arbitrary num...
Definition UnstructuredGrid.h:101
tpfa_eff_trans_compute
void tpfa_eff_trans_compute(struct UnstructuredGrid *G, const double *totmob, const double *htrans, double *trans)
Calculate effective two-point transmissibilities from one-sided, total mobility weighted,...
Definition trans_tpfa.c:105
tpfa_htrans_compute
void tpfa_htrans_compute(struct UnstructuredGrid *G, const double *perm, double *htrans)
Calculate static, one-sided transmissibilities for use in the two-point flux approximation method.
Definition trans_tpfa.c:19
tpfa_trans_compute
void tpfa_trans_compute(struct UnstructuredGrid *G, const double *htrans, double *trans)
Compute two-point transmissibilities from one-sided transmissibilities.
Definition trans_tpfa.c:75