Skip to content
Snippets Groups Projects
Select Git revision
  • 4de1e59339ece1e8057ef7a4e30c23b5f176da29
  • master default protected
  • fix_build
  • v1.1.2
  • v1.1.1
  • v1.1
  • v1.0.10
  • v1.0.9
  • v1.0.8
  • v1.0.7-3
  • v1.0.7
  • v1.0.6
  • v1.0.5
  • v1.0.4
  • 1.0d
  • 1.0c
  • 1.0b
  • 1.0
18 results

install.rst

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    eulerpair.hh 1.12 KiB
    #ifndef DUNE_TECTONIC_TIMESTEPPING_EULERPAIR_HH
    #define DUNE_TECTONIC_TIMESTEPPING_EULERPAIR_HH
    
    template <class VectorType, class MatrixType, class FunctionType, int dim>
    class EulerPair
        : public TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> {
    public:
      EulerPair(MatrixType const &_A, MatrixType const &_M,
                VectorType const &_u_initial, VectorType const &_v_initial,
                Dune::BitSetVector<dim> const &_dirichletNodes,
                FunctionType const &_dirichletFunction);
    
      void virtual nextTimeStep() override;
      void virtual setup(VectorType const &, double, double, VectorType &,
                         VectorType &, MatrixType &) override;
      void virtual postProcess(VectorType const &) override;
      void virtual extractDisplacement(VectorType &) const override;
      void virtual extractVelocity(VectorType &) const override;
    
    private:
      MatrixType const &A;
      MatrixType const &M;
      VectorType u;
      VectorType v;
      Dune::BitSetVector<dim> const &dirichletNodes;
      FunctionType const &dirichletFunction;
    
      VectorType u_o;
      VectorType v_o;
    
      double tau;
    
      bool postProcessCalled = false;
    };
    #endif