GithubHelp home page GithubHelp logo

rurux / femo Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 5.0 157.96 MB

Finite Elements for Multidisciplinary Optimization

License: GNU Lesser General Public License v3.0

Python 100.00%
csdl fenicsx finite-element-methods gradient-based-optimisation multidisciplinary-design-optimization python

femo's Introduction

femo

femo is a general framework for using Finite Element in PDE-constrained Multidisciplinary Optimization problems. It relies on FEniCSx to provide solutions and partial derivatives of the PDE residuals, and uses CSDL as the umbrella for coupling and mathematical modeling of the whole problem. The code is still under active developement and we expect it to be available to the public for their research applications by 2023 Winter.

For modeling and simulation, you need to install FEniCSx, CSDL and the Python-based backend of CSDL - python_csdl_backend; for optimization, you will also need ModOpt on top of them for the black-box optimizers.

Installation

It's recommended to use conda for installing the module and its dependencies.

  • Create a conda environment for FEniCSx with a specific Python version (Python 3.9) that is compatible with all of the dependencies
    conda create -n fenicsx python=3.9.10
    
    (Python 3.9.7 also works if Python 3.9.10 is unavailable in your conda)
  • Activate the conda enviroment
    conda activate fenicsx
    
  • Install FEniCSx
    conda install -c conda-forge fenics-dolfinx=0.5.1
    
  • Git clone and install CSDL, and python_csdl_backend by pip
  • Git clone and install femo by pip
  • (optional) Install SNOPT for optimization (licence required)
  • (optional) Install ModOpt by pip and test with modopt/modopt/external_packages/csdl/test_scaler.py

Cite us

@misc{xiang2024,
    author = "Xiang, Ru 
            and van Schie, Sebastiaan P.C.
            and Scotzniovsky, Luca 
            and Yan, Jiayao
            and Kamensky, David 
            and Hwang, John T.",
    title  = "Automating adjoint sensitivity analysis for multidisciplinary models involving partial differential equations",
    howpublished = {Jul 2024, Preprint available at \url{https://doi.org/10.21203/rs.3.rs-4265983/v1}}
}

@misc{scotzniovsky2024,
    author = "Scotzniovsky, Luca 
            and Xiang, Ru 
            and Cheng, Zeyu 
            and Rodriguez, Gabriel 
            and Kamensky, David 
            and Mi, Chris 
            and Hwang, John T.",
    title  = "Geometric Design of Electric Motors Using Adjoint-based Shape Optimization",
    howpublished = {Feb 2024, Preprint available at \url{https://doi.org/10.21203/rs.3.rs-3941981/v1}}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.