Comments (2)
Hello Ehsan,
thank you for the feedback. A generic shape class is almost ready: it is called STLMesh
since it loads an arbitrary mesh from a STL file, then it places a boundary particle in each vertex. It supports rigid body dynamics and collisions, all through ODE. So all you need is a little more patience ;)
If you want to implement it by yourself, you could extend the Cone class and set the inertia by yourself (dMass.I). Be careful with the center of mass, ODE handles it in a weird way sometimes. If you also need collisions, then you need a ODE Trimesh. ODE can compute the object inertia automatically from the mesh, but assumes it has a homogeneous density.
Crixus is mostly useful to preprocess scenarios you want to simulate with SA_BOUNDARY
. It could be a nice workaround to use it instead of the STLMesh
class, but you would still have to set the inertia matrix manually in ODE. If you are using LJ boundaries, then the standard Cone::Fill()
will suffice.
from gpusph.
Thank you very much for the hints.
Well, I try to extend the Cone class myself until the new GPUSPH releases.
I hope it to be released soon!
from gpusph.
Related Issues (20)
- How to reference GPUSPH properly for a paper? HOT 2
- Formulation for wave height is wrong in WaveMaker.cu (NEXT branch)
- DEM does not work with "DUMMY_BOUNDARY" (NEXT branch)
- DEM shift does not behave as it should HOT 1
- Errors about running the examples HOT 3
- How to set up the paddle motions for irregular waves?
- about the function addSTLmesh() HOT 6
- about floating and boundary with addXYZFile HOT 2
- Compile gpusph in nsight eclipse(cuda toolkit) HOT 1
- About the makefile problem. HOT 7
- Segment fault in `IntializeChrono()` HOT 3
- About the gpu-architecture HOT 2
- About the moored floating bodies HOT 2
- cannot open the .vtp file using paraview. HOT 3
- Illegal memory access was encountered HOT 4
- I have too many errors about the cuh file , when i "make test" this source code. HOT 7
- About inlet and outlet bounddaries
- An compile error: Texture is not a template HOT 3
- GPUSPH compiling-"SetMaxItersSolverSpeed" error HOT 10
- WaveTank fails on next and spheric2022 branches HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpusph.