An end to end differentiable finite element framework.
Project description
In [1]: import pyg3
In [2]: d = pyg3.Domain()
In [3]: d
Out[3]: <pyg3.Domain at 0x7f0ebe6ec1f0>
Meaningful errors:
In [4]: n = pyg3.Node()
-------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-3e097288ae09> in <module>
----> 1 n = pyg3.Node()
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
1. pyg3.Node(arg0: int, arg1: int, arg2: float, arg3: float)
Invoked with:
In [5]: n = pyg3.Node(0, 0, 1.0, 10.0)
In [6]: d.addNode(n)
Out[6]: True
In [7]: d.getNode(0)
Out[7]: <pyg3.Node at 0x7f0ebc6fca70>
Thread safe:
In [8]: d2 = pyg3.Domain()
In [9]: d2.getNode(0)
In [10]: n2 = pyg3.Node(0,0,0.0,0.0)
In [11]: d2.addNode(n2)
Out[11]: True
In [12]: d2.getNode(0)
Out[12]: <pyg3.Node at 0x7f0ebe714e70>
In [13]: d.getNode(0)
Out[13]: <pyg3.Node at 0x7f0ebc6fca70>
In [14]: d.getNode(0) == n
Out[14]: True
In [15]: d2.getNode(0) == n2
Out[15]: True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyg3-0.0.0.tar.gz
(4.0 kB
view details)
Built Distribution
pyg3-0.0.0-py3-none-any.whl
(2.0 kB
view details)
File details
Details for the file pyg3-0.0.0.tar.gz
.
File metadata
- Download URL: pyg3-0.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855cb38d106ea6ce5d86c1415152e6e959de504d4cc0f79673bb274990d780bf |
|
MD5 | eda3773dcf59cdc7f37a4b372cbca2f1 |
|
BLAKE2b-256 | 0fcb8e85268d5b563b4bdd1c373497e8ceb09534e17e2e1ce5f67d39c0d7da11 |
File details
Details for the file pyg3-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyg3-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c314d53e112539c688a95411795729264986cf0578c865c74b2337a87ed1aab3 |
|
MD5 | a2c9c090c97a34ff03cafb89c15198f1 |
|
BLAKE2b-256 | aa33e7d4a8a55cdf8d60eeb6cd636b8e9c0a7447eae315a7cd7634f4c6101f9d |