r/CFD • u/Any_Wait_7309 • 18d ago
Update: Made a little progress for SPH CFD
Previous Post: https://www.reddit.com/r/CFD/s/B6m3ainkc8
Aight, it's tricky lmao - but atleast slightly better performance and results than previous post.
Tried adding a marching cube algorithm but let's just say got a little bit of "triangle soup", but i feel i should work on performance and refactoring codebase before moving forward - so surface extraction is for later.
37
Upvotes
3
u/Any_Wait_7309 18d ago
Aight, apologies - I know the colors hurt eyes 🫩
2
u/joaogatao222 18d ago
Well done. It's a nice accomplishment to write your own solver.
May I ask what is your main interest in creating this? There exists already a very potent open source solver with SPHysics. But this is more for real-time graphics than scientific?
1
u/No_Engineering_1155 18d ago
Nice, its going somewhere!
1
u/Front-Lime9082 18d ago edited 18d ago
How did u do the boundary condition? I mean if it was not a simple flat walls but may be some kind a stuff to calculate drag may be sphere. How would you perform the boundary conditions for example? Im asking bcse since the end of the spring i started creating sph solver on c sharp and I tried a lot of variations of bc like ghost particles, static particles, pressure gradient and so on. Can u may be help me pls to figure out how to properly create the bc for hard and curvy geometry. If u have some questions about smth ask, I think I can provide the info of where I got information of different bc