Giter Site home page Giter Site logo

mechkit's Introduction

PyPI version DOI Documentation status Black License: MIT Binder status

mechkit

mechkit

The Python package mechkit is a toolkit for researchers in the field of continuum mechanics and material modeling. mechkit contains methods and operators for elementary tasks concerning tensor algebra and tensor notation, focusing on second- and fourth-order tensors.

Please see license, acknowledgment and cite the latest Zenodo-DOI.

Documentation

Documentation is given in the docs.

Examples

Rendered example notebooks are in the docs. These notebooks and corresponding scripts can be found here.

Installation PyPI version

Install with pip following instructions on Python Package Index, i.e.,

pip install mechkit

or install from local files

  • Clone this repository to your machine
  • Open a terminal and navigate to your local clone
  • Install the package from the local clone into the current environment in develop mode:
     python setup.py develop

Note: Develop vs. install

Acknowledgment

The research documented in this repository has been funded by the German Research Foundation (DFG, Deutsche Forschungsgemeinschaft) - project number 255730231. The support by the German Research Foundation within the International Research Training Group “Integrated engineering of continuous-discontinuous long fiber reinforced polymer structures“ (GRK 2078) is gratefully acknowledged.

mechkit's People

Contributors

jonashund avatar juliankarlbauer avatar lisalatussek avatar philipplk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mechkit's Issues

Define additional notations in Docs

Extention of the doc string of "mechkit.notation.ExplicitConveter"
by representations of stiffnesses and compliances in

  • Voigt
  • UMAT
  • VUMAT

notation would be a huge improvement.

Currently, some placeholder "todos" show where additional views may be placed.

image

Inspiration for the representations may be given by these views (actually the stiffness-representation for Voigt notation is included in the below screenshot)

image

Notation: Rethink implementation

Current implementation focuses programmatically on extensibility and clarity
(e.g. dicts containing converter functions and scaling factors).
However, this extensibility is not truly existent.
Converter-commands like .to_mandel6, .to_tensor, .to_mandel9
identify the source format by analysis of the dimensions of the input quantity.

Possible structural changes:

  • Switch from Converter to tensor-class
    • Keep underlying extensible structure of converter internally and
      supply information of the source notation explicitly.

Notation: Add new features

  • Abaqus UMAT notation
    • stress
    • strain
    • stiffness
    • compliance
  • Abaqus VUMAT notation (stress, strain, )
    • stress
    • strain
    • stiffness
    • compliance

Add "completely symmetric" fourth-order tensors to notation.ExplicitConverter

Exchange of completely symmetric tensors, such as fiber orientation tensors of fourth order in a
minimal, i.e., nearly redundancy-free notation is a common task for engineers working with short fiber reinforced composites.

Support of

tensors = <bunch of  fourth order fiber orientation tensors>

con = mechkit.notation.ExplicitConverter()
con.convert(
inp=tensors, source="tensor", target="exchange", quantity="fiber_orientation"
)

with "exchange", e.g., being

[
N_1111, N_2222, N_3333,
N_2233, N_1133, N_1122,
N_1123, N_2223, N_3323, 
N_1113, N_2213, N_3313, 
N_1112, N_2212, N_3312, 
]

See also equations (38) to (40) in
Variety of fiber orientation tensors, Bauer and Böhlke 2021

It is clear, that, e.g., N_3333 could be omitted, as only 14 components are independent, but
not omitting it, will enable usage for, e.g., diffusion-weighted magnet resonance tomography tensors of fourth order,
which have no normalized trace.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.