cashocs#
cashocs is a 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.
The documentation for cashocs can be found here.
Functions
|
Create several Dirichlet boundary conditions at once. |
Interpolates jumping values to the mesh cells based on the levelset function. |
|
|
This computes the mesh quality of a given mesh. |
|
Creates an 1D interval mesh starting at x=0 to x=length. |
|
Creates a mesh corresponding to a rectangle or cube. |
|
Creates a mesh corresponding to a rectangle or cube. |
|
Converts the input mesh file to a xdmf mesh file for cashocs to work with. |
|
Imports a mesh file for use with cashocs / FEniCS. |
|
Loads a config object from a config file. |
|
This method sets the log level of the default handler, i.e., the console. |
|
Solves a linear problem. |
|
Solves a nonlinear problem with Newton's method. |
|
Solves a system of coupled PDEs via a Picard iteration. |
|
Solve a nonlinear PDE problem with PETSc SNES. |
|
Solve a nonlinear PDE problem with PETSc TS and pseudo time stepping. |
Classes
|
An optimal control problem with additional (in-)equality constraints. |
|
A shape optimization problem with additional (in-)equality constraints. |
|
Models an (additional) equality constraint. |
|
Models an (additional) inequality constraint. |
Base class for all cost functionals. |
|
|
A functional which is given by the integral of |
|
Cost functional involving a maximum of 0 and a integral term squared. |
|
Tracking cost functional for scalar quantities arising due to integration. |
|
Implements an optimal control problem. |
|
A shape optimization problem. |
|
A topology optimization problem. |
|
Efficient interpolation between two function spaces. |
|
Stores the various log levels of cashocs. |
Modules
Mesh generation, quality, and management tools. |
|
Inputs and outputs. |
|
Logging for cashocs. |
|
Custom solvers for nonlinear equations. |
|
Space mapping algorithms. |
|
Taylor tests for verifying gradient correctness. |