Skip to main content

A visualization tool for FElupe

Project description

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/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feplot-0.1.13.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

feplot-0.1.13-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file feplot-0.1.13.tar.gz.

File metadata

  • Download URL: feplot-0.1.13.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for feplot-0.1.13.tar.gz
Algorithm Hash digest
SHA256 81fb318c6792291cf2ed657b04d57404af24b87a353371b022c4b88f64a235a6
MD5 9bf1a9604addbcbbf30316816ef05916
BLAKE2b-256 fa14c6b1933821dde4b7e4d162aa7cd10d31b47fa3faf5ff6f91306d2699ab26

See more details on using hashes here.

File details

Details for the file feplot-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: feplot-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 56.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for feplot-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f33cd374a0ba3448f078d25e935ab57f9f5f6987b514558e6e1408f8dcc52c1a
MD5 2e9bab702a4136c44360e627b848d9f7
BLAKE2b-256 d457a2bb2ab1026fbd0af1bee2b43d59fae91e5a8d3212338c61e16555bdde2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page