17#include <deal.II/grid/grid_tools.h>
33 const unsigned int level)
35 this->
mg_operators[level] = std::make_shared<VANSOperator<dim, MGNumber>>(
40template <
typename PropertiesIndex>
43 const std::shared_ptr<SimulationControl> &simulation_control,
46 const VectorType &time_derivative_previous_solutions,
47 const VectorType &time_derivative_void_fraction,
52 .enable_hessians_jacobian,
54 "The matrix-free VANS solver always requires the Hessian for the assembly of the matrix. Please \"set enable hessian jacobian = true\""));
58 .enable_hessians_residual,
60 "The matrix-free VANS solver always requires the Hessian for the assembly of the residual. Please \"set enable hessian residual = true\""));
75#if !DEAL_II_VERSION_GTE(9, 8, 0)
79 "The VANS matrix-free solver with the LSMG preconditioner is not "
80 "supported with deal.II 9.7 or older: the multigrid transfer of the "
81 "auxiliary (particle-projected) fields relies on the behavior of "
82 "MGTransferMatrixFree that was only fixed in deal.II 9.8 (master). "
83 "Please either build against deal.II master, or switch to the GCMG "
84 "preconditioner for this simulation."));
87 const auto &linear_solver_parameters =
94 !linear_solver_parameters.mg_use_fe_q_iso_q1,
96 "The FE_Q_iso_Q1 coarse-grid option is not supported by the VANS "
97 "matrix-free solver with the LSMG preconditioner."));
102 "Mortar coupling is not supported by the VANS matrix-free solver "
103 "with the LSMG preconditioner."));
106 linear_solver_parameters.mg_coarsening_type ==
109 "Only pure h-coarsening (set mg coarsening type = h) is currently "
110 "supported by the VANS matrix-free solver with the LSMG "
117 ->get_system_matrix_free()
120 ->get_system_matrix_free()
124 min_h_level != numbers::invalid_unsigned_int &&
125 max_h_level != numbers::invalid_unsigned_int,
127 "VANS LSMG: level operators do not expose a valid mg_level. The "
128 "base setup_GMG was likely not run in LSMG mode."));
132 "VANS LSMG: non-contiguous h-level range; only pure "
133 "h-coarsening is supported."));
141 std::make_shared<LSTransferType>();
143 std::make_shared<LSTransferType>();
150 const auto make_level_partitioner = [](
const DoFHandler<dim> &dh) {
152 vec.reinit(dh.locally_owned_mg_dofs(l),
153 DoFTools::extract_locally_relevant_level_dofs(dh, l),
154 dh.get_mpi_communicator());
160 make_level_partitioner(*particle_projector.
dof_handler));
164 make_level_partitioner(
169 make_level_partitioner(
173 make_level_partitioner(
177 make_level_partitioner(
183 MGLevelObject<MGVectorType> mg_void_fraction_solution(min_h_level,
185 MGLevelObject<MGVectorType> mg_time_derivative_void_fraction(min_h_level,
187 MGLevelObject<MGVectorType> mg_pf_forces_solution(min_h_level,
189 MGLevelObject<MGVectorType> mg_pf_drag_solution(min_h_level, max_h_level);
190 MGLevelObject<MGVectorType> mg_particle_velocity_solution(min_h_level,
192 MGLevelObject<MGVectorType> mg_momentum_transfer_coefficient_solution(
193 min_h_level, max_h_level);
199 .update_ghost_values();
201 .update_ghost_values();
203 .update_ghost_values();
207 mg_void_fraction_solution,
212 mg_time_derivative_void_fraction,
213 time_derivative_void_fraction);
218 mg_pf_forces_solution,
229 mg_particle_velocity_solution,
234 mg_momentum_transfer_coefficient_solution,
241 const unsigned int h_level =
242 this->
mg_operators[l]->get_system_matrix_free().get_mg_level();
244 mg_void_fraction_solution[h_level].update_ghost_values();
245 mg_time_derivative_void_fraction[h_level].update_ghost_values();
246 mg_pf_forces_solution[h_level].update_ghost_values();
247 mg_pf_drag_solution[h_level].update_ghost_values();
248 mg_particle_velocity_solution[h_level].update_ghost_values();
249 mg_momentum_transfer_coefficient_solution[h_level]
250 .update_ghost_values();
255 mf_operator->compute_void_fraction(
257 mg_void_fraction_solution[h_level],
258 mg_time_derivative_void_fraction[h_level]);
260 mf_operator->compute_particle_fluid_interaction(
263 mg_pf_forces_solution[h_level],
265 mg_pf_drag_solution[h_level],
267 mg_particle_velocity_solution[h_level],
269 mg_momentum_transfer_coefficient_solution[h_level]);
278 const unsigned int min_level = this->
minlevel;
279 const unsigned int max_level = this->
maxlevel;
291 for (
unsigned int l = min_level; l <= max_level; l++)
334 for (
unsigned int l = min_level; l < max_level; l++)
369 std::make_shared<MFNavierStokesVANSPreconditionGMG::GCTransferType>(
373 std::make_shared<MFNavierStokesVANSPreconditionGMG::GCTransferType>(
377 std::make_shared<MFNavierStokesVANSPreconditionGMG::GCTransferType>(
381 std::make_shared<MFNavierStokesVANSPreconditionGMG::GCTransferType>(
385 std::make_shared<MFNavierStokesVANSPreconditionGMG::GCTransferType>(
391 *particle_projector.
dof_handler, [&](
const auto l,
auto &vec) {
393 this->void_fraction_dof_handlers[l].locally_owned_dofs(),
394 DoFTools::extract_locally_active_dofs(
395 this->void_fraction_dof_handlers[l]),
396 this->void_fraction_dof_handlers[l].get_mpi_communicator());
402 [&](
const auto l,
auto &vec) {
403 vec.reinit(this->pf_force_dof_handlers[l].locally_owned_dofs(),
404 DoFTools::extract_locally_active_dofs(
405 this->pf_force_dof_handlers[l]),
406 this->pf_force_dof_handlers[l].get_mpi_communicator());
411 [&](
const auto l,
auto &vec) {
412 vec.reinit(this->pf_drag_dof_handlers[l].locally_owned_dofs(),
413 DoFTools::extract_locally_active_dofs(
414 this->pf_drag_dof_handlers[l]),
415 this->pf_drag_dof_handlers[l].get_mpi_communicator());
420 [&](
const auto l,
auto &vec) {
422 this->particle_velocity_dof_handlers[l].locally_owned_dofs(),
423 DoFTools::extract_locally_active_dofs(
424 this->particle_velocity_dof_handlers[l]),
425 this->particle_velocity_dof_handlers[l].get_mpi_communicator());
430 [&](
const auto l,
auto &vec) {
431 vec.reinit(this->momentum_transfer_coefficient_dof_handlers[l]
432 .locally_owned_dofs(),
433 DoFTools::extract_locally_active_dofs(
434 this->momentum_transfer_coefficient_dof_handlers[l]),
435 this->momentum_transfer_coefficient_dof_handlers[l]
436 .get_mpi_communicator());
440 MGLevelObject<MFNavierStokesVANSPreconditionGMG::MGVectorType>
443 MGLevelObject<MFNavierStokesVANSPreconditionGMG::MGVectorType>
446 MGLevelObject<MFNavierStokesVANSPreconditionGMG::MGVectorType>
449 MGLevelObject<MFNavierStokesVANSPreconditionGMG::MGVectorType>
452 MGLevelObject<MFNavierStokesVANSPreconditionGMG::MGVectorType>
455 MGLevelObject<MFNavierStokesVANSPreconditionGMG::MGVectorType>
456 mg_momentum_transfer_coefficient_solution(this->
minlevel,
466 mg_void_fraction_solution,
471 mg_time_derivative_void_fraction,
472 time_derivative_void_fraction);
481 mg_pf_forces_solution,
487 .update_ghost_values();
496 .update_ghost_values();
500 mg_particle_velocity_solution,
505 .update_ghost_values();
509 mg_momentum_transfer_coefficient_solution,
514 for (
unsigned int l = min_level; l <= max_level; l++)
516 mg_void_fraction_solution[l].update_ghost_values();
517 mg_time_derivative_void_fraction[l].update_ghost_values();
518 mg_pf_forces_solution[l].update_ghost_values();
519 mg_pf_drag_solution[l].update_ghost_values();
520 mg_particle_velocity_solution[l].update_ghost_values();
521 mg_momentum_transfer_coefficient_solution[l].update_ghost_values();
526 mf_operator->compute_void_fraction(
528 mg_void_fraction_solution[l],
529 mg_time_derivative_void_fraction[l]);
531 mf_operator->compute_particle_fluid_interaction(
533 mg_pf_forces_solution[l],
535 mg_pf_drag_solution[l],
537 mg_particle_velocity_solution[l],
539 mg_momentum_transfer_coefficient_solution[l]);
548 time_derivative_previous_solutions);
551template <
int dim,
typename PropertiesIndex>
560 PropertiesIndex::n_properties)
568 .void_fraction_degree,
578 ExcMessage(
"The VANS matrix-free solver does not support simplex meshes."));
584 "SDIRK time-stepping methods are not supported by the VANS matrix-free "
585 "solver. Use a BDF method instead."));
595 NotSupportedMeshAdaptationMethod());
606 unsigned int n_pbc = 0;
607 for (
auto const &[
id, type] :
614 throw std::runtime_error(
615 "GLS VANS solver does not support more than one periodic boundary condition.");
630template <
int dim,
typename PropertiesIndex>
651 DoFTools::extract_locally_relevant_dofs(
652 *this->particle_projector.dof_handler),
653 this->mpi_communicator);
680template <
int dim,
typename PropertiesIndex>
687 "The DEM coupling capabilities of the VANS solver only support 3D calculations. All of the CFD-DEM closure terms rely on the usage of 3D spherical particles and, consequently, 2D CFD-DEM simulations are currently not supported"));
694 std::string checkpoint_controller_object_filename =
695 prefix +
".checkpoint_controller";
697 "checkpoint file of the checkpoint controller, given by "
698 "'subsection void fraction' - 'set dem file name'");
699 std::ifstream iss_checkpoint_controller_obj(
700 checkpoint_controller_object_filename);
701 boost::archive::text_iarchive ia_checkpoint_controller_obj(
702 iss_checkpoint_controller_obj, boost::archive::no_header);
704 unsigned int checkpoint_id;
705 ia_checkpoint_controller_obj >> checkpoint_id;
708 prefix = prefix +
"_" + Utilities::int_to_string(checkpoint_id);
711 std::string particle_filename = prefix +
".particles";
713 "checkpoint file of the particles, given by "
714 "'subsection void fraction' - 'set dem file name'");
715 std::ifstream input(particle_filename.c_str());
718 std::getline(input, buffer);
719 std::istringstream iss(buffer);
720 boost::archive::text_iarchive ia(iss, boost::archive::no_header);
724 using DEMPropertiesIndex =
727 Particles::ParticleHandler<dim> temporary_particle_handler(
730 ia >> temporary_particle_handler;
732 const std::string filename = prefix +
".triangulation";
734 "checkpoint file of the triangulation, given by "
735 "'subsection void fraction' - 'set dem file name'");
737 if (
auto parallel_triangulation =
738 dynamic_cast<parallel::distributed::Triangulation<dim> *
>(
746 temporary_particle_handler.deserialize();
751 ExcMessage(
"Cannot open snapshot mesh file or read the"
752 "triangulation stored there."));
768 throw std::runtime_error(
769 "The VANS application currently does not support "
770 "triangulations other than parallel::distributed");
774template <
int dim,
typename PropertiesIndex>
782 if (
auto mf_operator =
792 "Calculate particle-fluid forces projection");
796 this->evaluation_point,
797 *this->previous_solutions,
798 this->cfd_dem_simulation_parameters.dem_parameters
799 .lagrangian_physical_properties.g,
801 this->simulation_control,
802 this->simulation_parameters.physical_properties_manager,
804 *this->cell_quadrature,
806 *this->face_quadrature));
808 "Calculate particle-fluid forces projection");
811 this->
computing_timer.enter_subsection(
"Prepare MF operator for VANS");
812 mf_operator->compute_particle_fluid_interaction(
816 .particle_field_solution,
823 .particle_field_solution);
824 this->
computing_timer.leave_subsection(
"Prepare MF operator for VANS");
847 this->
system_rhs.compress(VectorOperation::add);
858template <
int dim,
typename PropertiesIndex>
869template <
int dim,
typename PropertiesIndex>
870std::vector<OutputStruct<dim, LinearAlgebra::distributed::Vector<double>>>
873 std::vector<OutputStruct<dim, LinearAlgebra::distributed::Vector<double>>>
874 solution_output_structs;
879 .update_ghost_values();
881 .update_ghost_values();
883 .update_ghost_values();
885 std::vector<std::string> name = {
"void_fraction"};
886 std::vector<DataComponentInterpretation::DataComponentInterpretation>
887 component_interpretation = {
888 DataComponentInterpretation::component_is_scalar};
889 solution_output_structs.emplace_back(
895 component_interpretation);
902 if constexpr (dim > 2)
904 std::vector<std::string> force_names(dim,
"fluid_drag_on_particles");
905 std::vector<DataComponentInterpretation::DataComponentInterpretation>
906 force_component_interpretation(
907 dim, DataComponentInterpretation::component_is_part_of_vector);
909 solution_output_structs.emplace_back(
912 LinearAlgebra::distributed::Vector<double>>>,
916 force_component_interpretation);
918 std::vector<std::string> particle_velocity_names(dim,
919 "particle_velocity");
920 std::vector<DataComponentInterpretation::DataComponentInterpretation>
921 particle_velocity_component_interpretation(
922 dim, DataComponentInterpretation::component_is_part_of_vector);
924 solution_output_structs.emplace_back(
927 LinearAlgebra::distributed::Vector<double>>>,
930 particle_velocity_names,
931 particle_velocity_component_interpretation);
933 std::vector<std::string> mtc_name(1,
"momentum_transfer_coefficient");
934 std::vector<DataComponentInterpretation::DataComponentInterpretation>
935 mtc_component_interpretation(
936 1, DataComponentInterpretation::component_is_scalar);
938 solution_output_structs.emplace_back(
941 LinearAlgebra::distributed::Vector<double>>>,
944 .particle_field_solution,
946 mtc_component_interpretation);
952 Vector<float> cell_index(this->
triangulation->n_active_cells());
954 for (
const auto &cell : this->
dof_handler->active_cell_iterators())
955 if (cell->is_locally_owned())
956 cell_index(cell->active_cell_index()) =
957 cell->global_active_cell_index();
959 solution_output_structs.emplace_back(
960 std::in_place_type<OutputStructCellVector>, cell_index,
"cell_index");
963 return solution_output_structs;
966template <
int dim,
typename PropertiesIndex>
984 const Vector<double> &bdf_coefs =
1001template <
int dim,
typename PropertiesIndex>
1005 this->
computing_timer.enter_subsection(
"Read mesh, manifolds and particles");
1010 this->cfd_dem_simulation_parameters.cfd_parameters.manifolds_parameters,
1011 this->cfd_dem_simulation_parameters.cfd_parameters.restart_parameters
1013 this->cfd_dem_simulation_parameters.void_fraction->read_dem,
1014 this->cfd_dem_simulation_parameters.cfd_parameters.boundary_conditions
1015 .periodic_boundaries);
1018 this->cfd_dem_simulation_parameters.cfd_parameters.restart_parameters
1022 this->
computing_timer.leave_subsection(
"Read mesh, manifolds and particles");
1036 this->simulation_parameters.restart_parameters.restart);
1039 if (this->
multiphysics->get_active_physics().size() > 1)
1068 "Calculate time derivative previous solutions");
1076 "Calculate time derivative previous solutions");
1085 "Calculate particle-fluid projection");
1097 *this->present_solution,
1098 *this->previous_solutions,
1100 .lagrangian_physical_properties.g,
1102 this->simulation_control,
1103 this->simulation_parameters.physical_properties_manager,
1105 *this->cell_quadrature,
1107 *this->face_quadrature));
1116 "Prepare MF operator for VANS");
1118 mf_operator->compute_void_fraction(
1121 this->time_derivative_void_fraction);
1123 mf_operator->compute_particle_fluid_interaction(
1127 .particle_field_solution,
1130 .particle_field_solution,
1135 .particle_field_solution);
1157template <
int dim,
typename PropertiesIndex>
1162 std::make_shared<MFNavierStokesVANSPreconditionGMG<dim>>(
1175template <
int dim,
typename PropertiesIndex>
1181 ->template initialize<PropertiesIndex>(
unsigned int number_of_previous_solutions(const Parameters::SimulationControl::TimeSteppingMethod method)
Get the number of previous time steps for a specific BDF scheme.
SimulationParameters< dim > cfd_parameters
Dynamic flow controller that drives the average velocity of the flow towards a target value.
void print_mg_setup_times()
Prints the setup times for the geometric multigrid preconditioner.
std::shared_ptr< PhysicalPropertiesManager > physical_properties_manager
Pointer to the physical properties object.
DoFHandler< dim > dof_handler_fe_q_iso_q1
Describes the layout of DoFs for FE_Q_iso_Q1 elements.
VectorType time_derivative_previous_solutions
Vector to store the time derivatives of the previous solutions at the end of each time step for time-...
virtual void update_multiphysics_time_average_solution() override
Update the average velocity field solution in the multiphyscics interface.
std::shared_ptr< NavierStokesOperatorBase< dim, double > > system_operator
Matrix-free operator in used for all the matrix-vector multiplications calls (vmult).
std::shared_ptr< MFNavierStokesPreconditionGMGBase< dim > > gmg_preconditioner
Geometric multigrid preconditioner.
void calculate_time_derivative_previous_solutions()
Calculate and store time derivatives of previous solutions according to time-stepping scheme to use t...
FluidDynamicsMatrixFree(SimulationParameters< dim > &nsparam, const FluidDynamicsFormulation fluid_dynamics_formulation=FluidDynamicsFormulation::standard)
Constructor that sets the finite element degree and system operator according to simulation parameter...
A solver for the Volume-Averaged incompressible Navier-Stokes equations implemented in a matrix-free ...
virtual void read_dem()
Read particles arising from a DEM simulation.
void evaluate_time_derivative_void_fraction()
Evaluate the time derivative of the void fraction. This evaluates the time-derivative as a solution v...
void solve() override
Solve the problem defined by simulation parameters by iterating through time or through the mesh refi...
virtual void finish_time_step_fd()
Finish the time step and manage the end of the time step for the void fraction.
bool has_periodic_boundaries
Member variables which are used to manage boundary conditions.
void create_GMG() override
Create geometric multigrid preconditioner.
ParticleProjector< dim, PropertiesIndex > particle_projector
CFDDEMSimulationParameters< dim > cfd_dem_simulation_parameters
Simulation parameters for CFD-DEM simulations.
void setup_dofs() override
Setup the degree of freedom of the flow solver and the degrees of freedom and constraints for the voi...
FluidDynamicsVANSMatrixFree(CFDDEMSimulationParameters< dim > ¶m)
Constructor that sets the finite element degree and system operator according to simulation parameter...
Particles::ParticleHandler< dim, dim > particle_handler
Particle-handler used to store particles in CFD-DEM simulations.
void initialize_GMG() override
VectorType time_derivative_void_fraction
Vector to store the time derivative of the void fraction.
void assemble_system_rhs() override
Assembles the RHS of the VANS system of equation. This function also recalculates the particle-fluid ...
std::vector< OutputStruct< dim, LinearAlgebra::distributed::Vector< double > > > gather_output_hook() override
Add void fraction field to output files.
MappingQGeneric< dim > particle_mapping
Mapping used for the particles.
MGLevelObject< std::shared_ptr< OperatorType > > mg_operators
Level operators for the geometric multigrid.
SimulationParameters< dim > simulation_parameters
Simulation parameters.
unsigned int maxlevel
Max level of the multigrid hierarchy.
void initialize()
Initialize smoother, coarse grid solver and multigrid object needed for the geometric multigrid preco...
const DoFHandler< dim > & dof_handler
Describes the layout of DoFs and the type of FE.
unsigned int minlevel
Min level of the multigrid hierarchy.
DoFHandler< dim > dof_handler_fe_q_iso_q1
Describes the layout of DoFs for FE_Q_iso_Q1 elements.
MGLevelObject< DoFHandler< dim > > dof_handlers
DoF handlers for each of the levels of the global coarsening algorithm.
MFNavierStokesPreconditionGMG(const SimulationParameters< dim > &simulation_parameters, const DoFHandler< dim > &dof_handler, const DoFHandler< dim > &dof_handler_fe_q_iso_q1)
A geometric multigrid preconditioner implementation for incompressible VANS equations.
const CFDDEMSimulationParameters< dim > & cfd_dem_simulation_parameters
Reference to the simulation parameters.
typename MFNavierStokesPreconditionGMG< dim >::VectorType VectorType
Useful aliases to improve readability.
typename MFNavierStokesPreconditionGMG< dim >::MGVectorType MGVectorType
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers_pf_force
std::shared_ptr< GCTransferType > mg_transfer_gc_momentum_transfer_coefficient
Transfer operator for global coarsening for the particle-fluid drag.
std::shared_ptr< GCTransferType > mg_transfer_gc_void_fraction
Transfer operator for global coarsening for the void fraction.
std::shared_ptr< LSTransferType > mg_transfer_ls_momentum_transfer_coefficient
std::shared_ptr< GCTransferType > mg_transfer_gc_pf_drag
Transfer operator for global coarsening for the particle-fluid drag.
MGLevelObject< DoFHandler< dim > > momentum_transfer_coefficient_dof_handlers
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers_momentum_transfer_coefficient
void create_level_operator(const unsigned int level) override
Creates the operator on a given level.
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers_particle_velocity
std::shared_ptr< LSTransferType > mg_transfer_ls_void_fraction
MGLevelObject< DoFHandler< dim > > pf_force_dof_handlers
std::shared_ptr< LSTransferType > mg_transfer_ls_particle_velocity
MGLevelObject< DoFHandler< dim > > void_fraction_dof_handlers
std::shared_ptr< GCTransferType > mg_transfer_gc_particle_velocity
Transfer operator for global coarsening for the particle velocity.
MFNavierStokesVANSPreconditionGMG(const CFDDEMSimulationParameters< dim > ¶m, const DoFHandler< dim > &dof_handler, const DoFHandler< dim > &dof_handler_fe_q_iso_q1)
Constructor.
std::shared_ptr< GCTransferType > mg_transfer_gc_pf_force
Transfer operator for global coarsening for the particle-fluid forces.
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers_pf_drag
MGLevelObject< DoFHandler< dim > > particle_velocity_dof_handlers
std::shared_ptr< LSTransferType > mg_transfer_ls_pf_force
MGLevelObject< DoFHandler< dim > > pf_drag_dof_handlers
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers_void_fraction
std::shared_ptr< LSTransferType > mg_transfer_ls_pf_drag
std::shared_ptr< FESystem< dim > > fe
std::shared_ptr< Quadrature< dim > > cell_quadrature
virtual void set_initial_condition(const Parameters::FluidDynamicsInitialConditionType initial_condition_type, const bool restart=false)
std::shared_ptr< LinearAlgebra::distributed::Vector< double > > present_solution
LinearAlgebra::distributed::Vector< double > system_rhs
virtual void refine_mesh()
virtual void finish_time_step()
virtual void dynamic_flow_control()
SimulationParameters< dim > simulation_parameters
TimerOutput computing_timer
LinearAlgebra::distributed::Vector< double > evaluation_point
std::shared_ptr< Function< dim > > forcing_function
std::shared_ptr< SimulationControl > simulation_control
void update_boundary_conditions()
FlowControl< dim > flow_control
std::shared_ptr< MultiphysicsInterface< dim > > multiphysics
virtual void setup_dofs()
std::shared_ptr< Mapping< dim > > mapping
std::shared_ptr< DoFHandler< dim > > dof_handler
std::shared_ptr< parallel::DistributedTriangulationBase< dim > > triangulation
virtual void postprocess(bool first_iteration)
Class that stores the information required by the assembly procedure for a Navier-Stokes equation....
std::shared_ptr< DoFHandler< dim > > dof_handler
LinearAlgebra::distributed::Vector< double > particle_field_solution
deal.II vector for the particle field solution.
Particle information projection. This class manages the calculation of the projection of the particle...
std::shared_ptr< DoFHandler< dim > > dof_handler
ParticleFieldQCM< dim, 3, PropertiesIndex::fem_force_two_way_coupling_x > fluid_force_on_particles_two_way_coupling
ParticleFieldQCM< dim, 1, PropertiesIndex::momentum_transfer_coefficient > momentum_transfer_coefficient
LinearAlgebra::distributed::Vector< double > void_fraction_solution
deal.II vector for the void fraction
ParticleFieldQCM< dim, 3, PropertiesIndex::v_x > particle_velocity
ParticleFieldQCM< dim, 3, PropertiesIndex::fem_drag_x > fluid_drag_on_particles
Implements the matrix-free operator for the VANS equations.
void check_file_exists(const std::string &file_name, const std::string &file_description)
Verify that a file that Lethe must read exists and can be opened, and raise an error stated in the us...
DEM particle property definitions and output name management.
void read_mesh_and_manifolds(parallel::DistributedTriangulationBase< dim, spacedim > &triangulation, const Parameters::Mesh< dim, spacedim > &mesh_parameters, const Parameters::Manifolds &manifolds_parameters, bool restart, const Parameters::PeriodicBoundaries &periodic_boundaries)
Completely sets up a mesh and its manifolds.
FluidDynamicsFormulation
Formulation of the fluid dynamics equations solved by a Navier-Stokes solver.
@ VANS
Volume-averaged Navier-Stokes (VANS) equations.
PhysicsID
Unique identifiers for each physics module in Lethe.
@ fluid_dynamics
Fluid Dynamics (Velocity,Pressure).
PropertiesIndex
Particle property indices for CFD-DEM multiphysics simulations.
PropertiesIndex
Particle property indices for CFD-DEM simulations.
constexpr bool has_thermal_properties
Whether a properties index set carries thermal properties.
std::conditional_t< has_thermal_properties< PropertiesIndex >, DEMMPProperties::PropertiesIndex, DEMProperties::PropertiesIndex > matching_dem_properties_index
The pure DEM index set matching a given index set.
@ fully_implicit
Fully implicit drag coupling.
void convert_particle_handler(const parallel::distributed::Triangulation< dim > &triangulation, const Particles::ParticleHandler< dim > &ph_in, Particles::ParticleHandler< dim > &ph_out)
Converts an input particle handler with a given set of input properties into an output particle handl...
Struct containing information about the solution output. It is used to pass all the information requi...
@ lsmg
Local-Smoothing Geometric Multigrid.
@ gcmg
Global-Coarsening Multigrid.
bool time_stepping_is_bdf(const Parameters::SimulationControl::TimeSteppingMethod method)
Determines if the time integration method is within the bdf family.
bool time_stepping_is_sdirk(const Parameters::SimulationControl::TimeSteppingMethod method)
Determines if the time integration method is within the sdirk family.