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. | |
Private Attributes | |
| Real3 | m_position |
| Real3 | m_length |
| bool | m_is_3d |
Class allowing the definition of a mesh zone.
Definition at line 34 of file AMRZonePosition.h.
3D zone constructor.
Definition at line 43 of file AMRZonePosition.h.
References length(), and position().
2D zone constructor.
Definition at line 54 of file AMRZonePosition.h.
References length(), and position().
| void Arcane::AMRZonePosition::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.
| mesh | The mesh. |
| cells_local_id | The array that will contain the localIds of the zone's cells. Note: the array will first be cleared. |
| position | [OUT] The patch position. |
Definition at line 66 of file AMRZonePosition.cc.
References Arcane::Array< T >::add(), ARCANE_FATAL, cellsInPatch(), Arcane::Array< T >::clear(), ENUMERATE_, Arcane::Item::hasFlags(), Arcane::Cell::hasHChildren(), Arcane::Cell::hChild(), Arcane::ItemFlags::II_InPatch, Arcane::Cell::level(), Arcane::MD_DirX, Arcane::MD_DirY, Arcane::MD_DirZ, Arcane::ItemWithNodes::nbNode(), Arcane::ItemWithNodes::nodes(), Arcane::PatchCartesianMeshOnly, position(), Arcane::MessagePassing::ReduceMax, Arcane::MessagePassing::ReduceMin, Arcane::MessagePassing::ReduceSum, Arcane::Item::uniqueId(), Arcane::FixedArray< T, NbElement >::view(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.
| void Arcane::AMRZonePosition::cellsInPatch | ( | IMesh * | mesh, |
| UniqueArray< Int32 > & | cells_local_id ) const |
Method allowing retrieval of the cells included in the zone.
| mesh | The mesh. |
| cells_local_id | The 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(), and Arcane::CartesianPatchGroup::removeCellsInZone().
|
inline |
Method allowing determination if it is a 2D or 3D zone.
Definition at line 84 of file AMRZonePosition.h.
|
inline |
Method allowing retrieval of the zone's size.
Definition at line 75 of file AMRZonePosition.h.
Referenced by Arcane::CartesianPatchGroup::addPatch(), AMRZonePosition(), and AMRZonePosition().
|
inline |
Method allowing retrieval of the zone's position.
Definition at line 66 of file AMRZonePosition.h.
Referenced by Arcane::CartesianPatchGroup::addPatch(), AMRZonePosition(), AMRZonePosition(), cellsInPatch(), and toAMRPatchPosition().
| AMRPatchPosition Arcane::AMRZonePosition::toAMRPatchPosition | ( | ICartesianMesh * | mesh | ) | const |
Method allowing conversion of this AMRZonePosition into AMRPatchPosition.
| mesh | The Cartesian mesh. |
Definition at line 167 of file AMRZonePosition.cc.
References ARCANE_FATAL, ENUMERATE_, Arcane::Item::hasFlags(), Arcane::Cell::hasHChildren(), Arcane::Cell::hChild(), Arcane::ItemFlags::II_InPatch, Arcane::Cell::level(), Arcane::MD_DirX, Arcane::MD_DirY, Arcane::MD_DirZ, Arcane::ItemWithNodes::nbNode(), Arcane::ItemWithNodes::nodes(), Arcane::PatchCartesianMeshOnly, position(), Arcane::MessagePassing::ReduceMax, Arcane::MessagePassing::ReduceMin, Arcane::MessagePassing::ReduceSum, Arcane::Item::uniqueId(), Arcane::FixedArray< T, NbElement >::view(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.
Referenced by Arcane::CartesianPatchGroup::addPatch().
|
private |
Definition at line 123 of file AMRZonePosition.h.
|
private |
Definition at line 122 of file AMRZonePosition.h.
|
private |
Definition at line 121 of file AMRZonePosition.h.