Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::AMRZonePosition Class Reference

Class allowing the definition of a mesh zone. More...

#include <arcane/cartesianmesh/AMRZonePosition.h>

Public Member Functions

 AMRZonePosition (const Real3 &position, const Real3 &length)
 3D zone constructor.
 AMRZonePosition (const Real2 &position, const Real2 &length)
 2D zone constructor.
Real3 position () const
 Method allowing retrieval of the zone's position.
Real3 length () const
 Method allowing retrieval of the zone's size.
bool is3d () const
 Method allowing determination if it is a 2D or 3D zone.
void cellsInPatch (IMesh *mesh, UniqueArray< Int32 > &cells_local_id) const
 Method allowing retrieval of the cells included in the zone.
void cellsInPatch (ICartesianMesh *mesh, UniqueArray< Int32 > &cells_local_id, AMRPatchPosition &position) const
 Method allowing retrieval of the cells included in the zone. An AMRPatchPosition object designating the patch position is also filled.
AMRPatchPosition toAMRPatchPosition (ICartesianMesh *mesh) const
 Method allowing conversion of this AMRZonePosition into AMRPatchPosition.

Detailed Description

Class allowing the definition of a mesh zone.

Definition at line 34 of file AMRZonePosition.h.

Constructor & Destructor Documentation

◆ AMRZonePosition() [1/2]

Arcane::AMRZonePosition::AMRZonePosition ( const Real3 & position,
const Real3 & length )
inline

3D zone constructor.

Parameters
positionThe geometric position of the zone.
lengthThe size of the zone.

Definition at line 43 of file AMRZonePosition.h.

References length(), and position().

◆ AMRZonePosition() [2/2]

Arcane::AMRZonePosition::AMRZonePosition ( const Real2 & position,
const Real2 & length )
inline

2D zone constructor.

Parameters
positionThe geometric position of the zone.
lengthThe size of the zone.

Definition at line 54 of file AMRZonePosition.h.

References length(), and position().

Member Function Documentation

◆ cellsInPatch() [1/2]

void Arcane::AMRZonePosition::cellsInPatch ( ICartesianMesh * mesh,
UniqueArray< Int32 > & cells_local_id,
AMRPatchPosition & position ) const

◆ cellsInPatch() [2/2]

void Arcane::AMRZonePosition::cellsInPatch ( IMesh * mesh,
UniqueArray< Int32 > & cells_local_id ) const

Method allowing retrieval of the cells included in the zone.

Parameters
meshThe mesh.
cells_local_idThe array that will contain the localIds of the zone's cells. Note: the array will first be cleared.

Definition at line 36 of file AMRZonePosition.cc.

References Arcane::Array< T >::add(), Arcane::Array< T >::clear(), ENUMERATE_, Arcane::ItemWithNodes::nbNode(), Arcane::ItemWithNodes::nodes(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by cellsInPatch().

◆ is3d()

bool Arcane::AMRZonePosition::is3d ( ) const
inline

Method allowing determination if it is a 2D or 3D zone.

Returns
True if it is a 3D zone.

Definition at line 84 of file AMRZonePosition.h.

◆ length()

Real3 Arcane::AMRZonePosition::length ( ) const
inline

Method allowing retrieval of the zone's size.

Returns
The size of the zone.

Definition at line 75 of file AMRZonePosition.h.

Referenced by AMRZonePosition(), and AMRZonePosition().

◆ position()

Real3 Arcane::AMRZonePosition::position ( ) const
inline

Method allowing retrieval of the zone's position.

Returns
The geometric position of the zone.

Definition at line 66 of file AMRZonePosition.h.

Referenced by AMRZonePosition(), AMRZonePosition(), cellsInPatch(), and toAMRPatchPosition().

◆ toAMRPatchPosition()


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