Giter Club home page Giter Club logo

ziran2020's Introduction

Code description

This is the opensource code for the following papers:

(1) AnisoMPM: Animating Anisotropic Damage Mechanics, Joshuah Wolper, Yunuo Chen, Minchen Li, Yu Fang, Ziyin Qu, Jiecong Lu, Meggie Cheng, Chenfanfu Jiang (SIGGRAPH 2020) Project Page: https://joshuahwolper.com/anisompm

(2) IQ-MPM: An Interface Quadrature Material Point Method for Non-sticky Strongly Two-way Coupled Nonlinear Solids and Fluids, Yu Fang*, Ziyin Qu* (equal contributions), Minchen Li, Xinxin Zhang, Yixin Zhu, Mridul Aanjaneya, Chenfanfu Jiang (SIGGRAPH 2020)

Troubleshooting Compiling

If anyone encounters compiling errors with GNU 9.3.0 or other versions, please switch to GNU 7.5.0 to compile which we've verified to work.

Use the following command to install GNU 7.5.0.

sudo apt-get install g++-7

When executing cmake, users should manually choose the compiler to use as well.

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7

Unzip Data

Download and unzip the following file in the root directory.

https://drive.google.com/file/d/1f22ObJmiq8H1_YObTz5BuE4IAWLQhyuB/view?usp=sharing

You need to do this due to the github single file size limit.

Dependencies Installation

sudo apt-get install make cmake g++ libeigen3-dev gfortran libmetis-dev
sudo apt-get install libopenvdb-dev libboost-all-dev libilmbase-dev libopenexr-dev
sudo apt-get install libtbb2 libtbb-dev libz-dev clang-format-6.0 clang-format

Building in Ziran

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j 4

Running Demos

Check folder Projects/anisofracture for AnisoMPM
Check folder Projects/coupling for IQ-MPM

Sampling Particles

We used TetWild to compute tetrahedralized volumes to sample particles from, check it out here: https://github.com/Yixin-Hu/TetWild

Visualization

We dump out .bgeo files for visualization and use Houdini to visualize our outputs. For converting a point cloud to a surface we use the meshing algorithm seen here: https://dl.acm.org/doi/10.1145/3340259, but you also have the option to use Houdini's VDB support to directly compute a VDB level set surface from the output particles (see https://www.sidefx.com/docs/houdini/nodes/sop/vdbfromparticles.html)

BibTeX

Please cite our papers if you use this code for your research:

@article{wolper2020anisompm,
  title={AnisoMPM: Animating Anisotropic Damage Mechanics},
  author={Wolper, Joshuah and Chen, Yunuo and Li, Minchen and Fang, Yu and Qu, Ziyin and Lu, Jiecong and Cheng, Meggie and Jiang, Chenfanfu},
  journal={ACM Trans. Graph.},
  volume={39},
  number={4},
  year={2020},
  publisher={ACM}
}
@article{fang2020iqmpm,
  title={IQ-MPM: An Interface Quadrature Material Point Method for Non-Sticky Strongly Two-Way Coupled Nonlinear Solids and Fluids},
  author={Fang, Yu and Qu, Ziyin and Li, Minchen and Zhang, Xinxin and Zhu, Yixin and Aanjaneya, Mridul and Jiang, Chenfanfu},
  volume={39},
  journal={ACM Trans. Graph.},
  number={4},
  year={2020},
  publisher={ACM},
}


ziran2020's People

Contributors

joshwolper avatar squarefk 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ziran2020's Issues

Erro Build Ubuntu 18

  |       ^~~~~~~~~

cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
cc1plus: some warnings being treated as errors
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/build.make:219: Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2d.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/build.make:232: Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2f.cpp.o] Error 1
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/build.make:245: Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3d.cpp.o] Error 1
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/build.make:258: Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3f.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:390: Lib/MPM/CMakeFiles/mpmdev.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Link error: Undefined symbols for architecture x86_64: "openvdb::v7_2::io::..."

I followed the guidance to turn off the amgcl CUDA:
option(ENABLE_AMGCL_CUDA "Use amgcl cuda" OFF)
But now I am configured successful but failed in generate, the CMake info as follows:

Build
Detected CPU: kaby-lake


  • CPU feature detection done.
  • Using Instruction Set Externsion: SSE 4.2, AVX, FMA, AVX2

CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:424 (message):
The package name passed to find_package_handle_standard_args (HALF) does
not match the name of the calling package (Half). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
CMake/FindHalf.cmake:25 (find_package_handle_standard_args)
Deps/CMakeLists.txt:23 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:424 (message):
The package name passed to find_package_handle_standard_args (OPENVDB)
does not match the name of the calling package (OpenVDB). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
CMake/FindOpenVDB.cmake:19 (find_package_handle_standard_args)
Deps/CMakeLists.txt:33 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

Could NOT find OPENVDB (missing: OPENVDB_LIBRARIES OPENVDB_INCLUDE_DIRS)
Downloading/updating kdtree
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/yc/Documents/GitHub/ziran2020/build/kdtree-download

[100%] Built target kdtree-download

Downloading/updating amgcl
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/yc/Documents/GitHub/ziran2020/build/amgcl-download

[100%] Built target amgcl-download

Found OpenMP_CXX: -Xclang -fopenmp (found version "4.5")
Found OpenMP: TRUE (found version "4.5")
Downloading/updating VexCL
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/yc/Documents/GitHub/ziran2020/build/VexCL-download

[100%] Built target VexCL-download

Found VexCL::OpenCL
Found VexCL::Compute
CUDA_TOOLKIT_ROOT_DIR not found or specified
Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
Found OpenMP_CXX: -Xclang -fopenmp (found version "4.5")
Found OpenMP: TRUE (found version "4.5")
Found VexCL::JIT
Downloading/updating partio
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/yc/Documents/GitHub/ziran2020/build/partio-download

[100%] Built target partio-download

CMake Deprecation Warning at build/partio-src/CMakeLists.txt:35 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

Downloading/updating Tick
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done

-- Generating done

-- Build files have been written to: /Users/yc/Documents/GitHub/ziran2020/build/Tick-download

[100%] Built target Tick-download

CMake Warning (dev) at /Applications/CMake.app/Contents/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:424 (message):
The package name passed to find_package_handle_standard_args (METIS) does
not match the name of the calling package (Metis). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
CMake/FindMetis.cmake:54 (find_package_handle_standard_args)
Deps/CMakeLists.txt:116 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

Could NOT find METIS (missing: METIS_INCLUDE_DIRS METIS_LIBRARIES)
Found: /usr/bin/git
Found: /usr/bin/python
Found: /usr/local/bin/clang-format
Found git root: /Users/yc/Documents/GitHub/ziran2020


C++ Cmake Flags: -msse4.2 -mfma -mavx2 -fPIC -Wall -Werror=all -Wextra -Wno-unused-parameter -march=native


Configuring done
CMake Error at Lib/Ziran/CMakeLists.txt:6 (add_library):
Target "ziran" links to target "VexCL::CUDA" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:127 (add_executable):
Target "anisofracture" links to target "VexCL::CUDA" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
Projects/anisofracture/CMakeLists.txt:7 (add_ziran_executable)

Using custom mesh

I'm using a triangulated box with tetrahedrons generated by TetWild, but I get the following error when executing AnisoFracture:

FATAL Received fatal signal: SIGSEGV(11)

----------------------------------------STACKTRACE-----------------------------------------

1 ./anisofracture ZIRAN::signalHandler(int)+0x9e [0x55b2640d975e]
2 /lib/x86_64-linux-gnu/libc.so.6 +0x46210 [0x7f917462b210]
3 ./anisofracture ZIRAN::MpmGrid<double, 3, 2>::pollute(std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > > const&, double, int, int, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)+0x6c6 [0x55b2645b0d86]
4 ./anisofracture ZIRAN::MpmSimulationBase<double, 3>::sortParticlesAndPolluteGrid()+0x223 [0x55b2645d0993]
5 ./anisofracture ZIRAN::MpmSimulationBase<double, 3>::reinitialize()+0x6ea [0x55b2645d9cda]
6 ./anisofracture main+0x12d5 [0x55b264029105]
7 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main+0xf3 [0x7f917460c0b3]
8 ./anisofracture _start+0x2e [0x55b26402b14e]

----------------------------------------CONTEXT--------------------------------------------

Configuration error in Ubuntu 18

CMake Error: File /home/marwa/ziran2020/Scripts/git-pre-commit-hook does not exist.
CMake Error at Scripts/CMakeLists.txt:69 (configure_file):
configure_file Problem configuring file

make: *** No targets specified and no makefile found. Stop.

cmake .. -DCMAKE_BUILD_TYPE=Release

-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Release Build
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- target changed from "" to "auto"
-- Detected CPU: zen
-- Performing Test check_cxx_compiler_flag__march_znver1
-- Performing Test check_cxx_compiler_flag__march_znver1 - Success
-- Performing Test check_cxx_compiler_flag__msse2
-- Performing Test check_cxx_compiler_flag__msse2 - Success
-- Performing Test check_cxx_compiler_flag__msse3
-- Performing Test check_cxx_compiler_flag__msse3 - Success
-- Looking for C++ include pmmintrin.h
-- Looking for C++ include pmmintrin.h - found
-- Performing Test check_cxx_compiler_flag__mssse3
-- Performing Test check_cxx_compiler_flag__mssse3 - Success
-- Looking for C++ include tmmintrin.h
-- Looking for C++ include tmmintrin.h - found
-- Performing Test check_cxx_compiler_flag__msse4_1
-- Performing Test check_cxx_compiler_flag__msse4_1 - Success
-- Looking for C++ include smmintrin.h
-- Looking for C++ include smmintrin.h - found
-- Performing Test check_cxx_compiler_flag__msse4_2
-- Performing Test check_cxx_compiler_flag__msse4_2 - Success
-- Performing Test check_cxx_compiler_flag__msse4a
-- Performing Test check_cxx_compiler_flag__msse4a - Success
-- Looking for C++ include ammintrin.h
-- Looking for C++ include ammintrin.h - found
-- Performing Test check_cxx_compiler_flag__mavx
-- Performing Test check_cxx_compiler_flag__mavx - Success
-- Looking for C++ include immintrin.h
-- Looking for C++ include immintrin.h - found
-- Performing Test check_cxx_compiler_flag__mfma
-- Performing Test check_cxx_compiler_flag__mfma - Success
-- Performing Test check_cxx_compiler_flag__mbmi2
-- Performing Test check_cxx_compiler_flag__mbmi2 - Success
-- Performing Test check_cxx_compiler_flag__mavx2
-- Performing Test check_cxx_compiler_flag__mavx2 - Success
-- Performing Test check_cxx_compiler_flag__mno_xop
-- Performing Test check_cxx_compiler_flag__mno_xop - Success
-- Performing Test check_cxx_compiler_flag__mno_fma4
-- Performing Test check_cxx_compiler_flag__mno_fma4 - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512f
-- Performing Test check_cxx_compiler_flag__mno_avx512f - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512vl
-- Performing Test check_cxx_compiler_flag__mno_avx512vl - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512pf
-- Performing Test check_cxx_compiler_flag__mno_avx512pf - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512er
-- Performing Test check_cxx_compiler_flag__mno_avx512er - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512cd
-- Performing Test check_cxx_compiler_flag__mno_avx512cd - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512dq
-- Performing Test check_cxx_compiler_flag__mno_avx512dq - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512bw
-- Performing Test check_cxx_compiler_flag__mno_avx512bw - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512ifma
-- Performing Test check_cxx_compiler_flag__mno_avx512ifma - Success
-- Performing Test check_cxx_compiler_flag__mno_avx512vbmi
-- Performing Test check_cxx_compiler_flag__mno_avx512vbmi - Success


  • CPU feature detection done.
  • Using Instruction Set Externsion: SSE 4.2, AVX, FMA, AVX2

-- Found HALF: /usr/lib/x86_64-linux-gnu/libHalf.so
-- Found OPENVDB: /usr/lib/x86_64-linux-gnu/libopenvdb.so
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Downloading/updating kdtree
-- Configuring done
-- Generating done
-- Build files have been written to: /home/steel/Aniso/ziran2020-master/build/kdtree-download
Scanning dependencies of target kdtree-download
[ 11%] Creating directories for 'kdtree-download'
[ 22%] Performing download step (git clone) for 'kdtree-download'
正克隆到 'kdtree-src'...
注意:正在切换到 '7bb7e830d6899214e9e896f920483ddb39c43f7b'。

您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以在切换
回一个分支时,丢弃在此状态下所做的提交而不对分支造成影响。

如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在 switch 命令
中添加参数 -c 来实现(现在或稍后)。例如:

git switch -c <新分支名>

或者撤销此操作:

git switch -

通过将配置变量 advice.detachedHead 设置为 false 来关闭此建议

HEAD 目前位于 7bb7e83 From Ferdinand Mitterbauer: "Building a project using libkdtree++ using Intel C++ Compiler 11.1 (on Windows 7, 64bit) results in errors." Applied suggested fix.
[ 33%] No patch step for 'kdtree-download'
[ 44%] Skipping update step for 'kdtree-download'
[ 55%] No configure step for 'kdtree-download'
[ 66%] No build step for 'kdtree-download'
[ 77%] No install step for 'kdtree-download'
[ 88%] No test step for 'kdtree-download'
[100%] Completed 'kdtree-download'
[100%] Built target kdtree-download
-- Downloading/updating amgcl
-- Configuring done
-- Generating done
-- Build files have been written to: /home/steel/Aniso/ziran2020-master/build/amgcl-download
Scanning dependencies of target amgcl-download
[ 11%] Creating directories for 'amgcl-download'
[ 22%] Performing download step (git clone) for 'amgcl-download'
正克隆到 'amgcl-src'...
已经位于 'master'
您的分支与上游分支 'origin/master' 一致。
子模组 'pyamgcl/pybind11'(https://github.com/pybind/pybind11)已对路径 'pyamgcl/pybind11' 注册
正克隆到 '/home/steel/Aniso/ziran2020-master/build/amgcl-src/pyamgcl/pybind11'...

fatal: 无法访问 'https://github.com/pybind/pybind11/':GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: 无法克隆 'https://github.com/pybind/pybind11' 到子模组路径 '/home/steel/Aniso/ziran2020-master/build/amgcl-src/pyamgcl/pybind11'
克隆 'pyamgcl/pybind11' 失败。按计划重试
正克隆到 '/home/steel/Aniso/ziran2020-master/build/amgcl-src/pyamgcl/pybind11'...
fatal: 无法访问 'https://github.com/pybind/pybind11/':GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: 无法克隆 'https://github.com/pybind/pybind11' 到子模组路径 '/home/steel/Aniso/ziran2020-master/build/amgcl-src/pyamgcl/pybind11'
第二次尝试克隆 'pyamgcl/pybind11' 失败,退出
CMake Error at amgcl-download/amgcl-download-prefix/tmp/amgcl-download-gitclone.cmake:52 (message):
Failed to update submodules in:
'/home/steel/Aniso/ziran2020-master/build/amgcl-src'

make[2]: *** [CMakeFiles/amgcl-download.dir/build.make:91:amgcl-download-prefix/src/amgcl-download-stamp/amgcl-download-download] 错误 1
make[1]: *** [CMakeFiles/Makefile2:76:CMakeFiles/amgcl-download.dir/all] 错误 2
make: *** [Makefile:84:all] 错误 2
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Downloading/updating VexCL
-- Configuring done
-- Generating done
-- Build files have been written to: /home/steel/Aniso/ziran2020-master/build/VexCL-download
Scanning dependencies of target VexCL-download
[ 11%] Creating directories for 'VexCL-download'
[ 22%] Performing download step (git clone) for 'VexCL-download'
正克隆到 'VexCL-src'...
error: RPC 失败。curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: 远端意外挂断了
正克隆到 'VexCL-src'...
-- Had to git clone more than once:
2 times.
您的分支与上游分支 'origin/master' 一致。
已经位于 'master'
[ 33%] No patch step for 'VexCL-download'
[ 44%] Skipping update step for 'VexCL-download'
[ 55%] No configure step for 'VexCL-download'
[ 66%] No build step for 'VexCL-download'
[ 77%] No install step for 'VexCL-download'
[ 88%] No test step for 'VexCL-download'
[100%] Completed 'VexCL-download'
[100%] Built target VexCL-download
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: chrono date_time filesystem program_options system thread unit_test_framework
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Looking for CL/cl_platform.h
-- Looking for CL/cl_platform.h - not found
CMake Warning at build/VexCL-src/CMakeLists.txt:181 (message):
The JIT interface requires OpenCL headers to be available.You can download
them from https://github.com/KhronosGroup/OpenCL-HeadersSet
OpenCL_INCLUDE_DIR to the location of the headers.For now, disabling the
JIT target.

-- Downloading/updating partio
-- Configuring done
-- Generating done
-- Build files have been written to: /home/steel/Aniso/ziran2020-master/build/partio-download
Scanning dependencies of target partio-download
[ 11%] Creating directories for 'partio-download'
[ 22%] Performing download step (git clone) for 'partio-download'
正克隆到 'partio-src'...
注意:正在切换到 'v1.1.0'。

您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以在切换
回一个分支时,丢弃在此状态下所做的提交而不对分支造成影响。

如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在 switch 命令
中添加参数 -c 来实现(现在或稍后)。例如:

git switch -c <新分支名>

或者撤销此操作:

git switch -

通过将配置变量 advice.detachedHead 设置为 false 来关闭此建议

HEAD 目前位于 bfc7c32 Compile fix for mac os x (unsigned int instead of uint)
[ 33%] Performing patch step for 'partio-download'
[ 44%] Skipping update step for 'partio-download'
[ 55%] No configure step for 'partio-download'
[ 66%] No build step for 'partio-download'
[ 77%] No install step for 'partio-download'
[ 88%] No test step for 'partio-download'
[100%] Completed 'partio-download'
[100%] Built target partio-download
-- Downloading/updating Tick
-- Configuring done
-- Generating done
-- Build files have been written to: /home/steel/Aniso/ziran2020-master/build/Tick-download
Scanning dependencies of target Tick-download
[ 11%] Creating directories for 'Tick-download'
[ 22%] Performing download step (git clone) for 'Tick-download'
正克隆到 'Tick-src'...
注意:正在切换到 'b82af5461e95ddc6b652ac2456976cc912ab2f01'。

您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以在切换
回一个分支时,丢弃在此状态下所做的提交而不对分支造成影响。

如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在 switch 命令
中添加参数 -c 来实现(现在或稍后)。例如:

git switch -c <新分支名>

或者撤销此操作:

git switch -

通过将配置变量 advice.detachedHead 设置为 false 来关闭此建议

HEAD 目前位于 b82af54 Test install on travis
[ 33%] No patch step for 'Tick-download'
[ 44%] Skipping update step for 'Tick-download'
[ 55%] No configure step for 'Tick-download'
[ 66%] No build step for 'Tick-download'
[ 77%] No install step for 'Tick-download'
[ 88%] No test step for 'Tick-download'
[100%] Completed 'Tick-download'
[100%] Built target Tick-download
-- Found METIS: /usr/include
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Found: /usr/bin/git
-- Found: /usr/bin/python
-- Found: /usr/bin/clang-format
fatal: 不是 git 仓库(或者直至挂载点 / 的任何父目录)
停止在文件系统边界(未设置 GIT_DISCOVERY_ACROSS_FILESYSTEM)。
CMake Warning at Scripts/CMakeLists.txt:66 (message):
Not in a git repository


C++ Cmake Flags: -msse4.2 -mfma -mavx2 -fPIC -Wall -Werror=all -Wextra -Wno-unused-parameter -Wcast-align -Wformat=2 -Winit-self -Wmissing-include-dirs -Woverloaded-virtual -march=native -fno-math-errno


-- Configuring done
CMake Error at Lib/Ziran/CMakeLists.txt:6 (add_library):
Target "ziran" links to target "VexCL::CUDA" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at Lib/MPM/CMakeLists.txt:11 (add_library):
Target "mpmdev" links to target "VexCL::CUDA" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?

CMake Error at CMakeLists.txt:127 (add_executable):
Target "anisofracture" links to target "VexCL::CUDA" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
Projects/anisofracture/CMakeLists.txt:7 (add_ziran_executable)

CMake Error at CMakeLists.txt:127 (add_executable):
Target "splitting" links to target "VexCL::CUDA" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
Projects/splitting/CMakeLists.txt:12 (add_ziran_executable)

CMake Error at CMakeLists.txt:127 (add_executable):
Target "coupling" links to target "VexCL::CUDA" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
Call Stack (most recent call first):
Projects/coupling/CMakeLists.txt:12 (add_ziran_executable)

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

Error in Configuration- ubuntu 18

Thanks for adding the file from previous issue: while running the updated repo, it frozen at the following lines

fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Cloning into 'VexCL-src'...

Fluids possible?

Hi there,

I just want to make sure whether the code is also viable for fluids and water simulation since there were no examples on such. And does anyone have an example for fluid meshing?

Regards

Error in ubuntu18.04

INFO Loading all plugins in /home/ziran2020/build/Plugins
ERROR In file: /home/ziran2020/Projects/coupling/main.cpp:84:
In function main:
No lua script loaded. Either load with --script or set --test
condition = test_number != -1
terminate called after throwing an instance of 'std::runtime_error'
what(): Assertion failed

FATAL Received fatal signal: SIGABRT(6)

----------------------------------------STACKTRACE-----------------------------------------

1 ./coupling ZIRAN::signalHandler(int)+0x8b [0x55d4a0a82b5b]
2 /lib/x86_64-linux-gnu/libc.so.6 +0x3efd0 [0x7fac673e5fd0]
3 /lib/x86_64-linux-gnu/libc.so.6 gsignal+0xc7 [0x7fac673e5f47]
4 /lib/x86_64-linux-gnu/libc.so.6 abort+0x141 [0x7fac673e78b1]
5 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 +0x8c957 [0x7fac68009957]
6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 +0x92ae6 [0x7fac6800fae6]
7 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 +0x92b21 [0x7fac6800fb21]
8 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 +0x92d54 [0x7fac6800fd54]
9 ./coupling void ZIRAN::DEBUG_UTILITIES::assertionFailed<char const (&) [62]>(char const*, char const*, unsigned int, char const*, char const (&) [62])+0xa1 [0x55d4a08c7b71]
10 ./coupling main+0xc69 [0x55d4a089ddb9]
11 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main+0xe7 [0x7fac673c8b97]
12 ./coupling _start+0x2a [0x55d4a08a060a]

----------------------------------------CONTEXT--------------------------------------------


Exited after receiving FATAL trigger. Flush message status: : Success

Error 2 in wsl ubuntu 18.04

[ 9%] Built target spgrid
[ 18%] Built target partio
[ 18%] Built target format
[ 67%] Built target ziran
[ 68%] Building CXX object Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2d.cpp.o
[ 69%] Building CXX object Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2f.cpp.o
[ 70%] Building CXX object Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3d.cpp.o
[ 71%] Building CXX object Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3f.cpp.o
In file included from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../Ziran/Math/Linear/DirectSolver.h:32:0,
from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../MPM/MpmMultivarSystem.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.cpp:2,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/MpmSimulation2d.cpp:2:
/home/yc/iqmpm/ziran2020/build/amgcl-src/amgcl/backend/vexcl.hpp:40:10: fatal error: vexcl/vector.hpp: No such file or directory
#include <vexcl/vector.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../Ziran/Math/Linear/DirectSolver.h:32:0,
from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../MPM/MpmMultivarSystem.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.cpp:2,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/MpmSimulation3f.cpp:2:
/home/yc/iqmpm/ziran2020/build/amgcl-src/amgcl/backend/vexcl.hpp:40:10: fatal error: vexcl/vector.hpp: No such file or directory
#include <vexcl/vector.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../Ziran/Math/Linear/DirectSolver.h:32:0,
from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../MPM/MpmMultivarSystem.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.cpp:2,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/MpmSimulation3d.cpp:2:
/home/yc/iqmpm/ziran2020/build/amgcl-src/amgcl/backend/vexcl.hpp:40:10: fatal error: vexcl/vector.hpp: No such file or directory
#include <vexcl/vector.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../Ziran/Math/Linear/DirectSolver.h:32:0,
from /home/yc/iqmpm/ziran2020/Lib/SPGrid/../MPM/MpmMultivarSystem.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.h:9,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/../MpmSimulationBase.cpp:2,
from /home/yc/iqmpm/ziran2020/Lib/MPM/instantiations/MpmSimulation2f.cpp:2:
/home/yc/iqmpm/ziran2020/build/amgcl-src/amgcl/backend/vexcl.hpp:40:10: fatal error: vexcl/vector.hpp: No such file or directory
#include <vexcl/vector.hpp>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Lib/MPM/CMakeFiles/mpmdev.dir/build.make:350: recipe for target 'Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2d.cpp.o' failed
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2d.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Lib/MPM/CMakeFiles/mpmdev.dir/build.make:422: recipe for target 'Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3f.cpp.o' failed
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3f.cpp.o] Error 1
Lib/MPM/CMakeFiles/mpmdev.dir/build.make:398: recipe for target 'Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3d.cpp.o' failed
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation3d.cpp.o] Error 1
Lib/MPM/CMakeFiles/mpmdev.dir/build.make:374: recipe for target 'Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2f.cpp.o' failed
make[2]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/instantiations/MpmSimulation2f.cpp.o] Error 1
CMakeFiles/Makefile2:278: recipe for target 'Lib/MPM/CMakeFiles/mpmdev.dir/all' failed
make[1]: *** [Lib/MPM/CMakeFiles/mpmdev.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

All coupling tests fail while attempting to read particles-1000k.dat

I'm on Kubuntu 20.04.1 LTS. I successfully managed to build the project using GNU 7.5.0, and after running sudo make install in the build directory tested the coupling command with the following results:

coupling -test 1 -t 8

   INFO  Loading all plugins in /home/techperson/Downloads/ziran2020-master/build/Plugins
   INFO  Simulation using double:1
   INFO  Simulation dimension:3
   INFO  dd
   INFO  min_corner 0.705771 0.205771 0.7057712.29423 1.79423 2.29423
   INFO  sample grid min:31  6 31
   INFO  sample grid max:118  93 118
   INFO  sampled particle count: 614061
   INFO  dd
   INFO  min_corner 0.226631 0.696631 0.7266311.77337 2.24337 2.27337
   INFO  sample grid min: 7 30 32
   INFO  sample grid max: 92 116 117
   INFO  sampled particle count: 581742
   INFO  dd
   INFO  min_corner 0.726631 0.696631 0.2266312.27337 2.24337 1.77337
   INFO  sample grid min:32 30  7
   INFO  sample grid max:117 116  92
   INFO  sampled particle count: 581742
   INFO  dd
   INFO  min_corner  1.22663 0.696631 0.7266312.77337 2.24337 2.27337
   INFO  sample grid min:57 30 32
   INFO  sample grid max:142 116 117
   INFO  sampled particle count: 581742
   INFO  dd
   INFO  min_corner 0.726631 0.696631  1.226632.27337 2.24337 2.77337
   INFO  sample grid min:32 30 57
   INFO  sample grid max:117 116 142
   INFO  sampled particle count: 581742
   INFO  Sampling 27 particles per cell in the levelset
  DEBUG  Opening file /home/techperson/Downloads/ziran2020-master/Data/MpmParticles/particles-1000k.dat
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error

  FATAL  Received fatal signal: SIGABRT(6)

----------------------------------------STACKTRACE-----------------------------------------

 1  coupling                            ZIRAN::signalHandler(int)+0x8b [0x561c062dbfab]
 2  /lib/x86_64-linux-gnu/libc.so.6     +0x46210 [0x7f3bf2fa5210]
 3  /lib/x86_64-linux-gnu/libc.so.6     gsignal+0xcb [0x7f3bf2fa518b]
 4  /lib/x86_64-linux-gnu/libc.so.6     abort+0x12b [0x7f3bf2f84859]
 5  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x9e951 [0x7f3bf339d951]
 6  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa47c [0x7f3bf33a947c]
 7  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa4e7 [0x7f3bf33a94e7]
 8  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa799 [0x7f3bf33a9799]
 9  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::__throw_ios_failure(char const*)+0x91 [0x7f3bf33a0c63]
10  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x114dd2 [0x7f3bf3413dd2]
11  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::istream::read(char*, long)+0xa6 [0x7f3bf3417d36]
12  coupling                            void ZIRAN::PoissonDisk<double, 3>::sampleFromPeriodicData<ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}>(std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&, ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}&&)+0x184 [0x561c06142fe4]
13  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)+0x1ed [0x561c0614a62d]
14  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSet(ZIRAN::AnalyticLevelSet<double, 3>&, double, double)+0x61 [0x561c06158a41]
15  coupling                            ZIRAN::CouplingInit3D<double>::reload()+0x34a7 [0x561c0623b587]
16  coupling                            ZIRAN::CouplingInitBase<double, 3>::initialize()+0x24 [0x561c06237314]
17  coupling                            main+0xa26 [0x561c060f3c96]
18  /lib/x86_64-linux-gnu/libc.so.6     __libc_start_main+0xf3 [0x7f3bf2f860b3]
19  coupling                            _start+0x2e [0x561c060f66ee]

----------------------------------------CONTEXT--------------------------------------------


-------------------------------------------------------------------------------------------
Aborted (core dumped)

coupling -test 2 -t 8

   INFO  Loading all plugins in /home/techperson/Downloads/ziran2020-master/build/Plugins
   INFO  Simulation using double:1
   INFO  Simulation dimension:3
   INFO  dd
   INFO  min_corner 0.758564 0.258564 0.7585642.24144 1.74144 2.24144
   INFO  sample grid min:90 28 90
   INFO  sample grid max:284 221 284
   INFO  sampled particle count: 3293136
   INFO  Sampling 27 particles per cell in the levelset
  DEBUG  Opening file /home/techperson/Downloads/ziran2020-master/Data/MpmParticles/particles-1000k.dat
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error

  FATAL  Received fatal signal: SIGABRT(6)

----------------------------------------STACKTRACE-----------------------------------------

 1  coupling                            ZIRAN::signalHandler(int)+0x8b [0x55cdba1b2fab]
 2  /lib/x86_64-linux-gnu/libc.so.6     +0x46210 [0x7fc69bfae210]
 3  /lib/x86_64-linux-gnu/libc.so.6     gsignal+0xcb [0x7fc69bfae18b]
 4  /lib/x86_64-linux-gnu/libc.so.6     abort+0x12b [0x7fc69bf8d859]
 5  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x9e951 [0x7fc69c3a6951]
 6  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa47c [0x7fc69c3b247c]
 7  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa4e7 [0x7fc69c3b24e7]
 8  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa799 [0x7fc69c3b2799]
 9  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::__throw_ios_failure(char const*)+0x91 [0x7fc69c3a9c63]
10  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x114dd2 [0x7fc69c41cdd2]
11  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::istream::read(char*, long)+0xa6 [0x7fc69c420d36]
12  coupling                            void ZIRAN::PoissonDisk<double, 3>::sampleFromPeriodicData<ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}>(std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&, ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}&&)+0x184 [0x55cdba019fe4]
13  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)+0x1ed [0x55cdba02162d]
14  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSet(ZIRAN::AnalyticLevelSet<double, 3>&, double, double)+0x61 [0x55cdba02fa41]
15  coupling                            ZIRAN::CouplingInit3D<double>::reload()+0x2ce0 [0x55cdba111dc0]
16  coupling                            ZIRAN::CouplingInitBase<double, 3>::initialize()+0x24 [0x55cdba10e314]
17  coupling                            main+0xa26 [0x55cdb9fcac96]
18  /lib/x86_64-linux-gnu/libc.so.6     __libc_start_main+0xf3 [0x7fc69bf8f0b3]
19  coupling                            _start+0x2e [0x55cdb9fcd6ee]

----------------------------------------CONTEXT--------------------------------------------


-------------------------------------------------------------------------------------------
Aborted (core dumped)

coupling -test 3 -t 8

   INFO  Simulation using double:1
   INFO  Simulation dimension:3
   INFO  dd
   INFO  min_corner 0.758564 0.258564 0.7585642.24144 1.74144 2.24144
   INFO  sample grid min:90 28 90
   INFO  sample grid max:284 221 284
   INFO  sampled particle count: 3293136
   INFO  dd
   INFO  min_corner 0.266995 0.754995 0.7669951.733 2.221 2.233
   INFO  sample grid min:29 90 91
   INFO  sample grid max:220 281 283
   INFO  sampled particle count: 3218292
   INFO  dd
   INFO  min_corner 0.766995 0.754995 0.2669952.233 2.221 1.733
   INFO  sample grid min:91 90 29
   INFO  sample grid max:283 281 220
   INFO  sampled particle count: 3218292
   INFO  dd
   INFO  min_corner    1.267 0.754995 0.7669952.733 2.221 2.233
   INFO  sample grid min:154  90  91
   INFO  sample grid max:345 281 283
   INFO  sampled particle count: 3218292
   INFO  dd
   INFO  min_corner 0.766995 0.754995    1.2672.233 2.221 2.733
   INFO  sample grid min: 91  90 154
   INFO  sample grid max:283 281 345
   INFO  sampled particle count: 3218292
   INFO  Sampling 27 particles per cell in the levelset
  DEBUG  Opening file /home/techperson/Downloads/ziran2020-master/Data/MpmParticles/particles-1000k.dat
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error

  FATAL  Received fatal signal: SIGABRT(6)

----------------------------------------STACKTRACE-----------------------------------------

 1  coupling                            ZIRAN::signalHandler(int)+0x8b [0x557dc0f55fab]
 2  /lib/x86_64-linux-gnu/libc.so.6     +0x46210 [0x7f5ddeb7e210]
 3  /lib/x86_64-linux-gnu/libc.so.6     gsignal+0xcb [0x7f5ddeb7e18b]
 4  /lib/x86_64-linux-gnu/libc.so.6     abort+0x12b [0x7f5ddeb5d859]
 5  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x9e951 [0x7f5ddef76951]
 6  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa47c [0x7f5ddef8247c]
 7  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa4e7 [0x7f5ddef824e7]
 8  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa799 [0x7f5ddef82799]
 9  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::__throw_ios_failure(char const*)+0x91 [0x7f5ddef79c63]
10  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x114dd2 [0x7f5ddefecdd2]
11  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::istream::read(char*, long)+0xa6 [0x7f5ddeff0d36]
12  coupling                            void ZIRAN::PoissonDisk<double, 3>::sampleFromPeriodicData<ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}>(std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&, ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}&&)+0x184 [0x557dc0dbcfe4]
13  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)+0x1ed [0x557dc0dc462d]
14  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSet(ZIRAN::AnalyticLevelSet<double, 3>&, double, double)+0x61 [0x557dc0dd2a41]
15  coupling                            ZIRAN::CouplingInit3D<double>::reload()+0x22f7 [0x557dc0eb43d7]
16  coupling                            ZIRAN::CouplingInitBase<double, 3>::initialize()+0x24 [0x557dc0eb1314]
17  coupling                            main+0xa26 [0x557dc0d6dc96]
18  /lib/x86_64-linux-gnu/libc.so.6     __libc_start_main+0xf3 [0x7f5ddeb5f0b3]
19  coupling                            _start+0x2e [0x557dc0d706ee]

----------------------------------------CONTEXT--------------------------------------------


-------------------------------------------------------------------------------------------
Aborted (core dumped)

coupling -test 4 -t 8

   INFO  Simulation using double:1
   INFO  Simulation dimension:3
   INFO  Sampling 16 particles per cell in the levelset
  DEBUG  Opening file /home/techperson/Downloads/ziran2020-master/Data/MpmParticles/particles-1000k.dat
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error

  FATAL  Received fatal signal: SIGABRT(6)

----------------------------------------STACKTRACE-----------------------------------------

 1  coupling                            ZIRAN::signalHandler(int)+0x8b [0x55f9a8189fab]
 2  /lib/x86_64-linux-gnu/libc.so.6     +0x46210 [0x7fbcd387b210]
 3  /lib/x86_64-linux-gnu/libc.so.6     gsignal+0xcb [0x7fbcd387b18b]
 4  /lib/x86_64-linux-gnu/libc.so.6     abort+0x12b [0x7fbcd385a859]
 5  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x9e951 [0x7fbcd3c73951]
 6  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa47c [0x7fbcd3c7f47c]
 7  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa4e7 [0x7fbcd3c7f4e7]
 8  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa799 [0x7fbcd3c7f799]
 9  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::__throw_ios_failure(char const*)+0x91 [0x7fbcd3c76c63]
10  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x114dd2 [0x7fbcd3ce9dd2]
11  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::istream::read(char*, long)+0xa6 [0x7fbcd3cedd36]
12  coupling                            void ZIRAN::PoissonDisk<double, 3>::sampleFromPeriodicData<ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}>(std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&, ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}&&)+0x184 [0x55f9a7ff0fe4]
13  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)+0x1ed [0x55f9a7ff862d]
14  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSet(ZIRAN::AnalyticLevelSet<double, 3>&, double, double)+0x61 [0x55f9a8006a41]
15  coupling                            ZIRAN::CouplingInit3D<double>::reload()+0x1956 [0x55f9a80e7a36]
16  coupling                            ZIRAN::CouplingInitBase<double, 3>::initialize()+0x24 [0x55f9a80e5314]
17  coupling                            main+0xa26 [0x55f9a7fa1c96]
18  /lib/x86_64-linux-gnu/libc.so.6     __libc_start_main+0xf3 [0x7fbcd385c0b3]
19  coupling                            _start+0x2e [0x55f9a7fa46ee]

----------------------------------------CONTEXT--------------------------------------------


-------------------------------------------------------------------------------------------
Aborted (core dumped)

coupling -test 5 -t 8

   INFO  Simulation using double:1
   INFO  Simulation dimension:3
   INFO  Sampling 8 particles per cell in the levelset
  DEBUG  Opening file /home/techperson/Downloads/ziran2020-master/Data/MpmParticles/particles-1000k.dat
terminate called after throwing an instance of 'std::__ios_failure'
  what():  basic_ios::clear: iostream error

  FATAL  Received fatal signal: SIGABRT(6)

----------------------------------------STACKTRACE-----------------------------------------

 1  coupling                            ZIRAN::signalHandler(int)+0x8b [0x559b5f69afab]
 2  /lib/x86_64-linux-gnu/libc.so.6     +0x46210 [0x7fe7343d0210]
 3  /lib/x86_64-linux-gnu/libc.so.6     gsignal+0xcb [0x7fe7343d018b]
 4  /lib/x86_64-linux-gnu/libc.so.6     abort+0x12b [0x7fe7343af859]
 5  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x9e951 [0x7fe7347c8951]
 6  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa47c [0x7fe7347d447c]
 7  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa4e7 [0x7fe7347d44e7]
 8  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0xaa799 [0x7fe7347d4799]
 9  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::__throw_ios_failure(char const*)+0x91 [0x7fe7347cbc63]
10  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  +0x114dd2 [0x7fe73483edd2]
11  /usr/lib/x86_64-linux-gnu/libstdc++.so.6  std::istream::read(char*, long)+0xa6 [0x7fe734842d36]
12  coupling                            void ZIRAN::PoissonDisk<double, 3>::sampleFromPeriodicData<ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}>(std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&, ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)::{lambda(Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)#1}&&)+0x184 [0x559b5f501fe4]
13  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSetHelper(ZIRAN::AnalyticLevelSet<double, 3>&, double, std::vector<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::aligned_allocator<Eigen::Matrix<double, 3, 1, 0, 3, 1> > >&)+0x1ed [0x559b5f50962d]
14  coupling                            ZIRAN::MpmInitializationHelper<double, 3>::sampleInAnalyticLevelSet(ZIRAN::AnalyticLevelSet<double, 3>&, double, double)+0x61 [0x559b5f517a41]
15  coupling                            ZIRAN::CouplingInit3D<double>::reload()+0x52d [0x559b5f5f760d]
16  coupling                            ZIRAN::CouplingInitBase<double, 3>::initialize()+0x24 [0x559b5f5f6314]
17  coupling                            main+0xa26 [0x559b5f4b2c96]
18  /lib/x86_64-linux-gnu/libc.so.6     __libc_start_main+0xf3 [0x7fe7343b10b3]
19  coupling                            _start+0x2e [0x559b5f4b56ee]

----------------------------------------CONTEXT--------------------------------------------


-------------------------------------------------------------------------------------------
Aborted (core dumped)

As you can see, every demo fails with the same error, which always occurs directly after an attempt to access particles-1000k.dat (full path for me was /home/techperson/Downloads/ziran2020-master/Data/MpmParticles/particles-1000k.dat) Upon first inspection, I discovered that the Data folder didn't even exist, so I recreated the full directory path the program was looking for (mkdir /home/techperson/Downloads/ziran2020-master/Data/ and mkdir /home/techperson/Downloads/ziran2020-master/Data/MpmParticles). When the program failed with the exact same error, I created the file for it as well. I've also tried running the program as root via sudo, re-running sudo make install, and running the program directly from Projects/coupling. All attempts on my part ended in the same error messages.

The README mentions using TetWild to sample particles, but doesn't explain how to use the linked project to do so, where to put the resulting files, or if having such a dataset is necessary at all.

My main questions are:
Is the problem really the lack of this data?
If so, why is the error resulting from this mistake so opaque?
How do I generate the data to fix this problem if it is related to missing samples?

Error building

Did anyone get this error when compiling?

home/NTNU/Uintah/ziran2020/Lib/Ziran/Physics/ConstitutiveModel/LinearCorotated.cpp:64:57: error: invalid use of incomplete type ‘class ZIRAN::LinearCorotated<T, _dim>’ void LinearCorotated<T, _dim>::write(std::ostream &out) const {

A simple guide for building ziran2020 in WSL1, Windows 10.

ZIRAN in WSL1 Ubuntu 18.04

  • Turn off amgcl cuda by modifying Cmakelists on line 29: option(ENABLE_AMGCL_CUDA "Use amgcl cuda" OFF)
  • Install dependencies:
    sudo apt-get install make cmake g++ libeigen3-dev gfortran libmetis-dev
    sudo apt-get install libopenvdb-dev libboost-all-dev libilmbase-dev libopenexr-dev
    sudo apt-get install libtbb2 libtbb-dev libz-dev clang-format-6.0 clang-format
    
  • Build:
    mkdir build && cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release
    make -j 4
    
  • Download mesh data: https://www.seas.upenn.edu/~cffjiang/research/ziran2020/Data.zip
  • Run demos in Projects/anisofracture or Projects/coupling

Run ziran2020 in Clion with WSL


Windows users can refer to this.
BTW, nice works!

东坡肉太有意思了。
如果有需要使用windows的朋友可以参考。

Data for IO-MPM is not included in Data.zip

Dear authors,

thank you for you interesting work.

I found that in Data.zip, there are only the data for AnisoMPM, while the data for IO-MPM (such as bear.obj) is not included.

I would like to ask where can I find the data for IO-MPM.

Thank you very much.
Russell

anisofracture.cpp -make anisofracture -j8 compiling issue

usr/include/tbb/atomic.h:21:141: note: #pragma message: TBB Warning: tbb/atomic.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.
#pragma message("TBB Warning: tbb/atomic.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
^
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:14:1: error: ‘define’ does not name a type; did you mean ‘rewind’?
define dim 3
^~~~~~
rewind
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp: In function ‘int main(int, char**)’:
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:119:40: error: ‘dim’ was not declared in this scope
AnisoFractureSimulation<T, dim> e(Python::implicit);
^~~
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:119:40: note: suggested alternative: ‘div’
AnisoFractureSimulation<T, dim> e(Python::implicit);
^~~
div
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:119:43: error: template argument 2 is invalid
AnisoFractureSimulation<T, dim> e(Python::implicit);
^
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:121:19: error: request for member ‘diff_test’ in ‘e’, which is of non-class type ‘int’
e.diff_test = true;
^~~~~~~~~
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:122:19: error: request for member ‘diff_test_perturbation_scale’ in ‘e’, which is of non-class type ‘int’
e.diff_test_perturbation_scale = diff_test_perturbation_scale;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:124:15: error: request for member ‘logger’ in ‘e’, which is of non-class type ‘int’
e.logger = LogWorker::initializeLogging();
^~~~~~
/home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:128:52: error: no matching function for call to ‘ZIRAN::AnisoFractureInit3D::AnisoFractureInit3D(int&, int&)’
AnisoFractureInit3D h(e, test_number);
^
In file included from /home/marwa/ziran2020/Projects/anisofracture/anisofracture.cpp:9:0:
/home/marwa/ziran2020/Projects/anisofracture/AnisoFractureInit3D.h:41:5: note: candidate: ZIRAN::AnisoFractureInit3D::AnisoFractureInit3D(ZIRAN::AnisoFractureSimulation<T, 3>&, int) [with T = double]
AnisoFractureInit3D(AnisoFractureSimulation<T, dim>& sim, const int test_number)
^~~~~~~~~~~~~~~~~~~
/home/marwa/ziran2020/Projects/anisofracture/AnisoFractureInit3D.h:41:5: note: no known conversion for argument 1 from ‘int’ to ‘ZIRAN::AnisoFractureSimulation<double, 3>&’
/home/marwa/ziran2020/Projects/anisofracture/AnisoFractureInit3D.h:26:7: note: candidate: constexpr ZIRAN::AnisoFractureInit3D::AnisoFractureInit3D(const ZIRAN::AnisoFractureInit3D&)
class AnisoFractureInit3D : public AnisoFractureInitBase<T, 3> {
^~~~~~~~~~~~~~~~~~~
/home/marwa/ziran2020/Projects/anisofracture/AnisoFractureInit3D.h:26:7: note: candidate expects 1 argument, 2 provided
/home/marwa/ziran2020/Projects/anisofracture/AnisoFractureInit3D.h:26:7: note: candidate: constexpr ZIRAN::AnisoFractureInit3D::AnisoFractureInit3D(ZIRAN::AnisoFractureInit3D&&)
/home/marwa/ziran2020/Projects/anisofracture/AnisoFractureInit3D.h:26:7: note: candidate expects 1 argument, 2 provided
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-catch-value’
make[3]: *** [Projects/anisofracture/CMakeFiles/anisofracture.dir/build.make:63: Projects/anisofracture/CMakeFiles/anisofracture.dir/anisofracture.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:447: Projects/anisofracture/CMakeFiles/anisofracture.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:454: Projects/anisofracture/CMakeFiles/anisofracture.dir/rule] Error 2
make: *** [Makefile:227: anisofracture] Error 2

Error when compiling project - size must be POT static_assert

When compiling on ubuntu 18.04 - error:
ziran2020/Lib/Ziran/../MPM/MpmGrid.h:44:1: error: static assertion failed: GridState<double, 2> size must be POT static_assert(is_power_of_two(sizeof(GridState<double, 2>)), "GridState<double, 2> size must be POT");

Projects/coupling/CMakeFiles/coupling.dir/build.make:81: recipe for target 'Projects/coupling/CMakeFiles/coupling.dir/main.cpp.o' failed
make[2]: *** [Projects/coupling/CMakeFiles/coupling.dir/main.cpp.o] Error 1
Projects/coupling/CMakeFiles/coupling.dir/build.make:107: recipe for target 'Projects/coupling/CMakeFiles/coupling.dir//splitting/SplittingSimulationSolidSystemFast.cpp.o' failed
make[2]: *** [Projects/coupling/CMakeFiles/coupling.dir/
/splitting/SplittingSimulationSolidSystemFast.cpp.o] Error 1
CMakeFiles/Makefile2:504: recipe for target 'Projects/coupling/CMakeFiles/coupling.dir/all' failed
make[1]: *** [Projects/coupling/CMakeFiles/coupling.dir/all] Error 2
[ 94%] Linking CXX executable ../../../Projects/anisofracture/anisofracture
[ 94%] Built target anisofracture
Makefile:159: recipe for target 'all' failed
make: *** [all] Error 2

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.