Skip to content

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

License

Notifications You must be signed in to change notification settings

pdiercks/fenics_helpers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"],
    ...
)

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%