Coder Social home page Coder Social logo

panfactory / panslbm2 Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 988 KB

is a tiny library for topology optimization using Lattice Boltzmann method (LBM).

License: MIT License

C++ 100.00%
lbm lattice-boltzmann adjoint-sensitivities adjoint-method topology-optimization

panslbm2's Introduction

PANSLBM2

A library of Topology Optimization with LBM.

Usage

Setup

Clone source codes into your environment.
Although your environment is allowed Windows, Linux or MacOS, use Windows for example bellow.

git clone https://github.com/PANFACTORY/PANSLBM2.git && cd PANSLBM2

After that, working directory is PANSLBM2/.

2D heatsink

For example, run a program solving 2D steady-state heatsink problem.
Use MinGW with AVX2 and OpenMP.

g++ -mavx -fopenmp -o build/heatsink.exe production/heatsink.cpp
build/heatsink.exe

And results are output in result/.
Of course, you can also use other compilers like Intel C++ Compiler.

3D heatsink

For example, run a program solving 3D steady-state heatsink problem.
Use MinGW with AVX2, OpenMP and MicrosoftMPI.

You have to place two files in your working directory to use MicrosoftMPI.

  • libmsmpi.a
  • msmpi.def

And add or uncomment #define _USE_MPI_DEFINES at 1st line in production/heatsink3D.cpp.
After that, build and execute with these commands.

g++ -mavx -fopenmp -lmsmpi -L . -o build/heatsink3D.exe production/heatsink3D.cpp
mpiexec -n 4 build/heatsink3D.exe 2 2 1

And results are output in result/.
Of course, you can also use other compilers like Intel C++ Compiler and other MPI libraries like Intel MPI.

Dependency

  • AVX2
  • OpenMP
  • MPI

License

MIT

panslbm2's People

Contributors

panfactory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ljuillen

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.