Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::mesh::DynamicMeshInternal Class Reference
Inheritance diagram for Arcane::mesh::DynamicMeshInternal:
Collaboration diagram for Arcane::mesh::DynamicMeshInternal:

Public Member Functions

 DynamicMeshInternal (DynamicMesh *mesh)
void build ()
void setMeshKind (const MeshKind &v) override
 Sets the mesh type.
IItemConnectivityMngdofConnectivityMng () const noexcept override
 Returns the dof connectivity manager.
IPolyhedralMeshModifierpolyhedralMeshModifier () const noexcept override
void removeNeedRemoveMarkedItems () override
 Deletes entities marked with ItemFlags::II_NeedRemove.
NodeLocalId addNode (ItemUniqueId unique_id) override
 Adds a node.
FaceLocalId addFace (ItemUniqueId unique_id, ItemTypeId type_id, ConstArrayView< Int64 > nodes_uid) override
 Adds a face.
CellLocalId addCell (ItemUniqueId unique_id, ItemTypeId type_id, ConstArrayView< Int64 > nodes_uid) override
 Adds a cell.
Public Member Functions inherited from Arcane::IMeshInternal
virtual IItemFamilySerializerMngInternalfamilySerializerMng () const noexcept
 Returns the family serialization tools manager.

Private Attributes

DynamicMeshm_mesh = nullptr
std::unique_ptr< IItemConnectivityMngm_connectivity_mng = nullptr
SmallArray< Int64m_items_infos

Detailed Description

Definition at line 33 of file DynamicMeshInternal.h.

Constructor & Destructor Documentation

◆ DynamicMeshInternal()

Arcane::mesh::DynamicMeshInternal::DynamicMeshInternal ( DynamicMesh * mesh)
explicit

Definition at line 29 of file DynamicMeshInternal.cc.

Member Function Documentation

◆ addCell()

CellLocalId Arcane::mesh::DynamicMeshInternal::addCell ( ItemUniqueId unique_id,
ItemTypeId type_id,
ConstArrayView< Int64 > nodes_uid )
overridevirtual

Adds a cell.

Adds a cell with a unique ID uid, of type type_id, and containing the nodes whose unique IDs are nodes_uids. If the cell already exists, it is returned.

Returns
The created cell or the existing cell with the unique ID unique_id if it already exists.
Note
For performance reasons, it is preferable to call addCells() if many cells need to be added.

Implements Arcane::IMeshModifierInternal.

Definition at line 105 of file DynamicMeshInternal.cc.

References Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

◆ addFace()

FaceLocalId Arcane::mesh::DynamicMeshInternal::addFace ( ItemUniqueId unique_id,
ItemTypeId type_id,
ConstArrayView< Int64 > nodes_uid )
overridevirtual

Adds a face.

Adds a face with a unique ID uid, of type type_id, and containing the nodes whose unique IDs are nodes_uids. If the face already exists, it is returned.

Returns
The created face or the existing face with the unique ID unique_id if it already exists.
Note
For performance reasons, it is preferable to call addFaces() if many faces need to be added.

Implements Arcane::IMeshModifierInternal.

Definition at line 94 of file DynamicMeshInternal.cc.

References ARCANE_THROW.

◆ addNode()

NodeLocalId Arcane::mesh::DynamicMeshInternal::addNode ( ItemUniqueId unique_id)
overridevirtual

Adds a node.

Adds a node with a unique ID uid. If the node already exists, it is returned. It is generally not useful to create nodes directly, as they are automatically created when an edge, a face, or a cell is added.

Returns
The created node or the existing node with the unique ID unique_id if it already exists.
Note
For performance reasons, it is preferable to call addNodes() if many nodes need to be added.

Implements Arcane::IMeshModifierInternal.

Definition at line 85 of file DynamicMeshInternal.cc.

References ARCANE_THROW.

◆ build()

void Arcane::mesh::DynamicMeshInternal::build ( )

Definition at line 41 of file DynamicMeshInternal.cc.

◆ dofConnectivityMng()

IItemConnectivityMng * Arcane::mesh::DynamicMeshInternal::dofConnectivityMng ( ) const
overridevirtualnoexcept

Returns the dof connectivity manager.

This method is temporary because this dof connectivity manager is intended to be removed, as the evolution of dof connectivities is now managed automatically. For internal use only while awaiting removal.

Implements Arcane::IMeshInternal.

Definition at line 58 of file DynamicMeshInternal.cc.

◆ polyhedralMeshModifier()

IPolyhedralMeshModifier * Arcane::mesh::DynamicMeshInternal::polyhedralMeshModifier ( ) const
overridevirtualnoexcept

\bief Returns the polyhedral mesh modification interface

This method returns nullptr if the mesh implementation is not PolyhedralMesh

Implements Arcane::IMeshInternal.

Definition at line 67 of file DynamicMeshInternal.cc.

◆ removeNeedRemoveMarkedItems()

void Arcane::mesh::DynamicMeshInternal::removeNeedRemoveMarkedItems ( )
overridevirtual

Deletes entities marked with ItemFlags::II_NeedRemove.

This method is called in MeshExchanger

Implements Arcane::IMeshModifierInternal.

Definition at line 76 of file DynamicMeshInternal.cc.

◆ setMeshKind()

void Arcane::mesh::DynamicMeshInternal::setMeshKind ( const MeshKind & v)
overridevirtual

Sets the mesh type.

For now, this method should only be used to specify the mesh structure (eMeshStructure).

Implements Arcane::IMeshInternal.

Definition at line 49 of file DynamicMeshInternal.cc.

Member Data Documentation

◆ m_connectivity_mng

std::unique_ptr<IItemConnectivityMng> Arcane::mesh::DynamicMeshInternal::m_connectivity_mng = nullptr
private

Definition at line 58 of file DynamicMeshInternal.h.

◆ m_items_infos

SmallArray<Int64> Arcane::mesh::DynamicMeshInternal::m_items_infos
private

Definition at line 59 of file DynamicMeshInternal.h.

◆ m_mesh

DynamicMesh* Arcane::mesh::DynamicMeshInternal::m_mesh = nullptr
private

Definition at line 57 of file DynamicMeshInternal.h.


The documentation for this class was generated from the following files: