Reason of hot water 'float' on the cold water

  • Thread starter ArielGenesis
  • Start date
  • #1
ArielGenesis
239
0
i think that the reason of hot water 'float' on the cold water is not becuase of diffrent density. i make a model of a container containing a higher energy particle (hot water) and lower energy particle (cold water) using action script in flash and uploaded it in geocities. www.geocities.com/arian_m3/heat.swf

from that, it shows that the hot water is MORE (not placed) at the top because it got the power to. while the cold water STAYS (not sink) at the bottom. And thus RESULTING (not beacuse of) a diffrent density. this might not be a perfect model of hot and cold water, but i couldn't find any better yet. the main concept of the script is to move the particle randomly and pulled it downward with gravity.

here is the code if anyone getting interested.

for the hotter particle:
onClipEvent (load) {
_x = 150;
_y = 300;
var vx = random(30)-random(30);
var vy = random(30)-random(30);
var i = 60;
if (_name == "red") {
while (i<>90) {
duplicateMovieClip(_root.red, "red"+i, i);
_parent["red"+i]._x = _x+random(50)-random(50);
_parent["red"+i]._y = _y+random(50)-random(50);
i++;
}
}
}
onClipEvent (enterFrame) {
vx += random(8)-random(8);
vy += random(8)-random(8)+1;
if (_x+vx<=10 or _x+vx>=400) {
vx *= -0.5;
}
if ( _y+vy>=590) {
vy *= -0.5;
}
_x += vx;
_y += vy;
}

and this one is for the colder particle
onClipEvent (load) {
_x = 200;
_y = 300;
var vx = random(10)-random(10);
var vy = random(10)-random(10);
var i = 0;
if (_name == "blue") {
while (i<>50) {
duplicateMovieClip(_root.blue, "blue"+i, i);
_parent["blue"+i]._x = _x+random(50)-random(50);
_parent["blue"+i]._y = _y+random(50)-random(50);
i++;
}
}
}
onClipEvent (enterFrame) {
vx += random(5)-random(5);
vy += random(5)-random(5)+1;
if (_x+vx<=10 or _x+vx>=400) {
vx *= -0.5;
}
if ( _y+vy>=590) {
vy *= -0.5;
}
_x += vx;
_y += vy;
}

feel free to fix my error.
 

Answers and Replies

  • #2
ZapperZ
Staff Emeritus
Science Advisor
Education Advisor
Insights Author
35,997
4,719
ArielGenesis said:
feel free to fix my error.

Then explain why water at 0C "floats" on top of water at 4C. According to your "model", water at 4C should have "more power" and should be on top of water at 0C. This is certainly not the case since water at 1C or 0C that eventually solidify into ice is on top.

Zz.
 
  • #3
Q_Goest
Science Advisor
Homework Helper
Gold Member
3,012
42
Neat flik! Looks like a gas though, and I don't see anything in your program regarding surface tension. The flash you have seems to simulate a gas in a gravitational field fairly well. Add the surface tension affects and bonding affects between molecules, then some pressure above the surface, and you may see some differences in the model.
 
  • #4
Gokul43201
Staff Emeritus
Science Advisor
Gold Member
7,176
22
Since the code is not self-explanatory, it seems that (from the brief intro in the OP) your hamiltonian contains a kinetic term and a potential term (gravitational) but no interaction terms arising from hydrogen bonding.
 
  • #5
russ_watters
Mentor
22,177
9,321
Q_Goest said:
Neat flik! Looks like a gas though, and I don't see anything in your program regarding surface tension. The flash you have seems to simulate a gas in a gravitational field fairly well. Add the surface tension affects and bonding affects between molecules, then some pressure above the surface, and you may see some differences in the model.
My first reaction too...water isn't a gas. Cool animation though.
 
  • #6
ArielGenesis
239
0
okay, i think it is my fault, it is gas then, my friend also told me that.

so... what I'm thinking is that if i could make a model of heatting (i failed to make it), following the logic, there could be no convection current
 

Suggested for: Reason of hot water 'float' on the cold water

Replies
3
Views
139
Replies
3
Views
600
Replies
7
Views
645
Replies
7
Views
962
Replies
9
Views
465
Replies
2
Views
547
Replies
7
Views
731
Top