pybaqus

A Python library for the visualization and post-processing of Abaqus ASCII result files

https://github.com/cristobaltapia/pybaqus

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.2%) to scientific vocabulary
Last synced: 8 months ago · JSON representation ·

Repository

A Python library for the visualization and post-processing of Abaqus ASCII result files

Basic Info
  • Host: GitHub
  • Owner: cristobaltapia
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 395 KB
Statistics
  • Stars: 14
  • Watchers: 3
  • Forks: 6
  • Open Issues: 1
  • Releases: 7
Created almost 6 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

Pybaqus

Pybaqus is a python library to import the output files generated by Abaqus in the ASCII *.fil format, and create a VTK object from the data. The results can then be analyzed in pure python (i.e. no Abaqus licence needed) with the great tools provided by PyVista.

Features

Pybaqus is in a very early development stage. Therefore, there are still many unimplemented functionalities. However, basic operations like importing the mesh and the nodal and element results is implemented and can be used for some analysis.

The following features are either already implemented or planned:

  • [x] Import 2D meshes
  • [x] Import 3D meshes
  • [x] Import nodal results
  • [x] Import element results
  • [x] Element and node sets
  • [x] Extrapolate element results from Gaussian points to nodes (implemented for some elements)
  • [ ] Import history output
  • [x] Compute stresses along paths
  • [ ] Compute section forces and moments
  • [ ] Documentation

Installation

pip install pybaqus

Quick-start

The first thing you need is to tell Abaqus that you want an ASCII *.fil result file. To get that you need to write the following lines in your *.inp file, within the step definition (before the *End Step command) e.g.:

``` ... *FILE FORMAT, ASCII *EL FILE, DIRECTIONS=YES S, E, COORD *NODE FILE COORD, U

*End Step ... ```

You can specify different output variables (as long as they are available for the elements you are using, of course). After submitting your model you will get a *.fil file. This is the file you need, as it can be imported with Pybaqus.

Import the *.fil file like this:

```python from pybaqus import open_fil

res = openfil("yourresult.fil")

```

Great! That was it. :)

Now you have your results as a VTK object, wrapped by PyVista, and there's nothing that can get in your way to analyze your results with pure python.

Plot the mesh

```python import pyvista as pv

mesh = res.get_mesh()

plot = pv.Plotter() plot.addmesh(mesh, showedges=True, color="white") plot.view_xy() plot.show() ```

Mesh

Cool! But something's missing there. Colors! We can plot some of our results like this:

```python mesh = res.getdeformedmesh(step=1, inc=1, scale=3) s2 = res.getnodalresult(var="S2", step=1, inc=1) mesh.point_data["S2"] = s2

plot = pv.Plotter() plot.addmesh(mesh, showedges=True, color="white", scalars="S2", showscalarbar=True) plot.view_xy() plot.show() ```

Mesh

That's it! Since the API is still under development, some of these functions might change.

And now you can de whatever you want with your results in python. Have fun!

Owner

  • Name: Cristóbal Tapia
  • Login: cristobaltapia
  • Kind: user
  • Location: Stuttgart, Germany
  • Company: University of Stuttgart

Citation (CITATION.cff)

cff-version: 1.2.0
authors:
- family-names: "Tapia Camú"
  given-names: "Cristóbal"
  orcid: "https://orcid.org/0000-0003-2228-1686"
title: "Pybaqus: A Python library for the visualization and post-processing of Abaqus ASCII result files"
version: 0.2.9
url: "https://github.com/cristobaltapia/pybaqus"

GitHub Events

Total
  • Release event: 2
  • Watch event: 5
  • Delete event: 1
  • Issue comment event: 4
  • Push event: 20
  • Pull request event: 2
  • Fork event: 2
  • Create event: 6
Last Year
  • Release event: 2
  • Watch event: 5
  • Delete event: 1
  • Issue comment event: 4
  • Push event: 20
  • Pull request event: 2
  • Fork event: 2
  • Create event: 6

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 137
  • Total Committers: 2
  • Avg Commits per committer: 68.5
  • Development Distribution Score (DDS): 0.007
Top Committers
Name Email Commits
Cristóbal Tapia Camú c****a@g****m 136
Caiuã Melo c****a@g****m 1

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 1
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 5 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 11.0
  • Average comments per pull request: 6.5
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hikozan (1)
Pull Request Authors
  • escolano (1)
  • caiuamelo (1)
  • mkofler96 (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Dependencies

pyproject.toml pypi
  • pytest ^5.2 develop
  • toml ^0.10.2 develop
  • yapf ^0.31.0 develop
  • matplotlib ^3.2.1
  • numpy ^1.18.2
  • python ^3.7.7
  • pyvista ^0.31.0
  • scipy ^1.4.1
  • tqdm ^4.62.3
  • vtk ^9.0.3
uv.lock pypi
  • certifi 2024.8.30
  • charset-normalizer 3.4.0
  • colorama 0.4.6
  • contourpy 1.3.0
  • cycler 0.12.1
  • exceptiongroup 1.2.2
  • fonttools 4.54.1
  • idna 3.10
  • iniconfig 2.0.0
  • kiwisolver 1.4.7
  • matplotlib 3.9.2
  • numpy 2.1.2
  • packaging 24.1
  • pillow 10.4.0
  • platformdirs 4.3.6
  • pluggy 1.5.0
  • pooch 1.8.2
  • pybaqus 0.1.0
  • pyparsing 3.2.0
  • pytest 8.3.3
  • python-dateutil 2.9.0.post0
  • pyvista 0.44.1
  • requests 2.32.3
  • scipy 1.14.1
  • scooby 0.10.0
  • six 1.16.0
  • tomli 2.0.2
  • tqdm 4.66.5
  • typing-extensions 4.12.2
  • urllib3 2.2.3
  • vtk 9.3.1