14#include <deal.II/base/work_stream.h>
17template <
int dim,
typename PropertiesIndex>
26 PropertiesIndex::n_properties)
34 .void_fraction_degree,
47 NotSupportedMeshAdaptationMethod());
57 unsigned int n_pbc = 0;
58 for (
auto const &[
id, type] :
65 throw std::runtime_error(
66 "GLS VANS solver does not support more than one periodic boundary condition.");
76template <
int dim,
typename PropertiesIndex>
82template <
int dim,
typename PropertiesIndex>
117template <
int dim,
typename PropertiesIndex>
128template <
int dim,
typename PropertiesIndex>
136 std::string checkpoint_controller_object_filename =
137 prefix +
".checkpoint_controller";
139 "checkpoint file of the checkpoint controller, given by "
140 "'subsection void fraction' - 'set dem file name'");
141 std::ifstream iss_checkpoint_controller_obj(
142 checkpoint_controller_object_filename);
143 boost::archive::text_iarchive ia_checkpoint_controller_obj(
144 iss_checkpoint_controller_obj, boost::archive::no_header);
146 unsigned int checkpoint_id;
147 ia_checkpoint_controller_obj >> checkpoint_id;
150 prefix = prefix +
"_" + Utilities::int_to_string(checkpoint_id);
153 std::string particle_filename = prefix +
".particles";
155 "checkpoint file of the particles, given by "
156 "'subsection void fraction' - 'set dem file name'");
157 std::ifstream input(particle_filename.c_str());
160 std::getline(input, buffer);
161 std::istringstream iss(buffer);
162 boost::archive::text_iarchive ia(iss, boost::archive::no_header);
166 using DEMPropertiesIndex =
169 Particles::ParticleHandler<dim> temporary_particle_handler(
172 ia >> temporary_particle_handler;
174 const std::string filename = prefix +
".triangulation";
176 "checkpoint file of the triangulation, given by "
177 "'subsection void fraction' - 'set dem file name'");
179 if (
auto parallel_triangulation =
180 dynamic_cast<parallel::distributed::Triangulation<dim> *
>(
188 temporary_particle_handler.deserialize();
193 ExcMessage(
"Cannot open snapshot mesh file or read the"
194 "triangulation stored there."));
205 throw std::runtime_error(
206 "VANS equations currently do not support "
207 "triangulations other than parallel::distributed");
211template <
int dim,
typename PropertiesIndex>
216 TimerOutput::Scope t(this->
computing_timer,
"Calculate void fraction");
220template <
int dim,
typename PropertiesIndex>
237template <
int dim,
typename PropertiesIndex>
260 if (this->
multiphysics->get_active_physics().size() > 1)
279template <
int dim,
typename PropertiesIndex>
286 ExcMessage(
"SDIRK time-stepping methods are not supported by the VANS "
287 "solver. Use a BDF method instead."));
407 .lagrangian_physical_properties.g));
455template <
int dim,
typename PropertiesIndex>
468 *this->cell_quadrature,
470 *this->face_quadrature);
474 const DoFHandler<dim> &dof_handler_cls =
476 scratch_data.enable_cls(
477 dof_handler_cls.get_fe(),
478 *this->cell_quadrature,
480 this->simulation_parameters.multiphysics.cls_parameters.phase_filter);
483 .surface_tension_force.enable)
485 const DoFHandler<dim>
486 &projected_phase_indicator_gradient_dof_handler =
488 ->get_projected_phase_indicator_gradient_dof_handler();
489 const DoFHandler<dim> &curvature_dof_handler =
491 scratch_data.enable_projected_phase_indicator_gradient(
492 projected_phase_indicator_gradient_dof_handler.get_fe(),
493 *this->cell_quadrature,
495 scratch_data.enable_curvature(curvature_dof_handler.get_fe(),
496 *this->cell_quadrature,
502 *this->cell_quadrature,
506 scratch_data.enable_particle_field_projection(
514 scratch_data.enable_particle_fluid_interactions(
516 this->cfd_dem_simulation_parameters.cfd_dem.interpolated_void_fraction);
520 this->dof_handler->end(),
526 this->cell_quadrature->size()));
530template <
int dim,
typename PropertiesIndex>
533 const typename DoFHandler<dim>::active_cell_iterator &cell,
538 if (!cell->is_locally_owned())
546 this->forcing_function,
547 this->flow_control.get_beta(),
548 this->simulation_parameters.stabilization.pressure_scaling_factor);
550 std::optional<typename DoFHandler<dim>::active_cell_iterator> phase_cell;
566 typename DoFHandler<dim>::active_cell_iterator void_fraction_cell(
570 &(*this->particle_projector.dof_handler));
575 *this->particle_projector.previous_void_fraction);
581 scratch_data.template reinit_particle_fluid_interactions<PropertiesIndex>(
594 scratch_data.template reinit_particle_fluid_interactions<PropertiesIndex>(
606 pf_assembler->calculate_particle_fluid_interactions(scratch_data);
610 typename DoFHandler<dim>::active_cell_iterator particle_drag_cell(
614 &(*this->particle_projector.fluid_drag_on_particles.dof_handler));
616 typename DoFHandler<dim>::active_cell_iterator
617 particle_two_way_coupling_force_cell(
621 &(*this->particle_projector.fluid_force_on_particles_two_way_coupling
624 typename DoFHandler<dim>::active_cell_iterator particle_velocity_cell(
628 &(*this->particle_projector.particle_velocity.dof_handler));
630 typename DoFHandler<dim>::active_cell_iterator
631 particle_momentum_transfer_coefficient_cell(
635 &(*this->particle_projector.momentum_transfer_coefficient
640 particle_two_way_coupling_force_cell,
641 particle_velocity_cell,
642 particle_momentum_transfer_coefficient_cell,
645 .particle_field_solution,
648 .particle_field_solution,
656 assembler->assemble_matrix(scratch_data, copy_data);
662template <
int dim,
typename PropertiesIndex>
671 constraints_used.distribute_local_to_global(copy_data.
local_matrix,
673 this->system_matrix);
676template <
int dim,
typename PropertiesIndex>
685 *this->cell_quadrature,
687 *this->face_quadrature);
692 scratch_data.enable_particle_field_projection(
703 "Calculate particle-fluid projection");
707 *this->present_solution,
708 *this->previous_solutions,
709 this->cfd_dem_simulation_parameters.dem_parameters
710 .lagrangian_physical_properties.g,
712 this->simulation_control,
713 this->simulation_parameters.physical_properties_manager,
715 *this->cell_quadrature,
717 *this->face_quadrature));
728 const DoFHandler<dim> &dof_handler_cls =
730 scratch_data.enable_cls(
731 dof_handler_cls.get_fe(),
732 *this->cell_quadrature,
734 this->simulation_parameters.multiphysics.cls_parameters.phase_filter);
737 *this->cell_quadrature,
739 scratch_data.enable_particle_fluid_interactions(
741 this->cfd_dem_simulation_parameters.cfd_dem.interpolated_void_fraction);
745 this->dof_handler->end(),
751 this->cell_quadrature->size()));
753 this->
system_rhs.compress(VectorOperation::add);
759template <
int dim,
typename PropertiesIndex>
762 const typename DoFHandler<dim>::active_cell_iterator &cell,
767 if (!cell->is_locally_owned())
775 this->forcing_function,
776 this->flow_control.get_beta(),
777 this->simulation_parameters.stabilization.pressure_scaling_factor);
779 std::optional<typename DoFHandler<dim>::active_cell_iterator> phase_cell;
795 typename DoFHandler<dim>::active_cell_iterator void_fraction_cell(
799 &(*this->particle_projector.dof_handler));
804 *this->particle_projector.previous_void_fraction);
810 scratch_data.template reinit_particle_fluid_interactions<PropertiesIndex>(
823 scratch_data.template reinit_particle_fluid_interactions<PropertiesIndex>(
834 pf_assembler->calculate_particle_fluid_interactions(scratch_data);
839 typename DoFHandler<dim>::active_cell_iterator particle_drag_cell(
843 &(*this->particle_projector.fluid_drag_on_particles.dof_handler));
845 typename DoFHandler<dim>::active_cell_iterator
846 particle_two_way_coupling_force_cell(
850 &(*this->particle_projector.fluid_force_on_particles_two_way_coupling
853 typename DoFHandler<dim>::active_cell_iterator particle_velocity_cell(
857 &(*this->particle_projector.particle_velocity.dof_handler));
859 typename DoFHandler<dim>::active_cell_iterator
860 particle_momentum_transfer_coefficient_cell(
864 &(*this->particle_projector.momentum_transfer_coefficient
869 particle_two_way_coupling_force_cell,
870 particle_velocity_cell,
871 particle_momentum_transfer_coefficient_cell,
874 .particle_field_solution,
877 .particle_field_solution,
885 assembler->assemble_rhs(scratch_data, copy_data);
891template <
int dim,
typename PropertiesIndex>
900 constraints_used.distribute_local_to_global(copy_data.
local_rhs,
905template <
int dim,
typename PropertiesIndex>
906std::vector<OutputStruct<dim, GlobalVectorType>>
909 std::vector<OutputStruct<dim, GlobalVectorType>> solution_output_structs;
910 solution_output_structs.emplace_back(
913 *this->particle_projector.void_fraction_locally_relevant,
914 std::vector<std::string>{
"void_fraction"},
915 std::vector<DataComponentInterpretation::DataComponentInterpretation>{
916 DataComponentInterpretation::component_is_scalar});
922 Vector<float> cell_index(this->
triangulation->n_active_cells());
924 for (
const auto &cell : this->
dof_handler->active_cell_iterators())
925 if (cell->is_locally_owned())
926 cell_index(cell->active_cell_index()) =
927 cell->global_active_cell_index();
928 solution_output_structs.emplace_back(
929 std::in_place_type<OutputStructCellVector>, cell_index,
"cell_index");
933 ->project_particle_velocity)
935 std::vector<std::string> names(dim,
"particle_velocity");
936 std::vector<DataComponentInterpretation::DataComponentInterpretation>
938 dim, DataComponentInterpretation::component_is_part_of_vector);
945 particle_velocity.reinit(
948 this->mpi_communicator);
951 particle_velocity.reinit(
953 this->mpi_communicator);
956 particle_velocity_locally_owned,
959 particle_velocity = particle_velocity_locally_owned;
961 solution_output_structs.emplace_back(
966 data_interpretation);
971 fluid_drag_on_particles.reinit(
974 this->mpi_communicator);
977 fluid_drag_on_particles.reinit(
979 this->mpi_communicator);
982 fluid_drag_on_particles_locally_owned,
985 fluid_drag_on_particles = fluid_drag_on_particles_locally_owned;
986 solution_output_structs.emplace_back(
989 fluid_drag_on_particles,
990 std::vector<std::string>(dim,
"Particle_drag"),
992 DataComponentInterpretation::DataComponentInterpretation>(
993 dim, DataComponentInterpretation::component_is_part_of_vector));
996 fluid_force_on_particles_two_way_coupling.reinit(
999 this->mpi_communicator);
1002 fluid_force_on_particles_two_way_coupling_locally_owned;
1003 fluid_force_on_particles_two_way_coupling.reinit(
1005 this->mpi_communicator);
1008 fluid_force_on_particles_two_way_coupling_locally_owned,
1010 .particle_field_solution);
1012 fluid_force_on_particles_two_way_coupling =
1013 fluid_force_on_particles_two_way_coupling_locally_owned;
1015 solution_output_structs.emplace_back(
1019 fluid_force_on_particles_two_way_coupling,
1020 std::vector<std::string>(dim,
"Particle_two_way_coupling_force"),
1022 DataComponentInterpretation::DataComponentInterpretation>(
1023 dim, DataComponentInterpretation::component_is_part_of_vector));
1026 solution_output_structs.emplace_back(
1031 data_interpretation);
1033 solution_output_structs.emplace_back(
1036 this->particle_projector.fluid_drag_on_particles
1037 .particle_field_solution,
1038 std::vector<std::string>(dim,
"Particle_drag"),
1039 std::vector<DataComponentInterpretation::DataComponentInterpretation>(
1040 dim, DataComponentInterpretation::component_is_part_of_vector));
1042 solution_output_structs.emplace_back(
1046 this->particle_projector.fluid_force_on_particles_two_way_coupling
1047 .particle_field_solution,
1048 std::vector<std::string>(dim,
"Particle_two_way_coupling_force"),
1049 std::vector<DataComponentInterpretation::DataComponentInterpretation>(
1050 dim, DataComponentInterpretation::component_is_part_of_vector));
1055 return solution_output_structs;
1058template <
int dim,
typename PropertiesIndex>
1064 FEValues<dim> fe_values(*this->
mapping,
1067 update_values | update_quadrature_points |
1068 update_JxW_values | update_gradients |
1071 FEValues<dim> fe_values_void_fraction(*this->
mapping,
1075 update_quadrature_points |
1076 update_JxW_values | update_gradients);
1078 const FEValuesExtractors::Vector velocities(0);
1080 const unsigned int n_q_points = quadrature_formula.size();
1082 std::vector<double> present_void_fraction_values(n_q_points);
1083 std::vector<Tensor<1, dim>> present_void_fraction_gradients(n_q_points);
1086 std::vector<double> p1_void_fraction_values(n_q_points);
1087 std::vector<double> p2_void_fraction_values(n_q_points);
1088 std::vector<double> p3_void_fraction_values(n_q_points);
1090 std::vector<Tensor<1, dim>> present_velocity_values(n_q_points);
1091 std::vector<Tensor<2, dim>> present_velocity_gradients(n_q_points);
1095 std::vector<Vector<double>> rhs_force(n_q_points, Vector<double>(dim + 1));
1097 double continuity = 0;
1098 double max_local_continuity = 0;
1099 double local_mass_source = 0;
1101 std::vector<double> time_steps_vector =
1105 const Vector<double> &bdf_coefs =
1108 for (
const auto &cell : this->
dof_handler->active_cell_iterators())
1110 if (cell->is_locally_owned())
1112 typename DoFHandler<dim>::active_cell_iterator void_fraction_cell(
1116 &(*this->particle_projector.dof_handler));
1117 fe_values_void_fraction.reinit(void_fraction_cell);
1120 fe_values_void_fraction.get_function_values(
1122 present_void_fraction_values);
1123 fe_values_void_fraction.get_function_gradients(
1125 present_void_fraction_gradients);
1127 fe_values.reinit(cell);
1132 present_velocity_values);
1133 fe_values[velocities].get_function_gradients(
1137 std::vector<Point<dim>> quadrature_points =
1138 fe_values.get_quadrature_points();
1149 fe_values_void_fraction.get_function_values(
1151 p1_void_fraction_values);
1155 fe_values_void_fraction.get_function_values(
1157 p2_void_fraction_values);
1161 fe_values_void_fraction.get_function_values(
1163 p3_void_fraction_values);
1166 local_mass_source = 0;
1168 for (
unsigned int q = 0; q < n_q_points; ++q)
1171 const unsigned int component_mass =
1172 this->
fe->system_to_component_index(dim).first;
1173 double external_mass_source = rhs_force[q](component_mass);
1176 const double present_velocity_divergence =
1177 trace(present_velocity_gradients[q]);
1181 (present_velocity_values[q] *
1182 present_void_fraction_gradients[q] +
1183 present_void_fraction_values[q] * present_velocity_divergence -
1184 external_mass_source) *
1185 fe_values_void_fraction.JxW(q);
1191 local_mass_source +=
1192 (bdf_coefs[0] * present_void_fraction_values[q] +
1193 bdf_coefs[1] * p1_void_fraction_values[q]) *
1194 fe_values_void_fraction.JxW(q);
1198 local_mass_source +=
1199 (bdf_coefs[0] * present_void_fraction_values[q] +
1200 bdf_coefs[1] * p1_void_fraction_values[q] +
1201 bdf_coefs[2] * p2_void_fraction_values[q]) *
1202 fe_values_void_fraction.JxW(q);
1206 local_mass_source +=
1207 (bdf_coefs[0] * present_void_fraction_values[q] +
1208 bdf_coefs[1] * p1_void_fraction_values[q] +
1209 bdf_coefs[2] * p2_void_fraction_values[q] +
1210 bdf_coefs[3] * p3_void_fraction_values[q]) *
1211 fe_values_void_fraction.JxW(q);
1213 continuity += local_mass_source;
1216 max_local_continuity =
1217 std::max(max_local_continuity, abs(local_mass_source));
1222 max_local_continuity =
1225 this->
pcout <<
"Global continuity equation error: " << continuity <<
" s^-1"
1227 this->
pcout <<
"Max local continuity error: " << max_local_continuity
1228 <<
" s^-1" << std::endl;
1231template <
int dim,
typename PropertiesIndex>
1238 this->cfd_dem_simulation_parameters.cfd_parameters.manifolds_parameters,
1239 this->cfd_dem_simulation_parameters.cfd_parameters.restart_parameters
1241 this->cfd_dem_simulation_parameters.void_fraction->read_dem,
1242 this->cfd_dem_simulation_parameters.cfd_parameters.boundary_conditions
1243 .periodic_boundaries);
1246 this->cfd_dem_simulation_parameters.cfd_parameters.restart_parameters
1254 this->cfd_dem_simulation_parameters.cfd_parameters.restart_parameters
1258 if (this->
multiphysics->get_active_physics().size() > 1)
SimulationParameters< dim > cfd_parameters
TrilinosWrappers::SparseMatrix system_matrix
virtual void update_multiphysics_time_average_solution() override
Updates the average velocity field solution in the multiphyscics interface.
FluidDynamicsMatrixBased(SimulationParameters< dim > &nsparam, const FluidDynamicsFormulation fluid_dynamics_formulation=FluidDynamicsFormulation::standard)
Construct the matrix-based Navier-Stokes solver.
Solver class for Volume-Averaged Navier-Stokes (VANS) equations with GLS stabilization.
CFDDEMSimulationParameters< dim > cfd_dem_simulation_parameters
Member Variables.
void vertices_cell_mapping()
Create mapping between vertices and cells.
ParticleProjector< dim, PropertiesIndex > particle_projector
Particle projector for calculating void fraction and particle effects.
virtual void finish_time_step_fd()
Complete operations at the end of a time step.
std::vector< std::shared_ptr< ParticleFluidAssemblerBase< dim, PropertiesIndex > > > particle_fluid_assemblers
Vector of assembler objects for particle-fluid interaction terms.
std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > vertices_to_periodic_cell
virtual void iterate() override
Execute a single VANS iteration.
void assemble_local_system_rhs(const typename DoFHandler< dim >::active_cell_iterator &cell, NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_data) override
Assemble the local right-hand side vector for a given cell.
virtual void read_dem()
Read DEM data for particle-fluid coupling.
void assemble_system_matrix() override
Assemble the global system matrix for the VANS equations.
std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > vertices_to_cell
Mapping from vertex indices to sets of cells containing each vertex.
void assemble_local_system_matrix(const typename DoFHandler< dim >::active_cell_iterator &cell, NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_data) override
Assemble the local system matrix for a given cell.
FluidDynamicsVANS(CFDDEMSimulationParameters< dim > &nsparam)
Constructor for the VANS solver.
virtual void setup_dofs() override
Set up degrees of freedom and initialize void fraction field.
virtual std::vector< OutputStruct< dim, GlobalVectorType > > gather_output_hook() override
Gather additional output fields for visualization.
void copy_local_rhs_to_global_rhs(const StabilizedMethodsTensorCopyData< dim > ©_data) override
Copy local right-hand side contributions to the global vector.
MappingQGeneric< dim > particle_mapping
Mapping object for particle position calculations and projections.
Particles::ParticleHandler< dim, dim > particle_handler
Particle handler for managing particle data and operations.
~FluidDynamicsVANS()
Destructor for the VANS solver.
virtual void monitor_mass_conservation()
Monitor mass conservation in the VANS system.
void copy_local_matrix_to_global_matrix(const StabilizedMethodsTensorCopyData< dim > ©_data) override
Copy local matrix contributions to the global system matrix.
void setup_assemblers() override
Set up the vector of assembler functions for VANS equations.
bool has_periodic_boundaries
Flag indicating whether the domain has periodic boundary conditions.
void assemble_system_rhs() override
Assemble the global right-hand side vector for the VANS equations.
void calculate_void_fraction(const double time)
Calculate void fraction field based on particle positions.
virtual void solve() override
Main solver loop for the VANS equations.
virtual void set_specified_fluid_dynamics_solution()
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)
MPI_Comm mpi_communicator
SDIRKVectors sdirk_vectors
unsigned int number_quadrature_points
virtual void update_solutions_for_multiphysics()
GlobalVectorType system_rhs
virtual void refine_mesh()
Allow the refinement of the mesh according to one of the 2 methods proposed.
virtual void finish_time_step()
virtual void dynamic_flow_control()
SimulationParameters< dim > simulation_parameters
bool check_existance_of_bc(BoundaryConditions::FluidDynamicsBoundaryType bc)
TimerOutput computing_timer
std::shared_ptr< std::vector< GlobalVectorType > > previous_solutions
GlobalVectorType evaluation_point
std::shared_ptr< Function< dim > > forcing_function
std::shared_ptr< SimulationControl > simulation_control
void update_boundary_conditions()
std::vector< std::shared_ptr< NavierStokesAssemblerBase< dim > > > assemblers
std::shared_ptr< MultiphysicsInterface< dim > > multiphysics
AffineConstraints< double > zero_constraints
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....
void calculate_physical_properties()
Calculates the physical properties. This function calculates the physical properties that may be requ...
void reinit(const typename DoFHandler< dim >::active_cell_iterator &cell, const VectorType ¤t_solution, const std::vector< VectorType > &previous_solutions, const VectorType &sum_over_previous_stages, const std::shared_ptr< Function< dim > > &forcing_function, const Tensor< 1, dim > &beta_force, const double pressure_scaling_factor)
Reinitializes the content of the scratch.
void reinit_void_fraction(const typename DoFHandler< dim >::active_cell_iterator &cell, const VectorType ¤t_solution, const std::vector< VectorType > &previous_solutions)
Reinitialize the content of the scratch for the void fraction.
void reinit_cls(const typename DoFHandler< dim >::active_cell_iterator &cell, const VectorType ¤t_solution, const VectorType ¤t_filtered_solution, const std::vector< VectorType > &previous_solutions)
Reinitialize the content of the scratch for the cls.
void calculate_particle_fields_values(const typename DoFHandler< dim >::active_cell_iterator &particle_drag_cell, const typename DoFHandler< dim >::active_cell_iterator &particle_two_way_coupling_force_cell, const typename DoFHandler< dim >::active_cell_iterator &particle_velocity_cell, const typename DoFHandler< dim >::active_cell_iterator &particle_momentum_transfer_coefficient_cell, const VectorType &particle_fluid_drag, const VectorType &particle_fluid_force_two_way_coupling, const VectorType &particle_velocity, const VectorType &particle_momentum_transfer_coefficient, const Parameters::DragCoupling &drag_coupling)
Calculates the particle forces and velocities that were projected on the fluid dofs at the quadrature...
Class that assembles the weak formulation of an outlet boundary condition according to the following ...
Class that assembles the special case of partial slip condition using the weak formulation of a Diric...
void solve_governing_system()
Solve the global system of equations according to a given strategy, either linear or not.
Class that assembles a Neumann boundary condition. According to the following weak form: (p-mu*grad_u...
Class responsible for storing the information calculated using the assembly of stabilized Tensor<1,...
FullMatrix< double > local_matrix
Vector< double > local_rhs
void reset()
Resets the cell_matrix, cell_rhs, strong_residual and strong_jacobian to zero.
std::vector< types::global_dof_index > local_dof_indices
Assembler for the transient term arising from BDF time integration for the VANS equations.
Assembler for the drag force using the Beetstra model.
Assembler for the buoyancy force on particles in the VANS equations.
Assembler for the core of Model A of the Volume-Averaged Navier-Stokes (VANS) equations.
Assembler for the core of Model B of the Volume-Averaged Navier-Stokes (VANS) equations.
Assembler for the drag force using the Dallavalle model.
Assembler for the drag force using the Di Felice model.
Assembler for the fluid-particle interactions (FPI) in the VANS equations when the forces are project...
Assembler for the fluid-particle interactions (FPI) in the VANS equations, such as the drag force.
Assembler for the drag force using the Gidaspow model.
Assembler for the drag force using the Koch and Hill drag model.
Assembler for the lift force using the Magnus model.
Assembler for the pressure force on particles.
Assembler for the drag force using the Rong model.
Assembler for the lift force using the Saffman-Mei model.
Assembler for the shear force on particles.
Assembler for the viscous dissipative torque due to particle rotation as defined by Derksen (2004).
Assembler for the viscous dissipative torque due to fluid vorticity as defined by Derksen (2004).
Class that assembles the weak formulation of a Dirichlet boundary condition using the Nitsche method....
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...
void announce_string(const ConditionalOStream &pcout, const std::string &expression, const char delimiter='-')
Prints a string and then adds a line above and below made with dashes containing as many dashes as th...
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.
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.
@ modelA
Model A: volume-averaged continuity and momentum equations.
@ modelB
Model B: alternative VANS formulation.
@ dallavalle
Dallavalle - Valid only for dilute flows.
@ 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...
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.
dealii::TrilinosWrappers::MPI::Vector GlobalVectorType
void convert_vector_dealii_to_trilinos(dealii::TrilinosWrappers::MPI::Vector &out, const dealii::LinearAlgebra::distributed::Vector< number > &in)
Helper function that allows to convert deal.II vectors to Trilinos vectors.