WolframResearch / OpenCascadeLink

Open source package for OpenCascadeLink, which is bundled with Wolfram Language products as of version 12.1
Other
31 stars 8 forks source link
finite-element-analysis finite-element-methods mathematica opencascade wolfram-engine wolfram-language wolfram-mathematica wolframlanguage

OpenCascadeLink for the Wolfram Language

View notebooks

The Wolfram Language has built-in support for the Finite Element Method. OpenCascadeLink is a package that provides computational geometry functionality to generate 3D boundary meshes for the finite element method. OpenCascadeLink ships with version 12.1 and later versions of Wolfram Language deployments for the desktop, including Wolfram Desktop and Mathematica. In other words, if you just want to make use of OpenCascadeLink there is not need to clone this repository as OpenCascadeLink is already part of, for example, Mathematica. The current Documentation of OpenCascadeLink can be viewed online. If, on the other hand, you would like to add new functionality to OpenCascadeLink then you need this repository.

Installing and Updating the OpenCascadeLink release

The process of building OpenCascadeLink in part or full from source and subsequently installing it is documented in the notebook BuildOpenCascadeLink.nb

Using OpenCascadeLink

To access the documentation, open the notebook interface help viewer, and search for OpenCascadeLink.

OpenCascadeLink provides computational geometry functionality. Here is an example usage:

Needs["OpenCascadeLink`"]
shape1 = OpenCascadeShape[Ball[{1, 0, 0}]];
bmesh1 = OpenCascadeShapeSurfaceMeshToBoundaryMesh[shape1];
bmesh1["Wireframe"]

BallWireframe

Volumes and surfaces can be meshed.

SurfaceMeshOfVolume SurfaceMeshOfBSplineSurface

Sweeping and Boolean operations with material regions are supported.

Sweep Boolean

Fillets, champfers and shelling are supported.

Fillet Champfer Champfer

De-featuring is supported.

DeFeature1 DeFeature2

Importing of STEP files is supported.

STEP

More...

See the following files for more information: