Finite element visualization with GPU support
Project description
sees
Highly efficient and portable finite element visualization framework
sees
is a finite element rendering library that leverages modern
web technologies to produce sharable, efficient, and detailed renderings.
sees
is a finite element rendering library that leverages modern
web technologies to produce sharable, efficient, and detailed renderings.
Unlike most tools that only provide temporary visualization, sees
generates
persistent 3D models that can be stored in files, shared with colleagues, and
viewed with any standard 3D model viewer. This means anyone can interact with
the renderings without needing to install specialized software or even Python.
Simply open the 3D object with your computer’s 3D viewer (e.g., 3D Viewer on
Windows) or load it into a free online viewer in like gltf-viewer.
Documentation is currently under development.
Features
- Detailed Render frames with extruded cross sections
- Persistence: Save your finite element visualizations as persistent 3D models that can be revisited and analyzed at any time.
- Portability: Share your models effortlessly with colleagues, enabling seamless collaboration and review.
- Accessibility: View and interact with the models using any standard 3D model viewer, eliminating the need for specialized software or Python installation.
- Versatility: A wide selection of rendering backends and output file types, including
optimized 3D web formats like
.glb
. Generated 3D models can be loaded directly into programs like PowerPoint and animated. - Correctly render models that treat both
y
orz
as the vertical coordinate.
Gallery
Getting Started
To install sees
run:
pip install sees
Command Line Interface
To create a rendering, execute the following command from the anaconda prompt (after activating the appropriate environment):
python -m sees model.json -o model.html
where model.json
is a JSON file generated from executing the following OpenSees command:
print -JSON model.json
If you omit the -o <file.html>
portion, it will plot immediately in a new
window. You can also use a .png
extension to save a static image file, as
opposed to the interactive html.
Note Printing depends on the JSON output of a model. Several materials and elements in the OpenSeesPy and upstream OpenSees implementations do not correctly print to JSON. For the most reliable results, use the
opensees
package.
By default, the rendering treats the $y$ coordinate as vertical.
In order to manually control this behavior, pass the option
--vert 3
to render model $z$ vertically, or --vert 2
to render model $y$ vertically.
If the opensees
package is installed,
you can directly render a Tcl script without first printing to JSON,
by just passing a Tcl script instead of the JSON file:
python -m sees model.tcl -o model.html
To plot an elevation (elev
) plan (plan
) or section (sect
) view, run:
python -m sees model.json --view elev
and add -o <file.extension>
as appropriate.
To see the help page run
python -m sees --help
Related Links
See also
The sees
packages was used to generate figures for the following publications:
- On nonlinear geometric transformations of finite elements doi: 10.1002/nme.7506
Support
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
Built Distribution
File details
Details for the file sees-0.0.19.tar.gz
.
File metadata
- Download URL: sees-0.0.19.tar.gz
- Upload date:
- Size: 64.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3916fe5f85d0af776115c25ab35d08c3a30af1308a124c73b81ffdaa9e12c1a2 |
|
MD5 | 264777f9c13de7010626de42f22070c4 |
|
BLAKE2b-256 | fe7b73dcc704f99a825fc788c4af823a48159903243d6c5630ad7f356b64233e |
Provenance
File details
Details for the file sees-0.0.19-py3-none-any.whl
.
File metadata
- Download URL: sees-0.0.19-py3-none-any.whl
- Upload date:
- Size: 69.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce4bff46a381c599d6e7b6be910fb66b9fbe8d4f436ec343cb4b00d26681a95 |
|
MD5 | d036fbb51fb4f0b645af1891391b5864 |
|
BLAKE2b-256 | 3b7b12132cce295750cd796590b673f6221a86641552e9d1919cb9df7ba8f4f4 |