ASPECT
free_surface.h
Go to the documentation of this file.
1 // ------------------------------------------------------
2 //
3 // SPDX-License-Identifier: GPL-2.0-or-later
4 //
5 // SPDX-FileCopyrightText: Copyright (C) 2011-2025 by the ASPECT authors.
6 //
7 // This file is part of ASPECT.
8 //
9 // Detailed license information governing the source code and
10 // contributions can be found in the folder LICENSES and in
11 // LICENSE and CONTRIBUTING.md at the top level directory.
12 //
13 // ------------------------------------------------------
14 
15 
16 #ifndef _aspect_mesh_deformation_free_surface_h
17 #define _aspect_mesh_deformation_free_surface_h
18 
20 
23 
24 
25 namespace aspect
26 {
27  namespace MeshDeformation
28  {
37  template <int dim>
38  class FreeSurface : public Interface<dim>, public SimulatorAccess<dim>
39  {
40  public:
45  void initialize() override;
46 
51  void set_assemblers(const SimulatorAccess<dim> &simulator_access,
52  aspect::Assemblers::Manager<dim> &assemblers) const;
53 
54 
61  void
62  compute_velocity_constraints_on_boundary(const DoFHandler<dim> &mesh_deformation_dof_handler,
63  AffineConstraints<double> &mesh_velocity_constraints,
64  const std::set<types::boundary_id> &boundary_ids) const override;
65 
69  bool needs_surface_stabilization () const override;
70 
74  static
76 
80  void parse_parameters (ParameterHandler &prm) override;
81 
82  private:
87  void project_velocity_onto_boundary (const DoFHandler<dim> &free_surface_dof_handler,
88  const IndexSet &mesh_locally_owned,
89  const IndexSet &mesh_locally_relevant,
90  LinearAlgebra::Vector &output) const;
91 
96  {
98  };
99 
105  };
106  }
107 }
108 
109 
110 #endif
void set_assemblers(const SimulatorAccess< dim > &simulator_access, aspect::Assemblers::Manager< dim > &assemblers) const
static void declare_parameters(ParameterHandler &prm)
void compute_velocity_constraints_on_boundary(const DoFHandler< dim > &mesh_deformation_dof_handler, AffineConstraints< double > &mesh_velocity_constraints, const std::set< types::boundary_id > &boundary_ids) const override
void project_velocity_onto_boundary(const DoFHandler< dim > &free_surface_dof_handler, const IndexSet &mesh_locally_owned, const IndexSet &mesh_locally_relevant, LinearAlgebra::Vector &output) const
bool needs_surface_stabilization() const override
void parse_parameters(ParameterHandler &prm) override
SurfaceAdvection::Direction advection_direction
Definition: free_surface.h:104