https://github.com/mdolab/dafoam
Revision 0ef51fbc1e60349dfdf806544d5e30339fa4f4c2 authored by Ping He on 05 September 2020, 13:05:39 UTC, committed by GitHub on 05 September 2020, 13:05:39 UTC
* Added wallHeatFlux obj.

* Updated version.

* Added DASimpleTFoam solver.

* Added totalPressure as objective.

* Added tests for new solver and objectives.

* Updated travis.

* Added MRF for DASimpleFoam.

* Removed MRF from DASimpleFoam.

* Added DATurbFoam and its tests.

* Updated travis.

* Added DASolidDisplacementFoam. Re-organized lib structure with a new condition Solid that does not depends on turbulence models.

* Added tests for DASolidDisplacementFoam.

* Fixed the pressureInletVelocity BC and updated tests.

* Fixed an issue for dFdW for vonMisesStressKS.

* Fixed an issue for DATurbFoam to improve sens accuracy.

* Updated tests for DATurbFoam.
1 parent f64a2ba
Raw File
Tip revision: 0ef51fbc1e60349dfdf806544d5e30339fa4f4c2 authored by Ping He on 05 September 2020, 13:05:39 UTC
V2.0.4 (#58)
Tip revision: 0ef51fb
setup.py
from setuptools import setup
import re

__version__ = re.findall(
    r"""__version__ = ["']+([0-9\.]*)["']+""", open("dafoam/__init__.py").read(),
)[0]

setup(
    name="dafoam",
    version=__version__,
    description="DAFoam: Discrete Adjoint with OpenFOAM for High-fidelity, gradient-based Optimization",
    long_description="""
      DAFoam contains a suite of adjoint solvers to efficiently compute derivatives. It also provides a Python interface to interact with a high-fidelity gradient-based design optimization framework (MACH). DAFoam is based on OpenFOAM and has the following features:

      - It implements an efficient discrete adjoint approach with competitive speed, scalability, accuracy, and compatibility.
      - It allows rapid discrete adjoint development for any steady and unsteady OpenFOAM primal solvers with modifying only a few hundred lines of source codes.
      - It supports design optimizations for a wide range of disciplines such as aerodynamics, heat transfer, structures, hydrodynamics, and radiation.

      """,
    long_description_content_type="text/markdown",
    keywords="OpenFOAM adjoint optimization",
    author="",
    author_email="",
    url="https://github.com/mdolab/dafoam",
    license="GPL version 3",
    packages=["dafoam"],
    package_data={"dafoam": ["*.so"]},
    scripts=[
        "dafoam/scripts/dafoam_matreldiff.py",
        "dafoam/scripts/dafoam_vecreldiff.py",
        "dafoam/scripts/dafoam_matgetvalues.py",
        "dafoam/scripts/dafoam_vecgetvalues.py",
    ],
    install_requires=[
        "numpy>=1.16.4",
        "mpi4py>=3.0.2",
        "petsc4py>=3.11.0",
        "cython>=0.29.21",
    ],
    classifiers=["Operating System :: Linux", "Programming Language :: Cython, C++"],
)

back to top