![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <fluid_dynamics_vans.h>
Public Member Functions | |
| FluidDynamicsVANS (CFDDEMSimulationParameters< dim > &nsparam) | |
| ~FluidDynamicsVANS () | |
| virtual void | solve () override |
| Public Member Functions inherited from FluidDynamicsMatrixBased< dim > | |
| FluidDynamicsMatrixBased (SimulationParameters< dim > &nsparam, const FluidDynamicsFormulation fluid_dynamics_formulation=FluidDynamicsFormulation::standard) | |
| ~FluidDynamicsMatrixBased () | |
| Public Member Functions inherited from PhysicsSolver< GlobalVectorType > | |
| PhysicsSolver (const Parameters::NonLinearSolver non_linear_solver_parameters) | |
| virtual | ~PhysicsSolver () |
| void | solve_governing_system () |
| virtual void | apply_constraints () |
| virtual double | get_current_residual () |
| virtual bool | allow_skip_linear_solve_when_residual_is_below_tolerance () const |
| unsigned int | get_current_newton_iteration () const |
Protected Member Functions | |
| virtual void | setup_dofs () override |
| virtual void | iterate () override |
| void | calculate_void_fraction (const double time) |
| void | vertices_cell_mapping () |
| virtual void | monitor_mass_conservation () |
| virtual void | finish_time_step_fd () |
| void | assemble_system_matrix () override |
| void | assemble_system_rhs () override |
| void | assemble_local_system_matrix (const typename DoFHandler< dim >::active_cell_iterator &cell, NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_data) override |
| void | assemble_local_system_rhs (const typename DoFHandler< dim >::active_cell_iterator &cell, NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_data) override |
| void | setup_assemblers () override |
| void | copy_local_matrix_to_global_matrix (const StabilizedMethodsTensorCopyData< dim > ©_data) override |
| void | copy_local_rhs_to_global_rhs (const StabilizedMethodsTensorCopyData< dim > ©_data) override |
| virtual std::vector< OutputStruct< dim, GlobalVectorType > > | gather_output_hook () override |
| Protected Member Functions inherited from FluidDynamicsMatrixBased< dim > | |
| virtual void | setup_dofs_fd () override |
| void | multi_stage_preresolution (unsigned int stage, Parameters::SimulationControl::TimeSteppingMethod method) override |
| virtual void | multi_stage_postresolution (unsigned int stage, Parameters::SimulationControl::TimeSteppingMethod method, double time_step) override |
| virtual void | update_multi_stage_solution (double time_step) override |
| virtual void | set_initial_condition_fd (Parameters::FluidDynamicsInitialConditionType initial_condition_type, bool restart=false) override |
| virtual void | update_multiphysics_time_average_solution () override |
| void | setup_preconditioner () override |
| void | define_dynamic_zero_constraints () |
| void | define_pressure_constraints () |
| virtual void | update_mortar_configuration () override |
| void | solve_linear_system () override |
| Protected Member Functions inherited from NavierStokesBase< dim, GlobalVectorType, IndexSet > | |
| NavierStokesBase (SimulationParameters< dim > &nsparam, const FluidDynamicsFormulation fluid_dynamics_formulation=FluidDynamicsFormulation::standard) | |
| virtual | ~NavierStokesBase ()=default |
| virtual GlobalVectorType & | get_evaluation_point () override |
| virtual GlobalVectorType & | get_local_evaluation_point () override |
| virtual GlobalVectorType & | get_newton_update () override |
| virtual GlobalVectorType & | get_present_solution () override |
| virtual GlobalVectorType & | get_system_rhs () override |
| virtual AffineConstraints< double > & | get_nonzero_constraints () override |
| virtual void | output_newton_update_norms () override |
| double | get_residual_rescale_metric () const override |
| void | finish_simulation () |
| virtual void | postprocess (bool first_iteration) |
| virtual void | set_initial_condition (const Parameters::FluidDynamicsInitialConditionType initial_condition_type, const bool restart=false) |
| virtual void | finish_time_step () |
| virtual void | percolate_time_vectors_fd () |
| void | finish_simulation_fd () |
| virtual void | postprocess_fd (bool first_iteration) |
| virtual void | update_solutions_for_multiphysics () |
| virtual void | update_solutions_for_fluid_dynamics () |
| void | postprocessing_forces (const GlobalVectorType &evaluation_point) |
| void | postprocessing_torques (const GlobalVectorType &evaluation_point) |
| virtual void | dynamic_flow_control () |
| virtual void | set_specified_fluid_dynamics_solution () |
| virtual void | enable_dynamic_zero_constraints_fd () |
| void | box_refine_mesh (const bool restart) |
| virtual void | refine_mesh () |
| void | refine_mesh_adaptive () |
| void | refine_mesh_uniform () |
| void | transfer_solution (SolutionTransfer< dim, GlobalVectorType > &solution_transfer, std::vector< SolutionTransfer< dim, GlobalVectorType > > &previous_solutions_transfer) |
| virtual void | read_checkpoint () |
| bool | average_velocities_are_enabled () const |
| void | restore_average_velocities_after_checkpoint () |
| virtual void | set_solution_from_checkpoint (const std::string &checkpoint_file_prefix) |
| void | set_nodal_values () |
| void | define_non_zero_constraints () |
| void | define_zero_constraints () |
| void | reinit_mortar_operators () |
| std::shared_ptr< Mapping< dim > > | get_mapping () |
| void | rotate_rotor_mapping (const bool is_first) |
| void | connect_mortar_weight_signals () |
| void | update_boundary_conditions () |
| virtual void | update_forcing_and_boundary_conditions () |
| bool | check_existance_of_bc (BoundaryConditions::FluidDynamicsBoundaryType bc) |
| void | make_solid_domain (const DoFHandler< dim > &dof_handler, const bool non_zero_constraints, AffineConstraints< double > &constraints) |
| bool | cell_in_constraining_domain (const typename DoFHandler< dim >::active_cell_iterator &cell, const Point< dim > &plane_point, const Tensor< 1, dim > &plane_normal_vector) |
| void | get_cell_temperature_values (const typename DoFHandler< dim >::active_cell_iterator &cell, const DoFHandler< dim > *dof_handler_ht, const GlobalVectorType &temperature_solution, std::vector< double > &local_temperature_values) |
| void | get_cell_filtered_phase_indicator_values (const typename DoFHandler< dim >::active_cell_iterator &cell, const DoFHandler< dim > *dof_handler_cls, const GlobalVectorType &filtered_phase_indicator_solution, std::vector< double > &local_filtered_phase_indicator_values) |
| void | identify_cell_and_constrain_velocity (const std::vector< types::global_dof_index > &local_dof_indices, const std::vector< double > &local_temperature_values, StasisConstraintWithTemperature &stasis_constraint_struct) |
| void | constrain_stasis_with_temperature (const DoFHandler< dim > *dof_handler_ht) |
| void | constrain_stasis_with_temperature_cls (const DoFHandler< dim > *dof_handler_cls, const DoFHandler< dim > *dof_handler_ht) |
| virtual std::vector< OutputStructTableHandler > | gather_tables () |
| virtual void | write_checkpoint () |
| void | gather_output_results (const GlobalVectorType &solution, std::vector< OutputStruct< dim, GlobalVectorType > > &solution_output_structs) |
| void | write_output_results (const GlobalVectorType &solution) |
| void | write_output_forces () |
| void | write_output_torques () |
| void | rescale_pressure_dofs_in_newton_update () |
| GlobalVectorType | init_temporary_vector () |
| void | verify_consistency_of_boundary_conditions () |
Protected Attributes | |
| CFDDEMSimulationParameters< dim > | cfd_dem_simulation_parameters |
| MappingQGeneric< dim > | particle_mapping |
| std::vector< std::shared_ptr< ParticleFluidAssemblerBase< dim, PropertiesIndex > > > | particle_fluid_assemblers |
| const bool | PSPG = true |
| const bool | SUPG = true |
| const double | GLS_u_scale = 1 |
| double | pressure_drop |
| std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > | vertices_to_cell |
| std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > | vertices_to_periodic_cell |
| Particles::ParticleHandler< dim, dim > | particle_handler |
| ParticleProjector< dim, PropertiesIndex > | particle_projector |
| 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 |
| Protected Attributes inherited from FluidDynamicsMatrixBased< dim > | |
| TrilinosWrappers::SparseMatrix | system_matrix |
| Protected Attributes inherited from NavierStokesBase< dim, GlobalVectorType, IndexSet > | |
| IndexSet | locally_owned_dofs |
| IndexSet | locally_relevant_dofs |
| MPI_Comm | mpi_communicator |
| const unsigned int | n_mpi_processes |
| const unsigned int | this_mpi_process |
| std::shared_ptr< parallel::DistributedTriangulationBase< dim > > | triangulation |
| std::shared_ptr< DoFHandler< dim > > | dof_handler |
| std::shared_ptr< FESystem< dim > > | fe |
| TimerOutput | computing_timer |
| SimulationParameters< dim > | simulation_parameters |
| PVDHandler | pvdhandler |
| PVDHandler | pvdhandler_boundary |
| Function< dim > * | exact_solution |
| std::shared_ptr< Function< dim > > | forcing_function |
| FlowControl< dim > | flow_control |
| AffineConstraints< double > | zero_constraints |
| AffineConstraints< double > | nonzero_constraints |
| bool | use_manifold_for_normal |
| GlobalVectorType | evaluation_point |
| GlobalVectorType | local_evaluation_point |
| GlobalVectorType | newton_update |
| std::shared_ptr< GlobalVectorType > | present_solution |
| GlobalVectorType | system_rhs |
| std::shared_ptr< std::vector< GlobalVectorType > > | previous_solutions |
| SDIRKVectors | sdirk_vectors |
| const unsigned int | velocity_fem_degree |
| const unsigned int | pressure_fem_degree |
| unsigned int | number_quadrature_points |
| std::shared_ptr< Mapping< dim > > | mapping |
| std::shared_ptr< Quadrature< dim > > | cell_quadrature |
| std::shared_ptr< Quadrature< dim - 1 > > | face_quadrature |
| std::shared_ptr< MortarManagerBase< dim > > | mortar_manager |
| std::shared_ptr< CouplingOperator< dim, double > > | mortar_coupling_operator |
| std::shared_ptr< NavierStokesCouplingEvaluationSIPG< dim, double > > | mortar_coupling_evaluator |
| std::shared_ptr< MappingQCache< dim > > | mapping_cache |
| std::vector< std::shared_ptr< NavierStokesAssemblerBase< dim > > > | assemblers |
| std::shared_ptr< MultiphysicsInterface< dim > > | multiphysics |
| std::shared_ptr< SimulationControl > | simulation_control |
| TableHandler | enstrophy_table |
| TableHandler | pressure_power_table |
| TableHandler | viscous_dissipation_table |
| TableHandler | kinetic_energy_table |
| TableHandler | apparent_viscosity_table |
| TableHandler | pressure_drop_table |
| TableHandler | flow_rate_table |
| std::shared_ptr< AverageVelocities< dim, GlobalVectorType, IndexSet > > | average_velocities |
| GlobalVectorType | average_solution |
| MeshController | mesh_controller |
| ConvergenceTable | error_table |
| std::vector< std::map< types::boundary_id, Tensor< 1, dim > > > | forces_on_boundaries |
| std::map< types::boundary_id, TableHandler > | forces_tables |
| std::map< types::boundary_id, TableHandler > | torques_tables |
| std::shared_ptr< FEValues< dim > > | fe_values_temperature |
| std::shared_ptr< FEValues< dim > > | fe_values_cls |
| std::vector< StasisConstraintWithTemperature > | stasis_constraint_structs |
| AffineConstraints< double > | dynamic_zero_constraints |
Private Member Functions | |
| void | assemble_mass_matrix_diagonal (TrilinosWrappers::SparseMatrix &mass_matrix) |
| void | update_solution_and_constraints () |
| virtual void | read_dem () |
Additional Inherited Members | |
| Public Attributes inherited from PhysicsSolver< GlobalVectorType > | |
| ConditionalOStream | pcout |
| Parameters::SimulationControl::TimeSteppingMethod | time_stepping_method |
Solver class for Volume-Averaged Navier-Stokes (VANS) equations with GLS stabilization.
This class implements a computational fluid dynamics solver for the VANS equations, which are used to model fluid flow in porous media or multiphase systems where the presence of solid particles affects the fluid motion. The solver uses Galerkin Least Squares (GLS) stabilization techniques including SUPG (Streamline Upwind Petrov-Galerkin) and PSPG (Pressure Stabilizing Petrov-Galerkin) methods.
The VANS equations account for the volume fraction of the fluid phase (void fraction) and incorporate particle-fluid interactions through appropriate source terms. This solver forms the foundation for CFD-DEM simulations where particle dynamics are coupled with fluid flow.
| dim | Spatial dimension of the simulation (2 or 3) |
Definition at line 45 of file fluid_dynamics_vans.h.
| FluidDynamicsVANS< dim, PropertiesIndex >::FluidDynamicsVANS | ( | CFDDEMSimulationParameters< dim > & | nsparam | ) |
Constructor for the VANS solver.
| [in] | nsparam | CFD-DEM simulation parameters containing all configuration options for the coupled fluid-particle simulation |
Definition at line 18 of file fluid_dynamics_vans.cc.
References cfd_dem_simulation_parameters, CFDDEMSimulationParameters< dim >::cfd_parameters, FluidDynamicsMatrixBased< dim >::FluidDynamicsMatrixBased(), has_periodic_boundaries, DEM::has_thermal_properties, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, Parameters::MeshAdaptation::none, particle_handler, particle_mapping, particle_projector, particle_temperature, PhysicsSolver< GlobalVectorType >::pcout, BoundaryConditions::periodic, Parameters::SimulationControl::steady, NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation, and void_fraction.
| FluidDynamicsVANS< dim, PropertiesIndex >::~FluidDynamicsVANS | ( | ) |
Destructor for the VANS solver.
Definition at line 77 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::dof_handler.
|
overrideprotectedvirtual |
Assemble the local system matrix for a given cell.
Computes the local contributions to the global system matrix for a single cell, including VANS-specific terms with void fraction effects and GLS stabilization terms. This function is used by WorkStream for thread-safe parallel assembly.
| [in] | cell | Iterator pointing to the current active cell |
| [in,out] | scratch_data | Scratch data containing finite element information at quadrature points for efficient assembly |
| [out] | copy_data | Copy data structure for storing local assembly results before copying to global structures |
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 532 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::assemblers, NavierStokesScratchData< dim >::calculate_particle_fields_values(), NavierStokesScratchData< dim >::calculate_physical_properties(), StabilizedMethodsTensorCopyData< dim >::cell_is_local, cfd_dem_simulation_parameters, CLS, NavierStokesBase< dim, GlobalVectorType, IndexSet >::evaluation_point, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, particle_fluid_assemblers, particle_handler, particle_projector, NavierStokesBase< dim, GlobalVectorType, IndexSet >::previous_solutions, NavierStokesScratchData< dim >::reinit(), NavierStokesScratchData< dim >::reinit_cls(), NavierStokesScratchData< dim >::reinit_void_fraction(), StabilizedMethodsTensorCopyData< dim >::reset(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::sdirk_vectors, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_parameters, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation.
|
overrideprotectedvirtual |
Assemble the local right-hand side vector for a given cell.
Computes the local contributions to the global right-hand side vector for a single cell, including source terms, boundary conditions, and particle-fluid interaction terms modified by void fraction.
| [in] | cell | Iterator pointing to the current active cell |
| [in,out] | scratch_data | Scratch data containing finite element information at quadrature points for efficient assembly |
| [out] | copy_data | Copy data structure for storing local assembly results before copying to global structures |
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 761 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::assemblers, NavierStokesScratchData< dim >::calculate_particle_fields_values(), NavierStokesScratchData< dim >::calculate_physical_properties(), StabilizedMethodsTensorCopyData< dim >::cell_is_local, cfd_dem_simulation_parameters, CLS, NavierStokesBase< dim, GlobalVectorType, IndexSet >::evaluation_point, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, particle_fluid_assemblers, particle_handler, particle_projector, NavierStokesBase< dim, GlobalVectorType, IndexSet >::previous_solutions, NavierStokesScratchData< dim >::reinit(), NavierStokesScratchData< dim >::reinit_cls(), NavierStokesScratchData< dim >::reinit_void_fraction(), StabilizedMethodsTensorCopyData< dim >::reset(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::sdirk_vectors, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_parameters, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation.
|
private |
Assemble the diagonal mass matrix for the VANS system.
Constructs the diagonal mass matrix used in time-dependent VANS calculations, incorporating void fraction effects.
| [out] | mass_matrix | Sparse matrix to store the assembled mass matrix |
|
overrideprotectedvirtual |
Assemble the global system matrix for the VANS equations.
Constructs the global system matrix by assembling contributions from all cells, including fluid dynamics terms modified by void fraction and particle-fluid interaction terms.
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 457 of file fluid_dynamics_vans.cc.
References assemble_local_system_matrix(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::cell_quadrature, cfd_dem_simulation_parameters, CLS, NavierStokesBase< dim, GlobalVectorType, IndexSet >::computing_timer, copy_local_matrix_to_global_matrix(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::dof_handler, NavierStokesBase< dim, GlobalVectorType, IndexSet >::mapping, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, particle_handler, particle_projector, setup_assemblers(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_control, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_parameters, and FluidDynamicsMatrixBased< dim >::system_matrix.
|
overrideprotectedvirtual |
Assemble the global right-hand side vector for the VANS equations.
Constructs the global right-hand side vector including all source terms, boundary conditions, and particle-fluid coupling contributions.
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 678 of file fluid_dynamics_vans.cc.
References assemble_local_system_rhs(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::cell_quadrature, cfd_dem_simulation_parameters, CLS, NavierStokesBase< dim, GlobalVectorType, IndexSet >::computing_timer, copy_local_rhs_to_global_rhs(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::dof_handler, Parameters::fully_implicit, NavierStokesBase< dim, GlobalVectorType, IndexSet >::mapping, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, particle_handler, particle_projector, setup_assemblers(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_control, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_parameters, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::system_rhs.
|
protected |
Calculate void fraction field based on particle positions.
Computes the local void fraction (porosity) at each point in the computational domain based on the current particle configuration.
| [in] | time | Current simulation time for time-dependent calculations |
Definition at line 213 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::computing_timer, and particle_projector.
|
overrideprotectedvirtual |
Copy local matrix contributions to the global system matrix.
Transfers the locally assembled matrix contributions from a single cell to the appropriate locations in the global system matrix, handling constraint applications and matrix sparsity patterns.
| [in] | copy_data | Local assembly data containing matrix contributions and associated degree of freedom indices |
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 664 of file fluid_dynamics_vans.cc.
References StabilizedMethodsTensorCopyData< dim >::cell_is_local, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, StabilizedMethodsTensorCopyData< dim >::local_matrix, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::zero_constraints.
|
overrideprotectedvirtual |
Copy local right-hand side contributions to the global vector.
Transfers the locally assembled right-hand side contributions from a single cell to the appropriate locations in the global right-hand side vector, handling constraint applications.
| [in] | copy_data | Local assembly data containing right-hand side contributions and associated degree of freedom indices |
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 893 of file fluid_dynamics_vans.cc.
References StabilizedMethodsTensorCopyData< dim >::cell_is_local, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, StabilizedMethodsTensorCopyData< dim >::local_rhs, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::zero_constraints.
|
protectedvirtual |
Complete operations at the end of a time step.
Performs final operations required at the completion of each time step including post-processing and time advancement for fluid dynamics.
Definition at line 119 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::finish_time_step(), and particle_projector.
|
overrideprotectedvirtual |
Gather additional output fields for visualization.
Adds void fraction and particle velocity fields to the standard fluid dynamics output for comprehensive visualization of the coupled CFD-DEM system.
Reimplemented from NavierStokesBase< dim, GlobalVectorType, IndexSet >.
Definition at line 907 of file fluid_dynamics_vans.cc.
References cfd_dem_simulation_parameters, convert_vector_dealii_to_trilinos(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::dof_handler, particle_projector, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation.
|
overrideprotectedvirtual |
Execute a single VANS iteration.
Performs one iteration of the VANS solution procedure including assembly, solution of the linear system, and solution update.
Reimplemented from NavierStokesBase< dim, GlobalVectorType, IndexSet >.
Definition at line 239 of file fluid_dynamics_vans.cc.
References announce_string(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::forcing_function, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, PhysicsSolver< GlobalVectorType >::pcout, NavierStokesBase< dim, GlobalVectorType, IndexSet >::set_specified_fluid_dynamics_solution(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_control, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_parameters, PhysicsSolver< VectorType >::solve_governing_system(), and NavierStokesBase< dim, GlobalVectorType, IndexSet >::update_solutions_for_multiphysics().
|
protectedvirtual |
Monitor mass conservation in the VANS system.
Calculates and reports mass conservation metrics for the VANS solution, taking into account the void fraction field.
Definition at line 1060 of file fluid_dynamics_vans.cc.
References Parameters::SimulationControl::bdf1, Parameters::SimulationControl::bdf2, Parameters::SimulationControl::bdf3, NavierStokesBase< dim, GlobalVectorType, IndexSet >::dof_handler, NavierStokesBase< dim, GlobalVectorType, IndexSet >::evaluation_point, NavierStokesBase< dim, GlobalVectorType, IndexSet >::fe, NavierStokesBase< dim, GlobalVectorType, IndexSet >::forcing_function, NavierStokesBase< dim, GlobalVectorType, IndexSet >::mapping, NavierStokesBase< dim, GlobalVectorType, IndexSet >::mpi_communicator, NavierStokesBase< dim, GlobalVectorType, IndexSet >::number_quadrature_points, particle_projector, PhysicsSolver< GlobalVectorType >::pcout, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_control, Parameters::SimulationControl::steady, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation.
|
privatevirtual |
Read DEM data for particle-fluid coupling.
Loads particle information from DEM simulation for use in computing void fraction and particle-fluid interaction terms.
Reimplemented in CFDDEMSolver< dim, PropertiesIndex >.
Definition at line 130 of file fluid_dynamics_vans.cc.
References cfd_dem_simulation_parameters, check_file_exists(), convert_particle_handler(), particle_handler, particle_mapping, and NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation.
|
overrideprotectedvirtual |
Set up the vector of assembler functions for VANS equations.
Initializes the assembler objects responsible for computing different terms in the VANS equations, including particle-fluid interaction assemblers and void fraction-dependent terms.
Reimplemented from FluidDynamicsMatrixBased< dim >.
Definition at line 281 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::assemblers, Parameters::beetstra, cfd_dem_simulation_parameters, NavierStokesBase< dim, GlobalVectorType, IndexSet >::check_existance_of_bc(), Parameters::dallavalle, Parameters::difelice, BoundaryConditions::function_weak, Parameters::gidaspow, Parameters::kochhill, Parameters::modelA, Parameters::modelB, BoundaryConditions::outlet, BoundaryConditions::partial_slip, particle_fluid_assemblers, BoundaryConditions::pressure, Parameters::rong, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_control, NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_parameters, time_stepping_is_bdf(), and time_stepping_is_sdirk().
|
overrideprotectedvirtual |
Set up degrees of freedom and initialize void fraction field.
Associates degrees of freedom to each vertex of the finite elements and initializes the void fraction field that represents the local volume fraction available to the fluid phase.
Reimplemented from NavierStokesBase< dim, GlobalVectorType, IndexSet >.
Definition at line 84 of file fluid_dynamics_vans.cc.
References cfd_dem_simulation_parameters, DEM::has_thermal_properties, NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, particle_projector, particle_temperature, NavierStokesBase< dim, GlobalVectorType, IndexSet >::setup_dofs(), and void_fraction.
|
overridevirtual |
Main solver loop for the VANS equations.
Executes the complete solution procedure for the VANS equations including time stepping, matrix assembly, linear system solution, and convergence checking.
Reimplemented from FluidDynamicsMatrixBased< dim >.
Reimplemented in CFDDEMSolver< dim, PropertiesIndex >.
Definition at line 1233 of file fluid_dynamics_vans.cc.
References calculate_void_fraction(), cfd_dem_simulation_parameters, NavierStokesBase< dim, GlobalVectorType, IndexSet >::dynamic_flow_control(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::finish_simulation(), finish_time_step_fd(), iterate(), monitor_mass_conservation(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::multiphysics, particle_handler, particle_projector, PhysicsSolver< GlobalVectorType >::pcout, NavierStokesBase< dim, GlobalVectorType, IndexSet >::postprocess(), read_dem(), read_mesh_and_manifolds(), NavierStokesBase< dim, VectorType, DofsType >::refine_mesh(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::set_initial_condition(), setup_dofs(), NavierStokesBase< dim, GlobalVectorType, IndexSet >::simulation_control, NavierStokesBase< dim, GlobalVectorType, IndexSet >::triangulation, NavierStokesBase< dim, GlobalVectorType, IndexSet >::update_boundary_conditions(), FluidDynamicsMatrixBased< dim >::update_multiphysics_time_average_solution(), and vertices_cell_mapping().
|
private |
Update solution vectors and constraint objects.
Updates the solution vectors and applies constraints after each iteration or time step in the VANS solution process.
|
protected |
Create mapping between vertices and cells.
Establishes the relationship between mesh vertices and the cells that contain them, which is needed for efficient void fraction and particle-fluid coupling calculations.
Definition at line 222 of file fluid_dynamics_vans.cc.
References NavierStokesBase< dim, GlobalVectorType, IndexSet >::computing_timer, has_periodic_boundaries, particle_projector, LetheGridTools::vertices_cell_mapping(), LetheGridTools::vertices_cell_mapping_with_periodic_boundaries(), vertices_to_cell, and vertices_to_periodic_cell.
|
protected |
Member Variables.
CFD-DEM simulation parameters containing all configuration options
Definition at line 275 of file fluid_dynamics_vans.h.
|
protected |
Map of direction indices for periodic boundary conditions.
Definition at line 320 of file fluid_dynamics_vans.h.
|
protected |
Map of offset vectors for periodic boundary condition calculations.
Definition at line 317 of file fluid_dynamics_vans.h.
|
protected |
Scaling factor for GLS velocity stabilization terms.
Definition at line 291 of file fluid_dynamics_vans.h.
|
protected |
Flag indicating whether the domain has periodic boundary conditions.
Definition at line 314 of file fluid_dynamics_vans.h.
|
protected |
Vector of assembler objects for particle-fluid interaction terms.
Definition at line 282 of file fluid_dynamics_vans.h.
|
protected |
Particle handler for managing particle data and operations.
Definition at line 308 of file fluid_dynamics_vans.h.
|
protected |
Mapping object for particle position calculations and projections.
Definition at line 278 of file fluid_dynamics_vans.h.
|
protected |
Particle projector for calculating void fraction and particle effects.
Definition at line 311 of file fluid_dynamics_vans.h.
|
protected |
Pressure drop across the computational domain.
Definition at line 294 of file fluid_dynamics_vans.h.
|
protected |
Flag enabling Pressure Stabilizing Petrov-Galerkin (PSPG) stabilization.
Definition at line 285 of file fluid_dynamics_vans.h.
|
protected |
Flag enabling Streamline Upwind Petrov-Galerkin (SUPG) stabilization.
Definition at line 288 of file fluid_dynamics_vans.h.
|
protected |
Mapping from vertex indices to sets of cells containing each vertex.
Definition at line 299 of file fluid_dynamics_vans.h.
|
protected |
Mapping from vertex indices to sets of periodic cells containing each vertex
Definition at line 305 of file fluid_dynamics_vans.h.