t8
1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
|
We provide example coarse meshes in this file. More...
Go to the source code of this file.
Functions | |
t8_cmesh_t | t8_cmesh_new_from_p4est (p4est_connectivity_t *conn, sc_MPI_Comm comm, int do_partition) |
Constructs a cmesh from a given p4est_connectivity structure. More... | |
t8_cmesh_t | t8_cmesh_new_from_p8est (p8est_connectivity_t *conn, sc_MPI_Comm comm, int do_partition) |
Constructs a cmesh from a given p8est_connectivity structure. More... | |
t8_cmesh_t | t8_cmesh_new_empty (sc_MPI_Comm comm, int do_partition, int dimension) |
Construct a cmesh that has no trees. More... | |
t8_cmesh_t | t8_cmesh_new_from_class (t8_eclass_t eclass, sc_MPI_Comm comm) |
Constructs a cmesh that consists only of one tree of a given element class. More... | |
t8_cmesh_t | t8_cmesh_new_hypercube (t8_eclass_t eclass, sc_MPI_Comm comm, int do_bcast, int do_partition, int periodic) |
Construct a hypercube forest from one primitive tree class. More... | |
t8_cmesh_t | t8_cmesh_new_hypercube_hybrid (sc_MPI_Comm comm, int do_partition, int periodic) |
Hybercube with 6 Tets, 6 Prism, 4 Hex. More... | |
t8_cmesh_t | t8_cmesh_new_periodic (sc_MPI_Comm comm, int dim) |
Construct a unit interval/square/cube coarse mesh that is periodic in each direction. More... | |
t8_cmesh_t | t8_cmesh_new_periodic_tri (sc_MPI_Comm comm) |
Construct a unit square of two triangles that is periodic in x and y. More... | |
t8_cmesh_t | t8_cmesh_new_periodic_hybrid (sc_MPI_Comm comm) |
Construct a unit square of two quads and four triangles that is periodic in x and y. More... | |
t8_cmesh_t | t8_cmesh_new_periodic_line_more_trees (sc_MPI_Comm comm) |
Construct a unit interval coarse mesh that consists of 3 trees and is periodic. More... | |
t8_cmesh_t | t8_cmesh_new_bigmesh (t8_eclass_t eclass, int num_trees, sc_MPI_Comm comm) |
Construct a mesh consisting of a given number of same type trees. More... | |
t8_cmesh_t | t8_cmesh_new_line_zigzag (sc_MPI_Comm comm) |
Construct a forest of three connected askew lines. More... | |
t8_cmesh_t | t8_cmesh_new_prism_cake (sc_MPI_Comm comm, int num_of_prisms) |
Construct a forest of num_of_prisms connected prism, all with one edge in 0, except for num_of_prisms = 2, then the return is the hypercube mesh. More... | |
t8_cmesh_t | t8_cmesh_new_prism_deformed (sc_MPI_Comm comm) |
Construct a single deformed prism. More... | |
t8_cmesh_t | t8_cmesh_new_pyramid_deformed (sc_MPI_Comm comm) |
Construct a single deformed pyramid. More... | |
t8_cmesh_t | t8_cmesh_new_prism_cake_funny_oriented (sc_MPI_Comm comm) |
Construct a forest of six connected noncannoical oriented prisms. More... | |
t8_cmesh_t | t8_cmesh_new_prism_geometry (sc_MPI_Comm comm) |
Construct a forest of six connected noncannoical oriented prisms. More... | |
t8_cmesh_t | t8_cmesh_new_disjoint_bricks (t8_gloidx_t num_x, t8_gloidx_t num_y, t8_gloidx_t num_z, int x_periodic, int y_periodic, int z_periodic, sc_MPI_Comm comm) |
Create a partitoned cmesh of quads whose local trees are given by an num_x by num_y brick connectivity from p4est or a num_x by num_y by num_z brick connectivity from p8est. More... | |
t8_cmesh_t | t8_cmesh_new_tet_orientation_test (sc_MPI_Comm comm) |
Construct a tetrahedral cmesh that has all possible face to face connections and orientations. More... | |
t8_cmesh_t | t8_cmesh_new_hybrid_gate (sc_MPI_Comm comm) |
Construct a hybrid cmesh with 2 tets, 2 prism, 1 hex. More... | |
t8_cmesh_t | t8_cmesh_new_hybrid_gate_deformed (sc_MPI_Comm comm) |
Construct a hybrid cmesh with 2 tets, 2 prism, 1 hex and all are deformed. More... | |
t8_cmesh_t | t8_cmesh_new_full_hybrid (sc_MPI_Comm comm) |
Construct a full hybrig cmesh, with 1 hex, 1 pyra, 1 prism and 1 tet This cmesh is used for testing and debugging. More... | |
t8_cmesh_t | t8_cmesh_new_pyramid_cake (sc_MPI_Comm comm, int num_of_pyra) |
Construct a mesh out of num_of_pyra many pyramids. More... | |
t8_cmesh_t | t8_cmesh_new_long_brick_pyramid (sc_MPI_Comm comm, int num_cubes) |
Construct a bigger mesh, consisting of many cubes made by pyramids. More... | |
t8_cmesh_t | t8_cmesh_new_row_of_cubes (t8_locidx_t num_trees, const int set_attributes, sc_MPI_Comm comm) |
Construct num_trees many cubes each of length 1 connected along the x-axis without any additional attributes than the tree-vertices, or with additional attributes. More... | |
We provide example coarse meshes in this file.
t8_cmesh_t t8_cmesh_new_bigmesh | ( | t8_eclass_t | eclass, |
int | num_trees, | ||
sc_MPI_Comm | comm | ||
) |
Construct a mesh consisting of a given number of same type trees.
[in] | eclass | This element class determines the dimension and the type trees used. |
[in] | num_trees | The number of trees to use. |
[in] | comm | The MPI_Communicator used to commit the cmesh. |
t8_cmesh_t t8_cmesh_new_disjoint_bricks | ( | t8_gloidx_t | num_x, |
t8_gloidx_t | num_y, | ||
t8_gloidx_t | num_z, | ||
int | x_periodic, | ||
int | y_periodic, | ||
int | z_periodic, | ||
sc_MPI_Comm | comm | ||
) |
Create a partitoned cmesh of quads whose local trees are given by an num_x by num_y brick connectivity from p4est or a num_x by num_y by num_z brick connectivity from p8est.
num_x and num_y and num_z can be different for different MPI ranks.
[in] | num_x | The number of trees in x direction for this rank. Must be >= 0. |
[in] | num_y | The number of trees in y direction for this rank. Must be >= 0. |
[in] | num_y | The number of trees in z direction for this rank. Must be >= 0. If nonzero, the cmesh is 3 dimensional. |
[in] | x_periodic | If nonzero, the local brick connectivity is periodic in x direction. |
[in] | y_periodic | If nonzero, the local brick connectivity is periodic in y direction. |
[in] | y_periodic | If nonzero and num_z > 0, the local brick connectivity is periodic in z direction. |
[in] | comm | The MPI communicator used to commit the cmesh. |
t8_cmesh_t t8_cmesh_new_empty | ( | sc_MPI_Comm | comm, |
int | do_partition, | ||
int | dimension | ||
) |
Construct a cmesh that has no trees.
We do not know a special use case, this function is merely for debugging and to show the possibility.
[in] | comm | mpi communicator to be used with the new cmesh. |
[in] | do_partition | Flag whether the cmesh should be partitioned or not. |
[in] | dimension | An empty cmesh requires a dimension nevertheless 0 <= dimension <= 4. |
t8_cmesh_t t8_cmesh_new_from_class | ( | t8_eclass_t | eclass, |
sc_MPI_Comm | comm | ||
) |
Constructs a cmesh that consists only of one tree of a given element class.
[in] | eclass | The element class. |
[in] | comm | mpi communicator to be used with the new cmesh. |
[in] | do_dup | Flag whether the communicator shall be duplicated or not. |
t8_cmesh_t t8_cmesh_new_from_p4est | ( | p4est_connectivity_t * | conn, |
sc_MPI_Comm | comm, | ||
int | do_partition | ||
) |
Constructs a cmesh from a given p4est_connectivity structure.
[in] | conn | The p4est connectivity. |
[in] | comm | mpi communicator to be used with the new cmesh. |
[in] | do_partition | Flag whether the cmesh should be partitioned or not. |
t8_cmesh_t t8_cmesh_new_from_p8est | ( | p8est_connectivity_t * | conn, |
sc_MPI_Comm | comm, | ||
int | do_partition | ||
) |
Constructs a cmesh from a given p8est_connectivity structure.
[in] | conn | The p8est connectivity. |
[in] | comm | mpi communicator to be used with the new cmesh. |
[in] | do_dup | Flag whether the communicator shall be duplicated or not. |
[in] | do_partition | Flag whether the cmesh should be partitioned or not. |
t8_cmesh_t t8_cmesh_new_full_hybrid | ( | sc_MPI_Comm | comm | ) |
Construct a full hybrig cmesh, with 1 hex, 1 pyra, 1 prism and 1 tet This cmesh is used for testing and debugging.
[in] | comm | The MPI communicator used to commit the cmesh. |
t8_cmesh_t t8_cmesh_new_hybrid_gate | ( | sc_MPI_Comm | comm | ) |
Construct a hybrid cmesh with 2 tets, 2 prism, 1 hex.
This cmesh is used for testing and debugging.
[in] | comm | The MPI communicator used to commit the cmesh. |
t8_cmesh_t t8_cmesh_new_hybrid_gate_deformed | ( | sc_MPI_Comm | comm | ) |
Construct a hybrid cmesh with 2 tets, 2 prism, 1 hex and all are deformed.
This cmesh is used for testing and debugging.
[in] | comm | The MPI communicator used to commit the cmesh. |
t8_cmesh_t t8_cmesh_new_hypercube | ( | t8_eclass_t | eclass, |
sc_MPI_Comm | comm, | ||
int | do_bcast, | ||
int | do_partition, | ||
int | periodic | ||
) |
Construct a hypercube forest from one primitive tree class.
[in] | eclass | This element class determines the dimension and the number of trees needed to construct a cube. |
[in] | comm | The mpi communicator to be used. |
[in] | do_bcast | If this flag is nonzero the cmesh is only constructed on processor 0 and then broadcasted to the other processors in comm. TODO: this parameter will be moved to internal. |
[in] | do_partition | Create a partitioned cmesh. |
[in] | periodic | If true, the coarse mesh will be periodic in each direction. Not possible with eclass pyramid. |
t8_cmesh_t t8_cmesh_new_hypercube_hybrid | ( | sc_MPI_Comm | comm, |
int | do_partition, | ||
int | periodic | ||
) |
Hybercube with 6 Tets, 6 Prism, 4 Hex.
[in] | comm | The mpi communicator to be used. |
[in] | do_partition | If non-zero create a partitioned cmesh. |
[in] | periodic | If non-zero create a periodic cmesh in each direction |
t8_cmesh_t t8_cmesh_new_line_zigzag | ( | sc_MPI_Comm | comm | ) |
Construct a forest of three connected askew lines.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_long_brick_pyramid | ( | sc_MPI_Comm | comm, |
int | num_cubes | ||
) |
Construct a bigger mesh, consisting of many cubes made by pyramids.
[in] | comm | The MPI communicator used to commit the cmesh |
[in] | num_cubes | The number of cubes of pyramids |
t8_cmesh_t t8_cmesh_new_periodic | ( | sc_MPI_Comm | comm, |
int | dim | ||
) |
Construct a unit interval/square/cube coarse mesh that is periodic in each direction.
Element class? Hypercube? TODO: redundant, remove.
[in] | comm | The mpi communicator to use. |
[in] | dim | The dimension of the forest, 1, 2 or 3. |
t8_cmesh_t t8_cmesh_new_periodic_hybrid | ( | sc_MPI_Comm | comm | ) |
Construct a unit square of two quads and four triangles that is periodic in x and y.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_periodic_line_more_trees | ( | sc_MPI_Comm | comm | ) |
Construct a unit interval coarse mesh that consists of 3 trees and is periodic.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_periodic_tri | ( | sc_MPI_Comm | comm | ) |
Construct a unit square of two triangles that is periodic in x and y.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_prism_cake | ( | sc_MPI_Comm | comm, |
int | num_of_prisms | ||
) |
Construct a forest of num_of_prisms connected prism, all with one edge in 0, except for num_of_prisms = 2, then the return is the hypercube mesh.
[in] | comm | The mpi communicator to use. |
[in] | num_of_prisms | The number of prisms to be used. |
t8_cmesh_t t8_cmesh_new_prism_cake_funny_oriented | ( | sc_MPI_Comm | comm | ) |
Construct a forest of six connected noncannoical oriented prisms.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_prism_deformed | ( | sc_MPI_Comm | comm | ) |
Construct a single deformed prism.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_prism_geometry | ( | sc_MPI_Comm | comm | ) |
Construct a forest of six connected noncannoical oriented prisms.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_pyramid_cake | ( | sc_MPI_Comm | comm, |
int | num_of_pyra | ||
) |
Construct a mesh out of num_of_pyra many pyramids.
They form a circle, face 0 is connected with face 1 of the next pyramid.
[in] | comm | The MPI communicator used to commit the cmesh |
[in] | num_of_pyra | The number of pyramids to construct. Should be larger than 2 |
t8_cmesh_t t8_cmesh_new_pyramid_deformed | ( | sc_MPI_Comm | comm | ) |
Construct a single deformed pyramid.
[in] | comm | The mpi communicator to use. |
t8_cmesh_t t8_cmesh_new_row_of_cubes | ( | t8_locidx_t | num_trees, |
const int | set_attributes, | ||
sc_MPI_Comm | comm | ||
) |
Construct num_trees many cubes each of length 1 connected along the x-axis without any additional attributes than the tree-vertices, or with additional attributes.
[in] | num_trees | The number of trees along the x-axis |
[in] | set_attributes | If 1, set tree_id and num_trees as additional attribute for each tree. |
[in] | comm | The MPI communicator used to commit the cmesh |
t8_cmesh_t t8_cmesh_new_tet_orientation_test | ( | sc_MPI_Comm | comm | ) |
Construct a tetrahedral cmesh that has all possible face to face connections and orientations.
This cmesh is used for testing and debugging.
[in] | comm | The MPI communicator used to commit the cmesh. |