Commit d9a63eb6 authored by Kirill Terekhov's avatar Kirill Terekhov

Add library into Examples/GridTools to crack the mesh along certain faces

parent ffb52359
......@@ -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)
This diff is collapsed.
#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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment