compas-fea2

Finite Element Analysis toolbox for the COMPAS framework.

https://github.com/compas-dev/compas_fea2

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
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.8%) to scientific vocabulary

Keywords

abaqus ansys blender compas fea opensees rhino structures
Last synced: 6 months ago · JSON representation ·

Repository

Finite Element Analysis toolbox for the COMPAS framework.

Basic Info
Statistics
  • Stars: 12
  • Watchers: 7
  • Forks: 8
  • Open Issues: 14
  • Releases: 2
Topics
abaqus ansys blender compas fea opensees rhino structures
Created almost 6 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License Code of conduct Citation Authors

README.md

compas_fea2

2nd generation of compas_fea. Current main changes:

  • Plug-in architecture
  • Improved API for in-parallel development
  • Extended functionalities

Package Objectives

This package aims to create a bridge between the generation of structural geometries and their analysis using popular commercial FEA software. The geometry generation features of these software are usually limited, tedious, and time-consuming.

Users

  • Simplify finite element analysis with 'pre-made' recipes to help inexperienced users get meaningful results
  • Better link with compas and its ecosystem
  • Provide a unified (as much as possible) approach across multiple backends to help researchers communicate with their industrial partners. For example, a researcher develops a structural system for a pavilion using Abaqus, but the engineer of record uses Sofistik to check the results: the analysis model for both structures can be derived from the same script with few changes
  • Increase the number of backend solvers supported

Developers

  • Clearly separate frontend (geometry generation, problem definition, and result displaying) and backend (FEA analysis, result post-process) to enhance in-parallel development
  • Offer frontend and backend developers a framework to help the structuring of their modules and avoid code repetition
  • Provide comprehensive documentation and examples to facilitate the development and integration of new features
  • Ensure modularity and extensibility to allow easy addition of new functionalities and support for additional FEA software

Installation

To install compas_fea2, use the following command:

bash pip install compas_fea2

Usage

Here is a basic example of how to use compas_fea2:

```python

Import the compas_fea2 library

import compasfea2 from compasfea2.model import Model, Part, Node, Element, Material, Section from compas_fea2.problem import Problem, Step, BoundaryCondition, Pattern, Load, FieldOutput

Define a Model and its parts

mdl = Model() prt1 = Part() prt2 = Part()

Assign the parts to the model

mdl.addparts([prt1, prt_2])

Define sections and materials

mat = Material(E=..., v=..., density=...) sec = Section(t=..., material=mat)

Define the geometry of the structure

Specify nodes

nodes1 = [Node(xyz=...), Node(xyz=...), ...] nodes2 = [Node(xyz=...), Node(xyz=...), ...]

Assign the nodes to a part

prt1.addnodes(nodes1) prt2.addnodes(nodes2)

Specify elements

elements1 = [Element(nodes=[...], section=sec), Element(nodes=[...], section=sec), ...] elements2 = [Element(nodes=[...], section=sec), Element(nodes=[...], section=sec), ...]

Assign the elements to a part

prt1.addelements(elements1) prt2.addelements(elements2)

Define boundary conditions

Apply constraints and loads to the structure

bcs = [BoundaryCondition(nodes=[...], ...), BoundaryCondition(nodes=[...], ...)] mdl.add_bcs(bcs)

Define a Problem to analyze

prb = Problem()

Add the problem to the model

mdl.add_problem(prb)

Define the steps of the analysis

stp1 = Step(...) stp2 = Step(...)

Add the steps to the problem (note: this is the sequence in which they are applied)

prb.addsteps([stp1, stp_2])

Define the load patterns

pattern1 = Pattern(nodes=[...], load=Load(...)) pattern2 = Pattern(nodes=[...], load=Load(...))

Add the pattern to the step

stp1.addpattern(pattern1) stp2.addpattern(pattern2)

Define the outputs to save

output = FieldOutput(...) stp1.addoutput(output) stp2.addoutput(output)

Run the analysis

Execute the finite element analysis

prb.analyzeandextract(...)

Post-process the results

Extract and visualize the results

results = prb.results

View the results

prb.show() ```

For more detailed examples and documentation, please refer to the official documentation.

Contributing

We welcome contributions from the community. If you would like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add new feature')
  5. Push to the branch (git push origin feature-branch)
  6. Create a new Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Owner

  • Name: compas-dev
  • Login: compas-dev
  • Kind: organization

COMPAS - an open source computational framework for research and collaboration in AEC

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Ranaudo
    given-names: Francesco
    orcid: https://orcid.org/0000-0002-1612-5612
title: compas_fea2
version: v0.1
date-released: 2022-08-17

GitHub Events

Total
  • Watch event: 4
  • Push event: 7
  • Pull request event: 2
  • Fork event: 1
Last Year
  • Watch event: 4
  • Push event: 7
  • Pull request event: 2
  • Fork event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 35
  • Total pull requests: 26
  • Average time to close issues: 2 months
  • Average time to close pull requests: 16 days
  • Total issue authors: 4
  • Total pull request authors: 10
  • Average comments per issue: 1.09
  • Average comments per pull request: 0.42
  • Merged pull requests: 18
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 35 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • franaudo (21)
  • rjodon (10)
  • tomvanmele (3)
  • seghier (1)
Pull Request Authors
  • Licini (5)
  • tomvanmele (5)
  • franaudo (4)
  • AryanRezaeiRad (4)
  • petrasvestartas (2)
  • Sam-Bouten (2)
  • rjodon (1)
  • dependabot[bot] (1)
  • WeberMarius (1)
  • gab96mat (1)
Top Labels
Issue Labels
enhancement (20) documentation (5) bug (3) help wanted (1) invalid (1)
Pull Request Labels
dependencies (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 42 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
pypi.org: compas-fea2

This package is the 2nd generation of Finite element Analysis tools for COMPAS.

  • Homepage: https://compas-dev.github.io/compas_fea2
  • Documentation: https://compas-dev.github.io/compas_fea2
  • License: MIT License Copyright (c) 2018-2021 Block Research Group - ETH Zurich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.2.1
    published almost 2 years ago
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 42 Last month
Rankings
Dependent packages count: 9.4%
Average: 35.7%
Dependent repos count: 61.9%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/build.yml actions
  • compas-dev/compas-actions.build v2 composite
.github/workflows/docs.yml actions
  • compas-dev/compas-actions.docs v2 composite
.github/workflows/pr-checks.yml actions
  • Zomzog/changelog-checker v1.2.0 composite
  • actions/checkout v1 composite
.github/workflows/release.yml actions
  • compas-dev/compas-actions.build v2 composite
  • compas-dev/compas-actions.publish v2 composite
pyproject.toml pypi
requirements-dev.txt pypi
  • Click * development
  • attrs >=17.4 development
  • autopep8 * development
  • black * development
  • bump2version >=1.0.1 development
  • check-manifest >=0.36 development
  • compas >=1.0 development
  • compas_gmsh * development
  • compas_invocations * development
  • doc8 * development
  • flake8 * development
  • graphviz * development
  • invoke >=0.14 development
  • ipykernel * development
  • ipython >=5.8 development
  • isort * development
  • m2r2 * development
  • matplotlib * development
  • nbsphinx * development
  • pint * development
  • pydocstyle * development
  • pytest >=3.2 development
  • python-dotenv * development
  • sphinx >=3.4 development
  • sphinx_compas_theme >=0.15.18 development
  • sqlalchemy * development
  • twine * development
  • wheel * development
requirements.txt pypi
  • Click *
  • compas >=1.0
  • compas_gmsh *
  • pint *
  • python-dotenv *
  • sqlalchemy ==1.4