Coder Social home page Coder Social logo

zebrajack / deep_learning_topology_opt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deng-cy/deep_learning_topology_opt

0.0 2.0 0.0 219 KB

Code for paper "Self-Directed Online Machine Learning for Topology Optimization"

License: MIT License

Python 8.49% MATLAB 91.51%

deep_learning_topology_opt's Introduction

Code for Self-Directed Online Machine Learning for Topology Optimization

This repository contains code of the following paper:

Changyu Deng, Yizhou Wang, Can Qin, Yun Fu, and Wei Lu. "Self-Directed Online Machine Learning for Topology Optimization." Nature Communications 13.1 (2022) Website Download arXiv

Contact

Open an issue for this repository or send emails to [email protected]. I will try to respond within a few hours. Pull requests are welcome.

Introduction

There are 8 examples of 4 types in the paper, two compliance minimization problems (coarse mesh/fine mesh), two fluid-structure optimization problems (coarse mesh/fine mesh), a heat transfer enhancement problem (heat) and three truss optimization problems (truss). Their code is in their individual folders; they do not share files. Please refer to the readme.md file in their own folder for more specific info.

If you are not sure which example to start from, I recommend

  • Fluid problem, if you have a GPU. It needs Python, COMSOL and Matlab. It is simple to undertsand and computes fast when you have a GPU.

  • Compliance problem, if you do not have a GPU. It needs Python, COMSOL and Matlab. It costs least computation but does not leverage GPU, so it will be slower than fluid problems when you have a GPU.

  • Truss problem, if you only have Python installed and do not want to install Matlab or COMSOL. It only uses Python, yet requires a GPU ( you can easily change the code to run on CPU, but you will wait for too long). Also, it is a little harder to understand than compliance problems and fluid problems.

I do NOT recommend starting from the heat problem. It is not easy to understand and time-consuming to compute.

Software environment

Following softwares are used by most examples:

  • COMSOL Multiphysics 5.4
  • Matlab 2019b
  • Python 3.7
    • PyTorch 1.2.0

Higher versions should work fine. Lower versions may be compatible. Refer to the folders for more details. Some different packages may be needed.

Reproducibility

Please note that the reproducibility is not guranteed due to PyTorch platform (see its documentation), yet similar results are expected.

Alternative repositories

There are four repositories that store the code/data of this work.

Code only:

Code and data (including generated .mph files and optimization results):

deep_learning_topology_opt's People

Contributors

deng-cy avatar

Watchers

James Cloos avatar  avatar

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.