dune-foamgrid 2.12.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dune_foamgrid-2.12.0.4/.gitignore +50 -0
- dune_foamgrid-2.12.0.4/.gitlab-ci.yml +14 -0
- dune_foamgrid-2.12.0.4/CMakeLists.txt +53 -0
- dune_foamgrid-2.12.0.4/COPYING +41 -0
- dune_foamgrid-2.12.0.4/LICENSE.md +40 -0
- dune_foamgrid-2.12.0.4/PKG-INFO +67 -0
- dune_foamgrid-2.12.0.4/README.md +39 -0
- dune_foamgrid-2.12.0.4/TODO +5 -0
- dune_foamgrid-2.12.0.4/cmake/modules/CMakeLists.txt +3 -0
- dune_foamgrid-2.12.0.4/cmake/modules/DuneFoamgridMacros.cmake +1 -0
- dune_foamgrid-2.12.0.4/doc/CMakeLists.txt +1 -0
- dune_foamgrid-2.12.0.4/doc/doxygen/CMakeLists.txt +2 -0
- dune_foamgrid-2.12.0.4/doc/doxygen/Doxylocal +30 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/bifurcation1d2d.msh +24 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/bifurcation1d3d.geo +9 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/bifurcation1d3d.msh +33 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/junction2d3dbseg.geo +22 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/junction2d3dbseg.msh +20 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/line1d2d.geo +9 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/line1d2d.msh +27 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/line1d2dbseg.geo +12 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/line1d2dbseg.msh +19 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/line1d3d.geo +5 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/line1d3d.msh +19 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/test1d3d.geo +7 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/test1d3d.msh +20 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/tjunction-2d.msh +37 -0
- dune_foamgrid-2.12.0.4/doc/grids/gmsh/tjunction2d.msh +142 -0
- dune_foamgrid-2.12.0.4/dune/CMakeLists.txt +1 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/CMakeLists.txt +7 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/dgffoam.cc +71 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/dgffoam.hh +225 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/CMakeLists.txt +4 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgrid.cc +1439 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridedge.hh +129 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridelements.hh +384 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridentity.hh +777 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridentityseed.hh +66 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridfactory.hh +490 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridgeometry.hh +49 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridhierarchiciterator.hh +108 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridindexsets.hh +455 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridintersectioniterators.hh +417 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridintersections.hh +535 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridleafiterator.hh +114 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridleveliterator.hh +62 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridnulliteratorfactory.hh +29 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid/foamgridvertex.hh +153 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/foamgrid.hh +791 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/.gitignore +7 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/CMakeLists.txt +13 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/boundary-segment-test.cc +107 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/foamgrid-test.cc +315 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/global-refine-test.cc +146 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/growth-test-1d.cc +472 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/growth-test-2d.cc +210 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/local-refine-test.cc +90 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/make2din3dgrid.hh +104 -0
- dune_foamgrid-2.12.0.4/dune/foamgrid/test/setposition-test.cc +61 -0
- dune_foamgrid-2.12.0.4/dune-foamgrid.pc.in +15 -0
- dune_foamgrid-2.12.0.4/dune.module +13 -0
- dune_foamgrid-2.12.0.4/examples/CMakeLists.txt +5 -0
- dune_foamgrid-2.12.0.4/examples/elementparametrization.cc +540 -0
- dune_foamgrid-2.12.0.4/examples/parametrized-refinement.cc +114 -0
- dune_foamgrid-2.12.0.4/patches/checkintersection.patch +27 -0
- dune_foamgrid-2.12.0.4/pyproject.toml +17 -0
- dune_foamgrid-2.12.0.4/python/CMakeLists.txt +10 -0
- dune_foamgrid-2.12.0.4/python/dune/CMakeLists.txt +1 -0
- dune_foamgrid-2.12.0.4/python/dune/foamgrid/CMakeLists.txt +3 -0
- dune_foamgrid-2.12.0.4/python/dune/foamgrid/__init__.py +10 -0
- dune_foamgrid-2.12.0.4/python/dune_foamgrid.egg-info/PKG-INFO +67 -0
- dune_foamgrid-2.12.0.4/python/dune_foamgrid.egg-info/SOURCES.txt +75 -0
- dune_foamgrid-2.12.0.4/python/dune_foamgrid.egg-info/dependency_links.txt +1 -0
- dune_foamgrid-2.12.0.4/python/dune_foamgrid.egg-info/requires.txt +3 -0
- dune_foamgrid-2.12.0.4/python/dune_foamgrid.egg-info/top_level.txt +1 -0
- dune_foamgrid-2.12.0.4/setup.cfg +4 -0
- dune_foamgrid-2.12.0.4/setup.py +16 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Default cmake build directory
|
|
2
|
+
build-cmake
|
|
3
|
+
|
|
4
|
+
# default test result directory
|
|
5
|
+
Testing
|
|
6
|
+
|
|
7
|
+
# these are ignored by git
|
|
8
|
+
# For a project mostly in C, the following would be a good set of
|
|
9
|
+
# exclude patterns (uncomment them if you want to use them):
|
|
10
|
+
# *.[oa]
|
|
11
|
+
*~
|
|
12
|
+
|
|
13
|
+
.deps
|
|
14
|
+
.*.swp
|
|
15
|
+
*.la
|
|
16
|
+
*.o
|
|
17
|
+
Makefile
|
|
18
|
+
Makefile.in
|
|
19
|
+
|
|
20
|
+
# /
|
|
21
|
+
/config.*
|
|
22
|
+
/configure
|
|
23
|
+
/aclocal.m4
|
|
24
|
+
/dependencies.m4
|
|
25
|
+
/autom4te.cache
|
|
26
|
+
/depcomp
|
|
27
|
+
/install-sh
|
|
28
|
+
/missing
|
|
29
|
+
/libtool
|
|
30
|
+
/stamp-h1
|
|
31
|
+
/ltmain.sh
|
|
32
|
+
/am
|
|
33
|
+
/dune-foamgrid.pc
|
|
34
|
+
|
|
35
|
+
compile
|
|
36
|
+
test-driver
|
|
37
|
+
|
|
38
|
+
# /doc/doxygen/
|
|
39
|
+
/doc/doxygen/html
|
|
40
|
+
/doc/doxygen/doxygen-tag
|
|
41
|
+
/doc/doxygen/doxyerr.log
|
|
42
|
+
/doc/doxygen/doxygen.log
|
|
43
|
+
/doc/doxygen/Doxyfile
|
|
44
|
+
/doc/doxygen/Doxyfile.in
|
|
45
|
+
|
|
46
|
+
## /src
|
|
47
|
+
/src/dune_foamgrid
|
|
48
|
+
|
|
49
|
+
# macOS
|
|
50
|
+
.DS_Store
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
include:
|
|
3
|
+
- project: 'core/ci-config'
|
|
4
|
+
ref: master
|
|
5
|
+
file: 'config/common/master.yml'
|
|
6
|
+
- project: 'core/ci-config'
|
|
7
|
+
ref: master
|
|
8
|
+
file: 'jobs/common/master.yml'
|
|
9
|
+
|
|
10
|
+
before_script:
|
|
11
|
+
- . /duneci/bin/duneci-init-job
|
|
12
|
+
- duneci-install-module https://gitlab.dune-project.org/core/dune-common.git
|
|
13
|
+
- duneci-install-module https://gitlab.dune-project.org/core/dune-geometry.git
|
|
14
|
+
- duneci-install-module https://gitlab.dune-project.org/core/dune-grid.git
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.13)
|
|
2
|
+
project(dune-foamgrid CXX)
|
|
3
|
+
|
|
4
|
+
if(NOT (dune-common_DIR OR dune-common_ROOT OR
|
|
5
|
+
"${CMAKE_PREFIX_PATH}" MATCHES ".*dune-common.*"))
|
|
6
|
+
string(REPLACE ${CMAKE_PROJECT_NAME} dune-common dune-common_DIR
|
|
7
|
+
${PROJECT_BINARY_DIR})
|
|
8
|
+
endif()
|
|
9
|
+
|
|
10
|
+
#find dune-common and set the module path
|
|
11
|
+
find_package(dune-common REQUIRED)
|
|
12
|
+
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules"
|
|
13
|
+
${dune-common_MODULE_PATH})
|
|
14
|
+
|
|
15
|
+
#include the dune macros
|
|
16
|
+
include(DuneMacros)
|
|
17
|
+
|
|
18
|
+
if(dune-common_VERSION VERSION_GREATER_EQUAL 2.11)
|
|
19
|
+
# deactivate global include-directories
|
|
20
|
+
dune_policy(SET DP_DEFAULT_INCLUDE_DIRS NEW)
|
|
21
|
+
# deactivate global calls to add_dune_all_flags in tests
|
|
22
|
+
dune_policy(SET DP_TEST_ADD_ALL_FLAGS NEW)
|
|
23
|
+
# do not make suggested dependencies required automatically
|
|
24
|
+
dune_policy(SET DP_SUGGESTED_MODULE_DEPENDENCIES_REQUIRED_DOWNSTREAM NEW)
|
|
25
|
+
endif()
|
|
26
|
+
|
|
27
|
+
# start a dune project with information from dune.module
|
|
28
|
+
dune_project()
|
|
29
|
+
dune_add_library(dunefoamgrid INTERFACE
|
|
30
|
+
EXPORT_NAME FoamGrid
|
|
31
|
+
LINK_LIBRARIES Dune::Grid)
|
|
32
|
+
|
|
33
|
+
if(dune-common_VERSION VERSION_GREATER_EQUAL 2.11)
|
|
34
|
+
# set include directories for dunefoamgrid library
|
|
35
|
+
dune_default_include_directories(dunefoamgrid INTERFACE)
|
|
36
|
+
endif()
|
|
37
|
+
|
|
38
|
+
add_subdirectory(dune)
|
|
39
|
+
add_subdirectory(doc)
|
|
40
|
+
add_subdirectory(cmake/modules)
|
|
41
|
+
add_subdirectory(examples)
|
|
42
|
+
|
|
43
|
+
if(DUNE_ENABLE_PYTHONBINDINGS)
|
|
44
|
+
add_subdirectory(python)
|
|
45
|
+
endif()
|
|
46
|
+
|
|
47
|
+
# finalize the dune project, e.g. generating config.h etc.
|
|
48
|
+
finalize_dune_project()
|
|
49
|
+
|
|
50
|
+
# set policy for install accepting generator expressions
|
|
51
|
+
if (POLICY CMP0087)
|
|
52
|
+
cmake_policy(SET CMP0087 NEW)
|
|
53
|
+
endif ()
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Copyright holders
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
2011 Felix Albrecht
|
|
5
|
+
2012 Markus Blatt
|
|
6
|
+
2011--2012 Carsten Gräser
|
|
7
|
+
2014--2015 Timo Koch
|
|
8
|
+
2014--2015 Eugen Salzmann
|
|
9
|
+
2009--2012 Oliver Sander
|
|
10
|
+
2014 Natalie Schröder
|
|
11
|
+
2012 Wojciech Smigaj
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
The dune-foamgrid library, headers and test programs are copyrighted free software. You
|
|
16
|
+
can use, modify and/or redistribute it under the terms of either one of the two
|
|
17
|
+
following licenses:
|
|
18
|
+
|
|
19
|
+
* The GNU Lesser General Public License as published by the Free Software
|
|
20
|
+
Foundation, either Version 3 of the license or (at your option) any later
|
|
21
|
+
version. You can find a copy of the GNU Lesser General Public License, Version
|
|
22
|
+
3, in the files GPL-3 and LGPL-3 or at <http://www.gnu.org/licenses/lgpl-3.0>.
|
|
23
|
+
|
|
24
|
+
* Version 2 of the GNU General Public License as published by the Free Software
|
|
25
|
+
Foundation, with the following special exception for linking and compiling
|
|
26
|
+
against the dune-foamgrid library, the so-called "runtime exception":
|
|
27
|
+
|
|
28
|
+
As a special exception, you may use the dune-foamgrid source files as part of a
|
|
29
|
+
software library or application without restriction. Specifically, if other
|
|
30
|
+
files instantiate templates or use macros or inline functions from one or
|
|
31
|
+
more of the dune-foamgrid source files, or you compile one or more of the dune-foamgrid
|
|
32
|
+
source files and link them with other files to produce an executable, this
|
|
33
|
+
does not by itself cause the resulting executable to be covered by the GNU
|
|
34
|
+
General Public License. This exception does not however invalidate any
|
|
35
|
+
other reasons why the executable file might be covered by the GNU General
|
|
36
|
+
Public License.
|
|
37
|
+
|
|
38
|
+
This license is intended to be similar to the GNU Lesser General Public
|
|
39
|
+
License, Version 2, which by itself isn't suitable for a template library. You
|
|
40
|
+
can find a copy of the GNU General Public License, Version 2, in the file
|
|
41
|
+
GPL-2 or at <http://www.gnu.org/licenses/gpl-2.0>.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Copyright holders
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
* 2011 Felix Albrecht
|
|
5
|
+
* 2012 Markus Blatt
|
|
6
|
+
* 2011--2012 Carsten Gräser
|
|
7
|
+
* 2014--2015 Timo Koch
|
|
8
|
+
* 2014--2015 Eugen Salzmann
|
|
9
|
+
* 2009--2012 Oliver Sander
|
|
10
|
+
* 2014 Natalie Schröder
|
|
11
|
+
* 2012 Wojciech Smigaj
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
The `dune-foamgrid` library, headers and test programs are copyrighted free software. You
|
|
15
|
+
can use, modify and/or redistribute it under the terms of either one of the two
|
|
16
|
+
following licenses:
|
|
17
|
+
|
|
18
|
+
* The GNU Lesser General Public License as published by the Free Software
|
|
19
|
+
Foundation, either Version 3 of the license or (at your option) any later
|
|
20
|
+
version. You can find a copy of the GNU Lesser General Public License, Version
|
|
21
|
+
3, in the files GPL-3 and LGPL-3 or at http://www.gnu.org/licenses/lgpl-3.0.
|
|
22
|
+
|
|
23
|
+
* Version 2 of the GNU General Public License as published by the Free Software
|
|
24
|
+
Foundation, with the following special exception for linking and compiling
|
|
25
|
+
against the `dune-foamgrid` library, the so-called "runtime exception":
|
|
26
|
+
|
|
27
|
+
As a special exception, you may use the `dune-foamgrid` source files as part of a
|
|
28
|
+
software library or application without restriction. Specifically, if other
|
|
29
|
+
files instantiate templates or use macros or inline functions from one or
|
|
30
|
+
more of the `dune-foamgrid` source files, or you compile one or more of the `dune-foamgrid`
|
|
31
|
+
source files and link them with other files to produce an executable, this
|
|
32
|
+
does not by itself cause the resulting executable to be covered by the GNU
|
|
33
|
+
General Public License. This exception does not however invalidate any
|
|
34
|
+
other reasons why the executable file might be covered by the GNU General
|
|
35
|
+
Public License.
|
|
36
|
+
|
|
37
|
+
This license is intended to be similar to the GNU Lesser General Public
|
|
38
|
+
License, Version 2, which by itself isn't suitable for a template library. You
|
|
39
|
+
can find a copy of the GNU General Public License, Version 2, in the file
|
|
40
|
+
GPL-2 or at http://www.gnu.org/licenses/gpl-2.0.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dune_foamgrid
|
|
3
|
+
Version: 2.12.0.4
|
|
4
|
+
Summary: Grid manager for one- and two-dimensional grids in a physical space of arbitrary dimension, including non-manifold grids such as networks and foams
|
|
5
|
+
Home-page: https://gitlab.dune-project.org/extensions/dune-foamgrid
|
|
6
|
+
Author: Oliver Sander, Timo Koch and others
|
|
7
|
+
Author-email: dune-devel@lists.dune-project.org
|
|
8
|
+
Classifier: Programming Language :: C++
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
11
|
+
Requires-Python: >=3.4
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE.md
|
|
14
|
+
License-File: COPYING
|
|
15
|
+
Requires-Dist: dune-geometry<=2.12.0.4
|
|
16
|
+
Requires-Dist: dune-common<=2.12.0.4
|
|
17
|
+
Requires-Dist: dune-grid<=2.12.0.4
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: author-email
|
|
20
|
+
Dynamic: classifier
|
|
21
|
+
Dynamic: description
|
|
22
|
+
Dynamic: description-content-type
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: requires-python
|
|
27
|
+
Dynamic: summary
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
The `dune-foamgrid` module
|
|
32
|
+
==========================
|
|
33
|
+
|
|
34
|
+
The `dune-foamgrid` module is an implementation of the `dune-grid` interface that implements one- and two-dimensional grids in a physical space of arbitrary dimension. The grids are not expected to have a manifold structure, i.e., more than two elements can share a common facet. This makes FoamGrid the grid data structure of choice for simulating structures such as foams, discrete fracture networks, or network flow problems.
|
|
35
|
+
|
|
36
|
+
Element Parametrizations
|
|
37
|
+
------------------------
|
|
38
|
+
|
|
39
|
+
`dune-foamgrid` allows to use element parametrizations to improve the geometry approximation for curved domains. Each coarse grid element can be given a parametrization that describes an embedding into physical space. This does not influence the grid itself -- elements of a FoamGrid are always affine. However, when refining the grid, the new vertices are determined according to the parametrization. That way, the grid approaches the shape described by the parametrization functions more and more as it gets refined.
|
|
40
|
+
|
|
41
|
+
Grid Growth
|
|
42
|
+
-----------
|
|
43
|
+
|
|
44
|
+
As a unique feature of a `dune-grid` implementation, a FoamGrid is allowed to grow and shrink, i.e., elements can be added to or removed from the grid at runtime. Data attached to the grid is not invalidated by this. This allows to simulate problems with growing and shrinking domains, which is useful for various network growth and remodeling problems.
|
|
45
|
+
|
|
46
|
+
Installation
|
|
47
|
+
------------
|
|
48
|
+
|
|
49
|
+
`dune-foamgrid` requires the DUNE core modules, version 2.8 or later.
|
|
50
|
+
|
|
51
|
+
Please see the [general instructions for building DUNE modules](https://www.dune-project.org/doc/installation-notes.html) for detailed instructions on how to build the module.
|
|
52
|
+
|
|
53
|
+
Development
|
|
54
|
+
-----------
|
|
55
|
+
|
|
56
|
+
The [development version of `dune-foamgrid`](https://gitlab.dune-project.org/extensions/dune-foamgrid) can be obtained from the DUNE project's Gitlab installation.
|
|
57
|
+
At the same place an [issue tracker](https://gitlab.dune-project.org/extensions/dune-foamgrid/issues) can be found.
|
|
58
|
+
|
|
59
|
+
Publications
|
|
60
|
+
------------
|
|
61
|
+
|
|
62
|
+
The concepts of `dune-foamgrid` are presented in the following publication:
|
|
63
|
+
|
|
64
|
+
__Sander, O., Koch, T., Schröder, N., & Flemisch, B. (2017).__ *The Dune FoamGrid implementation for surface and network grids. Archive of Numerical Software*, 5(1), 217-244, http://dx.doi.org/10.11588/ans.2017.1.28490.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
git-49a171fc6ebdbc6dfc904b741db93470ee779343
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
The `dune-foamgrid` module
|
|
4
|
+
==========================
|
|
5
|
+
|
|
6
|
+
The `dune-foamgrid` module is an implementation of the `dune-grid` interface that implements one- and two-dimensional grids in a physical space of arbitrary dimension. The grids are not expected to have a manifold structure, i.e., more than two elements can share a common facet. This makes FoamGrid the grid data structure of choice for simulating structures such as foams, discrete fracture networks, or network flow problems.
|
|
7
|
+
|
|
8
|
+
Element Parametrizations
|
|
9
|
+
------------------------
|
|
10
|
+
|
|
11
|
+
`dune-foamgrid` allows to use element parametrizations to improve the geometry approximation for curved domains. Each coarse grid element can be given a parametrization that describes an embedding into physical space. This does not influence the grid itself -- elements of a FoamGrid are always affine. However, when refining the grid, the new vertices are determined according to the parametrization. That way, the grid approaches the shape described by the parametrization functions more and more as it gets refined.
|
|
12
|
+
|
|
13
|
+
Grid Growth
|
|
14
|
+
-----------
|
|
15
|
+
|
|
16
|
+
As a unique feature of a `dune-grid` implementation, a FoamGrid is allowed to grow and shrink, i.e., elements can be added to or removed from the grid at runtime. Data attached to the grid is not invalidated by this. This allows to simulate problems with growing and shrinking domains, which is useful for various network growth and remodeling problems.
|
|
17
|
+
|
|
18
|
+
Installation
|
|
19
|
+
------------
|
|
20
|
+
|
|
21
|
+
`dune-foamgrid` requires the DUNE core modules, version 2.8 or later.
|
|
22
|
+
|
|
23
|
+
Please see the [general instructions for building DUNE modules](https://www.dune-project.org/doc/installation-notes.html) for detailed instructions on how to build the module.
|
|
24
|
+
|
|
25
|
+
Development
|
|
26
|
+
-----------
|
|
27
|
+
|
|
28
|
+
The [development version of `dune-foamgrid`](https://gitlab.dune-project.org/extensions/dune-foamgrid) can be obtained from the DUNE project's Gitlab installation.
|
|
29
|
+
At the same place an [issue tracker](https://gitlab.dune-project.org/extensions/dune-foamgrid/issues) can be found.
|
|
30
|
+
|
|
31
|
+
Publications
|
|
32
|
+
------------
|
|
33
|
+
|
|
34
|
+
The concepts of `dune-foamgrid` are presented in the following publication:
|
|
35
|
+
|
|
36
|
+
__Sander, O., Koch, T., Schröder, N., & Flemisch, B. (2017).__ *The Dune FoamGrid implementation for surface and network grids. Archive of Numerical Software*, 5(1), 217-244, http://dx.doi.org/10.11588/ans.2017.1.28490.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
git-49a171fc6ebdbc6dfc904b741db93470ee779343
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
- Why are there specializations used in the implementation of FoamGridFactory?
|
|
2
|
+
- Replace make2din3dgrid by a gmsh file
|
|
3
|
+
- Does somebody really need the dgf code?
|
|
4
|
+
- Use shared_ptr for levelIndexSets_
|
|
5
|
+
- foamgridintersectioniterators: shortcut to getRealImplementation
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# File for module specific CMake tests.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
add_subdirectory("doxygen")
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file contains local changes to the doxygen configuration
|
|
2
|
+
# please us '+=' to add file/directories to the lists
|
|
3
|
+
|
|
4
|
+
# The INPUT tag can be used to specify the files and/or directories that contain
|
|
5
|
+
# documented source files. You may enter file names like "myfile.cpp" or
|
|
6
|
+
# directories like "/usr/src/myproject". Separate the files or directories
|
|
7
|
+
# with spaces.
|
|
8
|
+
|
|
9
|
+
INPUT += @top_srcdir@/dune/
|
|
10
|
+
# see e.g. dune-grid for the examples of mainpage and modules
|
|
11
|
+
# INPUT += @srcdir@/mainpage # @srcdir@/modules
|
|
12
|
+
|
|
13
|
+
# The EXCLUDE tag can be used to specify files and/or directories that should
|
|
14
|
+
# excluded from the INPUT source files. This way you can easily exclude a
|
|
15
|
+
# subdirectory from a directory tree whose root is specified with the INPUT tag.
|
|
16
|
+
|
|
17
|
+
# EXCLUDE += @top_srcdir@/dune/foamgrid/test
|
|
18
|
+
|
|
19
|
+
# The EXAMPLE_PATH tag can be used to specify one or more files or
|
|
20
|
+
# directories that contain example code fragments that are included (see
|
|
21
|
+
# the \include command).
|
|
22
|
+
|
|
23
|
+
# EXAMPLE_PATH += @top_srcdir@/src
|
|
24
|
+
|
|
25
|
+
# The IMAGE_PATH tag can be used to specify one or more files or
|
|
26
|
+
# directories that contain image that are included in the documentation (see
|
|
27
|
+
# the \image command).
|
|
28
|
+
|
|
29
|
+
# IMAGE_PATH += @top_srcdir@/dune/foamgrid/pics
|
|
30
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.2 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
$Nodes
|
|
5
|
+
6
|
|
6
|
+
1 0 0 0
|
|
7
|
+
2 1 1 0
|
|
8
|
+
3 -1 0 0
|
|
9
|
+
4 1 -1 0
|
|
10
|
+
5 0.4999999999986928 0.4999999999986928 0
|
|
11
|
+
6 0.4999999999986928 -0.4999999999986928 0
|
|
12
|
+
$EndNodes
|
|
13
|
+
$Elements
|
|
14
|
+
9
|
|
15
|
+
1 15 2 0 1 1
|
|
16
|
+
2 15 2 0 2 2
|
|
17
|
+
3 15 2 0 3 3
|
|
18
|
+
4 15 2 0 4 4
|
|
19
|
+
5 1 2 0 1 3 1
|
|
20
|
+
6 1 2 0 2 1 5
|
|
21
|
+
7 1 2 0 2 5 2
|
|
22
|
+
8 1 2 0 3 1 6
|
|
23
|
+
9 1 2 0 3 6 4
|
|
24
|
+
$EndElements
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.2 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
$Nodes
|
|
5
|
+
10
|
|
6
|
+
1 0 0 0
|
|
7
|
+
2 1 1 0
|
|
8
|
+
3 -1 0 1
|
|
9
|
+
4 1 -1 0
|
|
10
|
+
5 1 2 0
|
|
11
|
+
6 0.4999999999986928 0.4999999999986928 0
|
|
12
|
+
7 -0.4999999999986928 0 0.4999999999986928
|
|
13
|
+
8 0.4999999999986928 -0.4999999999986928 0
|
|
14
|
+
9 0.3333333333325024 0.6666666666650047 0
|
|
15
|
+
10 0.6666666666657883 1.333333333331577 0
|
|
16
|
+
$EndNodes
|
|
17
|
+
$Elements
|
|
18
|
+
14
|
|
19
|
+
1 15 2 0 1 1
|
|
20
|
+
2 15 2 0 2 2
|
|
21
|
+
3 15 2 0 3 3
|
|
22
|
+
4 15 2 0 4 4
|
|
23
|
+
5 15 2 0 5 5
|
|
24
|
+
6 1 2 0 1 1 6
|
|
25
|
+
7 1 2 0 1 6 2
|
|
26
|
+
8 1 2 0 2 1 7
|
|
27
|
+
9 1 2 0 2 7 3
|
|
28
|
+
10 1 2 0 3 1 8
|
|
29
|
+
11 1 2 0 3 8 4
|
|
30
|
+
12 1 2 0 4 1 9
|
|
31
|
+
13 1 2 0 4 9 10
|
|
32
|
+
14 1 2 0 4 10 5
|
|
33
|
+
$EndElements
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Point(1) = { 0, 0, 0, 10.0};
|
|
2
|
+
Point(2) = { 0, 0, 1, 10.0};
|
|
3
|
+
Point(3) = {-1, 0, 0, 10.0};
|
|
4
|
+
Point(4) = { 1, 0, 1, 10.0};
|
|
5
|
+
Point(5) = { 1, 1, 1, 10.0};
|
|
6
|
+
Line(1) = {1, 2};
|
|
7
|
+
Line(2) = {2, 3};
|
|
8
|
+
Line(3) = {3, 1};
|
|
9
|
+
Line(4) = {1, 4};
|
|
10
|
+
Line(5) = {4, 2};
|
|
11
|
+
Line(6) = {2, 5};
|
|
12
|
+
Line(7) = {5, 1};
|
|
13
|
+
|
|
14
|
+
Line Loop(1) = {1, 2, 3};
|
|
15
|
+
Plane Surface(1) = {1};
|
|
16
|
+
Line Loop(2) = {-1, 4, 5};
|
|
17
|
+
Plane Surface(2) = {2};
|
|
18
|
+
Line Loop(3) = {1, 6, 7};
|
|
19
|
+
Plane Surface(3) = {3};
|
|
20
|
+
Physical Surface(1) = {1:3};
|
|
21
|
+
|
|
22
|
+
Physical Line(42) = {2,3,4};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.2 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
$Nodes
|
|
5
|
+
5
|
|
6
|
+
1 0 0 0
|
|
7
|
+
2 0 0 1
|
|
8
|
+
3 -1 0 0
|
|
9
|
+
4 1 0 1
|
|
10
|
+
5 1 1 1
|
|
11
|
+
$EndNodes
|
|
12
|
+
$Elements
|
|
13
|
+
6
|
|
14
|
+
1 1 2 42 2 2 3
|
|
15
|
+
2 1 2 42 3 3 1
|
|
16
|
+
3 1 2 42 4 1 4
|
|
17
|
+
4 2 2 1 1 1 2 3
|
|
18
|
+
5 2 2 1 2 1 4 2
|
|
19
|
+
6 2 2 1 3 1 2 5
|
|
20
|
+
$EndElements
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.2 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
$Nodes
|
|
5
|
+
7
|
|
6
|
+
1 0 0 0
|
|
7
|
+
2 1 1 0
|
|
8
|
+
3 -1 0 0
|
|
9
|
+
4 -2 0 0
|
|
10
|
+
5 -3 1 0
|
|
11
|
+
6 0.4999999999986928 0.4999999999986928 0
|
|
12
|
+
7 -2.499999999999346 0.4999999999993458 0
|
|
13
|
+
$EndNodes
|
|
14
|
+
$Elements
|
|
15
|
+
11
|
|
16
|
+
1 15 2 0 1 1
|
|
17
|
+
2 15 2 0 2 2
|
|
18
|
+
3 15 2 0 3 3
|
|
19
|
+
4 15 2 0 4 4
|
|
20
|
+
5 15 2 0 5 5
|
|
21
|
+
6 1 2 0 1 3 1
|
|
22
|
+
7 1 2 0 2 1 6
|
|
23
|
+
8 1 2 0 2 6 2
|
|
24
|
+
9 1 2 0 3 3 4
|
|
25
|
+
10 1 2 0 4 4 7
|
|
26
|
+
11 1 2 0 4 7 5
|
|
27
|
+
$EndElements
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Point(1) = {0, 0, 0, 1.0};
|
|
2
|
+
Point(2) = {1, 1, 0, 1.0};
|
|
3
|
+
Point(3) = {-1, 0, 0, 1.0};
|
|
4
|
+
Point(4) = {-2, 0, 0, 1.0};
|
|
5
|
+
Point(5) = {-3, 1, 0, 1.0};
|
|
6
|
+
Line(1) = {3, 1};
|
|
7
|
+
Line(2) = {1, 2};
|
|
8
|
+
Line(3) = {3, 4};
|
|
9
|
+
Line(4) = {4, 5};
|
|
10
|
+
|
|
11
|
+
Physical Line(1) = {1:4};
|
|
12
|
+
Physical Point(42) = {2};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.2 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
$Nodes
|
|
5
|
+
4
|
|
6
|
+
1 0 0 0
|
|
7
|
+
2 1 1 1
|
|
8
|
+
3 -1 0 0
|
|
9
|
+
4 0.4999999999986932 0.4999999999986932 0.4999999999986932
|
|
10
|
+
$EndNodes
|
|
11
|
+
$Elements
|
|
12
|
+
6
|
|
13
|
+
1 15 2 0 1 1
|
|
14
|
+
2 15 2 0 2 2
|
|
15
|
+
3 15 2 0 3 3
|
|
16
|
+
4 1 2 0 1 3 1
|
|
17
|
+
5 1 2 0 2 1 4
|
|
18
|
+
6 1 2 0 2 4 2
|
|
19
|
+
$EndElements
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.2 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
$Nodes
|
|
5
|
+
4
|
|
6
|
+
1 0.5 0.5 0.5
|
|
7
|
+
2 0.5 0.5 1
|
|
8
|
+
3 0 0 0
|
|
9
|
+
4 0 1 0
|
|
10
|
+
$EndNodes
|
|
11
|
+
$Elements
|
|
12
|
+
7
|
|
13
|
+
1 15 2 0 1 1
|
|
14
|
+
2 15 2 0 2 2
|
|
15
|
+
3 15 2 0 3 3
|
|
16
|
+
4 15 2 0 4 4
|
|
17
|
+
5 1 2 0 1 1 2
|
|
18
|
+
6 1 2 0 2 1 3
|
|
19
|
+
7 1 2 0 3 1 4
|
|
20
|
+
$EndElements
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
$MeshFormat
|
|
2
|
+
2.1 0 8
|
|
3
|
+
$EndMeshFormat
|
|
4
|
+
|
|
5
|
+
$Nodes
|
|
6
|
+
12
|
|
7
|
+
1 0 0 0
|
|
8
|
+
2 0 1 0
|
|
9
|
+
3 0 2 0
|
|
10
|
+
4 0 0 1
|
|
11
|
+
5 0 1 1
|
|
12
|
+
6 0 2 1
|
|
13
|
+
7 -1 0 2
|
|
14
|
+
8 -1 1 2
|
|
15
|
+
9 -1 2 2
|
|
16
|
+
10 1 0 2
|
|
17
|
+
11 1 1 2
|
|
18
|
+
12 1 2 2
|
|
19
|
+
$EndNodes
|
|
20
|
+
|
|
21
|
+
$Elements
|
|
22
|
+
12
|
|
23
|
+
1 2 3 0 1 0 1 2 4
|
|
24
|
+
2 2 3 0 1 0 5 4 2
|
|
25
|
+
3 2 3 0 1 0 2 3 5
|
|
26
|
+
4 2 3 0 1 0 6 5 3
|
|
27
|
+
|
|
28
|
+
5 2 3 0 1 0 4 5 7
|
|
29
|
+
6 2 3 0 1 0 8 7 5
|
|
30
|
+
7 2 3 0 1 0 5 6 8
|
|
31
|
+
8 2 3 0 1 0 9 8 6
|
|
32
|
+
|
|
33
|
+
9 2 3 0 1 0 4 5 10
|
|
34
|
+
10 2 3 0 1 0 11 10 5
|
|
35
|
+
11 2 3 0 1 0 5 6 11
|
|
36
|
+
12 2 3 0 1 0 12 11 6
|
|
37
|
+
$EndElements
|