Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 May 2013, 01:06
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
Pixies -- a particle simulator
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
tombh


Joined: 12 Jan 2007
Posts: 422
Location: Bristol, UK

PostPosted: Thu 21 Feb 2008, 07:06    Post subject:  Pixies -- a particle simulator
Subject description: Personal Project written in GTK C
 

Here is a particle simulator called Pixies I have been making.

I had the original idea some 12 years ago when I was 14 and started it in Quick Basic. Then when I started using Puppy, C seemed so much more accessible so I rewrote Pixies in C for the increased speed. It uses an equation called the Lennard-Jones Potential (see images) to derive the forces between particles given their distances form each other.

The project is not finished, there are some functions that don't work and an energy leak bug.

Particles are added by clicking in the black box with the left mouse button. Particles and settings can be added/adjusted in real time. Solids, liquids and gasses can all be simulated with the right settings.

The Control Centre is made up of two areas -- Environment settings and Individual Particle settings. The latter is a little more complicated in that it has two modes -- Creation mode and Selector mode. Creation mode causes mouse clicks to add particles and Selector mode causes mouse clicks to select the nearest particle for adjustment.

Static particles and thus static 'containers' can be made by creating/selecting particles with the 'static radio toggle'.

I haven't had the time to do anything with it for ages, but I put it up here in case anybody finds it fun or useful.

Enjoy Smile
eqaution.jpg
 Description   The Lennard-Jones Potential equation
 Filesize   6.58 KB
 Viewed   453 Time(s)

eqaution.jpg

graph.jpg
 Description   A graph of Potential Energy (i.e. attraction/repulsion) against Separation
 Filesize   21.33 KB
 Viewed   449 Time(s)

graph.jpg

Pixies-0.1.tar.gz
Description  A particle simulator written in GTK C
gz

 Download 
Filename  Pixies-0.1.tar.gz 
Filesize  32.67 KB 
Downloaded  183 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15109
Location: Paradox Realm

PostPosted: Thu 21 Feb 2008, 08:42    Post subject:  

thank for releasing this Cool
might be required for DIDO (the final part of the Tmxxine project)
http://tmxxine.com/wik/wikka.php?wakka=DIDOhardwareProject

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Sage

Joined: 04 Oct 2005
Posts: 4622
Location: GB

PostPosted: Thu 21 Feb 2008, 10:42    Post subject:  

We used to listen to all this kind of simulation thing back in the Sixties & Seventies when John Enderby was still prof in Physics down at Bristol.
All very pretty, but.....
Simulations depend upon selecting 'realistic' input parameters, in this case pair potentials. Ultimately, these rely for their integrity upon experimental data. In other words, the whole rapidly descends into an exercise in circular logic. Put in realistic data - you get out plausible answers. Bigger and better computers don't help. More efficient code doesn't help. Even 'improved' modelling doesn't help, because, as Stephen Hawking readily admits, ultimately all models derive from the intangible intuition of the human consciousness. Fallible and limited, indeed! It is now considered that because human experience will never be capable of phenomenalising dimensions beyond the third, a complete comprehension of the space-time continuum can never be achieved.
But don't let all that put you off having fun and spending the departmental budget!

Last edited by Sage on Fri 22 Feb 2008, 03:06; edited 1 time in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15109
Location: Paradox Realm

PostPosted: Thu 21 Feb 2008, 10:59    Post subject:  

Quote:
indeed! It is now considered that because human experience will never be capable of phenomenalising dimensions beyond the third, a complete comprehension of the space-time continuum can never be achieved.


Maybe.

100 years from now it is unlikely we will be human in the present sense.

Integration with AI (artificial Intelligence) will allow us to conceptualise and reprogram models of 'reality' in ways that are independent of present evolution.

Never is a long time and it is surprising what can be done between now and never . . .

One small pixie step for mankind one giant simulation for AI . . . Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Sage

Joined: 04 Oct 2005
Posts: 4622
Location: GB

PostPosted: Thu 21 Feb 2008, 12:17    Post subject:  

Quote:
Never is a long time and it is surprising what can be done between now and never . . .

Unfortunately not in this case because our physical presence only relates to three degrees of freedom. Mathematics is not so constrained, so formulaic representations of n-dimensions can be both accurate and precise - it's just the phenomenology that will forever evade the human race.
What did you make of today's IOT, Lob?
Back to top
View user's profile Send private message 
Sage

Joined: 04 Oct 2005
Posts: 4622
Location: GB

PostPosted: Thu 21 Feb 2008, 14:30    Post subject:  

PS. Those leakages. They never go away. Your model must, by definition, refer to an empirical unbounded infinite ensemble of particles. In a real simulation, your computer, however large, will always be bounded and exhibit edge effects. It is not sufficient for particles leaving the box to be accounted for by re-entry at the opposite edge.
Your calculation will also be bounded in time. It isn't permissible to allow it to 'stop' or even 'start' because this imposes unrealistic offsets, which, however small, are finite and aggregate through massive iteration.
It is also difficult to the point of impossibility to represent the entire spectrum of allowable properties (usually temperature - Boltzmann distributions) for individual particles. Goodness knows what 'corrections' are needed for 'uncertainty', 'duality' and all those more esoteric factors!
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 9843
Location: Arizona USA

PostPosted: Thu 21 Feb 2008, 17:11    Post subject:  

Don't forget to include acceleration, e.g. due to gravity. I'm not kidding. It would be useful for examining how mixed gases act in the atmosphere.
Back to top
View user's profile Send private message 
tombh


Joined: 12 Jan 2007
Posts: 422
Location: Bristol, UK

PostPosted: Thu 21 Feb 2008, 17:28    Post subject:  

Of course this is simulation of physical reality on, what is now considered, a relatively macroscopic scale! Nevertheless I must admit that the inspiration behind it is no less than a desire to get closer to the inner most workings of existence Wink If one could somehow recreate reality with the simplicity of one equation then all one would need do is, understand that equation, and the universe would be your oyster. If only!

Yeah, those leakages can never be plugged, no matter how accurate one is, the exponential proliferation of even the smallest discrepancies will always multiply into tangible deviations. Though, one must of course be careful not to throw the baby out with the bath water -- a distorted representation is fundamentally different to outright fabrication. There certainly are implicit shortcomings with conceptualisation, thought and theory but that cannot then also mean that they are utterly redundant. I worry when the question of reality no longer excites me, to be perpetually struck by that which is unprecedented is perfectly within my grasp. So often I just want to retire to the conclusion that it's all too complicated and must therefore be inexplicable -- but isn't that just another subtle and unjustifiable explanation?

I'm sometimes saddened that I won't get to see a lot of the future! So much to see, sure, ways of life far beyond our current frame of reference. My comfort though is that newness is always newness, it's always something that has no frame of reference. And that's nothing new! It's always been and always will be like that!

Happy Days Smile

PS. There's a gravity slider already in there -- which of course accelerates all particles equally regardless of their mass Wink
Back to top
View user's profile Send private message Visit poster's website 
Sage

Joined: 04 Oct 2005
Posts: 4622
Location: GB

PostPosted: Fri 22 Feb 2008, 04:28    Post subject:  

Quote:
macroscopic scale

When can we expect to receive your wave theory simulator?!

On further consideration, it's not the gravitational parameter, as intended, that has to be accounted for. But there is the post-Big Bang variability of both g and G, as well as the acceleration of cosmic expansion that has to be plugged in. Over to you.....
Back to top
View user's profile Send private message 
tombh


Joined: 12 Jan 2007
Posts: 422
Location: Bristol, UK

PostPosted: Sat 23 Feb 2008, 06:00    Post subject:  

Wave theory simulator! Goodness Shocked I might apply for funding, mind you whilst I'm at it I might as well go the whole hog and propose support for infinite dimensions and string theory. Well I suppose that's what a theory is, a set of rules that can be applied to simulate reality. Does string theory explain the random popping into existence of fundamental particles? Mind you can anything ever explain how the big bang happened in the first place? That was a rather significant popping into existence I must say!

Is g like a local gravitational constant and G a universal one or something? My simulator doesn't account for an expanding universe at the moment but you can change the colours of the particles if that's any consolation!
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0622s ][ Queries: 13 (0.0051s) ][ GZIP on ]