Level Set


Saving the Domain

Documentation Coming soon

Visualization

ViennaPS provides a feature enabling users to save the level set grid points explicitly for each material layer within the domain in the VTK file format. This export includes the level set value associated with each grid point. Users also have the option to specify a width parameter, determining the number of grid points around the zero level set. This functionality enhances the ability to analyze and visualize the level set information in a detailed and customizable manner.

Example usage:

C++

auto domain = ps::SmartPointer<ps::Domain<NumericType, D>>::New();
...
// create geometry in domain
...
domain->saveLevelSetMesh("fileNamePrefix", 3 /* width */);

Python:

domain = vps.Domain()
...
# create geometry in domain
...
domain.saveLevelSetMesh(fileName="fileNamePrefix", width=3)