Skip to main content

Scientific tools for finite element methods

Project description

Scientific Computing Tools for Finite Element Methods

This package contains a collection of tools for scientific computing with a focus on finite element methods. The tools are written in Python and are intended to be used in conjunction with the dolfinx.

Many users that are transitioning from legacy FEniCS to FEniCSx may find the transition difficult due to the lack of some functionalities in FEniCSx. This package aims to provide some of the functionalities that are missing in FEniCSx. The package is still in its early stages and many functionalities are still missing.

Features

  • Real-space implementation for usage in DOLFINx (>=v0.8.0)
  • Save quadrature functions as point clouds
  • Save any function that can tabulate dof coordinates as point clouds.
  • Point sources for usage in DOLFINx (>=v0.8.0)
    • Point sources in vector spaces are only supported on v0.9.0, post DOLFINx PR 3429. For older versions, apply one point source in each sub space.
  • Simplified wrapper to create MeshTags based on a list of tags and corresponding locator functions.
  • Maps between degrees of freedom and vertices: vertex_to_dofmap and dof_to_vertex
  • Blocked Newton Solver
  • Function evaluation at specified points

Installation

The package is partly written in C++ and relies on dolfinx. User are encouraged to install scifem with pip in an environment where dolfinx is already installed or with conda.

pip

To install the package with pip run

python3 -m pip install scifem --no-build-isolation

To install the development version you can run

python3 -m pip install --no-build-isolation git+https://github.com/scientificcomputing/scifem.git

Note that you should pass the flag --no-build-isolation to pip to avoid issues with the build environment, such as incompatible versions of nanobind.

conda

To install the package with conda run

conda install -c conda-forge scifem

Having issues or want to contribute?

If you are having issues, feature request or would like to contribute, please let us know. You can do so by opening an issue on the issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scifem-0.2.14.tar.gz (1.9 MB view details)

Uploaded Source

File details

Details for the file scifem-0.2.14.tar.gz.

File metadata

  • Download URL: scifem-0.2.14.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for scifem-0.2.14.tar.gz
Algorithm Hash digest
SHA256 2c6a3f2cda954cc8db8b1bc625134aa3c2666fc3ad287dd526536a9e74a8ff48
MD5 7c5b41d061f788cd796a37fbb5dd961e
BLAKE2b-256 4555e74906aa2d736a03a9613700dd165686845588ae7d8476c21f1a5eb28b0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for scifem-0.2.14.tar.gz:

Publisher: pypi.yml on scientificcomputing/scifem

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page