EBGeometry
1.0
|
EBGeometry is a code for
This code is header-only and can be dropped into any C++ project that supports C++14. It was originally written to be used with embedded-boundary (EB) codes like Chombo or AMReX. However, EBGeometry provides quite general SDFs, implicit functions, and CSG unions, and is useful beyond those codes.
To clone EBGeometry:
git clone git@github.com:rmrsk/EBGeometry.git
EBGeometry is a header-only library in C++ and has no external dependencies. To use it, simply make EBGeometry.hpp visible to your code and include it.
User documentation is available as HTML or as a PDF. A doxygen-generated API is also available.
Several examples are given in the Examples folder. To run one of the examples, navigate to the example and compile and run it.
Use one of the analytic signed distance fields in EBGeometry:
Read in an STL file and turn it into a signed distance field.
Generate a spherical packed bed geometry using analytic representations of spheres. BVH-accelerated CSG unions lead to order-of-magnitude faster implicit function evaluation.
Create an F18 implicit function using CSG on each part (65 parts in total).
Some complex examples that use Chombo3 or AMReX are also provided in the Examples folder. These include application-specific code and require installation of Chombo3 or AMReX.
If relevant, add Sphinx and doxygen documentation.
clang-format
:See LICENSE and Copyright.txt for redistribution rights.