ASPECT
diffusion.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) 2020-2026 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_diffusion_h
17 #define _aspect_mesh_deformation_diffusion_h
18 
22 
23 
24 namespace aspect
25 {
26  namespace MeshDeformation
27  {
35  template <int dim>
36  class Diffusion : public Interface<dim>, public SimulatorAccess<dim>
37  {
38  public:
39  Diffusion();
40 
45  void initialize() override;
46 
51  void update() override;
52 
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:
88  void diffuse_boundary (const DoFHandler<dim> &free_surface_dof_handler,
89  const IndexSet &mesh_locally_owned,
90  const IndexSet &mesh_locally_relevant,
91  LinearAlgebra::Vector &output,
92  const std::set<types::boundary_id> &boundary_ids) const;
93 
100  void check_diffusion_time_step (const DoFHandler<dim> &mesh_deformation_dof_handler,
101  const std::set<types::boundary_id> &boundary_ids) const;
102 
110  double diffusivity;
111 
118 
124 
130  };
131  }
132 }
133 
134 
135 #endif
bool needs_surface_stabilization() const override
void check_diffusion_time_step(const DoFHandler< dim > &mesh_deformation_dof_handler, const std::set< types::boundary_id > &boundary_ids) const
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
unsigned int timesteps_between_diffusion
Definition: diffusion.h:117
static void declare_parameters(ParameterHandler &prm)
std::set< types::boundary_id > additional_tangential_mesh_boundary_indicators
Definition: diffusion.h:129
void diffuse_boundary(const DoFHandler< dim > &free_surface_dof_handler, const IndexSet &mesh_locally_owned, const IndexSet &mesh_locally_relevant, LinearAlgebra::Vector &output, const std::set< types::boundary_id > &boundary_ids) const
void parse_parameters(ParameterHandler &prm) override