peridyno / peridyno Goto Github PK
View Code? Open in Web Editor NEWAn AI-targeted physical simulation platform.
Home Page: https://www.peridyno.com
License: Apache License 2.0
An AI-targeted physical simulation platform.
Home Page: https://www.peridyno.com
License: Apache License 2.0
The framework is mainly composed of Lagrangian perspective algorithm modules, such as SPH, PBD, PeriDynamics, etc. Will some solvers with Euler perspective or mixed Euler-Lagrange perspective be added in the future? Thanks!
Hi, Peridyno developers,
Thanks for releasing the useful package. When I built PeriDyno in my ubuntu 20.04, I got the following error. It seems the file MouseInputModule.h
is not found. Where could I find the file MouseInputModule.h
? Or could it be ignored?
Thanks~
[ 87%] Building CXX object src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/imgui_impl_glfw.cpp.o
[ 87%] Linking CUDA device code CMakeFiles/GlfwGUI.dir/cmake_device_link.o
[ 88%] Linking CXX shared library ../../../../lib/libdynoGlfwGUI-0.6.0.so
[ 88%] Built target GlfwGUI
Scanning dependencies of target GL_GlfwGUI
[ 88%] Building CXX object examples/GL_GlfwGUI/CMakeFiles/GL_GlfwGUI.dir/main.cpp.o
[ 88%] Linking CUDA device code CMakeFiles/GL_GlfwGUI.dir/cmake_device_link.o
[ 88%] Linking CXX executable ../../bin/GL_GlfwGUI
[ 88%] Built target GL_GlfwGUI
Scanning dependencies of target GL_InstanceVisualizer
[ 89%] Building CXX object examples/GL_InstanceVisualizer/CMakeFiles/GL_InstanceVisualizer.dir/main.cpp.o
In file included from /data/code13/peridyno/src/Framework/Module.h:25,
from /data/code13/peridyno/src/Framework/Module/TopologyModule.h:18,
from /data/code13/peridyno/src/Framework/Node.h:23,
from /data/code13/peridyno/examples/GL_InstanceVisualizer/main.cpp:6:
/data/code13/peridyno/src/Framework/DeclareEnum.h:61:61: warning: backslash-newline at end of file
61 | #define DEF_ENUM(enum_type, enum_name, enum_value, desc) \
|
In file included from /data/code13/peridyno/src/Framework/Node.h:21,
from /data/code13/peridyno/examples/GL_InstanceVisualizer/main.cpp:6:
/data/code13/peridyno/src/Framework/NodePort.h: In destructor ‘dyno::SingleNodePort<T>::~SingleNodePort()’:
/data/code13/peridyno/src/Framework/NodePort.h:91:15: warning: invalid use of incomplete type ‘class dyno::Node’
91 | m_nodes[0]->disconnect(this);
| ^~
/data/code13/peridyno/src/Framework/NodePort.h:23:8: note: forward declaration of ‘class dyno::Node’
23 | class Node;
| ^~~~
/data/code13/peridyno/src/Framework/NodePort.h: In destructor ‘dyno::MultipleNodePort<T>::~MultipleNodePort()’:
/data/code13/peridyno/src/Framework/NodePort.h:180:9: warning: invalid use of incomplete type ‘class dyno::Node’
180 | node->disconnect(this);
| ^~
/data/code13/peridyno/src/Framework/NodePort.h:23:8: note: forward declaration of ‘class dyno::Node’
23 | class Node;
| ^~~~
[ 89%] Linking CUDA device code CMakeFiles/GL_InstanceVisualizer.dir/cmake_device_link.o
[ 89%] Linking CXX executable ../../bin/GL_InstanceVisualizer
[ 89%] Built target GL_InstanceVisualizer
Scanning dependencies of target GL_MouseInteractionInGraphicsPipeline
[ 90%] Building CXX object examples/GL_MouseInteraction/CMakeFiles/GL_MouseInteractionInGraphicsPipeline.dir/main.cpp.o
In file included from /data/code13/peridyno/src/Framework/Module.h:25,
from /data/code13/peridyno/src/Framework/Module/TopologyModule.h:18,
from /data/code13/peridyno/src/Framework/Node.h:23,
from /data/code13/peridyno/examples/GL_MouseInteraction/main.cpp:6:
/data/code13/peridyno/src/Framework/DeclareEnum.h:61:61: warning: backslash-newline at end of file
61 | #define DEF_ENUM(enum_type, enum_name, enum_value, desc) \
|
In file included from /data/code13/peridyno/examples/GL_MouseInteraction/main.cpp:12:
/data/code13/peridyno/examples/GL_MouseInteraction/CustomMouseInteraction.h:2:10: fatal error: Module/MouseInputModule.h: No such file or directory
2 | #include "Module/MouseInputModule.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [examples/GL_MouseInteraction/CMakeFiles/GL_MouseInteractionInGraphicsPipeline.dir/build.make:63: examples/GL_MouseInteraction/CMakeFiles/GL_MouseInteractionInGraphicsPipeline.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1694: examples/GL_MouseInteraction/CMakeFiles/GL_MouseInteractionInGraphicsPipeline.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
milton@milton-ws3:/data/code13/peridyno/build$
期望在节点右键菜单添加“更新下游节点”、“根据上游节点更新”功能。以让用户自定义何时在改变上游节点时实时更新下游节点。
I ran this code:
mkdir build
cd build
cmake -DPERIDYNO_GPU_BACKEND=NO_BACKEND ..
make
I ran into this error:
.../peridyno/src/Framework/NodePort.h:241:36: error: cannot define member function ‘dyno::NodePort::hasNode’ within ‘dyno::MultipleNodePort<T>’
I tried changing NodePort::hasNode
into hasNode
and it builds (with more errors, detailed in another issue).
I have read the corresponding chapter of the document (http://peridyno.com/zh/topics/postprocessing/), but I don't seem to have found how to export simulation data. Thanks!
Introduction Video
Undefined reference to '_Z3powfi' in 'Topology.dir/Debug/SparseGridHash.obj' Topology
问题复现如下视频:
https://github.com/peridyno/peridyno/assets/66506655/90bac190-def7-4019-ac10-89b48a457e30
在TurningModel创建后将粒子发射器连接至ParticleFluid运行会崩溃,崩溃问题报在ColorMapping下。
因为两个Node并未连接,所以目测不是Model的拓扑问题导致。具体问题未知。
Follows #30.
I have no CUDA nor Vulkan installed, build fails with more errors.
/home/heather/code/peridyno/src/Core/Primitive/Primitive3D.h:121:20: error: expected nested-name-specifier 121 | typedef typename Vector Coord2D; | ^~~~~~~~~~~~~~~ /home/heather/code/peridyno/src/Core/Primitive/Primitive3D.h:121:36: error: invalid declarator before ‘Coord2D’ 121 | typedef typename Vector Coord2D; | ^~~~~~~ /home/heather/code/peridyno/src/Core/Primitive/Primitive3D.h:122:20: error: expected nested-name-specifier 122 | typedef typename Vector Coord3D; | ^~~~~~~~~~~~~~~ /home/heather/code/peridyno/src/Core/Primitive/Primitive3D.h:122:36: error: invalid declarator before ‘Coord3D’ 122 | typedef typename Vector Coord3D; | ^~~~~~~ /home/heather/code/peridyno/src/Core/Primitive/Primitive3D.h:129:40: error: ‘Coord3D’ does not name a type 129 | DYN_FUNC TPoint3D& operator = (const Coord3D& p); | ^~~~~~~ ...
Is it possible to add configuration files to get common data, such as "start frame", "end frame", "project path", etc. from various classes?
When I was editing “IO”, I need to get the end frame.
When making the Peridynamics, GlfwGUI/GlfwApp.cpp
couldn't find glew.h
. But if I add <GL/glew.h>
, the glad
would complain the redefinition problems.
The error logs are as below:
[ 81%] Built target ParticleSystem
Consolidate compiler generated dependencies of target Peridynamics
[ 85%] Built target Peridynamics
In file included from /home/py/code/peridyno/src/Framework/Module.h:25,
from /home/py/code/peridyno/src/Framework/Module/TopologyModule.h:18,
from /home/py/code/peridyno/src/Framework/Node.h:23,
from /home/py/code/peridyno/src/Framework/SceneGraph.h:18,
from /home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:9:
/home/py/code/peridyno/src/Framework/DeclareEnum.h:61:61: warning: backslash-newline at end of file
61 | #define DEF_ENUM(enum_type, enum_name, enum_value, desc) \
|
In file included from /home/py/code/peridyno/src/Framework/Node.h:21,
from /home/py/code/peridyno/src/Framework/SceneGraph.h:18,
from /home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:9:
/home/py/code/peridyno/src/Framework/NodePort.h: In destructor ‘dyno::SingleNodePort<T>::~SingleNodePort()’:
/home/py/code/peridyno/src/Framework/NodePort.h:91:15: warning: invalid use of incomplete type ‘class dyno::Node’
91 | m_nodes[0]->disconnect(this);
| ^~
/home/py/code/peridyno/src/Framework/NodePort.h:23:8: note: forward declaration of ‘class dyno::Node’
23 | class Node;
| ^~~~
/home/py/code/peridyno/src/Framework/NodePort.h: In destructor ‘dyno::MultipleNodePort<T>::~MultipleNodePort()’:
/home/py/code/peridyno/src/Framework/NodePort.h:180:9: warning: invalid use of incomplete type ‘class dyno::Node’
180 | node->disconnect(this);
| ^~
/home/py/code/peridyno/src/Framework/NodePort.h:23:8: note: forward declaration of ‘class dyno::Node’
23 | class Node;
| ^~~~
/home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp: In member function ‘virtual void dyno::GlfwApp::createWindow(int, int)’:
/home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:115:14: error: ‘glewInit’ was not declared in this scope; did you mean ‘glfwInit’?
115 | bool err = glewInit() != GLEW_OK;
| ^~~~~~~~
| glfwInit
/home/py/code/peridyno/src/Rendering/GUI/GlfwGUI/GlfwApp.cpp:115:28: error: ‘GLEW_OK’ was not declared in this scope
115 | bool err = glewInit() != GLEW_OK;
| ^~~~~~~
make[2]: *** [src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/build.make:76: src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/GlfwApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2311: src/Rendering/GUI/GlfwGUI/CMakeFiles/GlfwGUI.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Maybe need to modify if (num<=0)
to if (num<0)
in function FArray<T,deviceType>::resize()
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.