Skip to content
Snippets Groups Projects

Piotr's Tutorial 7 on hyperbolic problems

Merged Dominic Kempf requested to merge Piotr/tutorial07 into master
4 unresolved threads

Dune course is approaching, time to clean things up. This MR allows us to better review and comment on the code.

Edited by Dominic Kempf

Merge request reports

Merged by Dominic KempfDominic Kempf 7 years ago (Feb 15, 2018 1:33pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
146 using DF = RF;
147
148 VariableFluxVectorSplitting (const MODEL& model_)
149 : model(model_)
150 {
151 }
152
153 template<typename E, typename X>
154 void numericalFlux(const E& inside, const X& x_inside,
155 const E& outside, const X& x_outside,
156 const Dune::FieldVector<DF,dim> n_F,
157 const Dune::FieldVector<RF,m>& u_s,
158 const Dune::FieldVector<RF,m>& u_n,Dune::FieldVector<RF,m>& f) const
159 {
160 // check for discontinuity
161 if (model.problem.c(inside,x_inside)==model.problem.c(outside,x_outside))
  • 1 #ifndef ACOUSTICS_RIEMANNPROBLEM
  • Author Maintainer

    There are still many remnants of debugging (code in comments and so on). For a tutorial all that code needs to be removed...

  • 35 using GFS = Dune::PDELab::PowerGridFunctionSpace<GFSDG,m,VBE,OrderingTag>;
    36 GFS gfs(gfsdg);
    37
    38 typedef typename GFS::template ConstraintsContainer<RF>::Type C;
    39 C cg;
    40 gfs.update(); // initializing the gfs
    41 std::cout << "degrees of freedom: " << gfs.globalSize() << std::endl;
    42
    43 // Make instationary grid operator
    44 using LOP = Dune::PDELab::DGLinearHyperbolicSpatialOperator<NUMFLUX,FEMDG>;
    45 LOP lop(numflux);
    46 using TLOP = Dune::PDELab::DGLinearHyperbolicTemporalOperator<NUMFLUX,FEMDG>;
    47 TLOP tlop(numflux);
    48
    49 using MBE = Dune::PDELab::ISTL::BCRSMatrixBackend<>;
    50 MBE mbe(5); // Maximal number of nonzeroes per row
  • 8 \param c speed of sound
    9 \param n unit outer normal vector
    10 \param RT matrix to be filled
    11 */
    12
    13 template<int dim, typename PROBLEM>
    14 class Model ;
    15
    16 template<typename PROBLEM>
    17 class Model<2,PROBLEM>
    18 {
    19 public:
    20 static constexpr int dim = 2; // space dimension
    21 static constexpr int m = dim+1; // system size
    22 static constexpr int mplus = 1; // number of positive eigenvectors
    23 static constexpr int mminus = 1; // number of negative eigenvectors
  • added 1 commit

    • 9d0e89b9 - [WIP] addeddocumentation and minor fixes

    Compare with previous version

  • Piotr Minakowski marked as a Work In Progress from 9d0e89b9

    marked as a Work In Progress from 9d0e89b9

  • added 1 commit

    • ab5892fb - Change model to private in the NumFlux class and added model() method

    Compare with previous version

  • added 1 commit

    • 62876def - Change operator== on floating point types to FloatCmp

    Compare with previous version

  • Piotr Minakowski added 3 commits

    added 3 commits

    Compare with previous version

  • added 1 commit

    • 33142126 - Added material function and code cleanup

    Compare with previous version

  • added 1 commit

    • 0ee089eb - added Linear Acoustics in 1d

    Compare with previous version

  • added 1 commit

    • a813155b - introduciong code listing markers in tex

    Compare with previous version

  • Dominic Kempf unmarked as a Work In Progress

    unmarked as a Work In Progress

  • merged

  • Dominic Kempf mentioned in commit a992a2cd

    mentioned in commit a992a2cd

  • Please register or sign in to reply
    Loading