summaryrefslogtreecommitdiffstats
path: root/hacks/config/euler2d.xml
blob: 31222e661533fec19f373b94aec7a50892cc8753 (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="ISO-8859-1"?>

<screensaver name="euler2d" _label="Euler2D">

  <command arg="-root"/>

  <video href="https://www.youtube.com/watch?v=ZH1ZtfId0iA"/>

  <hgroup>
   <vgroup>
    <number id="delay" type="slider" arg="-delay %"
            _label="Frame rate" _low-label="Low" _high-label="High"
            low="0" high="100000" default="10000"
            convert="invert"/>

    <number id="count" type="slider" arg="-count %"
             _label="Particles" _low-label="Few" _high-label="Many"
            low="2" high="5000" default="1024"/>

    <number id="eulertail" type="slider" arg="-eulertail %"
             _label="Trail length" _low-label="Short" _high-label="Long"
            low="2" high="500" default="10"/>
   </vgroup>

   <vgroup>
  <!--
    <number id="eulerpower" type="slider" arg="-eulerpower %"
             _label="Power" _low-label="Low" _high-label="High"
            low="0.5" high="3.0" default="1.0"/>
  -->

    <number id="cycles" type="slider" arg="-cycles %"
             _label="Duration" _low-label="Short" _high-label="Long"
            low="100" high="5000" default="3000"/>

    <number id="ncolors" type="slider" arg="-ncolors %"
              _label="Number of colors" _low-label="Two" _high-label="Many"
              low="2" high="255" default="64"/>
   </vgroup>
  </hgroup>

  <boolean id="showfps" _label="Show frame rate" arg-set="-fps"/>
  <xscreensaver-updater />

  <_description>
Simulates two dimensional incompressible inviscid fluid flow.

https://en.wikipedia.org/wiki/Euler_equations_%28fluid_dynamics%29
https://en.wikipedia.org/wiki/Inviscid_flow

Written by Stephen Montgomery-Smith; 2002.
  </_description>
</screensaver>