Computational Adjoint-Based Shape Optimization and Optimal Control Software
Project description
CASHOCS
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
- Optimal Control and general PDE constrained optimization
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
Built Distribution
File details
Details for the file cashocs-1.1.0.tar.gz
.
File metadata
- Download URL: cashocs-1.1.0.tar.gz
- Upload date:
- Size: 82.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d161be7210d579016a19e5d2d924681886055734da7e25caa665774712b8004d |
|
MD5 | 696655737c8aa7262a3c56492e13667d |
|
BLAKE2b-256 | 47b251e018083b4fdf7227fbfb0acd2252ad4916757aa3ef58c91e403162856b |
File details
Details for the file cashocs-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: cashocs-1.1.0-py3-none-any.whl
- Upload date:
- Size: 119.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8eefde90a98d4d1c7795cd061d845819757ffccdbdbd625290fabc62cc597d6 |
|
MD5 | b6f370883ca4bdeac116311760da1811 |
|
BLAKE2b-256 | bb1dbeb1abbfcd8d8868898d0fe710f5794d6f6422d986aca8a28b34e0a2f540 |