4#ifndef lethe_fluid_dynamics_vans_matrix_free_operators_h
5#define lethe_fluid_dynamics_vans_matrix_free_operators_h
19template <
int dim,
typename number>
25 using VectorType = LinearAlgebra::distributed::Vector<number>;
42 "Only model A of the VANS equation is supported by the VANS matrix-free solver"));
61 const DoFHandler<dim> &void_fraction_dof_handler,
62 const LinearAlgebra::distributed::Vector<double> &void_fraction_solution,
63 const LinearAlgebra::distributed::Vector<double>
64 &time_derivative_void_fraction_solution);
95 const DoFHandler<dim> &fp_force_dof_handler,
96 const LinearAlgebra::distributed::Vector<double> &fp_force_solution,
97 const DoFHandler<dim> &fp_drag_dof_handler,
98 const LinearAlgebra::distributed::Vector<double> &fp_drag_solution,
99 const DoFHandler<dim> &particle_velocity_dof_handler,
100 const LinearAlgebra::distributed::Vector<double>
101 &particle_velocity_solution,
102 const DoFHandler<dim> &momentum_transfer_coefficient_dof_handler,
103 const LinearAlgebra::distributed::Vector<double>
104 &momentum_transfer_coefficient_solution);
155 const std::pair<unsigned int, unsigned int> &range)
const override;
NavierStokesOperatorBase()
Default constructor.
MatrixFree< dim, number > matrix_free
Object storing all the relevant data needed for the matrix free implementation.
void local_evaluate_residual(const MatrixFree< dim, number > &matrix_free, VectorType &dst, const VectorType &src, const std::pair< unsigned int, unsigned int > &range) const override
Perform cell integral on a cell batch with gathering and scattering the values, and according to the ...
void compute_particle_fluid_interaction(const DoFHandler< dim > &fp_force_dof_handler, const LinearAlgebra::distributed::Vector< double > &fp_force_solution, const DoFHandler< dim > &fp_drag_dof_handler, const LinearAlgebra::distributed::Vector< double > &fp_drag_solution, const DoFHandler< dim > &particle_velocity_dof_handler, const LinearAlgebra::distributed::Vector< double > &particle_velocity_solution, const DoFHandler< dim > &momentum_transfer_coefficient_dof_handler, const LinearAlgebra::distributed::Vector< double > &momentum_transfer_coefficient_solution)
Compute the terms required to assemble the particle-fluid forces at the gauss points....
void compute_forcing_term() override
Precompute the forcing term at the quadrature points. In addition to the momentum forcing term,...
LinearAlgebra::distributed::Vector< number > VectorType
Table< 2, VectorizedArray< number > > grad_div_gamma
Table< 2, Tensor< 1, dim, VectorizedArray< number > > > particle_fluid_force
Table< 2, Tensor< 1, dim, VectorizedArray< number > > > particle_velocity
Table< 2, VectorizedArray< number > > time_derivative_void_fraction
VANSOperator(const Parameters::CFDDEM &cfd_dem_parameters)
Constructor for the VANS operator.
Table< 2, Tensor< 1, dim, VectorizedArray< number > > > void_fraction_gradient
const Parameters::CFDDEM cfd_dem_parameters
Table< 2, VectorizedArray< number > > momentum_transfer_coefficient
FEEvaluation< dim, -1, 0, dim+1, number > FECellIntegrator
Table< 2, Tensor< 1, dim, VectorizedArray< number > > > particle_fluid_drag
Table< 2, VectorizedArray< number > > mass_source_terms
void do_cell_integral_local(FECellIntegrator &integrator) const override
Perform cell integral on a cell batch without gathering and scattering the values,...
FEFaceEvaluation< dim, -1, 0, dim+1, number > FEFaceIntegrator
Table< 2, VectorizedArray< number > > void_fraction
virtual void evaluate_non_linear_term_and_calculate_tau(const VectorType &newton_step) override
Store relevant values of the vector of the last newton step to use it in the Jacobian and pre-calcula...
void compute_void_fraction(const DoFHandler< dim > &void_fraction_dof_handler, const LinearAlgebra::distributed::Vector< double > &void_fraction_solution, const LinearAlgebra::distributed::Vector< double > &time_derivative_void_fraction_solution)
Compute the void fraction at the fluid quadrature point. This essentially calculates the void fractio...
@ modelA
Model A: volume-averaged continuity and momentum equations.
Parameters for the CFD-DEM coupled solver.
VANSModel vans_model
Volume-Averaged Navier-Stokes model formulation.
GlobalVectorType VectorType