Coder Social home page Coder Social logo

lavenklau / homo3d Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 14.0 558 KB

An Optimized, Easy-to-use, Open-source GPU Solver for Large-scale Inverse Homogenization Problems

License: GNU General Public License v2.0

C++ 44.07% Cuda 37.93% CMake 9.54% C 8.46%
cuda high-performance homogenization large-scale microstructure optimization

homo3d's People

Contributors

lavenklau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

homo3d's Issues

优化后模型无法打开

image
在使用基础案例中的./homo3d -reso 128 -obj bulk -init randc -sym reflect6 -vol 0.3 -mu 0.3 -prefix ./modle/
后,没有找到.VDB文件,我无法用blender软件直接对生成的这个模型进行加载,请问该如何使用生成的文件转化为模型文件

[已解决]在给定OpenVDB文件输入下优化泊松比时代码报错

我正在尝试使用homo3d优化器,把给定模型的泊松比优化到更低水平。我已经使用OpenVDB将分辨率为128的体素文件成功转换为.vdb格式,并在Blender中导入和可视化。该模型的体积分数为5%,在给定基材料下的泊松比为-0.035。

我试图在保证体积分数不变的情况下进行优化。这是我的输入: ./homo3d -reso 128 -obj npr -init manual -vol 0.05 -mu 0.35 -prefix /mnt/d/code/homo3d/dataset -in /mnt/d/code/homo3d/dataset/input.vdb
模型input.txt(上传不了.vdb格式,只好先改成.txt了)如图:

我不确定在保持体积分数为5%不变的情况下是否能成功进行优化。目前在运行代码时出现了一些报错,请问可以帮忙看一下是什么问题吗?或者我应该将初始vdb模型的体积分数调高一些,比如20%或者30%,再优化到5%,这样就能优化模型的泊松比了?

无法安装环境

直接输入conda env create -f environment.yaml后显示报错,这大概是因为文件里没有.yaml,但输入conda env create -f environment.yml后还是无法安装,单独安装依赖项时发现openvdb也无法安装

如何保證求解精度

Hi, @lavenklau - 我閱讀了你們的文章,有一個疑惑想要請教您。你們採用了代數多网格算法來計算均質化的等效剛度,但是據我所知amg方法一般用作預處理器,還需要經過cg求解器迭代修正來保證精度,你們的文章沒有提及,不只是如何處理的。萬分感謝!

build isuue

[ 2%] Building CUDA object CMakeFiles/cubin.dir/Framework.cu.o
[ 3%] Building CXX object _deps/openvdb-build/openvdb/openvdb/CMakeFiles/openvdb_static.dir/Grid.cc.o
In file included from /home/jiangyi/11/homo3d-master/homo3d-master/AutoDiff/TensorExpression.h:2:0,
from /home/jiangyi/11/homo3d-master/homo3d-master/AutoDiff/TensorExpression.cu:1:
/home/jiangyi/11/homo3d-master/homo3d-master/AutoDiff/AutoDiff.h:15:10: fatal error: cuda/std/tuple: 没有那个文件或目录
#include <cuda/std/tuple>
^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/cubin.dir/build.make:63:CMakeFiles/cubin.dir/AutoDiff/TensorExpression.cu.o] 错误 1
make[2]: *** 正在等待未完成的任务....
[ 5%] Building CXX object _deps/openvdb-build/openvdb/openvdb/CMakeFiles/openvdb_shared.dir/Grid.cc.o
[ 5%] Building CXX object _deps/openvdb-build/openvdb/openvdb/CMakeFiles/openvdb_static.dir/io/Archive.cc.o
In file included from /home/jiangyi/11/homo3d-master/homo3d-master/homogenization/homoExpression.h:3:0,
from /home/jiangyi/11/homo3d-master/homo3d-master/homogenization/Framework.cuh:2,
from /home/jiangyi/11/homo3d-master/homo3d-master/Framework.cu:1:
/home/jiangyi/11/homo3d-master/homo3d-master/AutoDiff/AutoDiff.h:15:10: fatal error: cuda/std/tuple: 没有那个文件或目录
#include <cuda/std/tuple>
^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/cubin.dir/build.make:76:CMakeFiles/cubin.dir/Framework.cu.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:168:CMakeFiles/cubin.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 6%] Building CXX object _deps/openvdb-build/openvdb/openvdb/CMakeFiles/openvdb_static.dir/io/Compression.cc.o

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.