Fluid structure interaction suite
poisson.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2022 by Luca Heltai
4 //
5 // This file is part of the FSI-suite platform, based on the deal.II library.
6 //
7 // The FSI-suite platform is free software; you can use it, redistribute it,
8 // and/or modify it under the terms of the GNU Lesser General Public License as
9 // published by the Free Software Foundation; either version 3.0 of the License,
10 // or (at your option) any later version. The full text of the license can be
11 // found in the file LICENSE at the top level of the FSI-suite platform
12 // distribution.
13 //
14 // ---------------------------------------------------------------------
15 #ifndef pdes_mpi_poisson_h
16 #define pdes_mpi_poisson_h
17 
18 #include "pdes/linear_problem.h"
19 
20 namespace PDEs
21 {
22  namespace MPI
23  {
24  using namespace dealii;
25 
29  template <int dim, int spacedim = dim>
30  class Poisson : public LinearProblem<dim, spacedim, LAC::LATrilinos>
31  {
32  public:
37  Poisson();
38 
42  virtual ~Poisson() = default;
43 
47  virtual void
48  custom_estimator(dealii::Vector<float> &error_per_cell) const override;
49 
50  using ScratchData =
52 
53  using CopyData =
55 
56  using VectorType =
58 
59  protected:
63  virtual void
64  assemble_system_one_cell(
66  ScratchData &scratch,
67  CopyData &copy) override;
68 
72  virtual void
73  solve() override;
74 
76  };
77  } // namespace MPI
78 } // namespace PDEs
79 #endif
Construct a LinearProblem.
typename BlockVectorType::BlockType VectorType
Vector type.
Solve the Poisson problem, in parallel.
Definition: poisson.h:31
typename LinearProblem< dim, spacedim, LAC::LATrilinos >::ScratchData ScratchData
Definition: poisson.h:51
typename LinearProblem< dim, spacedim, LAC::LATrilinos >::VectorType VectorType
Definition: poisson.h:57
ParsedTools::Function< spacedim > coefficient
Definition: poisson.h:75
typename LinearProblem< dim, spacedim, LAC::LATrilinos >::CopyData CopyData
Definition: poisson.h:54
virtual ~Poisson()=default
Destroy the Poisson object.
A wrapper for the FunctionParser class.
Definition: function.h:30
We collect in this namespace all PDEs that are relevant to Fluid Structure Interaction Problems.