Interface of a mesh block. More...
#include <arcane/core/materials/IMeshBlock.h>
Public Member Functions | |
| virtual IMeshMaterialMng * | materialMng ()=0 |
| Associated manager. | |
| virtual const String & | name () const =0 |
| Block name. | |
| virtual const CellGroup & | cells () const =0 |
| Cell group of this block. | |
| virtual ConstArrayView< IMeshEnvironment * > | environments ()=0 |
| List of environments in this block. | |
| virtual Integer | nbEnvironment () const =0 |
| Number of environments in the block. | |
| virtual Int32 | id () const =0 |
| Block identifier. It is also the index (starting from 0) of this block in the list of blocks. | |
| virtual AllEnvCellVectorView | view ()=0 |
| View of the environments cells corresponding to this block. | |
Interface of a mesh block.
Blocks are created via IMeshMaterialMng::createBlock().
Blocks cannot be destroyed and must be created during initialization.
The concept of a block is optional and it is not necessary to have blocks to use environments and materials.
A block is characterized by a name (name()), a cell group (cells()), and a list of environments (environments()).
Note that theoretically the cell group (cells()) is independent of the list of environments, but for reasons of consistency, it is preferable that this group corresponds to the union of the block's environments. However, no verification of this consistency is performed.
It is possible to use an instance of this class as an argument to ENUMERATE_ENV or to ENUMERATE_ALLENVCELL.
Definition at line 52 of file core/materials/IMeshBlock.h.
|
inlinevirtual |
Definition at line 56 of file core/materials/IMeshBlock.h.
|
pure virtual |
Cell group of this block.
Implemented in Arcane::Materials::MeshBlock.
|
pure virtual |
List of environments in this block.
Implemented in Arcane::Materials::MeshBlock.
|
pure virtual |
Block identifier. It is also the index (starting from 0) of this block in the list of blocks.
Implemented in Arcane::Materials::MeshBlock.
|
pure virtual |
Associated manager.
Implemented in Arcane::Materials::MeshBlock.
|
pure virtual |
Block name.
Implemented in Arcane::Materials::MeshBlock.
|
pure virtual |
Number of environments in the block.
Implemented in Arcane::Materials::MeshBlock.
|
pure virtual |
View of the environments cells corresponding to this block.
Implemented in Arcane::Materials::MeshBlock.