Skip to content
Snippets Groups Projects
Select Git revision
  • 7e40b8141787ab0fb7252cb070a3956a623c2442
  • master default protected
  • hierarchical-basis
  • revert-ef4a3a4f
  • patch_releases_4_14
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • alphashapes
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

Lambda2.h

Blame
  • dgResidual.h 2.64 KiB
    #ifndef _DG_RESIDUAL_H_
    #define _DG_RESIDUAL_H_
    class dgConservationLaw;
    class dgGroupCollection;
    class dataCacheDouble;
    class dataCacheElement;
    class dgDofContainer;
    class dataCacheMap;
    class dgGroupOfElements;
    class dgGroupOfFaces;
    class binding;
    #include "fullMatrix.h"
    
    class dgResidualVolume {
      dataCacheMap *_cacheMap;
      const dgConservationLaw &_claw;
      int _nbFields;
      dataCacheElement &_cacheElement;
      dataCacheDouble &_UVW, &_solutionQPe, &_gradientSolutionQPe;
      dataCacheDouble *_sourceTerm, *_convectiveFlux, *_diffusiveFlux;
      public:
      dgResidualVolume (const dgConservationLaw &claw);
      ~dgResidualVolume();
      void compute1Group(dgGroupOfElements &group, fullMatrix<double> &solution, fullMatrix<double> &residual);
      void computeAndMap1Group(dgGroupOfElements &group, dgDofContainer &solution, dgDofContainer &residual);
    };
    
    class dgResidualInterface {
      dataCacheMap *_cacheMapLeft, *_cacheMapRight;
      const dgConservationLaw &_claw;
      int _nbFields;
      dataCacheElement &_cacheElementLeft, &_cacheElementRight;
      dataCacheDouble &_uvwLeft, &_uvwRight, &_solutionQPLeft, &_solutionQPRight, &_gradientSolutionLeft, &_gradientSolutionRight;
      dataCacheDouble &_normals;
      dataCacheDouble *_riemannSolver, *_maximumDiffusivityLeft,*_maximumDiffusivityRight, *_diffusiveFluxLeft, *_diffusiveFluxRight;
      public:
      dgResidualInterface (const dgConservationLaw &claw);
      void compute1Group ( //dofManager &dof, // the DOF manager (maybe useless here)
    				     dgGroupOfFaces &group, 
    				     const fullMatrix<double> &solution, // solution !! at faces nodes
    				     fullMatrix<double> &solutionLeft, 
    				     fullMatrix<double> &solutionRight, 
    				     fullMatrix<double> &residual // residual !! at faces nodes
                );
      void computeAndMap1Group (dgGroupOfFaces &faces, dgDofContainer &solution, dgDofContainer &residual);
      ~dgResidualInterface();
    };
    
    class dgResidualBoundary {
      const dgConservationLaw &_claw;
      public :
      void compute1Group ( //dofManager &dof, // the DOF manager (maybe useless here)
    				     dgGroupOfFaces &group, 
    				     const fullMatrix<double> &solution, // solution !! at faces nodes
    				     fullMatrix<double> &solutionLeft, 
    				     fullMatrix<double> &residual // residual !! at faces nodes
                );
      void computeAndMap1Group (dgGroupOfFaces &faces, dgDofContainer &solution, dgDofContainer &residual);
      dgResidualBoundary (const dgConservationLaw &claw);
    };
    
    class dgResidual {
      const dgConservationLaw &_claw;
      public:
      dgResidual (const dgConservationLaw *claw) : _claw(*claw) {}
      void compute(dgGroupCollection &groups, dgDofContainer &solution, dgDofContainer &residual);
      static void registerBindings (binding *b);
    };
    
    #endif