Go to the documentation of this file.
20 #ifndef LIBMESH_UNSTRUCTURED_MESH_H
21 #define LIBMESH_UNSTRUCTURED_MESH_H
24 #include "libmesh/mesh_base.h"
96 virtual void read (
const std::string &
name,
97 void * mesh_data=
nullptr,
98 bool skip_renumber_nodes_and_elements=
false,
99 bool skip_find_neighbors=
false)
override;
104 virtual void write (
const std::string &
name)
override;
111 const std::vector<Number> & values,
112 const std::vector<std::string> & variable_names);
166 const bool skip_find_neighbors =
false,
175 virtual void find_neighbors (
const bool reset_remote_elements =
false,
176 const bool reset_current_list =
true)
override;
178 #ifdef LIBMESH_ENABLE_AMR
185 #endif // #ifdef LIBMESH_ENABLE_AMR
192 #endif // LIBMESH_UNSTRUCTURED_MESH_H
virtual void find_neighbors(const bool reset_remote_elements=false, const bool reset_current_list=true) override
Other functions from MeshBase requiring re-definition.
void create_pid_mesh(UnstructuredMesh &pid_mesh, const processor_id_type pid) const
Generates a new mesh containing all the elements which are assigned to processor pid.
UnstructuredMesh & operator=(const UnstructuredMesh &)=delete
Copy and move assignment are not allowed.
virtual void copy_nodes_and_elements(const UnstructuredMesh &other_mesh, const bool skip_find_neighbors=false, dof_id_type element_id_offset=0, dof_id_type node_id_offset=0, unique_id_type unique_id_offset=0)
Deep copy of nodes and elements from another unstructured mesh class (used by subclass copy construct...
The libMesh namespace provides an interface to certain functionality in the library.
virtual void all_first_order() override
Converts a mesh with higher-order elements into a mesh with linear elements.
virtual ~UnstructuredMesh()
Destructor.
virtual void write(const std::string &name) override
Write the file specified by name.
This is the MeshBase class.
virtual bool contract() override
Delete subactive (i.e.
virtual void read(const std::string &name, void *mesh_data=nullptr, bool skip_renumber_nodes_and_elements=false, bool skip_find_neighbors=false) override
Reads the file specified by name.
uint8_t processor_id_type
The definition of the const_element_iterator struct.
UnstructuredMesh(const Parallel::Communicator &comm_in, unsigned char dim=1)
Constructor.
The UnstructuredMesh class is derived from the MeshBase class.
virtual void all_second_order(const bool full_ordered=true) override
Converts a (conforming, non-refined) mesh with linear elements into a mesh with second-order elements...
void create_submesh(UnstructuredMesh &new_mesh, const const_element_iterator &it, const const_element_iterator &it_end) const
Constructs a mesh called "new_mesh" from the current mesh by iterating over the elements between it a...
std::string name(const ElemQuality q)
This function returns a string containing some name for q.