Author Topic: Suminagashi simulation with music  (Read 264 times)

Offline haversin

  • High Voltage Experimenter
  • **
  • Posts: 56
  • Karma: +3/-0
    • View Profile
Suminagashi simulation with music
« on: November 02, 2022, 11:53:19 PM »
Suminagashi simulation.

2D fluid simulation from “Real-Time Fluid Dynamics for Games” by Jos Stam coded in C. Tracer particle dynamics was added.

Graphics done in Python and Matplotlib.

Video editing done in Blender.

Music:
“Hopeful Freedom” by Asher Fulero
YouTube Audio Library.


Offline Uspring

  • High Voltage Engineer
  • ****
  • Posts: 316
  • Karma: +30/-1
  • Physicist
    • View Profile
Re: Suminagashi simulation with music
« Reply #1 on: November 05, 2022, 10:45:51 AM »
A beautifully looking simulation. I had a (very) short look at Stams paper. It seems like he intends the use of the density equation to be for following up e.g. color marked fluid particles. I don't understand any other use, since the density in incompressible fluids is constant. You added tracer particle dynamics yourself. Is there a particular reason to use particle dynamics instead of e.g. color density for the graphics?

Another question: Did you have to start the simulation with a divergency free velocity field? That looks like a requirement for incompressible fluids.
« Last Edit: November 05, 2022, 10:50:48 AM by Uspring »

Offline haversin

  • High Voltage Experimenter
  • **
  • Posts: 56
  • Karma: +3/-0
    • View Profile
Re: Suminagashi simulation with music
« Reply #2 on: November 05, 2022, 06:52:19 PM »
In my code, the flow field and “density” are calculated on a 128 by 128 grid. This grid is much too course and low resolution to capture the beauty and fine detail of Suminasghi. I needed over one hundred thousand particles to look like real Suminasghi. Each particle position is 
calculated from it's velocity as interpolated from the flow field grid.

At the start of each simulation run, the flow field is initialized to zero except for two rectangular blocks where the velocities are different but constant in each block. This is a nondivergent field.

Offline Uspring

  • High Voltage Engineer
  • ****
  • Posts: 316
  • Karma: +30/-1
  • Physicist
    • View Profile
Re: Suminagashi simulation with music
« Reply #3 on: November 06, 2022, 09:40:28 AM »
Thank you for the answer.
Quote
At the start of each simulation run, the flow field is initialized to zero except for two rectangular blocks where the velocities are different but constant in each block. This is a nondivergent field.
Stam uses in his code some sort of "projection" to make the velocities non divergent. Possibly you don't need to create initial conditions that way. The code might do that for you. Stam probably had to add the projection, since he omitted the pressure term in the equations. Dunno if that is legit, though.

Offline haversin

  • High Voltage Experimenter
  • **
  • Posts: 56
  • Karma: +3/-0
    • View Profile
Re: Suminagashi simulation with music
« Reply #4 on: November 06, 2022, 04:22:23 PM »
Wikipedia has a good description under "projection method (fluid dynamics)". The accuracy of Jos Stam's method is a good question and I don't know. A test case used a lot is the flow past a cylinder. The vortex shedding frequency vs Reynolds number for a cylinder is very well studied. I've setup this case for two other fluid simulations and should do it for this one.
« Last Edit: November 06, 2022, 04:25:21 PM by haversin »

High Voltage Forum

Re: Suminagashi simulation with music
« Reply #4 on: November 06, 2022, 04:22:23 PM »

 


* Recent Topics and Posts

post Re: IF D95T vs IF D95OC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
RoamingD
Today at 06:56:51 AM
post Re: IF D95T vs IF D95OC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alexhanyuan
November 25, 2022, 11:28:15 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 25, 2022, 12:05:50 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 25, 2022, 07:53:52 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 24, 2022, 08:08:48 AM
post Re: EEFL backlight circuits
[Light, Lasers and Optics]
klugesmith
November 24, 2022, 07:26:49 AM
post Re: Air cored inductors proximity to conductive objects
[General Chat]
davekni
November 24, 2022, 03:02:11 AM
post Re: Solid State “rheostat” that will withstand high electrostatic fields
[General Chat]
AkashaStar
November 24, 2022, 02:25:42 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 24, 2022, 01:45:33 AM
post Re: Air cored inductors proximity to conductive objects
[General Chat]
John123
November 23, 2022, 11:27:18 PM
post Stepper motor drive without switching
[Electronic Circuits]
klugesmith
November 23, 2022, 10:23:07 PM
post Re: Air cored inductors proximity to conductive objects
[General Chat]
Twospoons
November 23, 2022, 09:29:01 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Alberto
November 23, 2022, 08:45:37 AM
post Re: Air cored inductors proximity to conductive objects
[General Chat]
davekni
November 23, 2022, 04:44:20 AM
post Air cored inductors proximity to conductive objects
[General Chat]
John123
November 23, 2022, 01:10:17 AM
post Re: Post-Soviet Tesla Coil Teardown and Test
[Solid State Tesla Coils (SSTC)]
Mads Barnkob
November 22, 2022, 08:40:19 PM
post Re: Ericsson RBS 6601 RRUS 12 analysis(kind of)
[Electronic Circuits]
Da_Stier
November 22, 2022, 08:22:09 PM
post Re: Ericsson RBS 6601 RRUS 12 analysis(kind of)
[Electronic Circuits]
Kirby4life
November 22, 2022, 08:45:06 AM
post Ericsson RBS 6601 RRUS 12 analysis(kind of)
[Electronic Circuits]
RickNitro
November 22, 2022, 08:36:11 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
davekni
November 22, 2022, 06:42:31 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Twospoons
November 22, 2022, 06:40:32 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
klugesmith
November 22, 2022, 04:53:40 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Twospoons
November 22, 2022, 02:17:08 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
klugesmith
November 21, 2022, 11:03:04 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Alberto
November 21, 2022, 09:55:02 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 21, 2022, 03:09:26 PM
post Re: Post-Soviet Tesla Coil Teardown and Test
[Solid State Tesla Coils (SSTC)]
LoOdaK
November 21, 2022, 09:38:22 AM
post Re: Trichel pulses
[Electronic Circuits]
klugesmith
November 20, 2022, 10:05:15 PM
post Trichel pulses
[Electronic Circuits]
haversin
November 20, 2022, 09:48:37 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
klugesmith
November 20, 2022, 07:17:36 PM
post Re: Some questions about my first drsstc.
[Dual Resonant Solid State Tesla coils (DRSSTC)]
mthome4
November 20, 2022, 02:28:22 PM
post Post-Soviet Tesla Coil Teardown and Test
[Solid State Tesla Coils (SSTC)]
Mads Barnkob
November 20, 2022, 02:03:49 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 20, 2022, 10:00:13 AM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
davekni
November 20, 2022, 05:13:12 AM
post Re: Plasma Toroid
[Solid State Tesla Coils (SSTC)]
davekni
November 20, 2022, 05:08:31 AM
post Re: Plasma Toroid
[Solid State Tesla Coils (SSTC)]
alan sailer
November 20, 2022, 01:27:00 AM
post Re: Basic Gate driving doubts
[Solid State Tesla Coils (SSTC)]
davekni
November 19, 2022, 10:12:14 PM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
John123
November 19, 2022, 09:57:35 PM
post Re: Basic Gate driving doubts
[Solid State Tesla Coils (SSTC)]
prabhatkumar
November 19, 2022, 09:50:23 PM
post Re: Basic Gate driving doubts
[Solid State Tesla Coils (SSTC)]
davekni
November 19, 2022, 08:26:45 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
davekni
November 19, 2022, 06:53:17 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
klugesmith
November 19, 2022, 06:05:47 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Alberto
November 19, 2022, 05:34:46 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 19, 2022, 02:30:04 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General Chat]
AkashaStar
November 19, 2022, 01:56:10 PM
post Re: Buck converter question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
dru
November 19, 2022, 08:03:56 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 19, 2022, 06:38:00 AM
post Basic Gate driving doubts
[Solid State Tesla Coils (SSTC)]
prabhatkumar
November 19, 2022, 05:37:09 AM
post Re: ZVS driver won't oscillate
[Electronic Circuits]
davekni
November 19, 2022, 03:59:56 AM
post Re: Non-laser pointer
[Light, Lasers and Optics]
klugesmith
November 19, 2022, 03:56:32 AM
post Re: Buck converter question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
November 19, 2022, 03:36:20 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
davekni
November 19, 2022, 03:26:48 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Alberto
November 19, 2022, 12:40:33 AM
post Re: ZVS driver won't oscillate
[Electronic Circuits]
AstRii
November 18, 2022, 09:32:33 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
klugesmith
November 18, 2022, 05:48:00 PM
post Re: Audio Modulated CRT Flyback Transformer Loud Sparks
[Transformer (Ferrite Core)]
John123
November 18, 2022, 03:49:12 PM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
John123
November 18, 2022, 02:56:49 PM
post IF D95T vs IF D95OC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
RoamingD
November 18, 2022, 01:44:38 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 18, 2022, 11:38:44 AM
post Non-laser pointer
[Light, Lasers and Optics]
klugesmith
November 18, 2022, 10:05:29 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
klugesmith
November 18, 2022, 06:54:55 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
Twospoons
November 18, 2022, 06:29:23 AM
post Buck converter question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
dru
November 18, 2022, 06:10:52 AM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
davekni
November 18, 2022, 05:53:15 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 18, 2022, 05:21:52 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
davekni
November 18, 2022, 04:00:04 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
alan sailer
November 17, 2022, 10:24:35 PM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
John123
November 17, 2022, 08:30:00 PM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
klugesmith
November 17, 2022, 07:28:16 PM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
John123
November 17, 2022, 03:38:00 PM
post Re: TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
davekni
November 17, 2022, 04:03:51 AM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
davekni
November 17, 2022, 03:57:40 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
davekni
November 17, 2022, 03:26:32 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Twospoons
November 16, 2022, 11:23:37 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
alan sailer
November 16, 2022, 08:00:54 PM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
John123
November 16, 2022, 05:09:00 PM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
MRMILSTAR
November 16, 2022, 04:57:27 PM
post TV flyback number of primary turns rule of thumb
[Transformer (Ferrite Core)]
John123
November 16, 2022, 03:27:06 PM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
John123
November 16, 2022, 03:16:13 PM
post Bluetooth to aux for plasma speaker circuits
[Electronic Circuits]
John123
November 16, 2022, 03:00:54 PM
post Re: Induction cooker without electronics
[Electronic Circuits]
Solhi
November 16, 2022, 11:43:49 AM
post Re: Electrical resistance cooking
[Laboratories, Equipment and Tools]
klugesmith
November 16, 2022, 09:00:46 AM
post Re: Electrical resistance cooking
[Laboratories, Equipment and Tools]
klugesmith
November 16, 2022, 08:53:42 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
davekni
November 16, 2022, 05:45:24 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
alan sailer
November 15, 2022, 08:17:46 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Alberto
November 15, 2022, 07:25:04 PM
post Re: Yet another UD2.x pulse skipper
[Dual Resonant Solid State Tesla coils (DRSSTC)]
hammertone
November 14, 2022, 12:26:19 PM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
klugesmith
November 14, 2022, 04:57:41 AM
post Re: Vacuum pump
[Laboratories, Equipment and Tools]
Twospoons
November 14, 2022, 12:32:54 AM
post Vacuum pump
[Laboratories, Equipment and Tools]
Alberto
November 13, 2022, 11:06:55 PM
post Re: QO-100 / EShail 2 Uplink amplifier development adventures
[Radio Frequency]
Da_Stier
November 13, 2022, 06:32:11 PM
post Re: Yet another UD2.x pulse skipper
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Hydron
November 13, 2022, 04:41:20 PM
post Re: QCW questions
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Rafft
November 13, 2022, 02:38:41 PM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
MRMILSTAR
November 13, 2022, 05:23:09 AM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
thedark
November 12, 2022, 10:39:21 PM
post Re: Yet another UD2.x pulse skipper
[Dual Resonant Solid State Tesla coils (DRSSTC)]
hammertone
November 12, 2022, 12:45:16 PM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
klugesmith
November 12, 2022, 05:44:35 AM
post Re: what type of diode is better for make high voltage diode?
[Voltage Multipliers]
thedark
November 12, 2022, 05:30:10 AM
post Re: Yet another UD2.x pulse skipper
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Hydron
November 12, 2022, 01:11:31 AM
post Re: Induction cooker without electronics
[Electronic Circuits]
Twospoons
November 12, 2022, 12:42:54 AM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 
SimplePortal 2.3.6 © 2008-2014, SimplePortal