#include <mesh.h>
Definition at line 108 of file mesh.h.
Labels for coordinate indexes in arma::vec3 representing vectors and points.
Enumerator |
---|
x_coord |
|
y_coord |
|
z_coord |
|
Definition at line 116 of file mesh.h.
Constructor with input record given by string. Aimed for testing purpose. Do not process input record. That is done in init_from_input.
Definition at line 85 of file mesh.cc.
Constructor from an input record. Do not process input record. That is done in init_from_input.
Definition at line 97 of file mesh.cc.
void Mesh::count_element_types |
( |
| ) |
|
|
protected |
void Mesh::count_side_types |
( |
| ) |
|
|
protected |
void Mesh::create_node_element_lists |
( |
| ) |
|
|
protected |
Create element lists for nodes in Mesh::nodes_elements.
Definition at line 256 of file mesh.cc.
ElementAccessor< 3 > Mesh::element_accessor |
( |
unsigned int |
idx, |
|
|
bool |
boundary = false |
|
) |
| |
void Mesh::element_to_neigh_vb |
( |
| ) |
|
|
protected |
vector< int > const & Mesh::elements_id_maps |
( |
bool |
boundary_domain | ) |
const |
Returns vector of ID numbers of elements, either bulk or bc elemnts.
Definition at line 644 of file mesh.cc.
bool Mesh::find_lower_dim_element |
( |
ElementVector & |
elements, |
|
|
vector< unsigned int > & |
element_list, |
|
|
unsigned int |
dim, |
|
|
unsigned int & |
element_idx |
|
) |
| |
|
protected |
Remove elements with dimension not equal to dim
from element_list
. Index of the first element of dimension dim-1
, is returned in element_idx
. If no such element is found the method returns false, if one such element is found the method returns true, if more elements are found we report an user input error.
Definition at line 297 of file mesh.cc.
Returns MPI communicator of the mesh.
Definition at line 160 of file mesh.h.
Returns pointer to partitioning object. Partitioning is created during setup_topology.
Definition at line 162 of file mesh.cc.
void Mesh::init_from_input |
( |
| ) |
|
Reads input record, creates regions, read the mesh, setup topology. creates region sets.
Definition at line 198 of file mesh.cc.
void Mesh::intersect_element_lists |
( |
vector< unsigned int > const & |
nodes_list, |
|
|
vector< unsigned int > & |
intersection_element_list |
|
) |
| |
|
protected |
Find intersection of element lists given by Mesh::node_elements for elements givne by nodes_list
parameter. The result is placed into vector intersection_element_list
. If the node_list
is empty, and empty intersection is returned.
Definition at line 269 of file mesh.cc.
void Mesh::make_edge_permutations |
( |
| ) |
|
|
protected |
On edges sharing sides of many elements it may happen that each side has its nodes ordered in a different way. This method finds the permutation for each side so as to obtain the ordering of side 0.
Definition at line 496 of file mesh.cc.
void Mesh::make_intersec_elements |
( |
| ) |
|
void Mesh::make_neighbours_and_edges |
( |
| ) |
|
|
protected |
This replaces read_neighbours() in order to avoid using NGH preprocessor.
TODO:
Avoid maps:
4) replace EdgeVector by std::vector<Edge> (need not to know the size)
5) need not to have temporary array for Edges, only postpone setting pointers in elements and set them after edges are found; we can temporary save Edge index instead of pointer in Neigbours and elements
6) Try replace Edge * by indexes in Neigbours and elements (anyway we have mesh pointer in elements so it is accessible also from Neigbours)
TODO:
- use std::is_any for setting is_neigbour
- possibly make appropriate constructors for Edge and Neighbour
- check side!=-1 when searching neigbouring element
- process bc_elements first, there should be no Neigh, but check it set Edge and boundary there
Definition at line 334 of file mesh.cc.
unsigned int Mesh::max_edge_sides |
( |
unsigned int |
dim | ) |
const |
|
inline |
Returns maximal number of sides of one edge, which connects elements of dimension dim
.
- Parameters
-
dim | Dimension of elements sharing the edge. |
Definition at line 175 of file mesh.h.
unsigned int Mesh::n_boundaries |
( |
| ) |
const |
|
inline |
unsigned int Mesh::n_edges |
( |
| ) |
const |
|
inline |
unsigned int Mesh::n_elements |
( |
| ) |
const |
|
inline |
unsigned int Mesh::n_nodes |
( |
| ) |
const |
|
inline |
unsigned int Mesh::n_sides |
( |
| ) |
|
unsigned int Mesh::n_vb_neighbours |
( |
| ) |
const |
|
inline |
void Mesh::read_gmsh_from_stream |
( |
istream & |
in | ) |
|
const RegionDB& Mesh::region_db |
( |
| ) |
const |
|
inline |
Common part of both previous constructors and way how to reinitialize a mesh from the given input record.
Definition at line 106 of file mesh.cc.
bool Mesh::same_sides |
( |
const SideIter & |
si, |
|
|
vector< unsigned int > & |
side_nodes |
|
) |
| |
|
protected |
Returns true if side si
has same nodes as in the list side_nodes
.
Definition at line 317 of file mesh.cc.
void Mesh::setup_topology |
( |
| ) |
|
|
protected |
Initialize all mesh structures from raw information about nodes and elements (including boundary elements). Namely: create remaining boundary elements and Boundary objects, find edges and compatible neighborings.
Definition at line 223 of file mesh.cc.
vector of boundary elements - should replace 'boundary' TODO: put both bulk and bc elements (on zero level) to the same vector or make better map id->element for field inputs that use element IDs the avoid usage of ElementVector etc.
Definition at line 206 of file mesh.h.
Vector of boundary sides where is prescribed boundary condition. TODO: apply all boundary conditions in the main assembling cycle over elements and remove this Vector.
Definition at line 202 of file mesh.h.
vector<int> Mesh::boundary_elements_id_ |
|
mutableprotected |
vector<int> Mesh::bulk_elements_id_ |
|
mutableprotected |
Vector of both bulk and boundary IDs. Bulk elements come first, then boundary elements, but only the portion that appears in input mesh file and has ID assigned.
TODO: Rather should be part of GMSH reader, but in such case we need store pointer to it in the mesh (good idea, but need more general interface for readers)
Definition at line 315 of file mesh.h.
MPI communicator used for partitioning and ...
Definition at line 342 of file mesh.h.
Vector of MH edges, this should not be part of the geometrical mesh.
Definition at line 209 of file mesh.h.
intersections array for every intersection in which El is master Mesh::element |
Vector of elements of the mesh.
For every element El we have vector of indices into This is necessary for true mortar.
Definition at line 198 of file mesh.h.
Accessor to the input record for the mesh.
Definition at line 337 of file mesh.h.
Initial value:=
IT::Record(
"Mesh",
"Record with mesh related data." )
"Input file with mesh description.")
"List of additional region definitions not contained in the mesh.")
"List of region set definitions. There are three region sets implicitly defined:\n"
"ALL (all regions of the mesh), BOUNDARY (all boundary regions), and BULK (all bulk regions)")
Definition at line 111 of file mesh.h.
Vector of individual intersections of two elements. This is enough for local mortar.
Definition at line 217 of file mesh.h.
unsigned int Mesh::max_edge_sides_[3] |
|
protected |
unsigned int Mesh::n_all_input_elements_ |
|
protected |
Number of elements read from input.
Definition at line 317 of file mesh.h.
unsigned int Mesh::n_bb_neigh |
|
protected |
unsigned int Mesh::n_vb_neigh |
|
protected |
Vector of nodes of the mesh.
Definition at line 196 of file mesh.h.
Mesh partitioning. Created in setup_topology.
Definition at line 333 of file mesh.h.
Database of regions (both bulk and boundary) of the mesh. Regions are logical parts of the domain that allows setting of different data and boundary conditions on them.
Definition at line 329 of file mesh.h.
const unsigned int Mesh::undef_idx =-1 |
|
static |
Vector of compatible neighbourings.
Definition at line 228 of file mesh.h.
The documentation for this class was generated from the following files:
- /home/Jenkins/jenkins/F123-windows32-release/flow123d/src/mesh/mesh.h
- /home/Jenkins/jenkins/F123-windows32-release/flow123d/src/mesh/mesh.cc