Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.36 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.36 KB

fenics_helpers

Build Status CircleCI

Little Helper classes that come up repeatedly when writing solvers in FEniCS

Installation

  • via pip/pip3
> pip3 install --user git+https://github.com/BAMresearch/fenics_helpers.git
  • via including it into setup.py of another project
# within setup.py 
setuptools.setup(
    name="your project",
    ...
    install_requires=["some", "packages",
    "fenics_helpers @ git+https://github.com/BAMresearch/fenics_helpers"],
    "more", "packages"],
    ...
)
  • via conda (build for linux os and python version >=3.7)
> conda install --channel pdiercks fenics_helpers

Example: Local damage model

local damage plot

The local damage example illustrates the use of .boundary to conveniently select the boundaries like

bot = fh.boundary.plane_at(-10, "y") 
right = fh.boundary.plane_at(10, "x") 

and the adaptive .timestepping module.

stuff

Example stdout:

stuff