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

Public Member Functions

void build () override
IMeshmesh () override
 Associated mesh.
void setDynamic (bool) override
 Sets the property indicating whether the mesh can evolve.
void addCells (Integer, Int64ConstArrayView, Int32ArrayView) override
 Adds cells.
void addCells (const MeshModifierAddCellsArgs &)
 Adds cells.
void addFaces (Integer, Int64ConstArrayView, Int32ArrayView) override
 Adds faces.
void addFaces (const MeshModifierAddFacesArgs &)
 Adds faces.
void addEdges (Integer, Int64ConstArrayView, Int32ArrayView) override
 Adds edges.
void addNodes (Int64ConstArrayView, Int32ArrayView) override
 Adds nodes.
void removeCells (Int32ConstArrayView) override
 Removes cells.
void removeCells (Int32ConstArrayView, bool) override
void detachCells (Int32ConstArrayView) override
 Detaches cells from the mesh.
void removeDetachedCells (Int32ConstArrayView) override
 Removes detached cells.
void flagCellToRefine (Int32ConstArrayView) override
 AMR.
void flagCellToCoarsen (Int32ConstArrayView) override
void refineItems () override
void coarsenItems () override
void coarsenItemsV2 (bool) override
bool adapt () override
void registerCallBack (IAMRTransportFunctor *) override
void unRegisterCallBack (IAMRTransportFunctor *) override
void addHChildrenCells (Cell, Integer, Int64ConstArrayView, Int32ArrayView) override
void addParentCellToCell (Cell, Cell) override
void addChildCellToCell (Cell, Cell) override
void addParentFaceToFace (Face, Face) override
void addChildFaceToFace (Face, Face) override
void addParentNodeToNode (Node, Node) override
void addChildNodeToNode (Node, Node) override
void clearItems () override
 Deletes all entities of all families in this mesh.
ARCANE_DEPRECATED_240 void addCells (ISerializer *) override
 Adds cells from the data contained in buffer.
ARCANE_DEPRECATED_240 void addCells (ISerializer *, Int32Array &) override
 Adds cells from the data contained in buffer.
void endUpdate () override
 Notifies the instance that mesh modification is finished.
void endUpdate (bool, bool) override
void updateGhostLayers () override
 Updates the ghost layer.
void updateGhostLayerFromParent (Array< Int64 > &, Array< Int64 > &, bool) override
 AMR.
void addExtraGhostCellsBuilder (IExtraGhostCellsBuilder *) override
 addition of the "extraordinary" ghost cells addition algorithm.
void removeExtraGhostCellsBuilder (IExtraGhostCellsBuilder *) override
 Removes the association with the builder instance.
void addExtraGhostParticlesBuilder (IExtraGhostParticlesBuilder *) override
 Addition of the "extraordinary" ghost particle addition algorithm.
void removeExtraGhostParticlesBuilder (IExtraGhostParticlesBuilder *) override
 Removes the association with the builder instance.
void mergeMeshes (ConstArrayView< IMesh * >) override
 Merges the meshes of meshes with the current mesh.
IMeshModifierInternal_modifierInternalApi () override
 Internal API for Arcane.

Private Member Functions

void _error () const

Detailed Description

Definition at line 29 of file EmptyMeshModifier.h.

Member Function Documentation

◆ _error()

void Arcane::mesh::EmptyMeshModifier::_error ( ) const
inlineprivate

Definition at line 41 of file EmptyMeshModifier.h.

◆ _modifierInternalApi()

IMeshModifierInternal * Arcane::mesh::EmptyMeshModifier::_modifierInternalApi ( )
inlineoverridevirtual

Internal API for Arcane.

Implements Arcane::IMeshModifier.

Definition at line 124 of file EmptyMeshModifier.h.

◆ adapt()

bool Arcane::mesh::EmptyMeshModifier::adapt ( )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 77 of file EmptyMeshModifier.h.

◆ addCells() [1/4]

void Arcane::mesh::EmptyMeshModifier::addCells ( const MeshModifierAddCellsArgs & args)
inlinevirtual

Adds cells.

Reimplemented from Arcane::IMeshModifier.

Definition at line 57 of file EmptyMeshModifier.h.

◆ addCells() [2/4]

void Arcane::mesh::EmptyMeshModifier::addCells ( Integer nb_cell,
Int64ConstArrayView cell_infos,
Int32ArrayView cells_lid )
inlineoverridevirtual

Adds cells.

Adds cells. The format of cells_infos is identical to that of the IMesh::allocateCells() method. If cells_lid is not empty, it will contain the local IDs of the created cells. It is possible to perform multiple successive additions. Once the additions are complete, the endUpdate() method must be called. If an added cell has the same uniqueId() as an existing cell, the existing cell is kept as is and nothing happens.

The created cells are considered to belong to this subdomain. If this is not the case, their ownership must be modified afterwards.

This method is collective. If a subdomain does not wish to add cells, it is possible to pass an empty array.

Implements Arcane::IMeshModifier.

Definition at line 55 of file EmptyMeshModifier.h.

◆ addCells() [3/4]

ARCANE_DEPRECATED_240 void Arcane::mesh::EmptyMeshModifier::addCells ( ISerializer * buffer)
inlineoverridevirtual

Adds cells from the data contained in buffer.

buffer must contain serialized cells, for example by calling IMesh::serializeCells().

Deprecated
Use IMesh::cellFamily()->policyMng()->createSerializer() instead.

Implements Arcane::IMeshModifier.

Definition at line 94 of file EmptyMeshModifier.h.

◆ addCells() [4/4]

ARCANE_DEPRECATED_240 void Arcane::mesh::EmptyMeshModifier::addCells ( ISerializer * buffer,
Int32Array & cells_local_id )
inlineoverridevirtual

Adds cells from the data contained in buffer.

buffer must contain serialized cells, for example by calling IMesh::serializeCells(). In return, cells_local_id contains the list of localIds() of the deserialized cells. A cell may appear multiple times in this list if it appears multiple times in buffer.

Deprecated
Use IMesh::cellFamily()->policyMng()->createSerializer() instead.

Implements Arcane::IMeshModifier.

Definition at line 95 of file EmptyMeshModifier.h.

◆ addChildCellToCell()

void Arcane::mesh::EmptyMeshModifier::addChildCellToCell ( Cell ,
Cell  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 84 of file EmptyMeshModifier.h.

◆ addChildFaceToFace()

void Arcane::mesh::EmptyMeshModifier::addChildFaceToFace ( Face ,
Face  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 87 of file EmptyMeshModifier.h.

◆ addChildNodeToNode()

void Arcane::mesh::EmptyMeshModifier::addChildNodeToNode ( Node ,
Node  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 90 of file EmptyMeshModifier.h.

◆ addEdges()

void Arcane::mesh::EmptyMeshModifier::addEdges ( Integer nb_edge,
Int64ConstArrayView edge_infos,
Int32ArrayView edge_lids )
inlineoverridevirtual

Adds edges.

Adds edges. The format of edge_infos is identical to that of the IMesh::allocateCells() method. If edge_lids is not empty, it will contain the local IDs of the created edges. It is possible to perform multiple successive additions. Once the additions are complete, the endUpdate() method must be called. If an added edge has the same uniqueId() as an existing edge, the existing edge is kept as is and nothing happens.

The created edges are considered to belong to this subdomain. If this is not the case, their ownership must be modified afterwards.

This method is collective. If a subdomain does not wish to add edges, it is possible to pass an empty array.

Implements Arcane::IMeshModifier.

Definition at line 61 of file EmptyMeshModifier.h.

◆ addExtraGhostCellsBuilder()

void Arcane::mesh::EmptyMeshModifier::addExtraGhostCellsBuilder ( IExtraGhostCellsBuilder * builder)
inlineoverridevirtual

addition of the "extraordinary" ghost cells addition algorithm.

Implements Arcane::IMeshModifier.

Definition at line 110 of file EmptyMeshModifier.h.

◆ addExtraGhostParticlesBuilder()

void Arcane::mesh::EmptyMeshModifier::addExtraGhostParticlesBuilder ( IExtraGhostParticlesBuilder * builder)
inlineoverridevirtual

Addition of the "extraordinary" ghost particle addition algorithm.

Implements Arcane::IMeshModifier.

Definition at line 114 of file EmptyMeshModifier.h.

◆ addFaces() [1/2]

void Arcane::mesh::EmptyMeshModifier::addFaces ( const MeshModifierAddFacesArgs & args)
inlinevirtual

Adds faces.

Adds faces. The format of face_infos is identical to that of the IMesh::allocateCells() method. If face_lids is not empty, it will contain the local IDs of the created faces. It is possible to perform multiple successive additions. Once the additions are complete, the endUpdate() method must be called. If an added face has the same uniqueId() as an existing face, the existing face is kept as is and nothing happens.

The created faces are considered to belong to this subdomain. If this is not the case, their ownership must be modified afterwards.

Reimplemented from Arcane::IMeshModifier.

Definition at line 60 of file EmptyMeshModifier.h.

◆ addFaces() [2/2]

void Arcane::mesh::EmptyMeshModifier::addFaces ( Integer nb_face,
Int64ConstArrayView face_infos,
Int32ArrayView face_lids )
inlineoverridevirtual

Adds faces.

See also
addFaces(const MeshModifierAddFacesArgs&)

Implements Arcane::IMeshModifier.

Definition at line 58 of file EmptyMeshModifier.h.

◆ addHChildrenCells()

void Arcane::mesh::EmptyMeshModifier::addHChildrenCells ( Cell ,
Integer ,
Int64ConstArrayView ,
Int32ArrayView  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 80 of file EmptyMeshModifier.h.

◆ addNodes()

void Arcane::mesh::EmptyMeshModifier::addNodes ( Int64ConstArrayView nodes_uid,
Int32ArrayView nodes_lid )
inlineoverridevirtual

Adds nodes.

Adds nodes with unique identifiers being the values of the nodes_uid array. If nodes_lid is not empty, it will contain the local IDs of the created nodes. It is possible to perform multiple successive additions. Once the additions are complete, the endUpdate() method must be called. It is possible to specify an already existing uniqueId(). In this case, the node is simply ignored.

The created nodes are considered to belong to this subdomain. If this is not the case, their ownership must be modified afterwards.

This method is collective. If a subdomain does not wish to add nodes, it is possible to pass an empty array.

Implements Arcane::IMeshModifier.

Definition at line 63 of file EmptyMeshModifier.h.

◆ addParentCellToCell()

void Arcane::mesh::EmptyMeshModifier::addParentCellToCell ( Cell ,
Cell  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 83 of file EmptyMeshModifier.h.

◆ addParentFaceToFace()

void Arcane::mesh::EmptyMeshModifier::addParentFaceToFace ( Face ,
Face  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 86 of file EmptyMeshModifier.h.

◆ addParentNodeToNode()

void Arcane::mesh::EmptyMeshModifier::addParentNodeToNode ( Node ,
Node  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 89 of file EmptyMeshModifier.h.

◆ build()

void Arcane::mesh::EmptyMeshModifier::build ( )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 45 of file EmptyMeshModifier.h.

◆ clearItems()

void Arcane::mesh::EmptyMeshModifier::clearItems ( )
inlineoverridevirtual

Deletes all entities of all families in this mesh.

Implements Arcane::IMeshModifier.

Definition at line 92 of file EmptyMeshModifier.h.

◆ coarsenItems()

void Arcane::mesh::EmptyMeshModifier::coarsenItems ( )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 75 of file EmptyMeshModifier.h.

◆ coarsenItemsV2()

void Arcane::mesh::EmptyMeshModifier::coarsenItemsV2 ( bool )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 76 of file EmptyMeshModifier.h.

◆ detachCells()

void Arcane::mesh::EmptyMeshModifier::detachCells ( Int32ConstArrayView cells_local_id)
inlineoverridevirtual

Detaches cells from the mesh.

The detached cells are disconnected from the mesh. The nodes, edges, and faces of these cells no longer reference them, and the uniqueId() of these cells can be reused. To permanently destroy these cells, the removeDetachedCells() method must be called.

Implements Arcane::IMeshModifier.

Definition at line 68 of file EmptyMeshModifier.h.

◆ endUpdate() [1/2]

void Arcane::mesh::EmptyMeshModifier::endUpdate ( )
inlineoverridevirtual

Notifies the instance that mesh modification is finished.

This method is collective.

Implements Arcane::IMeshModifier.

Reimplemented in Arcane::mesh::PolyhedralMesh.

Definition at line 97 of file EmptyMeshModifier.h.

◆ endUpdate() [2/2]

void Arcane::mesh::EmptyMeshModifier::endUpdate ( bool ,
bool  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 99 of file EmptyMeshModifier.h.

◆ flagCellToCoarsen()

void Arcane::mesh::EmptyMeshModifier::flagCellToCoarsen ( Int32ConstArrayView )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 73 of file EmptyMeshModifier.h.

◆ flagCellToRefine()

void Arcane::mesh::EmptyMeshModifier::flagCellToRefine ( Int32ConstArrayView cells_lids)
inlineoverridevirtual

AMR.

Implements Arcane::IMeshModifier.

Definition at line 72 of file EmptyMeshModifier.h.

◆ mergeMeshes()

void Arcane::mesh::EmptyMeshModifier::mergeMeshes ( ConstArrayView< IMesh * > meshes)
inlineoverridevirtual

Merges the meshes of meshes with the current mesh.

Implements Arcane::IMeshModifier.

Definition at line 120 of file EmptyMeshModifier.h.

◆ mesh()

IMesh * Arcane::mesh::EmptyMeshModifier::mesh ( )
inlineoverridevirtual

Associated mesh.

Implements Arcane::IMeshModifier.

Definition at line 50 of file EmptyMeshModifier.h.

◆ refineItems()

void Arcane::mesh::EmptyMeshModifier::refineItems ( )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 74 of file EmptyMeshModifier.h.

◆ registerCallBack()

void Arcane::mesh::EmptyMeshModifier::registerCallBack ( IAMRTransportFunctor * )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 78 of file EmptyMeshModifier.h.

◆ removeCells() [1/2]

void Arcane::mesh::EmptyMeshModifier::removeCells ( Int32ConstArrayView cells_local_id)
inlineoverridevirtual

Removes cells.

Removes the cells whose local IDs are provided in cells_local_id. It is possible to perform multiple successive removals. Once the removals are complete, the endUpdate() method must be called.

Implements Arcane::IMeshModifier.

Definition at line 66 of file EmptyMeshModifier.h.

◆ removeCells() [2/2]

void Arcane::mesh::EmptyMeshModifier::removeCells ( Int32ConstArrayView ,
bool  )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 67 of file EmptyMeshModifier.h.

◆ removeDetachedCells()

void Arcane::mesh::EmptyMeshModifier::removeDetachedCells ( Int32ConstArrayView cells_local_id)
inlineoverridevirtual

Removes detached cells.

Removes detached cells via detachCells(). It is possible to perform multiple successive removals. Once the removals are complete, the endUpdate() method must be called.

Implements Arcane::IMeshModifier.

Definition at line 70 of file EmptyMeshModifier.h.

◆ removeExtraGhostCellsBuilder()

void Arcane::mesh::EmptyMeshModifier::removeExtraGhostCellsBuilder ( IExtraGhostCellsBuilder * builder)
inlineoverridevirtual

Removes the association with the builder instance.

Implements Arcane::IMeshModifier.

Definition at line 112 of file EmptyMeshModifier.h.

◆ removeExtraGhostParticlesBuilder()

void Arcane::mesh::EmptyMeshModifier::removeExtraGhostParticlesBuilder ( IExtraGhostParticlesBuilder * builder)
inlineoverridevirtual

Removes the association with the builder instance.

Implements Arcane::IMeshModifier.

Definition at line 116 of file EmptyMeshModifier.h.

◆ setDynamic()

void Arcane::mesh::EmptyMeshModifier::setDynamic ( bool v)
inlineoverridevirtual

Sets the property indicating whether the mesh can evolve.

This property must be set to true if you wish to modify the mesh, for example by exchanging entities via the exchangeItems() call. This only concerns nodes, edges, faces, and cells, but not particles, which can still be created and destroyed.

By default, isDynamic() is false.

The property setting can only be done during initialization.

Implements Arcane::IMeshModifier.

Definition at line 54 of file EmptyMeshModifier.h.

◆ unRegisterCallBack()

void Arcane::mesh::EmptyMeshModifier::unRegisterCallBack ( IAMRTransportFunctor * )
inlineoverridevirtual

Implements Arcane::IMeshModifier.

Definition at line 79 of file EmptyMeshModifier.h.

◆ updateGhostLayerFromParent()

void Arcane::mesh::EmptyMeshModifier::updateGhostLayerFromParent ( Array< Int64 > & ,
Array< Int64 > & ,
bool  )
inlineoverridevirtual

AMR.

Implements Arcane::IMeshModifier.

Definition at line 106 of file EmptyMeshModifier.h.

◆ updateGhostLayers()

void Arcane::mesh::EmptyMeshModifier::updateGhostLayers ( )
inlineoverridevirtual

Updates the ghost layer.

This operation is collective.

Implements Arcane::IMeshModifier.

Definition at line 103 of file EmptyMeshModifier.h.


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