A visualization tool for FElupe
FEplot is based on the popular visualization library pyvista which is a comprehensive library for creating static, animated, and interactive visualizations in Python. The main aim of this package is to visualize FElupe results.
Setup
To run this project, you can easily install it locally using pip:
pip install feplot
All is ready now, let's move on!
How to Use
Starting with a quick example:
import felupe as fem
from feplot import Plotter
mesh = fem.Cube(n=6)
region = fem.RegionHexahedron(mesh)
field = fem.FieldContainer([fem.Field(region, dim=3)])
boundaries, loadcase = fem.dof.uniaxial(field, clamped=True)
umat = fem.OgdenRoxburgh(material=fem.NeoHooke(mu=1), r=3, m=1, beta=0)
solid = fem.SolidBodyNearlyIncompressible(umat, field, bulk=5000)
move = fem.math.linsteps([0, 1, 0, 1, 2, 1], num=5)
step = fem.Step(items=[solid], ramp={boundaries["move"]: move}, boundaries=boundaries)
job = fem.CharacteristicCurve(steps=[step], boundary=boundaries["move"])
job.evaluate(filename="result.xdmf")
p = Plotter()
p.read_xdmf("result.xdmf")
https://github.com/ZAARAOUI999/feplot/assets/115699524/19ac3be1-b829-44bd-82bc-20d0461452a8
License
FEplot - A visualization tool for FElupe (C) 2023 Mohamed ZAARAOUI, Tunisia.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Metadata
Release files for feplot 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| feplot-0.1.13.tar.gz | 68.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| feplot-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 125.0 kB
Release files / feplot-0.1.13.tar.gz
| Download URL | feplot-0.1.13.tar.gz |
|---|---|
| Size | 68.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81fb318c6792291cf2ed657b04d57404af24b87a353371b022c4b88f64a235a6
|
|
BLAKE2b-256 checksum How to use checksums |
fa14c6b1933821dde4b7e4d162aa7cd10d31b47fa3faf5ff6f91306d2699ab26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / feplot-0.1.13-py3-none-any.whl
| Download URL | feplot-0.1.13-py3-none-any.whl |
|---|---|
| Size | 56.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f33cd374a0ba3448f078d25e935ab57f9f5f6987b514558e6e1408f8dcc52c1a
|
|
BLAKE2b-256 checksum How to use checksums |
d457a2bb2ab1026fbd0af1bee2b43d59fae91e5a8d3212338c61e16555bdde2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|