[bugfix] Take normalized face normals into account when calculating tpfa.
At least for Cpgrid the face normal is normalized which has to be taken into account in tpfa_htrans_compute. We therefore multiply the facenormal with the face area in cases (read Cpgrid) where this needed.
This commit is contained in:
@@ -176,6 +176,10 @@ faceCentroid(const UnstructuredGrid& grid, int face_index);
|
||||
/// \param face_index The index of the face in the grid.
|
||||
const double* faceNormal(const UnstructuredGrid& grid, int face_index);
|
||||
|
||||
/// \brief Get the area of a face
|
||||
/// \param grid The grid that the face is part of.
|
||||
/// \param face_index The index of the face in the grid.
|
||||
double faceArea(const UnstructuredGrid& grid, int face_index);
|
||||
|
||||
/// \brief Maps the grid type to the associated type of the cell to faces mapping.
|
||||
///
|
||||
|
Reference in New Issue
Block a user