create account

Playing With Particles by michelmake

View this thread on: hive.blogpeakd.comecency.com
· @michelmake ·
$7.59
Playing With Particles
No, this is not an article about particle physics. It is about modeling fluids using particles. 

Part of my day job is to work on numerical methods using computer simulations of fluid flow problems. This field of research is sometimes referred to as *computational fluid dynamics* or CFD. 

The methods I'm working on are finite element methods (FEM). Although in this particular class of methods many different formulations exist, typically they use a grid or mesh to discretize a computational domain. This results in a set of *finite elements* which are used within a FEM formulation. An example can be seen below:

![image.png](https://images.ecency.com/DQmVvpb3keyzujYMuU41ov389kJmSA7Y3F2sH38msk31aDt/image.png)

While I typically work with this approach, the past weekend I dove into another class of problems that step away from the concept of grids and meshes. These so-called *meshless methods* approach the discrete problem from a different angle. In *smoothed particle hydrodynamics* (SPH) instead, the fluid domain is discretized by a set of particles that interact with each other based on a set of relations. The nice thing is that the tedious task of mesh generation can be skipped. One simply has to create a set of particles and distribute the particles inside the computational domain and keep track of where they are during the simulation. 

![image.png](https://images.ecency.com/DQmeQ2xey6fxpFUYE8F5JUjBqbyV8gtNg1aigc15WcSD7cj/image.png)
*Typical SPH simulation. Image source:* [SPHinXsys Documentation](https://www.sphinxsys.org/html/examples/example1_2D_dambreak.html)





Although I didn't have the intention to work on such methods, I stumbled upon a nice open-source SPH library and decided to play around with it. The library is called [SPHinXsys](https://www.sphinxsys.org/), and is mainly developed by a group of researchers at the Technical University of Munich in Germany. If you are interested, you can simply download the API from [GitHub](https://github.com/Xiangyu-Hu/SPHinXsys) and start playing with it yourself!

Although the video is not made by me, here's an example of a simulation created using SPHinXsys:

https://www.youtube.com/watch?v=McHsZ3T2EUM

This video shows a block of fluid hitting an elastic wall. The fluid has a free surface and is able to move around freely within the square domain. This simulation is still quite coarse. I.e., the number of particles is small and you can still easily distinguish individual particles moving around the domain. 

SPH is a totally different approach to what I am used to. Now that I've been playing around with just the simulations, I'm excited to learn more about the method itself and how it operates under the hood!








👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 130 others
👎  
properties (23)
authormichelmake
permlinkplaying-with-particles
categoryhive-196387
json_metadata{"links":["https://www.sphinxsys.org/html/examples/example1_2D_dambreak.html","https://www.sphinxsys.org/","https://github.com/Xiangyu-Hu/SPHinXsys","https://www.youtube.com/watch?v=McHsZ3T2EUM"],"image":["https://images.ecency.com/DQmeQ2xey6fxpFUYE8F5JUjBqbyV8gtNg1aigc15WcSD7cj/image.png","https://images.ecency.com/DQmVvpb3keyzujYMuU41ov389kJmSA7Y3F2sH38msk31aDt/image.png"],"thumbnails":["https://images.ecency.com/DQmVvpb3keyzujYMuU41ov389kJmSA7Y3F2sH38msk31aDt/image.png","https://images.ecency.com/DQmeQ2xey6fxpFUYE8F5JUjBqbyV8gtNg1aigc15WcSD7cj/image.png"],"tags":["hive-196387","science","math","technology","blog","ctp","palnet"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-05-04 14:20:42
last_update2022-05-04 14:20:42
depth0
children7
last_payout2022-05-11 14:20:42
cashout_time1969-12-31 23:59:59
total_payout_value3.819 HBD
curator_payout_value3.766 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,721
author_reputation38,156,784,734,657
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,902,004
net_rshares9,555,436,434,681
author_curate_reward""
vote details (195)
@ecency ·
**Yay!** 🤗<br>Your content has been **boosted with Ecency Points**, by @michelmake. <br>Use Ecency daily to boost your growth on platform! <br><br><b>Support Ecency</b><br>[Vote for new Proposal](https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B197%5D&approve=true)<br>[Delegate HP and earn more](https://ecency.com/hive-125125/@ecency/daily-100-curation-rewards)
properties (22)
authorecency
permlinkre-202254t224036418z
categoryhive-196387
json_metadata{"tags":["ecency"],"app":"ecency/3.0.20-welcome","format":"markdown+html"}
created2022-05-04 22:40:36
last_update2022-05-04 22:40:36
depth1
children0
last_payout2022-05-11 22:40:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length380
author_reputation630,689,395,572,402
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,915,281
net_rshares0
@michelmake ·
!hivebits
properties (22)
authormichelmake
permlinkre-michelmake-202255t103158626z
categoryhive-196387
json_metadata{"tags":["hive-196387","science","math","technology","blog","ctp","palnet"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-05-05 08:31:57
last_update2022-05-05 08:31:57
depth1
children1
last_payout2022-05-12 08:31:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation38,156,784,734,657
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,925,844
net_rshares0
@hivebits ·
Success! You mined .9 <a href="https://peakd.com/@hivebits/introducing-hivebits">HBIT</a> & the user you replied to received .1 HBIT on your behalf. <a href="https://hive.blog/hbit/@hivebits.mine/mine-hbit">mine</a> | <a href="https://tribaldex.com/wallet/" style="text-decoration:none">wallet</a> | <a href="https://hive-engine.com/trade/HBIT/" style="text-decoration:none">market</a> | <a
    href="https://crrdlx.websavvy.work/" style="text-decoration:none">tools</a> | <a 
    href="https://discord.gg/K5GvNhcPqR" style="text-decoration:none">discord</a> | <a href="https://peakd.com/c/hive-159259">community | <a href="https://ichthys.netlify.app" style="text-decoration:none"><><</a>
<p><center>What's the <a href="https://peakd.com/games/@crrdlx/hbitgame">HBITgame</a>? | <a href="https://peakd.com/hive-159259/@crrdlx/hbitgame-card-4">Card 4 of 4</a></center>
properties (22)
authorhivebits
permlinkre-re-michelmake-202255t103158626z-20220505t083307z
categoryhive-196387
json_metadata"{"app": "beem/0.24.26"}"
created2022-05-05 08:33:06
last_update2022-05-05 08:33:06
depth2
children0
last_payout2022-05-12 08:33:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length867
author_reputation1,986,181,320,398
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,925,864
net_rshares0
@michelmake ·
!hivebits
properties (22)
authormichelmake
permlinkre-michelmake-202256t92126264z
categoryhive-196387
json_metadata{"tags":["hive-196387","science","math","technology","blog","ctp","palnet"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-05-06 07:21:27
last_update2022-05-06 07:21:27
depth1
children1
last_payout2022-05-13 07:21:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation38,156,784,734,657
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,954,621
net_rshares0
@hivebits ·
Success! You mined .9 <a href="https://peakd.com/@hivebits/introducing-hivebits">HBIT</a> & the user you replied to received .1 HBIT on your behalf. <a href="https://hive.blog/hbit/@hivebits.mine/mine-hbit">mine</a> | <a href="https://tribaldex.com/wallet/" style="text-decoration:none">wallet</a> | <a href="https://hive-engine.com/trade/HBIT/" style="text-decoration:none">market</a> | <a
    href="https://crrdlx.websavvy.work/" style="text-decoration:none">tools</a> | <a 
    href="https://discord.gg/K5GvNhcPqR" style="text-decoration:none">discord</a> | <a href="https://peakd.com/c/hive-159259">community | <a href="https://ichthys.netlify.app" style="text-decoration:none"><><</a>
properties (22)
authorhivebits
permlinkre-re-michelmake-202256t92126264z-20220506t072234z
categoryhive-196387
json_metadata"{"app": "beem/0.24.26"}"
created2022-05-06 07:22:33
last_update2022-05-06 07:22:33
depth2
children0
last_payout2022-05-13 07:22:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length690
author_reputation1,986,181,320,398
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,954,636
net_rshares0
@schoolofminnows ·
This is a one-time notice from SCHOOL OF MINNOWS, a free value added service on hive.
Getting started on hive can be super hard on these social platforms 😪 but luckily there is some communities that help support the little guy 😊, you might like school of minnows, we join forces with lots of other small accounts to help each other grow! 
Finally a good curation trail that helps its users achieve rapid growth, its fun on a bun! check it out. https://hive.blog/schoolofminnows/@schoolofminnows/someeznz9em3ap
👎  
properties (23)
authorschoolofminnows
permlinksom04zw33u8939d
categoryhive-196387
json_metadata{}
created2022-05-04 14:43:48
last_update2022-05-04 14:43:48
depth1
children0
last_payout2022-05-11 14:43:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length509
author_reputation-5,657,549,642,859
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,902,626
net_rshares-2,757,660,745
author_curate_reward""
vote details (1)
@stemsocial ·
re-michelmake-playing-with-particles-20220507t114837370z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.&nbsp;<br />&nbsp;<br />
</div>
properties (22)
authorstemsocial
permlinkre-michelmake-playing-with-particles-20220507t114837370z
categoryhive-196387
json_metadata{"app":"STEMsocial"}
created2022-05-07 11:48:39
last_update2022-05-07 11:48:39
depth1
children0
last_payout2022-05-14 11:48:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length565
author_reputation22,930,655,615,829
root_title"Playing With Particles"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id112,988,758
net_rshares0