Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kirill Terekhov
INMOST
Commits
d9a63eb6
Commit
d9a63eb6
authored
Mar 21, 2018
by
Kirill Terekhov
Browse files
Add library into Examples/GridTools to crack the mesh along certain faces
parent
ffb52359
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Examples/GridTools/CMakeLists.txt
View file @
d9a63eb6
...
...
@@ -16,6 +16,7 @@ add_executable(Move move.cpp)
add_executable
(
Convert convert.cpp
)
add_executable
(
SameMeshDifference difference_same.cpp
)
add_executable
(
MeshDifference difference_map.cpp
)
add_library
(
FractureLib fracture.cpp fracture.h
)
target_link_libraries
(
FixFaults inmost
)
if
(
USE_MPI
)
...
...
@@ -184,3 +185,11 @@ if(USE_MPI)
endif
(
USE_MPI
)
install
(
TARGETS MeshDifference EXPORT inmost-targets RUNTIME DESTINATION bin
)
set_property
(
TARGET FractureLib PROPERTY PUBLIC_HEADER
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/fracture.h"
)
install
(
TARGETS FractureLib EXPORT inmost-targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
)
Examples/GridTools/fracture.cpp
0 → 100644
View file @
d9a63eb6
This diff is collapsed.
Click to expand it.
Examples/GridTools/fracture.h
0 → 100644
View file @
d9a63eb6
#ifndef __FRACTURE_H
#define __FRACTURE_H
#include "inmost.h"
using
namespace
INMOST
;
class
Fracture
{
Mesh
*
m
;
Tag
fracture_aperture
;
Tag
fracture_volume
;
Tag
fracture_area
;
MarkerType
fracture_marker
;
MarkerType
multiple_fracture_joints
;
MarkerType
matrix_fracture
;
public:
MarkerType
isFracture
()
const
{
return
fracture_marker
;}
MarkerType
MultipleJoints
()
const
{
return
multiple_fracture_joints
;}
MarkerType
MatrixFracture
()
const
{
return
matrix_fracture
;}
///Default constructor, defines empty set.
Fracture
(
Mesh
&
_m
)
:
m
(
&
_m
)
{}
///Copy constructor.
Fracture
(
const
Fracture
&
b
)
:
m
(
b
.
m
)
{}
///Assignment operator.
Fracture
&
operator
=
(
Fracture
const
&
b
)
{
m
=
b
.
m
;
return
*
this
;}
INMOST_DATA_REAL_TYPE
Volume
(
Cell
c
)
const
;
INMOST_DATA_REAL_TYPE
Area
(
Face
f
)
const
;
void
FaceCenter
(
Face
f
,
INMOST_DATA_REAL_TYPE
cnt
[
3
])
const
;
void
Open
(
Tag
aperture
);
};
#endif //__FRACTURE_H
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment