Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
ParticleProjector< dim, PropertiesIndex > Class Template Reference

#include <particle_projector.h>

Inheritance diagram for ParticleProjector< dim, PropertiesIndex >:
[legend]

Public Member Functions

 ParticleProjector (parallel::DistributedTriangulationBase< dim > *triangulation, std::shared_ptr< Parameters::VoidFractionParameters< dim > > input_parameters, const Parameters::LinearSolver &linear_solver_parameters, Particles::ParticleHandler< dim > *particle_handler, const unsigned int fe_degree, const bool simplex, const ConditionalOStream &pcout)
void setup_dofs () override
void enable_multigrid_level_dofs (const bool enabled=true)
void setup_constraints (const BoundaryConditions::FluidDynamicsBoundaryConditions< dim > &boundary_conditions)
void calculate_void_fraction (const double time)
void calculate_particle_temperature_projection ()
template<typename VectorType>
void calculate_particle_fluid_forces_projection (const Parameters::CFDDEM &cfd_dem_parameters, DoFHandler< dim > &fluid_dof_handler, const VectorType &present_velocity_pressure_solution, const std::vector< VectorType > &previous_velocity_pressure_solution, const Tensor< 1, 3 > &gravity, NavierStokesScratchData< dim > scratch_data)
void solve () override
void percolate_void_fraction ()
void initialize_void_fraction (const double time)
template<int property_start_index, int n_components>
void calculate_field_projection (ParticleFieldQCM< dim, property_start_index, n_components > &field_qcm)
void zero_out_and_ghost_auxiliary_fields ()
void write_qcm_quadrature_points (const std::string &folder, const std::string &prefix, const unsigned int group_files)
template<int n_components, int property_start_index>
void calculate_field_projection (ParticleFieldQCM< dim, n_components, property_start_index > &field_qcm)
Public Member Functions inherited from PhysicsLinearSubequationsSolver
 PhysicsLinearSubequationsSolver (const ConditionalOStream &pcout)
virtual ~PhysicsLinearSubequationsSolver ()=default

Public Attributes

std::shared_ptr< DoFHandler< dim > > dof_handler
std::shared_ptr< Mapping< dim > > mapping
std::shared_ptr< Quadrature< dim > > quadrature
std::shared_ptr< std::vector< GlobalVectorType > > previous_void_fraction
std::shared_ptr< GlobalVectorType > void_fraction_locally_relevant
GlobalVectorType void_fraction_locally_owned
LinearAlgebra::distributed::Vector< double > void_fraction_solution
std::vector< LinearAlgebra::distributed::Vector< double > > void_fraction_previous_solution
std::shared_ptr< FiniteElement< dim > > fe
IndexSet locally_owned_dofs
IndexSet locally_relevant_dofs
AffineConstraints< double > void_fraction_constraints
ParticleFieldQCM< dim, 3, PropertiesIndex::v_x > particle_velocity
ParticleFieldQCM< dim, 1, DEM::temperature_property_index< PropertiesIndex > > particle_temperature
std::shared_ptr< GlobalVectorType > particle_temperature_locally_relevant
ParticleFieldQCM< dim, 3, PropertiesIndex::fem_force_two_way_coupling_x > fluid_force_on_particles_two_way_coupling
ParticleFieldQCM< dim, 3, PropertiesIndex::fem_drag_x > fluid_drag_on_particles
ParticleFieldQCM< dim, 1, PropertiesIndex::momentum_transfer_coefficient > momentum_transfer_coefficient

Private Member Functions

double calculate_filter_length_from_cell_measure (const double cell_measure)
void calculate_void_fraction_function (const double time)
void calculate_void_fraction_particle_centered_method ()
void calculate_void_fraction_satellite_point_method ()
void calculate_void_fraction_quadrature_centered_method ()
template<Parameters::QCMFilterType filter_type>
void calculate_void_fraction_qcm_impl ()
template<Parameters::QCMFilterType filter_type, int n_components, int property_start_index>
void calculate_field_projection_impl (ParticleFieldQCM< dim, n_components, property_start_index > &field_qcm)
virtual void solve_linear_system_and_update_solution () override
Tensor< 1, dim > get_periodic_offset_distance (unsigned int boundary_id) const

Static Private Member Functions

static double radius_sphere_equivalent_volume (const double volume)
static double calculate_intersection_measure (double r_particle, double r_sphere, double distance_between_spheres)
template<Parameters::QCMFilterType filter_type>
static double evaluate_filter (const double r_particle, const double filter_length, const double distance)

Private Attributes

parallel::DistributedTriangulationBase< dim > * triangulation
std::shared_ptr< Parameters::VoidFractionParameters< dim > > void_fraction_parameters
const Parameters::LinearSolver linear_solver_parameters
Particles::ParticleHandler< dim > * particle_handler
std::shared_ptr< TrilinosWrappers::PreconditionILU > ilu_preconditioner
TrilinosWrappers::SparseMatrix system_matrix_void_fraction
GlobalVectorType system_rhs_void_fraction
std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > vertices_to_cell
bool has_periodic_boundaries
std::map< types::boundary_id, Tensor< 1, dim > > cfd_periodic_offsets
std::map< types::boundary_id, unsigned int > cfd_periodic_directions
std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > vertices_to_periodic_cell
const double l2_smoothing_factor
bool particle_have_been_projected
bool multigrid_level_dofs_required = false

Additional Inherited Members

Protected Attributes inherited from PhysicsLinearSubequationsSolver
const ConditionalOStream pcout

Detailed Description

template<int dim, typename PropertiesIndex>
class ParticleProjector< dim, PropertiesIndex >

Particle information projection. This class manages the calculation of the projection of the particle fields onto a triangulation. Its main use is the calculation of the void fraction which is used as an auxiliary field for the solvers that solve the Volume-Averaged Navier-Stokes equations. The present architecture of the class support all of the different void fraction calculation methods within a single class instead of building a class hierarchy. This is because there are only a few void fraction calculation strategies.

Using QCM, this class is also capable of projecting arbitrary fields belonging to the particle back onto the mesh by instantiating @ParticleFieldQCM class.

Template Parameters
dimAn integer that denotes the number of spatial dimensions.
PropertiesIndexIndex of the properties used within the ParticleHandler.

Definition at line 279 of file particle_projector.h.

Constructor & Destructor Documentation

◆ ParticleProjector()

template<int dim, typename PropertiesIndex>
ParticleProjector< dim, PropertiesIndex >::ParticleProjector ( parallel::DistributedTriangulationBase< dim > * triangulation,
std::shared_ptr< Parameters::VoidFractionParameters< dim > > input_parameters,
const Parameters::LinearSolver & linear_solver_parameters,
Particles::ParticleHandler< dim > * particle_handler,
const unsigned int fe_degree,
const bool simplex,
const ConditionalOStream & pcout )
inline

Constructor for the void fraction calculator.

Parameters
triangulationThe triangulation on which the simulation is being done.
input_parametersThe parameters for the void fraction calculation.
linear_solver_parametersThe parameters for the linear solver. This is used to solve the L2 projection of the void fraction
particle_handlerThe particle handler used to manage the particles in the simulation. This object must be provided even if the particles are not used to establish the void fraction.
fe_degreeThe finite element degree used to interpolate the void fraction.
simplexA flag to indicate if the simulations are being done with simplex elements.
pcoutThe ConditionalOStream used to print the information.

Definition at line 293 of file particle_projector.h.

References dof_handler, fe, fluid_drag_on_particles, fluid_force_on_particles_two_way_coupling, Parameters::gauss, Parameters::gauss_lobatto, DEM::has_thermal_properties, linear_solver_parameters, mapping, momentum_transfer_coefficient, particle_handler, particle_have_been_projected, particle_temperature, particle_temperature_locally_relevant, particle_velocity, PhysicsLinearSubequationsSolver::pcout, PhysicsLinearSubequationsSolver::PhysicsLinearSubequationsSolver(), previous_void_fraction, Parameters::qcm, quadrature, triangulation, void_fraction_locally_relevant, and void_fraction_parameters.

Member Function Documentation

◆ calculate_field_projection() [1/2]

template<int dim, typename PropertiesIndex>
template<int n_components, int property_start_index>
void ParticleProjector< dim, PropertiesIndex >::calculate_field_projection ( ParticleFieldQCM< dim, n_components, property_start_index > & field_qcm)

◆ calculate_field_projection() [2/2]

template<int dim, typename PropertiesIndex>
template<int property_start_index, int n_components>
void ParticleProjector< dim, PropertiesIndex >::calculate_field_projection ( ParticleFieldQCM< dim, property_start_index, n_components > & field_qcm)

Calculates the projection of a particle field onto the mesh.

Template Parameters
property_start_indexAn integer for the particle_property that will be projected
n_componentsThe number of components of the field. This should be either 1 (scalar) or dim (a Tensor<1,dim>).
Parameters
field_qcmThe container for the field that will be projected.

◆ calculate_field_projection_impl()

template<int dim, typename PropertiesIndex>
template<Parameters::QCMFilterType filter_type, int n_components, int property_start_index>
void ParticleProjector< dim, PropertiesIndex >::calculate_field_projection_impl ( ParticleFieldQCM< dim, n_components, property_start_index > & field_qcm)
private

◆ calculate_filter_length_from_cell_measure()

template<int dim, typename PropertiesIndex>
double ParticleProjector< dim, PropertiesIndex >::calculate_filter_length_from_cell_measure ( const double cell_measure)
inlineprivate

Calculate the characteristic length of the QCM filter from a cell measure.

The returned length is the averaging-sphere radius when the spherical filter is used, and the standard deviation sigma when the gaussian filter is used. The cell-measure-to-length mapping itself does not depend on the filter type.

Parameters
cell_measureThe measure of the cell in which QCM is calculated.
Returns
The QCM filter characteristic length used in the calculations.

Definition at line 636 of file particle_projector.h.

References radius_sphere_equivalent_volume(), and void_fraction_parameters.

◆ calculate_intersection_measure()

template<int dim, typename PropertiesIndex>
double ParticleProjector< dim, PropertiesIndex >::calculate_intersection_measure ( double r_particle,
double r_sphere,
double distance_between_spheres )
inlinestaticprivate

Calculate the intersection measure (volume in 3D and area in 2D) between a particle and an hypersphere. This is used when calculating the intersection volume between the averaging sphere and a particle in QCM. The calculation inherently assumes that the radius of the averaging sphere is larger than that of the particle.

Parameters
r_particleThe radius of the particle
r_sphereThe radius of the averaging sphere
distance_between_spheresThe distance between the centers of the spheres
Returns
The intersection volume (in 3D) or area (in 2d)

Definition at line 666 of file particle_projector.h.

References particle_circle_intersection_2d(), and particle_sphere_intersection_3d().

◆ calculate_particle_fluid_forces_projection()

template<int dim, typename PropertiesIndex>
template<typename VectorType>
template void ParticleProjector< dim, PropertiesIndex >::calculate_particle_fluid_forces_projection ( const Parameters::CFDDEM & cfd_dem_parameters,
DoFHandler< dim > & fluid_dof_handler,
const VectorType & present_velocity_pressure_solution,
const std::vector< VectorType > & previous_velocity_pressure_solution,
const Tensor< 1, 3 > & gravity,
NavierStokesScratchData< dim > scratch_data )

◆ calculate_particle_temperature_projection()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::calculate_particle_temperature_projection ( )

Project the particle temperature onto the fluid mesh with the QCM, then copy it into particle_temperature_locally_relevant, the vector provided to the multiphysics interface.

Definition at line 329 of file particle_projector.cc.

References calculate_field_projection(), calculate_particle_temperature_projection(), convert_vector_dealii_to_trilinos(), DEM::has_thermal_properties, particle_temperature, and particle_temperature_locally_relevant.

◆ calculate_void_fraction()

◆ calculate_void_fraction_function()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::calculate_void_fraction_function ( const double time)
private

Calculate the void fraction using a function. This is a straightforward usage of VectorTools.

Parameters
[in]timeCurrent time for which the void fraction is to be calculated.

Definition at line 362 of file particle_projector.cc.

References convert_vector_trilinos_to_dealii(), dof_handler, mapping, void_fraction_locally_owned, void_fraction_locally_relevant, void_fraction_parameters, and void_fraction_solution.

◆ calculate_void_fraction_particle_centered_method()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::calculate_void_fraction_particle_centered_method ( )
private

Calculate the void fraction using the particle centered method.

Definition at line 392 of file particle_projector.cc.

References dof_handler, fe, l2_smoothing_factor, mapping, particle_handler, quadrature, system_matrix_void_fraction, system_rhs_void_fraction, and void_fraction_constraints.

◆ calculate_void_fraction_qcm_impl()

template<int dim, typename PropertiesIndex>
template<Parameters::QCMFilterType filter_type>
void ParticleProjector< dim, PropertiesIndex >::calculate_void_fraction_qcm_impl ( )
private

Templated implementation of the Quadrature-Centered Method (QCM).

Template Parameters
filter_typeThe QCM filter type used to weigh particle contributions. Selected at runtime by the public dispatcher.

Definition at line 761 of file particle_projector.cc.

References calculate_filter_length_from_cell_measure(), cfd_periodic_directions, cfd_periodic_offsets, dof_handler, evaluate_filter(), fe, LetheGridTools::find_cells_around_cell(), l2_smoothing_factor, mapping, particle_handler, quadrature, system_matrix_void_fraction, system_rhs_void_fraction, vertices_to_cell, vertices_to_periodic_cell, void_fraction_constraints, and void_fraction_parameters.

◆ calculate_void_fraction_quadrature_centered_method()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::calculate_void_fraction_quadrature_centered_method ( )
private

Calculate the void fraction using the Quadrature-Centered Method (QCM).

Thin dispatcher that selects the filter kernel at runtime and forwards to the templated implementation calculate_void_fraction_qcm_impl.

Definition at line 740 of file particle_projector.cc.

References calculate_void_fraction_qcm_impl(), Parameters::gaussian, Parameters::spherical, and void_fraction_parameters.

◆ calculate_void_fraction_satellite_point_method()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::calculate_void_fraction_satellite_point_method ( )
private

◆ enable_multigrid_level_dofs()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::enable_multigrid_level_dofs ( const bool enabled = true)
inline

Request that all DoFHandlers managed by this projector also distribute multigrid level DoFs the next time setup_dofs() is called. This is required by the local-smoothing multigrid (LSMG) preconditioner of the VANS matrix-free solver, which needs the auxiliary fields on every triangulation level. Must be called before setup_dofs().

Parameters
[in]enabledIf true, distribute_mg_dofs() will be called on the void-fraction DoFHandler and on every ParticleFieldQCM DoFHandler.

Definition at line 412 of file particle_projector.h.

References fluid_drag_on_particles, fluid_force_on_particles_two_way_coupling, momentum_transfer_coefficient, multigrid_level_dofs_required, and particle_velocity.

◆ evaluate_filter()

template<int dim, typename PropertiesIndex>
template<Parameters::QCMFilterType filter_type>
double ParticleProjector< dim, PropertiesIndex >::evaluate_filter ( const double r_particle,
const double filter_length,
const double distance )
inlinestaticprivate

Evaluate the QCM filter kernel selected at compile time.

Dispatches between the spherical indicator kernel (calculate_intersection_measure) and the Gaussian kernel (gaussian_filter_kernel) without runtime branching in the inner loop.

Template Parameters
filter_typeThe QCM filter type to evaluate.
Parameters
[in]r_particleRadius of the particle.
[in]filter_lengthCharacteristic length of the filter (averaging sphere radius for spherical, standard deviation sigma for gaussian).
[in]distanceDistance between the particle center and the evaluation point.

Definition at line 716 of file particle_projector.h.

References calculate_intersection_measure(), Parameters::gaussian, gaussian_filter_kernel(), and Parameters::spherical.

◆ get_periodic_offset_distance()

template<int dim, typename PropertiesIndex>
Tensor< 1, dim > ParticleProjector< dim, PropertiesIndex >::get_periodic_offset_distance ( unsigned int boundary_id) const
inlineprivate

Calculate and return the periodic offset distance vector of the domain which is needed for the periodic boundary conditions using the QCM or SPM for void fraction with the GLS VANS/CFD-DEM solver. The distance is based on one of the periodic boundaries. This periodic boundary is then used as the reference for all particle locations shifted by this offset vector.

Parameters
[in]boundary_idThe ID of one of the periodic boundaries
Returns
The periodic offset vector.

Definition at line 812 of file particle_projector.h.

References triangulation.

◆ initialize_void_fraction()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::initialize_void_fraction ( const double time)
inline

Initialize the void fraction at the beginning of a simulation.

Parameters
[in]timeThe current time. This is used for time-dependent functions.

Definition at line 504 of file particle_projector.h.

References calculate_void_fraction(), previous_void_fraction, void_fraction_locally_relevant, void_fraction_previous_solution, and void_fraction_solution.

◆ percolate_void_fraction()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::percolate_void_fraction ( )
inline

Percolate the time vector for the void fraction. This operation is called at the end of a time step. It percolates both the deal.II and the Trilinos vectors.

TODO - Refactor the ParticleProjector class to use deal.II vectors for everything instead of a blend of Trilinos and deal.II vector.

Definition at line 484 of file particle_projector.h.

References previous_void_fraction, void_fraction_locally_relevant, void_fraction_previous_solution, and void_fraction_solution.

◆ radius_sphere_equivalent_volume()

template<int dim, typename PropertiesIndex>
double ParticleProjector< dim, PropertiesIndex >::radius_sphere_equivalent_volume ( const double volume)
inlinestaticprivate

Calculate the characteristic radius of a sphere with a given volume (area in 2D): R = (2*dim*V/pi)^(1/dim) / 2.

Parameters
volumevalue for which the equivalent radius of a sphere is calculated.
Returns
Radius of a sphere with equivalent volume

Definition at line 617 of file particle_projector.h.

◆ setup_constraints()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::setup_constraints ( const BoundaryConditions::FluidDynamicsBoundaryConditions< dim > & boundary_conditions)

Establish the constraints of the void fraction systems.

Parameters
[in]boundary_conditionsThe boundary conditions of fluid dynamics. This is used to establish periodic boundary conditions for the void fraction.

Definition at line 212 of file particle_projector.cc.

References cfd_periodic_directions, cfd_periodic_offsets, dof_handler, get_periodic_offset_distance(), has_periodic_boundaries, DEM::has_thermal_properties, locally_relevant_dofs, BoundaryConditions::periodic, BoundaryConditions::BoundaryConditions< BoundaryType >::periodic_boundaries, Parameters::qcm, Parameters::spm, BoundaryConditions::BoundaryConditions< BoundaryType >::type, void_fraction_constraints, and void_fraction_parameters.

◆ setup_dofs()

◆ solve()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::solve ( )
inlineoverridevirtual

Assemble and solve the system.

Implements PhysicsSubequationsSolverBase.

Definition at line 473 of file particle_projector.h.

◆ solve_linear_system_and_update_solution()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::solve_linear_system_and_update_solution ( )
overrideprivatevirtual

◆ write_qcm_quadrature_points()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::write_qcm_quadrature_points ( const std::string & folder,
const std::string & prefix,
const unsigned int group_files )

Write the location of the QCM quadrature points and the radius of the filter centered at each of them for visualization.

Parameters
[in]folderOutput folder.
[in]prefixPrefix for the output files.
[in]group_filesNumber of files the output is grouped into.

Definition at line 2049 of file particle_projector.cc.

References QuadraturePointsDataOut< dim >::build_patches(), calculate_filter_length_from_cell_measure(), dof_handler, mapping, quadrature, triangulation, void_fraction_parameters, and write_vtu_and_pvd().

◆ zero_out_and_ghost_auxiliary_fields()

template<int dim, typename PropertiesIndex>
void ParticleProjector< dim, PropertiesIndex >::zero_out_and_ghost_auxiliary_fields ( )
inline

Zeros out and update the ghost values of the auxiliary fields. This is necessary when the void fraction calculation mode does not rely on particles.

Definition at line 537 of file particle_projector.h.

References fluid_drag_on_particles, fluid_force_on_particles_two_way_coupling, momentum_transfer_coefficient, and particle_velocity.

Member Data Documentation

◆ cfd_periodic_directions

template<int dim, typename PropertiesIndex>
std::map<types::boundary_id, unsigned int> ParticleProjector< dim, PropertiesIndex >::cfd_periodic_directions
private

Map of directions associated with periodic boundary conditions.

Definition at line 900 of file particle_projector.h.

◆ cfd_periodic_offsets

template<int dim, typename PropertiesIndex>
std::map<types::boundary_id, Tensor<1, dim> > ParticleProjector< dim, PropertiesIndex >::cfd_periodic_offsets
private

Map of offsets for periodic boundary conditions.

Definition at line 897 of file particle_projector.h.

◆ dof_handler

template<int dim, typename PropertiesIndex>
std::shared_ptr<DoFHandler<dim> > ParticleProjector< dim, PropertiesIndex >::dof_handler

DoFHandler that manages the void fraction, it is a shared pointer because it is used by the multiphysics interface

Definition at line 565 of file particle_projector.h.

◆ fe

template<int dim, typename PropertiesIndex>
std::shared_ptr<FiniteElement<dim> > ParticleProjector< dim, PropertiesIndex >::fe

Finite element for the void fraction.

Definition at line 593 of file particle_projector.h.

◆ fluid_drag_on_particles

template<int dim, typename PropertiesIndex>
ParticleFieldQCM<dim, 3, PropertiesIndex::fem_drag_x> ParticleProjector< dim, PropertiesIndex >::fluid_drag_on_particles

Projector used to store the drag force. The drag is stored as a separate field since we may want to make implicit calculations of it. This field is volumetric. The integral of this field over the entire domain will result in the sum of the drag force over all the particles.

Definition at line 956 of file particle_projector.h.

◆ fluid_force_on_particles_two_way_coupling

template<int dim, typename PropertiesIndex>
ParticleFieldQCM<dim, 3, PropertiesIndex::fem_force_two_way_coupling_x> ParticleProjector< dim, PropertiesIndex >::fluid_force_on_particles_two_way_coupling

Projector used to save the forces used in the two-way coupling scheme, without drag. This field is volumetric. The integral of this field over the entire domain will result in the sum of the force (without drag) over all of the particles.

Definition at line 950 of file particle_projector.h.

◆ has_periodic_boundaries

template<int dim, typename PropertiesIndex>
bool ParticleProjector< dim, PropertiesIndex >::has_periodic_boundaries
private

Boolean to indicate if the mesh has periodic boundaries.

Definition at line 894 of file particle_projector.h.

◆ ilu_preconditioner

template<int dim, typename PropertiesIndex>
std::shared_ptr<TrilinosWrappers::PreconditionILU> ParticleProjector< dim, PropertiesIndex >::ilu_preconditioner
private

Preconditioner used for the solution of the smoothed L2 projection of the void fraction

Definition at line 877 of file particle_projector.h.

◆ l2_smoothing_factor

template<int dim, typename PropertiesIndex>
const double ParticleProjector< dim, PropertiesIndex >::l2_smoothing_factor
private
Initial value:
=
Utilities::fixed_power<2>(void_fraction_parameters->l2_smoothing_length)
std::shared_ptr< Parameters::VoidFractionParameters< dim > > void_fraction_parameters

Smoothing length factor for the void fraction calculation.

Definition at line 909 of file particle_projector.h.

◆ linear_solver_parameters

template<int dim, typename PropertiesIndex>
const Parameters::LinearSolver ParticleProjector< dim, PropertiesIndex >::linear_solver_parameters
private

Linear solvers for the calculation of the void fraction.

Definition at line 869 of file particle_projector.h.

◆ locally_owned_dofs

template<int dim, typename PropertiesIndex>
IndexSet ParticleProjector< dim, PropertiesIndex >::locally_owned_dofs

Index set for the locally owned degree of freedoms.

Definition at line 596 of file particle_projector.h.

◆ locally_relevant_dofs

template<int dim, typename PropertiesIndex>
IndexSet ParticleProjector< dim, PropertiesIndex >::locally_relevant_dofs

Index set for the locally relevant degree of freedoms.

Definition at line 599 of file particle_projector.h.

◆ mapping

template<int dim, typename PropertiesIndex>
std::shared_ptr<Mapping<dim> > ParticleProjector< dim, PropertiesIndex >::mapping

Mapping for the void fraction.

Definition at line 568 of file particle_projector.h.

◆ momentum_transfer_coefficient

template<int dim, typename PropertiesIndex>
ParticleFieldQCM<dim, 1, PropertiesIndex::momentum_transfer_coefficient> ParticleProjector< dim, PropertiesIndex >::momentum_transfer_coefficient

Projector used to save the momentum transfer coefficient (beta). This field is volumetric. The integral of this field over the entire domain will result in the sum of the momentum transfer coefficient over all particles.

Definition at line 963 of file particle_projector.h.

◆ multigrid_level_dofs_required

template<int dim, typename PropertiesIndex>
bool ParticleProjector< dim, PropertiesIndex >::multigrid_level_dofs_required = false
private

When set, setup_dofs() will additionally call distribute_mg_dofs() on the void-fraction DoFHandler. This is required by local-smoothing multigrid (LSMG) of the VANS matrix-free solver. The flag is propagated to every ParticleFieldQCM by enable_multigrid_level_dofs().

Definition at line 921 of file particle_projector.h.

◆ particle_handler

template<int dim, typename PropertiesIndex>
Particles::ParticleHandler<dim>* ParticleProjector< dim, PropertiesIndex >::particle_handler
private

Particle handler used when the void fraction depends on particles.

Definition at line 872 of file particle_projector.h.

◆ particle_have_been_projected

template<int dim, typename PropertiesIndex>
bool ParticleProjector< dim, PropertiesIndex >::particle_have_been_projected
private

Boolean indicator used to check if the particles have at least been projected once. This is mainly used for assertions and sanity checking purposes

Definition at line 915 of file particle_projector.h.

◆ particle_temperature

template<int dim, typename PropertiesIndex>
ParticleFieldQCM<dim, 1, DEM::temperature_property_index<PropertiesIndex> > ParticleProjector< dim, PropertiesIndex >::particle_temperature

Projector used to save the particle temperature field onto the mesh This field is not volumetric, meaning that the integral over the entire domain of this field will not yield the sum of the particle temperature over all the particles. The particle temperature is only projected if the particle properties have thermal properties (for dem_mp simulations). Otherwise, its index is set to -1 and the field is not projected.

Definition at line 938 of file particle_projector.h.

◆ particle_temperature_locally_relevant

template<int dim, typename PropertiesIndex>
std::shared_ptr<GlobalVectorType> ParticleProjector< dim, PropertiesIndex >::particle_temperature_locally_relevant

Copy of the projected particle temperature, including the locally relevant ghost values, in the vector type of the multiphysics interface. It is a shared pointer because it is used by the multiphysics interface.

Definition at line 943 of file particle_projector.h.

◆ particle_velocity

template<int dim, typename PropertiesIndex>
ParticleFieldQCM<dim, 3, PropertiesIndex::v_x> ParticleProjector< dim, PropertiesIndex >::particle_velocity

Projector used to save the particle velocity field onto the mesh This field is not volumetric, meaning that the integral over the entire domain of this field will not yield the sum of the particle velocity over all the particles.

Definition at line 928 of file particle_projector.h.

◆ previous_void_fraction

template<int dim, typename PropertiesIndex>
std::shared_ptr<std::vector<GlobalVectorType> > ParticleProjector< dim, PropertiesIndex >::previous_void_fraction

The solutions are made public instead of using getters Solution of the void fraction at previous time steps, it is a shared pointer because it is used by the multiphysics interface

Definition at line 576 of file particle_projector.h.

◆ quadrature

template<int dim, typename PropertiesIndex>
std::shared_ptr<Quadrature<dim> > ParticleProjector< dim, PropertiesIndex >::quadrature

Quadrature for the void fraction.

Definition at line 571 of file particle_projector.h.

◆ system_matrix_void_fraction

template<int dim, typename PropertiesIndex>
TrilinosWrappers::SparseMatrix ParticleProjector< dim, PropertiesIndex >::system_matrix_void_fraction
private

System matrix used to assemble the smoothed L2 projection of the void fraction

Definition at line 881 of file particle_projector.h.

◆ system_rhs_void_fraction

template<int dim, typename PropertiesIndex>
GlobalVectorType ParticleProjector< dim, PropertiesIndex >::system_rhs_void_fraction
private

Right-hand side used to assemble the smoothed L2 projection of the void fraction

Definition at line 885 of file particle_projector.h.

◆ triangulation

template<int dim, typename PropertiesIndex>
parallel::DistributedTriangulationBase<dim>* ParticleProjector< dim, PropertiesIndex >::triangulation
private

Triangulation.

Definition at line 859 of file particle_projector.h.

◆ vertices_to_cell

template<int dim, typename PropertiesIndex>
std::map<unsigned int, std::set<typename DoFHandler<dim>::active_cell_iterator> > ParticleProjector< dim, PropertiesIndex >::vertices_to_cell
private

Vertices to cell map, this is used in the QCM and the satellite point method to access the neighboring cells of a cell.

Definition at line 891 of file particle_projector.h.

◆ vertices_to_periodic_cell

template<int dim, typename PropertiesIndex>
std::map<unsigned int, std::set<typename DoFHandler<dim>::active_cell_iterator> > ParticleProjector< dim, PropertiesIndex >::vertices_to_periodic_cell
private

Vertices to periodic cell map, this is used in the QCM and the satellite point method to access the neighboring cells of a cell.

Definition at line 906 of file particle_projector.h.

◆ void_fraction_constraints

template<int dim, typename PropertiesIndex>
AffineConstraints<double> ParticleProjector< dim, PropertiesIndex >::void_fraction_constraints

Constraints used for the boundary conditions of the void fraction. Currently, this is only used to establish periodic void fractions. This object has to be made public because the boundary conditions are set outside of the object for now.

Definition at line 605 of file particle_projector.h.

◆ void_fraction_locally_owned

template<int dim, typename PropertiesIndex>
GlobalVectorType ParticleProjector< dim, PropertiesIndex >::void_fraction_locally_owned

Locally owned solution of the void fraction.

Definition at line 583 of file particle_projector.h.

◆ void_fraction_locally_relevant

template<int dim, typename PropertiesIndex>
std::shared_ptr<GlobalVectorType> ParticleProjector< dim, PropertiesIndex >::void_fraction_locally_relevant

Fully distributed (including locally relevant) solution, it is a shared pointer because it is used by the multiphysics interface

Definition at line 580 of file particle_projector.h.

◆ void_fraction_parameters

template<int dim, typename PropertiesIndex>
std::shared_ptr<Parameters::VoidFractionParameters<dim> > ParticleProjector< dim, PropertiesIndex >::void_fraction_parameters
private

Parameters for the calculation of the void fraction Right now this is used for the VANS matrix-free solver to directly calculate the void fraction from the function itself. The function will be removed back to private in a future PR.

Definition at line 866 of file particle_projector.h.

◆ void_fraction_previous_solution

template<int dim, typename PropertiesIndex>
std::vector<LinearAlgebra::distributed::Vector<double> > ParticleProjector< dim, PropertiesIndex >::void_fraction_previous_solution

deal.II vector the previous void fraction

Definition at line 590 of file particle_projector.h.

◆ void_fraction_solution

template<int dim, typename PropertiesIndex>
LinearAlgebra::distributed::Vector<double> ParticleProjector< dim, PropertiesIndex >::void_fraction_solution

deal.II vector for the void fraction

Definition at line 586 of file particle_projector.h.


The documentation for this class was generated from the following files: