Flow123d
JS_before_hm-1804-gf2ad740aa
|
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc. More...
#include <vector>
#include <array>
#include <armadillo>
#include "system/armor.hh"
#include "system/asserts.hh"
Go to the source code of this file.
Classes | |
struct | Interaction< OutDim, InDim > |
class | _AuxInteract |
class | RefElement< dim > |
Typedefs | |
template<std::size_t Size> | |
using | IdxVector = std::array< unsigned int, Size > |
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
This program 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.
TODO: reconsider following whether it is actual...
design numbering and orientations on ref element that is consistent (orientation and numbering od 2d el. match sides of 3d), and possibly allows permute vertices of elements so that sides sharing an edge match numbering and orientation (we dos'nt need permute faces)
Proposal(prefers combinatoric order) : 1D - orientation V0 -> V1
2D - edges: E0: V0 -> V1, E1: V0 -> V2 E2: V1 -> V2 This maximize number of edge orientations achievable by edge permutations edge numbering edge orientation( in original numbering) 0 1 2 + + + 0 2 1 - + + 1 0 2 + + - 1 2 0 - - + 2 0 1 + - - 2 1 0 - - -
vertices edges normal (out = +)
3D - sides: S0: 0 1 2 E0 E1 E3 - S1: 0 1 3 E0 E2 E4 + S2: 0 2 3 E1 E2 E5 - S3: 1 2 3 E3 E4 E5 -
edges: E0: V0 -> V1 x direction E1: V0 -> V2 y direction E2: V0 -> V3 z direction E3: V1 -> V2 E4: V1 -> V3 E5: V2 -> V3
Definition in file ref_element.hh.
using IdxVector = std::array<unsigned int, Size> |
Definition at line 276 of file ref_element.hh.