English
Experimente

Reibungsgedämpftes Pendel

 

p.specht

... too with Seitenriss and Viewpoint (blue eingezeichnet) for semi-perspektivische statement. what to that rumspielen ...
Windowtitle "Gedämpftes Pendel in the On- and Seitenriss [end: ESC hold]"
'(CL) 2014-3 by P.woodpecker, Wien. No however geartete Gewähr!
windowstyle 24:window 0,0-%maxx,%maxy-40:randomize:font 2
declare xx&,yy&,xh!,yh!,zoom! : xx&=width(%hwnd) : yy&=height(%hwnd)
declare xd!,yd!,r!,gamma!,x!,y!,omega!,t!,g!,a!,daempfg!,tm&
declare xs!,ys!,xv!,yv!,dist!
xh!=0.6666*xx&:yh!=0.4*yy&'Koordinatenursprung
zoom!=4000'Pixelmaßstab the Pendellänge [m]
xd!=-0.5*xh!:yd!=0'Pendelaufhängepunkt [Pixel]
xs!=(xx&-xh!)/2:ys!=0'suspension in the Seitenriss
xv!=xd!:yv!=-200'Viewpoint (certainly Size in the Seitenriss)
g!=9.80665'Erdbeschleunigung [m/s²]
r!=0.01*8'cm             'Pendellänge [m]
gamma!=Pi()/180*180.02' [strain] Auslenkung at Start
daempfg!=.001*0.8'Promille Dämpfung
t!=0.013's              'Zeitschritt. for Echtzeit 1 / Fps
omega!=2*pi()/60* -200'Start-Drehzahl [u/mins,'-' = in the Uhrzeigersinn]
MCls %maxx,%maxy

Repeat

    tm&=&gettickcount
    StartPaint -1
    CLS
    usepen 0,1,0:line xh!,0 - xh!,yy& : line 0,yh! - xx&,yh!
    'Aufriss:
    usepen 0,5,255:line xh!+xd!,(yh!-yd!) - xh!+xd!+x!,yh!-yd!-y!
    usepen 0,53,200:line xh!+xd!+x!,(yh!-yd!-y!-1) - xh!+xd!+x!,yh!-yd!-y!
    'Seitenriß:
    dist!=sqrt(sqr(x!-xv!)+sqr(y!-yv!))
    usepen 0,5,255:line xh!+xs!,(yh!-ys!) - xh!+xs!,yh!-ys!-y!
    usepen 0,53*r!*zoom!/dist!,200:line xh!+xs!,(yh!-ys!-y!-1) - xh!+xs!,yh!-ys!-y!
    ' Viewpoint
    usepen 0,25,rgb(0,0,200)
    line 15,(yh!-yv!-1) - 15,yh!-yv!
    EndPaint
    MCopyBMP 0,0 - %maxx,%maxy > 0,0;0
    a!=g!*sin(-gamma!)*t!
    omega!=omega!-a!/r!
    omega!=omega!*(1-daempfg!)
    gamma!=gamma!-omega!*t!
    x!=-r!*sin(gamma!)*zoom!
    y!=-r!*cos(gamma!)*zoom!

    if rnd()<0.04:waitinput 5:endif

        t!=(&gettickcount-tm&)*0.0005

    until %key=27

    End
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/11/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

507 Views

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie