Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::SimpleSequentialMeshBuilder Class Reference

Helper class to generate a sequential mesh based on connectivity and node coordinates. More...

Inheritance diagram for Arcane::SimpleSequentialMeshBuilder:
Collaboration diagram for Arcane::SimpleSequentialMeshBuilder:

Classes

class  Real3Compare

Public Member Functions

 SimpleSequentialMeshBuilder (IMesh *pm)
Int32 addNode (Real3 coord)
 Adds or retrieves the uniqueId() of the node with coordinates coord.
Int32 addCell (Int32 type, ConstArrayView< Real3 > nodes_coords)
ConstArrayView< Int64cellsInfos () const
Int32 nbCell () const
void setNodesCoordinates () const
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const

Private Types

using CoordMap = std::map<Real3, Int32, Real3Compare>

Private Attributes

IMeshm_mesh = nullptr
CoordMap m_nodes_coord_map
Int32 m_nb_cell = 0
UniqueArray< Int64m_cells_infos
UniqueArray< Real3m_nodes_coordinates
 uid->coord correspondence for nodes

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Helper class to generate a sequential mesh based on connectivity and node coordinates.

Definition at line 42 of file HoneyCombMeshGenerator.cc.

Member Typedef Documentation

◆ CoordMap

using Arcane::SimpleSequentialMeshBuilder::CoordMap = std::map<Real3, Int32, Real3Compare>
private

Definition at line 123 of file HoneyCombMeshGenerator.cc.

Constructor & Destructor Documentation

◆ SimpleSequentialMeshBuilder()

Arcane::SimpleSequentialMeshBuilder::SimpleSequentialMeshBuilder ( IMesh * pm)
inlineexplicit

Definition at line 69 of file HoneyCombMeshGenerator.cc.

Member Function Documentation

◆ addCell()

Int32 Arcane::SimpleSequentialMeshBuilder::addCell ( Int32 type,
ConstArrayView< Real3 > nodes_coords )
inline

Definition at line 89 of file HoneyCombMeshGenerator.cc.

◆ addNode()

Int32 Arcane::SimpleSequentialMeshBuilder::addNode ( Real3 coord)
inline

Adds or retrieves the uniqueId() of the node with coordinates coord.

Definition at line 78 of file HoneyCombMeshGenerator.cc.

References m_nodes_coordinates.

◆ cellsInfos()

ConstArrayView< Int64 > Arcane::SimpleSequentialMeshBuilder::cellsInfos ( ) const
inline

Definition at line 99 of file HoneyCombMeshGenerator.cc.

◆ nbCell()

Int32 Arcane::SimpleSequentialMeshBuilder::nbCell ( ) const
inline

Definition at line 100 of file HoneyCombMeshGenerator.cc.

◆ setNodesCoordinates()

void Arcane::SimpleSequentialMeshBuilder::setNodesCoordinates ( ) const
inline

Definition at line 102 of file HoneyCombMeshGenerator.cc.

Member Data Documentation

◆ m_cells_infos

UniqueArray<Int64> Arcane::SimpleSequentialMeshBuilder::m_cells_infos
private

Definition at line 128 of file HoneyCombMeshGenerator.cc.

◆ m_mesh

IMesh* Arcane::SimpleSequentialMeshBuilder::m_mesh = nullptr
private

Definition at line 125 of file HoneyCombMeshGenerator.cc.

◆ m_nb_cell

Int32 Arcane::SimpleSequentialMeshBuilder::m_nb_cell = 0
private

Definition at line 127 of file HoneyCombMeshGenerator.cc.

◆ m_nodes_coord_map

CoordMap Arcane::SimpleSequentialMeshBuilder::m_nodes_coord_map
private

Definition at line 126 of file HoneyCombMeshGenerator.cc.

◆ m_nodes_coordinates

UniqueArray<Real3> Arcane::SimpleSequentialMeshBuilder::m_nodes_coordinates
private

uid->coord correspondence for nodes

Definition at line 130 of file HoneyCombMeshGenerator.cc.

Referenced by addNode().


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