Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
isothermal_compressible_navier_stokes_cls_assembler.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2023-2024, 2026 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_isothermal_compressible_navier_stokes_cls_assembler_h
5#define lethe_isothermal_compressible_navier_stokes_cls_assembler_h
6
8
10#include <solvers/copy_data.h>
13
14
15/**
16 * @brief Class that assembles the core of the Navier-Stokes equation with
17 * free surface using CLS modeling.
18 * According to the following weak form:
19 * \f$\nabla \cdot (\rho \mathbf{u}) + \rho \mathbf{u} \cdot \nabla
20 * \mathbf{u} - \nabla p - \mu \nabla\cdot (\nabla \mathbf{u} +
21 * (\nabla \mathbf{u})^T) = 0 \f$ with a full GLS stabilization
22 *
23 * @tparam dim An integer that denotes the number of spatial dimensions
24 *
25 * @ingroup assemblers
26 */
27template <int dim>
29 : public NavierStokesAssemblerBase<dim>
30{
31public:
33 const std::shared_ptr<SimulationControl> &simulation_control,
34 const SimulationParameters<dim> &nsparam)
36 , cls_parameters(nsparam.multiphysics.cls_parameters)
37 {}
38
39 /**
40 * @brief assemble_matrix Assembles the matrix
41 * @param scratch_data (see base class)
42 * @param copy_data (see base class)
43 */
44 virtual void
46 StabilizedMethodsTensorCopyData<dim> &copy_data) override;
47
48 /**
49 * @brief assemble_rhs Assembles the rhs
50 * @param scratch_data (see base class)
51 * @param copy_data (see base class)
52 */
53 virtual void
55 StabilizedMethodsTensorCopyData<dim> &copy_data) override;
56
57 const std::shared_ptr<SimulationControl> simulation_control;
59};
60
61
62template <int dim>
64 : public NavierStokesAssemblerBase<dim>
65{
66public:
71
72 /**
73 * @brief assemble_matrix Assembles the matrix
74 * @param scratch_data (see base class)
75 * @param copy_data (see base class)
76 */
77 virtual void
79 StabilizedMethodsTensorCopyData<dim> &copy_data) override;
80
81 /**
82 * @brief assemble_rhs Assembles the rhs
83 * @param scratch_data (see base class)
84 * @param copy_data (see base class)
85 */
86 virtual void
88 StabilizedMethodsTensorCopyData<dim> &copy_data) override;
89
90 const std::shared_ptr<SimulationControl> simulation_control;
91};
92
93
94#endif
virtual void assemble_rhs(const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
assemble_rhs Assembles the rhs
virtual void assemble_matrix(const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
assemble_matrix Assembles the matrix
GLSIsothermalCompressibleNavierStokesCLSAssemblerBDF(const std::shared_ptr< SimulationControl > &simulation_control)
GLSIsothermalCompressibleNavierStokesCLSAssemblerCore(const std::shared_ptr< SimulationControl > &simulation_control, const SimulationParameters< dim > &nsparam)
virtual void assemble_matrix(const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
assemble_matrix Assembles the matrix
virtual void assemble_rhs(const NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > &copy_data) override
assemble_rhs Assembles the rhs
Class that stores the information required by the assembly procedure for a Navier-Stokes equation....
Class responsible for storing the information calculated using the assembly of stabilized Tensor<1,...
Definition copy_data.h:166
PhysicsAssemblerBase< NavierStokesScratchData< dim >, StabilizedMethodsTensorCopyData< dim > > NavierStokesAssemblerBase
A pure virtual class that serves as an interface for all of the assemblers for the Navier-Stokes Equa...
Simulation control classes for managing time-stepping and iteration control in Lethe.
CLS - Defines the parameters for free surface simulations using the CLS method. Has to be declared be...