LocostUSA.com

Learning how to build Lotus Seven replicas...together!
It is currently March 28, 2024, 4:07 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 160 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10, 11  Next
Author Message
PostPosted: November 17, 2010, 12:22 am 
Offline
User avatar

Joined: January 30, 2010, 1:10 pm
Posts: 223
Location: Sacramento California
Trochu wrote:
Probably a silly question, but is Wishbone applicable for IRS applications? I'm probably overthinking it but I really don't want my driveshafts to act as a stop because I designed it wrong.


In a word: Yes!

You can design around the lengths of the driveshafts that you have or calculate the driveshaft after you have calculated the wishbones.

The end result it the same, we are trying to acheive the optimal roll centers and tire contact patch at each end of the car.
But study the theories of suspension movement. It is said (and written) that the rear roll center should be higher then the front.


Top
 Profile  
Reply with quote  
PostPosted: November 17, 2010, 6:57 pm 
Offline

Joined: March 15, 2010, 10:52 pm
Posts: 29
Does anyone have a link to the source code for this program? I'd like to mod it so that folks can run it with a modern GUI and get rid of the DOSiness

I thought it used to be up on racetech.com, but it doesn't seem to be there anymore.


Top
 Profile  
Reply with quote  
PostPosted: November 17, 2010, 7:39 pm 
Offline
Toyotaphobe
User avatar

Joined: April 5, 2008, 2:25 am
Posts: 4829
Location: Fort Worth, Texas
Bless you my child if you do this!!

And then if you could make it very visual and allow you to actually see the suspension movement and a read out of the changes.

I'm very visual and I can't make heads or tails of any print out I've ever seen of this program.

_________________
mobilito ergo sum
I drive therefore I am

I can explain it to you,
but I can't understand it for you.


Top
 Profile  
Reply with quote  
PostPosted: November 17, 2010, 9:42 pm 
Offline
User avatar

Joined: November 7, 2008, 4:48 am
Posts: 1097
Location: snow city - it's wet!
jmcglynn wrote:
Does anyone have a link to the source code for this program? I'd like to mod it so that folks can run it with a modern GUI and get rid of the DOSiness

I thought it used to be up on racetech.com, but it doesn't seem to be there anymore.

I had never known it was available. If you do track it down would you mind passing me a copy or posting a link?

_________________
.. in the world


Top
 Profile  
Reply with quote  
PostPosted: November 17, 2010, 10:47 pm 
Offline
The voice of reason
User avatar

Joined: January 10, 2008, 4:47 pm
Posts: 7652
Location: Massachusetts
Doesn't aero_bro here have a spreadsheet that does this stuff???

_________________
Marcus Barrow - Car9 an open design community supported sports car for home builders!
SketchUp collection for LocostUSA: "Dream it, Build it, Drive it!"
Car9 Roadster information - models, drawings, resources etc.


Top
 Profile  
Reply with quote  
PostPosted: November 17, 2010, 10:56 pm 
Offline
Lumbering Giant
User avatar

Joined: August 17, 2005, 10:13 pm
Posts: 521
Location: near Cleveland, OH
Hope this helps!


You do not have the required permissions to view the files attached to this post.

_________________
Dreaming the dream since 2003. Haynes chassis, Miata uprights, everything else from 1987 NA RX7 donor.


Top
 Profile  
Reply with quote  
PostPosted: November 18, 2010, 5:46 am 
Offline

Joined: May 12, 2010, 1:18 am
Posts: 6
Thanks for that, ive been meaning to recode this into Java or something for a few years now.


Top
 Profile  
Reply with quote  
PostPosted: November 18, 2010, 9:30 am 
Offline

Joined: March 15, 2010, 10:52 pm
Posts: 29
Pete B wrote:
Hope this helps!


Thanks Pete. It looks pretty straightforward overall. I'll need to pick out the suspension algorithm parts from the user interface and see where it goes from there. It might be cool to have it as a web app so folks don't have to download it, but I'm getting ahead of myself.


Top
 Profile  
Reply with quote  
PostPosted: November 18, 2010, 2:23 pm 
Offline
User avatar

Joined: August 2, 2009, 3:34 pm
Posts: 896
Location: Alberta
jmcglynn wrote:
Does anyone have a link to the source code for this program? I'd like to mod it so that folks can run it with a modern GUI and get rid of the DOSiness

I thought it used to be up on racetech.com, but it doesn't seem to be there anymore.


That would be awesome! I tried running it on my computer yesterday, no go, I've got Windows 7 and it's not compatible, that I could find anyways.

_________________
Trochu Motor League


Top
 Profile  
Reply with quote  
PostPosted: November 21, 2010, 4:23 pm 
Offline
User avatar

Joined: April 26, 2008, 6:59 pm
Posts: 110
Location: Santa Ana, CA
horizenjob wrote:
Doesn't aero_bro here have a spreadsheet that does this stuff???


The spreadsheet works, although it's not optimized as far as being as user friendly as I would like. I'm still in the process of rewriting the program in MS Visual Basic 2010 (.net) which will work in Windows XP,Vista, and 7, which would make things much easier from a user standpoint. The program's 75% done but between 2 jobs and law school I'm having trouble finding the free time to finish. Sorry. Try the spreadsheet though, it does give something of a visualization. http://www.locostusa.com/forums/viewtopic.php?t=7339

Ken

_________________
Need to figure out your suspension geometry, what springs to use, or what your turning radius is? Try this free excel worksheet - http://www.locostusa.com/forums/viewtopic.php?f=26&t=7339


Top
 Profile  
Reply with quote  
PostPosted: November 21, 2010, 9:47 pm 
Offline
User avatar

Joined: August 19, 2006, 5:48 pm
Posts: 1217
Location: S. Florida
Pete B wrote:
Hope this helps!
Attachments: WISHBONE.zip [25.03 KiB]
Downloaded 20 times

I have a zip file with the same name but my file has QBasic.exe included to compile it etc. The wishbone.bas file is a little over 30 Kb long.

The following is the "wishbone.txt" that is part of the .zip file. It explains what he was doing in the program.

Please note that this program has a copyright, 'LINKAGE ANALYSIS ...WISHBONE.......................(C)1996:M J McDERMOTT which was extended to 2000 in another the .bas file.
_________________________________________________________________________________
PROCEDURES IN THE PROGRAM

SusDefine - to input the data

THis procedure was inspired by the data input section of the program TORUS.BAS included in Microsoft QuickBasic 4.0. It uses the procedure Modify.

Modify( Lower, Upper, Variable, Increment)

Changes a variable by an increment within a range between an upper and a lower limit, on a keystroke. If the key is PageUp the increment is positive; for PageDown, it's negative. Pressing Control at the same time cuts the increment by a factor of ten. The key designations are in lines 60-74 of SusDefine

PQ - to locate a point in space

The most frequent requirement in calculating suspension movements in three dimensions is to find the position in space of the meeting point of three links of known length whose other ends are fixed and known. This point is where the three spheres intersect which are centred on the three known points and which have their radii equal to the three known link lengths. In the diagram the three fixed points are A,B and C. Their radii are L,M and N. Since the unknown point P lies on each of the three spheres we have three equations:

( xa - xp )2+( ya -yp )2+( za - zp )2=L2 ..............................................(1)

( xb - xp )2+( yb -yp )2+( zb - zp )2=M2 ..............................................(2)

( xc - xp )2+( yc -yp )2+( zc - zp )2=N2 ..............................................(3)


these are each multiplied out to give the following:

xp2 + yp2 + zp2 - 2xaxp - 2yayp - 2zazp = L2 - xa2 - ya2 - za2 .............(4)

xp2 + yp2 + zp2 - 2xbxp - 2ybyp - 2zbzp = M2 - xb2 - yb2 - zc2 ............(5)

xp2 + yp2 + zp2 - 2xcxp - 2ycyp - 2zczp = N2 - xc2 - yc2 - zc2 .............(6)

By subtracting (5) from (4), then (6) from (5), then (4) from (6), we get three new equations (7), (8) and (9) in the three unknowns xp, yp and zp, the co-ordinates of P.

2 (xa - xb ) xp + 2 (ya - yb ) yp + 2 (za - zb ) zp = (M2 - L2 ) - ( B2 - A2 ) = MLBA...(7)

2 (xb - xc ) xp + 2 (yb - yc ) yp + 2 (zb - zc ) zp = (N2 - M2 ) - ( C2 - B2 ) = NMCB...(8)

2 (xc - xa ) xp + 2 (yc - ya ) yp + 2 (zc - za ) zp = (L2 - N2 ) - ( A2 - C2 ) = LNAC...(9)

where A2 = xa 2 + y a2 + z a2 etc. The procedure PQ does this in section AA. Rather than ( xa - xb ) etc it uses a matrix notation T ( 1, 2 ) etc, which is better suited to numerical calculations.

At this point someone usually suggests that this is a suitable case for a quick solution by a matrix method, and reaches for the matrix inversion and multiplication functions included in most spreadsheets. Unfortunately this doesn't work because we have over-simplified the problem by throwing away the squared terms in (4), (5) and (6) when obtaining (7), (8) and (9). We have to go first through the process of expressing xp and yp in terms of zp. To do this we multiply (7) by (xb - xc ) to give (10), (8) by (xa - xb ) to produce (11), and then subtract (10) from (11). PQ does this in section CC.

This gives :

2((ya - yb)(xb - xc ) - (yb - yc)(xa - xb )) yp =

(MLBA(xb - xc) -NMCB(xb - xc)) - 2((za - zb)(xb - xc ) - (za - zb)(xb - xc )) zp

There is a similar equation for xp in terms of zp. These two expressions are then used to rewrite equation (1) in zp only. This is rather a long collection of terms in zp2 and zp. Anyone deeply interested is recommended to follow the detail in the program listing. The main point, though, is that this is a standard form of a quadratic equation, so that the standard school mathematics rule can be used to find the "roots" or answers. If the quadratic equation is written as

azp2 + bzp + c = 0

then the solutions are zp = -b +/- (square root of (b2 - 4ac))
2a

Once having found zp, it is straightforward to find yp and xp by using the two relationships derived earlier.

If you have been following the arguments you will have noticed that like all quadratic equations this one has two solutions. Mathematically, each is equally valid but in engineering terms only one makes sense. The two solutions are (a) the correct one, and (b) the wrong one, which is the mirror image of the correct one, in which the plane of the mirror is formed by the three fixed points A, B and C. To avoid seriously wrong results the program has to include a way of choosing the correct one. The simplest way is to tell the program the original co-ordinates of the point P. The correct new position usually isn't very far away from the original. You have already entered this information anyway because it was needed to calculate the lengths of the suspension links. The correct solution is the one closer in space to the original. PQ does this in section DD.

There is, unfortunately, another situation for the program to cope with, which is that computers don't like dividing by zero. This is because the result would be infinity, the machine can't handle it, and the program will crash. If one or more of the fixed points A, B or C have the same x or y or z co-ordinates, and this is not uncommon since wishbone pickups are often parallel to the axis of the chassis, then one or more of the terms such as (zb - za) will be zero and would cause the dreaded 'division by zero'. In section BB the procedure searches for these zeros and rearranges the order of the equations to avoid creating them when forming equations (7), (8) and (9). There always has to be a suitable order because in the real world of real suspension layouts the points A, B, and C can't all be in exactly the same places or the suspension woudn't locate the wheel properly.

The procedure is 'called' many times in the program by the command PQ (A, B, C, D, E, F, G, H). In these calls A, B and C are the point numbers of the three fixed points; D,E and F are the numbers of the three fixed links; G is the point number of the unknown point before it is moved, and H the new number after movement.

Procedure QWB

This is used to find the line of intersection the planes which pass through the three fixed points of each of a pair of wishbones. It uses the fact that the equation of a plane can be expressed as:

(x - xa) { (yb - ya) (zc - za) - (yc - ya) (zb - za)}
-(y - ya) { (xb - xa) (zc - za) - (xc - xa) (zb - za)}
+(x - xa) { (xb - xa) (yc - ya) - (xc - xa) (yb - ya)} = 0

where xa , ya and za are the co-ordinates of the fixed point A etc, all of which are known.

There is a corresponding equation for the other wishbone of a pair. The task of this procedure is to find the IC and the squat centre. Since there are the two wishbone equations there is enough information to solve the problem of finding the line of intersection of the two planes which is, of course, the instantaneous axis of rotation of the suspension. By definition x = 0 for the IC since it lies in the vertical transverse plane through the 'axle'. Similarly, from the definition of the squat centre we specify z = half the
track. The IC and the squat centre are then located by separately solving the two equations simultaneously, with x and z specified appropriately. The procedure is called by the command UPL ( A,B,C,D,E,F,M,N). A, B and C are the point numbers of one of the wishbones; D, E and F the point numbers of the other wishbone. M is the point number you want to give to the IC, N the one you want to give to the squat centre. This procedure looks for wishbones which are parallel in side view, corresponding to zero anti-dive or squat, which would lead to a division by zero and a crashed program. When this is detected the correct result of zero squat height is given but it outputs a default horizontal squat centre position of 999.999, which could be rounded to 1000, rather than the correct value of infinity.

Procedure UPL

This finds the plane through the three fixed points of the upright, using the same geometry as procedure QWB. It then constructs a 'stub axle' which is fixed to the upright with its inner end at the fore-and -aft position x = 0 and at a height y = half the tyre diameter. It is given a length of 6 units and the position of its outer end is then determined by the static camber and toe-in angles you have fed in via your data file. It is invoked by the command UPL ( A, B, C, M, N) in which A, B and C are the point numbers of the upright fixings (the upper and lower BJs and the TRE). M and N are the point numbers you want to give to the inner and outer ends of the stub axle.

Procedure AX

This is a complement to UPL. After the suspension has been deflected, AX is called to find the new position of the stub axle. It then calculates the new camber and toe-in angles using measurements calculated in UPL, repeatedly using the ubiquitous procedure PQ. It is called by AX (A, B, C, M, N, MM, NN, CAM, TOE) where A, B, C, M, N are the same as in UPL, MM and NN are the point numbers of the new positions of the stub axle, and CAM and TOE are the new values of these angles.

Function L (A,B)

Computes the SQUARE of the distance between two points numbered A and B.

Function R (A)

Computes the SQUARE of the distance of the point numbered A from the origin.

_______________________ End of file (finally) :shock: :) _____________________________________________

_________________
"My junk is organized. At least is was when I put it wherever it is." -olrowdy
Completed building GSXR1000 CMC7, "Locouki"
Website: http://projekt.com/locouki/


Top
 Profile  
Reply with quote  
PostPosted: December 10, 2010, 2:08 am 
Offline
User avatar

Joined: October 23, 2010, 2:40 am
Posts: 1450
Help, I can not get Wishbone to run on my 64-bit Windows 7 computer. All I get is a pop-up saying "...program version not compatible...check to see if there is a 64-bit version available..." I tried the Compatibility Troubleshooter tool but it was no help. :BH:

Also looked at DosBox per a previous entry on this thread, but it seems to be Vista and XP oriented.

Thanks. Any assistance/suggestions would be greatly appreciated.

_________________
Cheers, Tom

My Car9 build: viewtopic.php?f=35&t=14613
"It's the construction of the car-the sheer lunacy and joy of making diverse parts come together and work as one-that counts."

Ultima Spyder, Northstar 4.0, Porsche G50/52


Top
 Profile  
Reply with quote  
PostPosted: December 11, 2010, 12:53 am 
Offline
User avatar

Joined: August 19, 2006, 5:48 pm
Posts: 1217
Location: S. Florida
seattletom wrote:
Help, I can not get Wishbone to run on my 64-bit Windows 7 computer. All I get is a pop-up saying "...program version not compatible...check to see if there is a 64-bit version available..." I tried the Compatibility Troubleshooter tool but it was no help. :BH:
Maybe set up a virtual machine with an earlier OS like DOS 6.22? I use an ancient laptop that runs 6.22 for really old applications.

The program sort of works in Windows 7 32bit in that you can see DATA that you had entered with earlier OS but you can't change anything or see the graphic screen. I tried various other compatibility settings and even W98 doesn't work.

_________________
"My junk is organized. At least is was when I put it wherever it is." -olrowdy
Completed building GSXR1000 CMC7, "Locouki"
Website: http://projekt.com/locouki/


Top
 Profile  
Reply with quote  
PostPosted: December 11, 2010, 1:36 am 
Offline
User avatar

Joined: November 7, 2008, 4:48 am
Posts: 1097
Location: snow city - it's wet!
I haven't tried this in 7 yet, but I generally run wishbone using the following steps:

1) Open a DOS window (or command prompt window, same thing) by typing "cmd" in the window opened by navigating through "start -> run" via the windows start button.

2) Use the CD (change directory) command to navigate to the directory where wishbone is hiding. For example: "CD C:\wishbone"

3) Use the command "run wishbone.exe" to start the program.

This solution has always worked for me even when compatibility modes have had problems. Keep the program files in a directory like "C:\wishbone" where the whole mess is short (easy to type) and no individual folder name is over 8 letters.

Usually I can then go full screen by using "alt+enter" on the DOS window or jump out of it by using "alt+tab". It does crash occasionally but it has worked well enough to allow me to model a few different suspension ideas.

_________________
.. in the world


Top
 Profile  
Reply with quote  
PostPosted: December 11, 2010, 2:43 am 
Offline
User avatar

Joined: October 23, 2010, 2:40 am
Posts: 1450
Thanks for the ideas erioshi and 'rowdy.

I hope to have some quiet time this weekend to try the "cmd" approach. I'll have to dust off my old DOS Users Guide first, though. I never really got the hang of the command line stuff. I do much better in a Windows world, but until Wishbone gets ported I'll have to find a way to make it work in a DOS-like world. Unfortuately all my old computers blew up, so nothing left to run a pure DOS environment on. Using a virtual machine is an interesting idea, but probably beyond my computing know-how.

From all I read on the forum, Wishbone looks to be a great tool, as does the MsExcel package (which does run on 64-bit Win 7.) I'm also very interested in the possibilty mentioned elsewhere in the forum of another Wishbone-like suspension analysis package with a graphical user interface being developed. They all have their place, and improved ease of use will enable better designs.

Any other tips to add to my weekend "running Wishbone on 64-bit Win 7" computing fun?

_________________
Cheers, Tom

My Car9 build: viewtopic.php?f=35&t=14613
"It's the construction of the car-the sheer lunacy and joy of making diverse parts come together and work as one-that counts."

Ultima Spyder, Northstar 4.0, Porsche G50/52


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 160 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10, 11  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


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 post attachments in this forum

Jump to:  
cron
POWERED_BY