Skip to content
Snippets Groups Projects
Select Git revision
  • faa3a63c45cd75958109cb78a51656e113ab4eab
  • 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

Eigenvectors.h

Blame
  • periodical.cpp 40.52 KiB
    // Gmsh - Copyright (C) 1997-2014 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@geuz.org>.
    //
    // Contributor(s):
    //   Tristan Carrier Maxime Melchior
    
    #include "periodical.h"
    #include "GModel.h"
    #include "meshGRegion.h"
    #include <fstream>
    #include <algorithm>
    #include "MElement.h"
    #if defined(HAVE_VORO3D)
    #include "voro++.hh"
    #endif
    
    #if defined(HAVE_VORO3D)
    using namespace voro;
    #endif
    
    /*********definitions*********/
    
    class geo_cell{
     public:
      std::vector<std::pair<int,int> > lines;
      std::vector<std::vector<int> > line_loops;
      std::vector<std::vector<int> > orientations;
    
      std::vector<int> points2;
      std::vector<int> lines2;
      std::vector<int> line_loops2;
      std::vector<int> faces2;
      int face_loops2;
    
      geo_cell();
      ~geo_cell();
    
      int search_line(std::pair<int,int>);
    };
    
    /*********class geo_cell*********/
    
    geo_cell::geo_cell(){}
    
    geo_cell::~geo_cell(){}
    
    int geo_cell::search_line(std::pair<int,int> line){
      unsigned int i;
    
      for(i=0;i<lines.size();i++){
        if(lines[i].first==line.first && lines[i].second==line.second) return i;
        if(lines[i].first==line.second && lines[i].second==line.first) return i;
      }
    
      return -1;
    }
    
    /*********class voroMetal3D*********/
    
    voroMetal3D::voroMetal3D(){}
    
    voroMetal3D::~voroMetal3D(){}
    
    void voroMetal3D::execute(double h){
      GRegion* gr;
      GModel* model = GModel::current();
      GModel::riter it;