You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use new python stub generator
* Bindings with dim submodules
* Correct bindings order
* Add common module and fix setup
* Adjust examples
* Remove common module
* Improve material map
* Fix examples
* Small improvements
* Reuse ViennaCore test assert
* Improve SLLF scheme
* Wrap SLLF prepare and finalize function
* Bump dependencies
* Update Python stubs
* Add Python doc
* Format
* Fix actions Python test
* Bump VTK version and remove macOS deployment target
* Downgrade to previous VTK, use macOS fixes
* Add version header
* Format
* Fix Windows init path
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,14 +111,22 @@ pip install .
111
111
112
112
All functions which are available in C++ are also available in Python. The 2D version of the library can be imported as follows:
113
113
```python
114
-
import viennals2d as vls
114
+
import viennals.d2 as vls
115
+
import viennals # for common functions
115
116
```
116
117
117
-
In order to switch to three dimensions, only the import needs to be changed:
118
+
To switch to 3D, only the import changes:
118
119
119
120
```python
120
-
importviennals3das vls
121
+
importviennals.d3as vls
121
122
```
123
+
Functions that operate on a domain object (e.g. `Advect`, `ToSurfaceMesh`, ...) are provided in the respective `d2` or `d3` modules.
124
+
Common functions, enums, and dimension-independent utilities (such as `Mesh`) are available directly in the `viennals` namespace.
125
+
126
+
A complete list of functions and their locations can be found in the [API documentation](PythonAPI.md).
127
+
128
+
For examples on how to use the Python package, please have a look at these examples: [Air Gap Deposition](https://github.com/ViennaTools/ViennaLS/blob/master/examples/AirGapDeposition/AirGapDeposition.py), [Deposition](https://github.com/ViennaTools/ViennaLS/blob/master/examples/Deposition/Deposition.py), [Geometric Advection](https://github.com/ViennaTools/ViennaLS/blob/master/examples/GeometricAdvection/GeometricAdvection.py).
129
+
122
130
123
131
## Running the Tests
124
132
@@ -149,7 +157,7 @@ We recommend using [CPM.cmake](https://github.com/cpm-cmake/CPM.cmake) to consum
0 commit comments