Piotr's Tutorial 7 on hyperbolic problems
4 unresolved threads
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
Activity
- tutorial07/src/numericalflux.hh 0 → 100644
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)) changed this line in version 3 of the diff
- tutorial07/src/shallowwaterproblem.hh 0 → 100644
1 #ifndef ACOUSTICS_RIEMANNPROBLEM changed this line in version 2 of the diff
- tutorial07/src/driver.hh 0 → 100644
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 changed this line in version 6 of the diff
- tutorial07/src/linearacoustics.hh 0 → 100644
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 changed this line in version 6 of the diff
marked as a Work In Progress from 9d0e89b9
added 1 commit
- ab5892fb - Change model to private in the NumFlux class and added model() method
added 1 commit
- 62876def - Change operator== on floating point types to FloatCmp
mentioned in commit a992a2cd
Please register or sign in to reply