Skip to main content

Computational Adjoint-Based Shape Optimization and Optimal Control Software

Project description

CASHOCS

pypi https://zenodo.org/badge/DOI/10.5281/zenodo.4049436.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

  • 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 either use meshio 4.1 or 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.0.3.tar.gz (78.7 kB view details)

Uploaded Source

Built Distribution

cashocs-1.0.3-py3-none-any.whl (116.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cashocs-1.0.3.tar.gz
  • Upload date:
  • Size: 78.7 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.0.3.tar.gz
Algorithm Hash digest
SHA256 d84812db637318576a07e3aff46657900efaa8c00a42fa8302c4df0c11791b5f
MD5 e927b0502ba1d512fcc0671dd5373f27
BLAKE2b-256 1e1fe83d3fe02b7983332f74ce96c692286adf9fabd52281dbee3cf08c7f77f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cashocs-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 116.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.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b79d42fc0808eda59c407576bc2de655b5f535cfa836152401e93e0f589b634d
MD5 278f4bf0eeefe8d22f02f092e7244c6c
BLAKE2b-256 edd5f2fb038b23e7a69f4c515dae0094158155e3e0d51efb2afc4ce1bac007c0

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