38 #ifndef __H__UG__PLUGINS__D3F__DEGENERATED_LAYER_MANAGER__
39 #define __H__UG__PLUGINS__D3F__DEGENERATED_LAYER_MANAGER__
137 const char * ss_names
143 const char * ss_names
175 if (!
is_closed ())
UG_THROW (
"DegeneratedLayerManager: The manager is not closed.");
186 size_t & num_fract_co,
188 size_t & inner_side_idx,
189 size_t inner_side_corners [],
191 size_t & outer_side_idx,
192 size_t outer_side_corners [],
193 size_t ass_co [] = NULL
207 const char* middle_ss_name
213 const char* layer_ss_name,
214 const char* middle_ss_name
Definition: smart_pointer.h:108
Gegenerated layer subset manager.
Definition: deg_layer_mngr.h:99
MultiGrid::AttachmentAccessor< Vertex, mark_attachment_type > m_aaVertMarks
Attachment accessor.
Definition: deg_layer_mngr.h:237
void close()
Closes the manager, i.e. computes all the data, ...
Definition: deg_layer_mngr_impl.h:133
MessageHub::SPCallbackId m_spGridDistributionCallbackID
Definition: deg_layer_mngr.h:244
bool m_bClosed
'closed'-flag
Definition: deg_layer_mngr.h:240
void grid_distribution_callback(const GridMessage_Distribution &msg)
Called when a grid has been distributed between different processes.
Definition: deg_layer_mngr_impl.h:251
void remove(const char *ss_names)
Removes a fracture subdomain (e.g. for dimension-adaptive method)
Definition: deg_layer_mngr_impl.h:114
SubsetGroup m_layerSsGrp
Subset group of the fractures.
Definition: deg_layer_mngr.h:232
MessageHub::SPCallbackId m_spGridAdaptionCallbackID
Definition: deg_layer_mngr.h:243
virtual ~DegeneratedLayerManager()
Destructor.
Definition: deg_layer_mngr_impl.h:78
const SubsetGroup & subset_grp()
Returns the subset group of the fracture network.
Definition: deg_layer_mngr.h:167
static const size_t maxElemCorners
max. number of corners of the elements
Definition: deg_layer_mngr.h:111
static const size_t maxLayerSideCorners
max. number of corners of non-degenerated sides
Definition: deg_layer_mngr.h:114
t_grid_object_mark
Marks for the grid vertices.
Definition: deg_layer_mngr.h:118
@ D_LAYER_OUTER
Definition: deg_layer_mngr.h:120
@ D_LAYER_UNKNOWN
Definition: deg_layer_mngr.h:119
@ D_LAYER_INNER
Definition: deg_layer_mngr.h:121
int subset(size_t i)
Subset no. i in the manager (only if the manager is closed)
Definition: deg_layer_mngr.h:173
void grid_adaption_callback(const GridMessage_Adaption &msg)
Called when a grid adaption has been performed.
Definition: deg_layer_mngr_impl.h:238
bool is_closed()
Returns true if the manager is closed (and can be used) or false otherwise.
Definition: deg_layer_mngr.h:157
void add(const char *ss_names)
Adds a fracture subdomain.
Definition: deg_layer_mngr_impl.h:91
bool contains(int si)
Whether a subset is registered in the manager.
Definition: deg_layer_mngr.h:161
grid_dim_traits< dim >::grid_base_object element_type
base grid element object type
Definition: deg_layer_mngr.h:105
SmartPtr< MultiGridSubsetHandler > m_spSH
Subset handler to use.
Definition: deg_layer_mngr.h:229
Attachment< signed char > mark_attachment_type
type of the attachment for the marks
Definition: deg_layer_mngr.h:102
size_t num_subsets()
Number of subsets in the manager.
Definition: deg_layer_mngr.h:170
DegeneratedLayerManager(SmartPtr< MultiGridSubsetHandler > spSH)
Constructor.
Definition: deg_layer_mngr_impl.h:48
int assign_middle_subset(int layer_si, int middle_si=-1)
Assigns a different subset index to the inner sides of a layer.
Definition: deg_layer_mngr_impl.h:411
void init_refiner(SmartPtr< GlobalFracturedMediaRefiner > refiner, bool as_low_dim)
Initializes a refiner with the fracture subsets.
Definition: deg_layer_mngr_impl.h:166
grid_dim_traits< dim >::side_type side_type
grid element's side base object type
Definition: deg_layer_mngr.h:108
void mark_vertices()
Marks the inner fracture vertices.
Definition: deg_layer_mngr_impl.h:184
mark_attachment_type m_aVertexMarks
Attachment keeping the grid object marks for the vertices.
Definition: deg_layer_mngr.h:235
void get_layer_sides(element_type *elem, size_t &num_fract_co, side_type *&inner_side, size_t &inner_side_idx, size_t inner_side_corners[], side_type *&outer_side, size_t &outer_side_idx, size_t outer_side_corners[], size_t ass_co[]=NULL)
Gets the inner and the outer fracture sides of an element.
Definition: deg_layer_mngr_impl.h:266
int vert_mark(Vertex *vrt)
Returs the mark of a vertex.
Definition: deg_layer_mngr.h:180
the generic attachment-accessor for access to grids attachment pipes.
Definition: grid.h:182
A message sent along with "GridRefinement" messages.
Definition: lib_grid_messages.h:91
Definition: lib_grid_messages.h:166
Group of subsets.
Definition: subset_group.h:51
size_t size() const
number of subsets in this group
Definition: subset_group.h:122
bool contains(int si) const
returns true if subset is contained in this group
Definition: subset_group.cpp:272
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
#define UG_THROW(msg)
Definition: error.h:57
Definition: grid_dim_traits.h:53