Registry
ug4Bridge::promesh::Subsets Namespace Reference

Namespaces

 Separate
 

Functions

void AdjustSubsetsForUG3 (Mesh *mesh, bool keep_interface_subsets)
 Assigns face and edge indices so that the geometry can be used with ug3. More...
 
void AdjustSubsetsForUG4 (Mesh *mesh, bool preserve_existing_subsets)
 Adjusts subsets for simulation with ug4. More...
 
void AssignFaceSubsetsByAspectRatio (Mesh *mesh, int histogram_sections, bool erase_old_subsets)
 Assigns subsets according to an aspect ratio histogram. More...
 
void AssignNewSubset (Mesh *mesh, const char *name, bool assign_vertices, bool assign_edges, bool assign_faces, bool assign_volumes)
 Assigns selected elements to a new subset. More...
 
void AssignSubset (Mesh *mesh, int subset_index)
 Assigns the selected elements to a subset. More...
 
void AssignSubsetsByQuality (Mesh *mesh, int num_sections)
 Assigns the selected to a subset depending on their quality. More...
 
void AssignSubsetsFromRaster (Mesh *mesh, const char *raster_file, int raster_dimension, bool vertices, bool edges, bool faces, bool volumes)
 Assigns the subset index for each element from the raster-cell in which the center of the element lies. More...
 
void AssignVolumeSubsetsByAspectRatio (Mesh *mesh, int histogram_sections, bool erase_old_subsets)
 Assigns subsets according to an aspect ratio histogram. More...
 
void CopySubsetIndicesToSides (Mesh *mesh, bool selection_only, bool to_unassigned_elements_only)
 Copies subset indices of selected elements to sides of those elements. More...
 
void EraseEmptySubsets (Mesh *mesh)
 Erases Subsets, which do not contain any elements at all. More...
 
void EraseSubset (Mesh *mesh, int subset_index, bool erase_geometry)
 Erases a subset, but not its associated geometry. More...
 
void JoinSubsets (Mesh *mesh, int target_subset_index, int subset_index_1, int subset_index_2, bool unnamed)
 Joins two subsets. More...
 
void MoveSubset (Mesh *mesh, int old_subset_index, int new_subset_index)
 Moves a subset to another index. More...
 
void SetSubsetName (Mesh *mesh, int subset_index, const char *name)
 
void SwapSubsets (Mesh *mesh, int subset_index_1, int subset_index_2)
 Swaps two subsets. More...
 
void UnassignSubsets (Mesh *mesh, bool unassign_vertices, bool unassign_edges, bool unassign_faces, bool unassign_volumes)
 Unassigns selected elements from any subset. More...
 

Function Documentation

◆ AdjustSubsetsForUG3()

void ug4Bridge::promesh::Subsets::AdjustSubsetsForUG3 ( Mesh mesh,
bool  keep_interface_subsets 
)

Assigns face and edge indices so that the geometry can be used with ug3.

Parameters
[in]mesh
[in]keep_interface_subsets

◆ AdjustSubsetsForUG4()

void ug4Bridge::promesh::Subsets::AdjustSubsetsForUG4 ( Mesh mesh,
bool  preserve_existing_subsets 
)

Adjusts subsets for simulation with ug4.

Parameters
[in]mesh
[in]preserve_existing_subsets

◆ AssignFaceSubsetsByAspectRatio()

void ug4Bridge::promesh::Subsets::AssignFaceSubsetsByAspectRatio ( Mesh mesh,
int  histogram_sections,
bool  erase_old_subsets 
)

Assigns subsets according to an aspect ratio histogram.

Parameters
[in]mesh
[in]histogram_sections
[in]erase_old_subsets

◆ AssignNewSubset()

void ug4Bridge::promesh::Subsets::AssignNewSubset ( Mesh mesh,
const char *  name,
bool  assign_vertices,
bool  assign_edges,
bool  assign_faces,
bool  assign_volumes 
)

Assigns selected elements to a new subset.

Parameters
[in]mesh
[in]name
[in]assign_vertices
[in]assign_edges
[in]assign_faces
[in]assign_volumes

◆ AssignSubset()

void ug4Bridge::promesh::Subsets::AssignSubset ( Mesh mesh,
int  subset_index 
)

Assigns the selected elements to a subset.

Parameters
[in]mesh
[in]subset_index

◆ AssignSubsetsByQuality()

void ug4Bridge::promesh::Subsets::AssignSubsetsByQuality ( Mesh mesh,
int  num_sections 
)

Assigns the selected to a subset depending on their quality.

Parameters
[in]mesh
[in]num_sections

◆ AssignSubsetsFromRaster()

void ug4Bridge::promesh::Subsets::AssignSubsetsFromRaster ( Mesh mesh,
const char *  raster_file,
int  raster_dimension,
bool  vertices,
bool  edges,
bool  faces,
bool  volumes 
)

Assigns the subset index for each element from the raster-cell in which the center of the element lies.

Parameters
[in]mesh
[in]raster_file
[in]raster_dimension
[in]vertices
[in]edges
[in]faces
[in]volumes

◆ AssignVolumeSubsetsByAspectRatio()

void ug4Bridge::promesh::Subsets::AssignVolumeSubsetsByAspectRatio ( Mesh mesh,
int  histogram_sections,
bool  erase_old_subsets 
)

Assigns subsets according to an aspect ratio histogram.

Parameters
[in]mesh
[in]histogram_sections
[in]erase_old_subsets

◆ CopySubsetIndicesToSides()

void ug4Bridge::promesh::Subsets::CopySubsetIndicesToSides ( Mesh mesh,
bool  selection_only,
bool  to_unassigned_elements_only 
)

Copies subset indices of selected elements to sides of those elements.

Parameters
[in]mesh
[in]selection_only
[in]to_unassigned_elements_only

◆ EraseEmptySubsets()

void ug4Bridge::promesh::Subsets::EraseEmptySubsets ( Mesh mesh)

Erases Subsets, which do not contain any elements at all.

Parameters
[in]mesh

◆ EraseSubset()

void ug4Bridge::promesh::Subsets::EraseSubset ( Mesh mesh,
int  subset_index,
bool  erase_geometry 
)

Erases a subset, but not its associated geometry.

Parameters
[in]mesh
[in]subset_index
[in]erase_geometry

◆ JoinSubsets()

void ug4Bridge::promesh::Subsets::JoinSubsets ( Mesh mesh,
int  target_subset_index,
int  subset_index_1,
int  subset_index_2,
bool  unnamed 
)

Joins two subsets.

Parameters
[in]mesh
[in]target_subset_index
[in]subset_index_1
[in]subset_index_2
[in]unnamed

◆ MoveSubset()

void ug4Bridge::promesh::Subsets::MoveSubset ( Mesh mesh,
int  old_subset_index,
int  new_subset_index 
)

Moves a subset to another index.

Parameters
[in]mesh
[in]old_subset_index
[in]new_subset_index

◆ SetSubsetName()

void ug4Bridge::promesh::Subsets::SetSubsetName ( Mesh mesh,
int  subset_index,
const char *  name 
)
Parameters
[in]mesh
[in]subset_index
[in]name

◆ SwapSubsets()

void ug4Bridge::promesh::Subsets::SwapSubsets ( Mesh mesh,
int  subset_index_1,
int  subset_index_2 
)

Swaps two subsets.

Parameters
[in]mesh
[in]subset_index_1
[in]subset_index_2

◆ UnassignSubsets()

void ug4Bridge::promesh::Subsets::UnassignSubsets ( Mesh mesh,
bool  unassign_vertices,
bool  unassign_edges,
bool  unassign_faces,
bool  unassign_volumes 
)

Unassigns selected elements from any subset.

Parameters
[in]mesh
[in]unassign_vertices
[in]unassign_edges
[in]unassign_faces
[in]unassign_volumes