![]() |
PRISMS-PF Manual
|
#include <FloodFiller.h>
Public Member Functions | |
| FloodFiller (dealii::FESystem< dim > &_fe, dealii::QGaussLobatto< dim > _quadrature) | |
| void | calcGrainSets (dealii::FESystem< dim > &finite_element, dealii::DoFHandler< dim > &dof_handler, dealii::LinearAlgebra::distributed::Vector< double > *solution_field, double threshold_lower, double threshold_upper, int min_id, unsigned int order_parameter_index, std::vector< GrainSet< dim > > &grain_sets) |
Protected Member Functions | |
| template<typename T > | |
| void | recursiveFloodFill (T cell, T cell_end, dealii::LinearAlgebra::distributed::Vector< double > *solution_field, double threshold_lower, double threshold_upper, int min_id, unsigned int &grain_index, std::vector< GrainSet< dim > > &grain_sets, bool &grain_assigned) |
| void | createGlobalGrainSetList (std::vector< GrainSet< dim > > &grain_sets) const |
| void | mergeSplitGrains (std::vector< GrainSet< dim > > &grain_sets) const |
Protected Attributes | |
| dealii::QGaussLobatto< dim > | quadrature |
| const unsigned int | num_quad_points |
| const unsigned int | dofs_per_cell |
| dealii::FESystem< dim > * | fe |
This class uses a recursive flood filling algorithm to find connected bodies in a field, given a threshold. The MPI communication methods are similar to those in parallelNucleationList.
|
inline |
Constructor.
| void FloodFiller< dim, degree >::calcGrainSets | ( | dealii::FESystem< dim > & | finite_element, |
| dealii::DoFHandler< dim > & | dof_handler, | ||
| dealii::LinearAlgebra::distributed::Vector< double > * | solution_field, | ||
| double | threshold_lower, | ||
| double | threshold_upper, | ||
| int | min_id, | ||
| unsigned int | order_parameter_index, | ||
| std::vector< GrainSet< dim > > & | grain_sets | ||
| ) |
The primary external interface. This method takes in information about the mesh/field and outputs a vector of GrainSet objects.
|
protected |
The method to merge the grain sets from all the processors.
|
protected |
Checks to see if grains found on different processors are parts of a larger grain. If so, it merges the grain_sets entries.
|
protected |
The actual recursive flood fill method.
|
protected |
The number of degrees of freedom per cell.
|
protected |
The deal.II finite element object, set in the constructor.
|
protected |
The number of quadrature points per cell.
|
protected |
The quadrature used to calculate the element-wise value of the solution field.