Line data Source code
1 : /*
2 : * * expand fractures using the Arte algorithm, 3D case
3 : *
4 : * Copyright (c) 2011-2015: G-CSC, Goethe University Frankfurt
5 : * Author: Markus Knodel, inspired by Arte from Fuchs and Sebastian Reiters code for fracture expansion without Arte
6 : *
7 : * This file is part of UG4.
8 : *
9 : * UG4 is free software: you can redistribute it and/or modify it under the
10 : * terms of the GNU Lesser General Public License version 3 (as published by the
11 : * Free Software Foundation) with the following additional attribution
12 : * requirements (according to LGPL/GPL v3 §7):
13 : *
14 : * (1) The following notice must be displayed in the Appropriate Legal Notices
15 : * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
16 : *
17 : * (2) The following notice must be displayed at a prominent place in the
18 : * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
19 : *
20 : * (3) The following bibliography is recommended for citation and must be
21 : * preserved in all covered files:
22 : * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
23 : * parallel geometric multigrid solver on hierarchically distributed grids.
24 : * Computing and visualization in science 16, 4 (2013), 151-164"
25 : * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
26 : * flexible software system for simulating pde based models on high performance
27 : * computers. Computing and visualization in science 16, 4 (2013), 165-179"
28 : *
29 : * This program is distributed in the hope that it will be useful,
30 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 : * GNU Lesser General Public License for more details.
33 : */
34 :
35 : #include <boost/function.hpp>
36 : #include <stack>
37 : #include <vector>
38 : #include "lib_grid/lg_base.h"
39 : #include "expand_layers.h"
40 : #include "expand_layers_arte.h"
41 : #include "expand_layers_arte3D.h"
42 : #include "lib_grid/algorithms/geom_obj_util/geom_obj_util.h"
43 : #include "lib_grid/callbacks/callbacks.h"
44 : #include "lib_grid/grid/grid_util.h"
45 : //#include "lib_grid/util/simple_algebra/least_squares_solver.h"
46 :
47 : #include <vector>
48 :
49 : #include "lib_grid/algorithms/extrusion/ArteExpandFracs3D.h"
50 :
51 : using namespace std;
52 :
53 : namespace ug{
54 :
55 :
56 0 : bool ExpandFractures3dArte( Grid& grid, SubsetHandler& sh,
57 : std::vector<FractureInfo> const & fracInfos,
58 : bool useTrianglesInDiamonds, bool establishDiamonds )
59 : {
60 :
61 0 : bool need2Restart = false;
62 :
63 : bool runResult = false;
64 :
65 0 : do
66 : {
67 :
68 : ArteExpandFracs3D ef3dA ( grid, sh, fracInfos,
69 0 : useTrianglesInDiamonds, establishDiamonds );
70 :
71 0 : runResult = ef3dA.run( need2Restart );
72 :
73 : // return runResult;
74 :
75 0 : if( runResult )
76 : {
77 : return true;
78 : }
79 :
80 0 : } while( need2Restart );
81 :
82 : return runResult;
83 :
84 : }
85 :
86 :
87 :
88 : }// end of namespace
89 :
90 :
|