17 #ifndef GEOS_MESH_PARTICLEELEMENTSUBREGION_HPP_
18 #define GEOS_MESH_PARTICLEELEMENTSUBREGION_HPP_
20 #include "mesh/generators/ParticleBlockABC.hpp"
44 {
return "ParticleSubRegion"; }
100 template<
typename LAMBDA >
103 for(
auto & constitutiveGroup : m_constitutiveGrouping )
105 lambda( constitutiveGroup );
virtual viewKeyStruct const & viewKeys() const override
Get the view keys for Group access, const version.
virtual viewKeyStruct & viewKeys() override
Get the view keys for Group access.
virtual string getCatalogName() const override final
Const getter for the catalog name.
void forMaterials(LAMBDA lambda)
Helper function to apply a lambda function over all constructive groups.
static string catalogName()
Const getter for the catalog name.
void copyFromParticleBlock(ParticleBlockABC &particleBlock)
Fill the ParticleSubRegion by copying those of the source ParticleBlock.
virtual ~ParticleSubRegion() override
Destructor.
geos::ParticleSubRegion::viewKeyStruct m_ParticleBlockSubRegionViewKeys
viewKey struct for the ParticleSubRegion class
void setParticleRank(int const rank)
Set the ghost rank of particles in this subregion.
ParticleSubRegion(string const &name, Group *const parent)
Constructor for this class.
Base template for ordered and unordered maps.
Group::wrapperMap::KeyIndex ViewKey
Type alias for KeyIndexT type used for wrapper lookups.
array1d< string > string_array
A 1-dimensional array of geos::string types.
struct to serve as a container for variable strings and keys
static constexpr char const * constitutiveGroupingString()
static constexpr char const * constitutiveMapString()
dataRepository::ViewKey constitutiveMap
ViewKey for the constitutive map.
dataRepository::ViewKey constitutiveGrouping
ViewKey for the constitutive grouping.
A struct to serve as a container for variable strings and keys.