![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
03-27-13, 06:56 AM
|
#1 |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
1/3 power (cube root) is to give lesser speed increase at greater speed orders. That is - less and less efficiency (speed increase) at greater and greater PS applies. Just look at the plot of the cube root.
NB: Cube root works well both for positive and negative ordered speeds as compared to even roots (that is why it is not square root - 1/2 power). ![]() I will give my full analysis later, I am at it at the moment. My wild guess so far is that it is xmm2 you should tinker with to lower or increase the engine 'efficiency'. |
|
|
03-27-13, 08:22 AM
|
#2 |
|
Lieutenant
![]() Join Date: Nov 2006
Location: St. Petersburg, Russia
Posts: 264
Downloads: 73
Uploads: 0
|
Ok, here is the analysis:
Let's first derive the formula implied in the code: speed = 30.99133 x cube_root[ (7432.328 / 559500) x (XMM2 + ordered_speed x XMM1) x (ordered_speed x XMM1)^2 ] or: speed = 30.99133 x 0.23683266 x cube_root[ (XMM2 + ordered_speed x XMM1) x (ordered_speed x XMM1)^2 ] We can try to simplify it further but if we just insert this formula into excel/calc we will get to the following values (we drop the negative values since we cannot see what what is done with those from the code excerpt given): Code:
0 0,00000 0,1 4,38442 0,2 7,55932 0,3 10,58301 0,4 13,54768 0,5 16,48260 0,6 19,40030 0,7 22,30711 0,8 25,20658 0,9 28,10086 1 30,99133 The other thing to see is that the combination of constants 3.913995 (xmm1) and 7432.328/559500 works so that the max speed at order 1.0 will be equal to the constant given later in the code (30.99133) if we change this number to, say, 20, the speed at 1.0 setting will be also 20 with speeds at other settings changing accordingly (@TDW this can be the answer to your question), at 0.4 setting the speed will be 8.7 knots. What is puzzling is XMM2 which changes almost nothing. If we set it to 0 the max speed (30.99) will change only by 2 knots to 28 and the speed at 0.4 will be 11.49. Why this xmm2 variable is needed at all? To put some logic into the formula here is my thinking:
|
|
|
03-27-13, 09:23 AM
|
#3 | ||
|
Black Magic
![]() |
Quote:
Thank you Quote:
I have to see if those same constants hold true when the sub is surfaced and using diesels for engine power. If so this could answer why the 30.99133 contant. |
||
|
|
03-27-13, 10:10 AM
|
#4 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Brilliant deductions, guys
|
|
|
03-27-13, 01:25 PM
|
#5 |
|
Black Magic
![]() |
@Vanilla: I think you are correct in that the speed in knots from the calculation is the theoretical maximum speed in knots by that engine alone. I did more testing:
VIIC surfaced (5m) with no snorkel using diesel engines (both available): zeroes out XMM0 loads 1.0 into XMM2 Loads something dealing with engine into XMM1 (9.115489) <----- this number is a constant and does not change with ordered throttle settings. This number changes to a different value when using electric engines multiplies XMM1 by ordered throttle (0.3) - ordered speed in range -1.0 to 1.0 XMM1 now equals 2.734647 compares XMM0 (0.0) to XMM1 if before or equal then jump to *1* saves -1.0 to stack variable jumps to *2* *1* compares XMM1 to XMM0 (0.0) if before or equal then jump to *3* loads XMM2 (1.0) into stack variable jumps to *2* *3* loads XMM0 (0.0) into stack variable *2* compares XMM0 (0.0) to XMM1 loads XMM1 into XMM0 (XMM0 now equals 2.734647) if before or equal then jump to *4* changes sign of XMM0 *4* loads constant 0.333333 (1/3) into ST0 adds XMM2 (1.0) to XMM0 (2.734647) thus XMM0 now equals 3.734647 divides XMM0 by 2387200.0 <---- this number is a constant and does not change with ordered throttle settings. This number changes to a different value when using electric engines XMM0 = 1.564447e-06 multiplies XMM0 by 2840.155 <---- this number is a constant and does not change with ordered throttle settings. This number changes to a different value when using electric engines XMM0 = 0.004443270 multiplies XMM0 (0.004443270) by XMM1 (2.734647) XMM0 = 0.1215077 multiplies XMM0 (0.1215077) by XMM1 (2.734647) XMM0 = 0.332280667 raises XMM0 to the 0.3333333 power (1/3 power) - a function is called to do this and it returns the value in ST0 ST0 = 0.321490681 multiplies ST0 by 50.26548 <---- this number is a constant and does not change with ordered throttle settings. This number changes to a different value when using electric engines ST0 = 16.15988339 which is the new theoretical maximum speed of this engine in knots at this throttle setting multiplies ST0 by stack variable saves ST0 to engine's theoretical maximum speed in knots at this throttle setting to memory address Notice the constants do not change with different throttle settings. They do change with engine type though (diesel or electric) so that further provides proof. The ordered throttle is the value defined in the unit's .cfg file under [EngineProperties]. I believe that lowering the value highlighted in yellow (or the one in cyan) over the player's career will account for engine wear over time. Agree I'm going to check to see if the game continually writes to this memory value or if it's static (only wrote to at game start).
|
|
|
03-27-13, 03:21 PM
|
#6 |
|
Black Magic
![]() |
what if this number isn't the theoretical maximum speed of the engine in knots but rather the RPM of that engine's shaft (in the water)
The constants could be related to gearing reduction.Anyone have any figures on what the RPM of the shafts were at different bells for the subs? |
|
|
03-27-13, 03:40 PM
|
#7 |
|
Black Magic
![]() |
it doesn't dictate the shaft's RPM but it does play a part in it somehow
Just watched it from external cam. Changed the cyan value to half what it was and speed didn't drop to half it's value (sub's actual speed) but only dropped a few knots. Shaft RPM changed considerably though.
|
|
|
03-27-13, 06:53 PM
|
#8 | |
|
Ensign
![]() Join Date: Feb 2012
Location: USA
Posts: 225
Downloads: 346
Uploads: 0
|
Quote:
Forward Flank - 471 rpm Full - 435 rpm Standard - 340 rpm One-Third - 275 rpm Slow - 180 rpm Reverse Flank - 285 rpm Full - 215 rpm Standard - 160 rpm One-Third - 110 rpm Slow - 55 rpm This information is from page 17. It is referring specifically to turning radius at different speeds, but in the note at the bottom of the charts, it says "RPM are valid at the moment of running into the turning circle and during the steady turning condition of the boat are accordingly lower." More general propulsion information can be found on page 118. There's also some great stuff on battery discharge rates on p. 133. EDIT: sorry, here's the link: http://www.uboatarchive.net/Manual.htm |
|
|
|
03-27-13, 08:22 AM
|
#9 |
|
Lieutenant
![]() Join Date: Jan 2012
Posts: 252
Downloads: 66
Uploads: 0
|
american u-boat 1944: speed vs. duration
![]() Formular y = 2.402133918·10^-6 x^6 - 2.480632527·10^-4 x^5 + 1.022176849·10^-2 x^4 - 2.159633693·10-1 x^3 + 2.53236561 x^2 - 18.08338354 x + 115.6332116 Battery capacity of type vii C maybe found in commanders handbook some other info here http://www.uboat.net/technical/batteries.htm and her3 http://sourceforge.net/apps/trac/der...i/VIIbatteries NYGM or GWX3 (SH3) have totally different calculations. Ex. With ordered submerged speed 6 kts the battery lasts longer than 23 hours but the speed droppes off sharply etc.
__________________
Robert Schmidt, LTJG U-43 Last edited by LemonA; 03-27-13 at 08:39 AM. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
