Skip to content

Commit

Permalink
Rename main class
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsaavedra committed Aug 9, 2024
1 parent 1d663eb commit d8b13d1
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 65 deletions.
4 changes: 2 additions & 2 deletions applications/lethe-fluid/fluid_dynamics_matrix_based.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ main(int argc, char *argv[])
"lethe-fluid",
"lethe-fluid-nitsche"));

GLSNavierStokesSolver<2> problem(NSparam);
FluidDynamicsMatrixBased<2> problem(NSparam);
problem.solve();
}

Expand All @@ -66,7 +66,7 @@ main(int argc, char *argv[])
"lethe-fluid",
"lethe-fluid-nitsche"));

GLSNavierStokesSolver<3> problem(NSparam);
FluidDynamicsMatrixBased<3> problem(NSparam);
problem.solve();
}
else
Expand Down
2 changes: 1 addition & 1 deletion doc/doxygen/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
physics_solver:e -> navier_stokes_base:w [dir=back];
physics_solver:e -> auxiliary_physics:w [dir=back];
navier_stokes_base_1 [label=<<B>GLSNavierStokesSolver</B> <br/>(lethe-fluid)>,href="https://chaos-polymtl.github.io/lethe/doxygen/classGLSNavierStokesSolver.html", tooltip="GLSNavierStokesSolver"];
navier_stokes_base_1 [label=<<B>FluidDynamicsMatrixBased</B> <br/>(lethe-fluid)>,href="https://chaos-polymtl.github.io/lethe/doxygen/classFluidDynamicsMatrixBased.html", tooltip="FluidDynamicsMatrixBased"];
navier_stokes_base_2 [label=<<B>FluidDynamicsBlock</B> <br/> (lethe-fluid-block)>,href="https://chaos-polymtl.github.io/lethe/doxygen/classFluidDynamicsBlock.html", tooltip="FluidDynamicsBlock"];
navier_stokes_base_3 [label=<<B>FluidDynamicsMatrixFree</B> <br/> (lethe-fluid-matrix-free)>,href="https://chaos-polymtl.github.io/lethe/doxygen/classFluidDynamicsMatrixFree.html", tooltip="FluidDynamicsMatrixFree"];
Expand Down
6 changes: 3 additions & 3 deletions include/fem-dem/fluid_dynamics_sharp.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ using namespace dealii;
*/

template <int dim>
class FluidDynamicsSharp : public GLSNavierStokesSolver<dim>
class FluidDynamicsSharp : public FluidDynamicsMatrixBased<dim>
{
public:
FluidDynamicsSharp(CFDDEMSimulationParameters<dim> &nsparam);
Expand Down Expand Up @@ -183,7 +183,7 @@ class FluidDynamicsSharp : public GLSNavierStokesSolver<dim>
else
generate_cut_cells_map();
}
this->GLSNavierStokesSolver<dim>::assemble_system_matrix();
this->FluidDynamicsMatrixBased<dim>::assemble_system_matrix();

sharp_edge();
}
Expand All @@ -202,7 +202,7 @@ class FluidDynamicsSharp : public GLSNavierStokesSolver<dim>
virtual void
assemble_rhs()
{
this->GLSNavierStokesSolver<dim>::assemble_system_rhs();
this->FluidDynamicsMatrixBased<dim>::assemble_system_rhs();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion include/fem-dem/fluid_dynamics_vans.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ particle_sphere_intersection_3d(double r_particle,
*/

template <int dim>
class FluidDynamicsVANS : public GLSNavierStokesSolver<dim>
class FluidDynamicsVANS : public FluidDynamicsMatrixBased<dim>
{
public:
FluidDynamicsVANS(CFDDEMSimulationParameters<dim> &nsparam);
Expand Down
8 changes: 4 additions & 4 deletions include/solvers/fluid_dynamics_matrix_based.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ using namespace dealii;
*/

template <int dim>
class GLSNavierStokesSolver
class FluidDynamicsMatrixBased
: public NavierStokesBase<dim, GlobalVectorType, IndexSet>
{
public:
GLSNavierStokesSolver(SimulationParameters<dim> &nsparam);
~GLSNavierStokesSolver();
FluidDynamicsMatrixBased(SimulationParameters<dim> &nsparam);
~FluidDynamicsMatrixBased();

/**
* @brief solve Solves the Navier-Stokes problem
Expand Down Expand Up @@ -130,7 +130,7 @@ class GLSNavierStokesSolver
* @brief Define the zero constraints used to solved the problem that change
* with other physics' solutions.
*
* It differs from GLSNavierStokesSolver::define_zero_constraints as it
* It differs from FluidDynamicsMatrixBased::define_zero_constraints as it
* changes in time depending on the physics' solutions. Currently, it is only
* used to constraint solid with the temperature's evolution.
*/
Expand Down
2 changes: 1 addition & 1 deletion include/solvers/fluid_dynamics_nitsche.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using namespace dealii;
*/

template <int dim, int spacedim = dim>
class FluidDynamicsNitsche : public GLSNavierStokesSolver<spacedim>
class FluidDynamicsNitsche : public FluidDynamicsMatrixBased<spacedim>
{
public:
FluidDynamicsNitsche(SimulationParameters<spacedim> &nsparam);
Expand Down
2 changes: 1 addition & 1 deletion source/fem-dem/cfd_dem_coupling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ CFDDEMSolver<dim>::postprocess_fd(bool first_iteration)
<< "---------------------------------------------------------------"
<< std::endl;

this->GLSNavierStokesSolver<dim>::postprocess_fd(first_iteration);
this->FluidDynamicsMatrixBased<dim>::postprocess_fd(first_iteration);

// Visualization
if (this->simulation_control->is_output_iteration())
Expand Down
8 changes: 4 additions & 4 deletions source/fem-dem/fluid_dynamics_sharp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

#include <deal.II/lac/full_matrix.h>

// Constructor for class GLSNavierStokesSolver
// Constructor for class FluidDynamicsSharp
template <int dim>
FluidDynamicsSharp<dim>::FluidDynamicsSharp(
CFDDEMSimulationParameters<dim> &p_nsparam)
: GLSNavierStokesSolver<dim>(p_nsparam.cfd_parameters)
: FluidDynamicsMatrixBased<dim>(p_nsparam.cfd_parameters)
, cfd_dem_parameters(p_nsparam)
, all_spheres(true)
, combined_shapes()
Expand Down Expand Up @@ -4171,7 +4171,7 @@ template <int dim>
void
FluidDynamicsSharp<dim>::write_checkpoint()
{
this->GLSNavierStokesSolver<dim>::write_checkpoint();
this->FluidDynamicsMatrixBased<dim>::write_checkpoint();


// Write a table with all the relevant properties of the particle in a table.
Expand Down Expand Up @@ -4314,7 +4314,7 @@ template <int dim>
void
FluidDynamicsSharp<dim>::read_checkpoint()
{
this->GLSNavierStokesSolver<dim>::read_checkpoint();
this->FluidDynamicsMatrixBased<dim>::read_checkpoint();

TimerOutput::Scope t(this->computing_timer,
"Reset Sharp-Edge particle information");
Expand Down
6 changes: 3 additions & 3 deletions source/fem-dem/fluid_dynamics_vans.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
template <int dim>
FluidDynamicsVANS<dim>::FluidDynamicsVANS(
CFDDEMSimulationParameters<dim> &nsparam)
: GLSNavierStokesSolver<dim>(nsparam.cfd_parameters)
: FluidDynamicsMatrixBased<dim>(nsparam.cfd_parameters)
, cfd_dem_simulation_parameters(nsparam)
, void_fraction_dof_handler(*this->triangulation)
, fe_void_fraction(nsparam.cfd_parameters.fem_parameters.void_fraction_order)
Expand Down Expand Up @@ -57,7 +57,7 @@ template <int dim>
void
FluidDynamicsVANS<dim>::setup_dofs()
{
GLSNavierStokesSolver<dim>::setup_dofs();
FluidDynamicsMatrixBased<dim>::setup_dofs();

void_fraction_dof_handler.distribute_dofs(fe_void_fraction);
locally_owned_dofs_voidfraction =
Expand Down Expand Up @@ -172,7 +172,7 @@ FluidDynamicsVANS<dim>::finish_time_step_fd()
// ensure that the checkpointed information is correct
percolate_void_fraction();

GLSNavierStokesSolver<dim>::finish_time_step();
FluidDynamicsMatrixBased<dim>::finish_time_step();
}

template <int dim>
Expand Down
Loading

0 comments on commit d8b13d1

Please sign in to comment.