GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Domain.hpp
Go to the documentation of this file.
1 // This file is part of GranOO, a workbench for FEM simulation.
2 //
3 // Author(s) : - Jean-luc CHARLES I2M-DuMAS/ENSAM Talence France
4 // <jean-luc.charles@ensam.eu>
5 // - Damien ANDRE SPCTS/ENS Ceramique industrielle, Limoges France
6 // <damien.andre@unilim.fr>
7 // - Jeremie GIRARDOT I2M-DuMAS/ENSAM Talence France
8 // <jeremie.girardot@ensam.eu>
9 // - Cedric Hubert LAMIH/UVHC Valenciennes France
10 // <cedric.hubert@univ-valenciennes.fr>
11 // - Ivan IORDANOFF I2M-DuMAS-MPI/ENSAM Talence France
12 // <ivan.iordanoff@ensam.eu>
13 //
14 // Copyright (C) 2008-2016 JL. CHARLES, D. ANDRE, I. IORDANOFF, J. GIRARDOT
15 //
16 //
17 //
18 //
19 //
20 // This program is free software: you can redistribute it and/or modify
21 // it under the terms of the GNU General Public License as published by
22 // the Free Software Foundation, either version 3 of the License, or
23 // (at your option) any later version.
24 //
25 // This program is distributed in the hope that it will be useful,
26 // but WITHOUT ANY WARRANTY; without even the implied warranty of
27 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 // GNU General Public License for more details.
29 //
30 // You should have received a copy of the GNU General Public License
31 // along with this program. If not, see <http://www.gnu.org/licenses/>.
32 
33 
34 #ifndef _LibFEM_Domain_hpp_
35 #define _LibFEM_Domain_hpp_
36 
37 #include <list>
38 #include <utility>
39 #include <vtkUnstructuredGrid.h>
40 #include <vtkSmartPointer.h>
41 
42 
44 #include "GranOO3/Core/Domain.hpp"
45 #include "GranOO3/Geom/Frame.hpp"
46 
47 namespace GranOO3
48 {
49  namespace FEM
50  {
51  class Domain : public Core::SingletonB<Domain, Core::Domain>,
52  public Core::Domain
53  {
54  GRANOO_SINGLETON_CLASS(Domain);
55 
56  public:
57  ~Domain();
58  void load_gfem(std::string);
59  void to_vtk(std::vector<std::pair<std::string, vtkSmartPointer<vtkUnstructuredGrid> > > &data);
60 
61  private:
62  Domain();
63  Domain(const Domain&) = delete;
64  Domain & operator=(const Domain &) = delete;
65 
66  };
67  }
68 }
69 
70 #endif
Definition: Domain.hpp:46
Definition: Singleton.hpp:93
Definition: Domain.hpp:53
Domain(const Domain &)=delete
void load_gfem(std::string)
Definition: Domain.cpp:60
~Domain()
Definition: Domain.cpp:56
void to_vtk(std::vector< std::pair< std::string, vtkSmartPointer< vtkUnstructuredGrid > > > &data)
Domain & operator=(const Domain &)=delete
Domain()
Definition: Domain.cpp:53
Definition: Common.hpp:198
static std::string data()
Definition: Exprtk.hpp:44228