[Fixed]Air friction force (-fv) wrong
11 posts • Page 1 of 1
[Fixed]Air friction force (-fv) wrong
Edit: (by tatt61880)
Fixed at v1.8.2(beta). Thanks.
-Tatt
----
I just noticed that -fv is dependent from the angle of the velocity that an object has got. But normally this must not happen.
This is what I made:
I noticed:
28.28 N / 20 N = 1.414 ≈ √2
I also found out how air friction force gets calculated in Algodoo. It's
-fv =
sim.airFrictionMultiplier * airFrictionMult * cross-section * ( sim.airFrictionLinear * v + sim.airFrictionQuadratic * v² )
=>
-fv(45°) / -fv(0°) = cross-section(45°) / cross section(0°) ≈ √2
And because of that I suppose that Algodoo doesn't detect the real cross section of the circle. It detects the cross section of a rectangle around the circle. The rectangle's cross section is 2 at 0° and 2*√2 at 45°.
Am I right?
Why did you calculate it like this? Is it easier or did someone just forget to continue working on it?
Fixed at v1.8.2(beta). Thanks.
-Tatt
----
I just noticed that -fv is dependent from the angle of the velocity that an object has got. But normally this must not happen.
This is what I made:
- I made a circle so that the cross-section is the same no matter which orientation the circle has got (radius = 1)
- After that I turned up airfrictionmult to 100
- I turned up the velocity to 10 m/s and 0°
- I displayed the air friction force -fv
- Now I made a simulation step and watched the force (-fv = 20 N)
- - - - - - I undid the simulation step and changed the velocity to 45°
- I made another simulation step and watched the force (-fv = 28.28 N)
I noticed:
28.28 N / 20 N = 1.414 ≈ √2
I also found out how air friction force gets calculated in Algodoo. It's
-fv =
sim.airFrictionMultiplier * airFrictionMult * cross-section * ( sim.airFrictionLinear * v + sim.airFrictionQuadratic * v² )
=>
-fv(45°) / -fv(0°) = cross-section(45°) / cross section(0°) ≈ √2
And because of that I suppose that Algodoo doesn't detect the real cross section of the circle. It detects the cross section of a rectangle around the circle. The rectangle's cross section is 2 at 0° and 2*√2 at 45°.
Am I right?
Why did you calculate it like this? Is it easier or did someone just forget to continue working on it?
Last edited by tatt61880 on Tue Nov 16, 2010 2:44 pm, edited 1 time in total.
Reason: Fixed!
Reason: Fixed!

-

KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Air friction force (-fv) wrong
i guess they didnt thought it was important to them...
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
-

Bronie12345 - Posts: 451
- Joined: Mon Aug 31, 2009 8:52 pm
- Location: The Netherlands
Re: Air friction force (-fv) wrong
I know what's wrong however how algodoo is programmed, this cannot be fixed easily so...
<- Designed by PhysicsGuy-

xplane80 - Posts: 498
- Joined: Mon Aug 31, 2009 7:28 pm
Re: Air friction force (-fv) wrong
will probably be fixed when they fully re-program algodoo )will probably never happend)
When you make a comment at a scene, at least be brave enough to subscribe to that scene...
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
Don't go into a topic unprepared... Read the whole topic, including all the comments, before posting.
92% of teenagers have resorted to rap music. If you are part of the 8% who listens to real music, put this in your signature.
90% of teenagers today would die if Myspace/Facebook were completely destroyed. If you are one of the 10% who would be laughing their heads off, add this to your signature.
-

Bronie12345 - Posts: 451
- Joined: Mon Aug 31, 2009 8:52 pm
- Location: The Netherlands
Re: Air friction force (-fv) wrong
Am I right?
Why did you calculate it like this? Is it easier or did someone just forget to continue working on it?
You are correct, although I can't say why this is the case. It is noted and should be fixed.
Algodoo Developer
- Joel
- Posts: 104
- Joined: Mon Aug 31, 2009 11:03 am
Re: Air friction force (-fv) wrong
Not fixed yet with v1.8.0.
This issue may be difficult to be solved... //Edit (*)
In addition, compatibility issue can occur when this issue is solved.
Edit (*): This bug seems to happen only with circle, so it might be easy to solve.
This issue may be difficult to be solved... //Edit (*)
In addition, compatibility issue can occur when this issue is solved.
Edit (*): This bug seems to happen only with circle, so it might be easy to solve.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-

tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: Air friction force (-fv) wrong
Suppose a circumscribed rectangle which is parallel to the velocity vector.
Then the rectangle's perpendicular side to the velocity will be cross section.
Keywords:
- minimum bounding rectangle
- minimum bounding box
- axis-aligned minimum bounding box
What's difficult?
Then the rectangle's perpendicular side to the velocity will be cross section.
Keywords:
- minimum bounding rectangle
- minimum bounding box
- axis-aligned minimum bounding box
What's difficult?
-

mori-d - Posts: 28
- Joined: Sun May 02, 2010 1:56 am
Re: Air friction force (-fv) wrong
I noticed that this issue seems to happen only with circle!
So, this issue must be easy to be solved.
So, this issue must be easy to be solved.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-

tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: Air friction force (-fv) wrong
and it happens with an irregular drawn polygon too. but if it gets fixed for circles that's a step forward 

-

KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Air friction force (-fv) wrong
I'll do exact diameter calculations in the next release, for circles and polygons alike.
Emil Ernerfeldt, lead developer
- emilk
- Posts: 616
- Joined: Mon Aug 31, 2009 11:01 am
- Location: Umeå, Sweden
Re: Air friction force (-fv) wrong
If you do, maybe we can get simple aerodynamic? Like calculating average normal vector to surface form "windy" direction and rotate air friction force according to it?
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
11 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests



