Skip to main content

Computational Adjoint-Based Shape Optimization and Optimal Control Software

Project description

CASHOCS

pypi https://anaconda.org/conda-forge/cashocs/badges/version.svg https://anaconda.org/conda-forge/cashocs/badges/installer/conda.svg https://zenodo.org/badge/DOI/10.5281/zenodo.4282513.svg Documentation Status license

CASHOCS is a computational adjoint-based shape optimization and optimal control software for python.

CASHOCS is based on the finite element package FEniCS and uses its high-level unified form language UFL to treat general PDE constrained optimization problems, in particular, shape optimization and optimal control problems.

Note, that we assume that you are (at least somewhat) familiar with PDE constrained optimization and FEniCS. For a introduction to these topics, we can recommend the textbooks

However, the CASHOCS tutorial also gives many references either to the underlying theory of PDE constrained optimization or to relevant demos and documentation of FEniCS.

Note, that the full CASHOCS documentation is available at https://cashocs.readthedocs.io/en/latest/index.html.

Installation

Via conda-forge

CASHOCS is available via the anaconda package manager, and you can install it with

conda install -c conda-forge cashocs

Alternatively, you might want to create a new, clean conda environment with the command

conda create -n <ENV_NAME> -c conda-forge cashocs

where <ENV_NAME> is the desired name of the new environment.

Manual Installation

  • First, install FEniCS, version 2019.1. Note, that FEniCS should be compiled with PETSc and petsc4py.

  • Then, install meshio, with a h5py version that matches the HDF5 version used in FEniCS, and matplotlib. The version of meshio should be at least 4, but for compatibility it is recommended to use meshio 4.2.

  • You might also want to install Gmsh, version 4.6. CASHOCS does not necessarily need this to function properly, but it is required for the remeshing functionality.

  • You can install CASHOCS via the PYPI:

    pip3 install cashocs

    You can install the newest (development) version of CASHOCS with:

    pip3 install git+https://github.com/sblauth/cashocs.git
  • To get the latest (development) version of CASHOCS, clone this repository with git and install it with pip

    git clone https://github.com/sblauth/cashocs.git
    cd cashocs
    pip3 install .

Usage

The complete CASHOCS documentation is available here https://cashocs.readthedocs.io/en/latest/index.html. For a detailed introduction, see the CASHOCS tutorial. The python source code for the demo programs is located inside the “demos” folder.

License

CASHOCS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CASHOCS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CASHOCS. If not, see https://www.gnu.org/licenses/.

Contact / About

I’m Sebastian Blauth, a PhD student at Fraunhofer ITWM and TU Kaiserslautern, and I developed this project as part of my work. If you have any questions / suggestions / feedback, etc., you can contact me via sebastian.blauth@itwm.fraunhofer.de or sebastianblauth@web.de.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

cashocs-1.1.1.tar.gz (83.2 kB view details)

Uploaded Source

Built Distribution

cashocs-1.1.1-py3-none-any.whl (120.5 kB view details)

Uploaded Python 3

File details

Details for the file cashocs-1.1.1.tar.gz.

File metadata

  • Download URL: cashocs-1.1.1.tar.gz
  • Upload date:
  • Size: 83.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for cashocs-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e341b3b6305aca4a971f905e08b68a9fe83fb511c3951d8a2052a9e7fd4b464e
MD5 de775ff6a171f1ae6c9778f7aec7e3fa
BLAKE2b-256 c540091cf22d2e024a2db7e331c44a636e2e5cc57537f5e46eba6dcc23c3b2fb

See more details on using hashes here.

File details

Details for the file cashocs-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: cashocs-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 120.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for cashocs-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b09ccf8ceb041fc56bde7c2bfaf0c8197fe09c0169b49460e2e73085cc129fcb
MD5 53d0f92b8817c62ec0d560099b288b6f
BLAKE2b-256 0ae7836109c8591a38575023d06689fb16d9f563e7721e37394f0d6e50bb34a0

See more details on using hashes here.

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