Making A Model Ghs
Making A Model Ghs
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
Making a Model
Before going back to the run file, let's use one command here in Part Maker to show you how the syntax works and what you need to know about the program itself.
1 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
Go ahead and type QUIT. This will get you out of PM. Now, if you click on the Wizard menu on the top of the screen, you can select 'Executive' when the box drops down to restart the wizard. Note that you are still using the PMDEMO project, so all you have to do to edit your run file again is click 'Edit'. When you left Part Maker, you didn't write your geometry file, so the camber was left unchanged. Why don't we add the commands we used here in the run file. That way, if we make mistakes they are easy to see, find, and correct. Type them after the READ command but before the END command. ENTER PM MODIFY HULL\HULL.C CAMBER .5 @ -61.95, .5 @ -35.11 / QUIT
2 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
DISPLAY: To display your geometry from the run file, you must type 'DISPLAY'. This IS NOT a Part Maker command, so it must be run from the GHS command prompt, or in your run file after you quit Part Maker.
If you're still following along, the complete set of commands in your run file will look like this:
3 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
Let's take a look at your progress. Save and close your run file, and press the pretty green 'Run' button on your Executive Wizard. This will run your file, which should open up the display and look like this:
4 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
You should see a new component at the aft end of the focsle, nicely aligned with the main deck and fitted right up to the focsle deck, including the slant. Now, press the down arrow once. This removes the highlight from the recess component and lets you see its true red color, indicating that it is a deduction. If you wish, you can look at it in the Axonometric and Body Views by pressing the TAB key. When you are finished , press ESC and ENTER to quit the display and return to the Executive Wizard.
5 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
There is a special statement for making cylindrical-type shapes called the CYLINDER statement. Go ahead and type it out: CYLINDER -50.5,0,1.6, -50.5,10,1.6, 1.5 What this means is that a central axis passes through the two end points (-50.5,0,1.6 and -50.5,10,1.6) of the cylinder, and its diameter is 1.5 meters. As always in GHS, the order of the coordinates given is longitudinal, transverse, and vertical. Since only the transverse coordinate varies, you can tell this cylinder's axis runs athwartship. Note that you have only given the starboard half (positive offsets are starboard), but that is as good as giving both sides, since you have declared it to be a centerline component. The length of this starboard half is 10 meters, which is quite a bit wider than our boat is at that point, so you need to fit it to the HULL component. The fitting process will chop off the excess. So type: FIT HULL.C Close the command with a '/' on a line by itself. If you wish to pop into DISPLAY and have a look at the result, go ahead and run your file (make sure you save it!). Otherwise, we will get started with the next part immediately. Now let's make a tank -- a complex one with a thruster running through it. There are a couple of deep tanks with their common transverse bulkhead coming right down on the thruster tube. It sounds tough but it is really easy. So here we go with one of the deep tanks. Type: CREATE DEEP1.S There are two things to note about this command. The first is that only the part name is given and the second is that the part name ends in a '.S'. This means that you are creating a separate part, not a component under the HULL. Part Maker assumes that each new part created is a tank unless you tell it otherwise. The 'DEEP1.S' means that the tank is to be named DEEP1 and that it is to be on the starboard side of the vessel. Two statements you will usually want to include when making a tank are PERMEABILITY and CONTENTS. Type: PERMEABILITY .95 This means that 95% permeability is to be allowed (not counting the thruster tunnel, which you will be deducting soon). If no permeability statement is given, Part Maker assumes 98.5% permeability. Since this is a fresh water tank, you should indicate that by typing: CONTENTS FW The 'FW' is recognized by Part Maker and expanded to the words 'Fresh Water' and the specific gravity is set at 1.0. The User's Manual lists all of the allowable abbreviations and shows how to put in your own specific gravity values when necessary. Since this tank runs longitudinally from 54m forward to 50m forward, you can make the ends statement ENDS -54,-50 Now, the top is at the main deck level of 5.8, so enter: TOP 5.8 Since it goes all the way to centerline and down to the bottom shell, that's it for the main part of the tank, except for fitting it to the hull, so type FIT HULL\HULL.C Notice that since you are fitting to a component belonging to another part you gave the full formal component designation (actually, since there is no ambiguity in this case, you could have said simply FIT HULL and Part Maker would have figured out what you meant).
6 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
Now, you could end the command and create the thruster deduction with a separate CREATE command, but it saves typing to hook it on right here. So type the word DEDUCT on a line by itself. This tells Part Maker that you want to introduce another component, a deducting one, and to go ahead and process the previous statements. Now you can put in that thruster tube again using the exact same Cylinder statement CYLINDER -50.5,0,1.6, -50.5,10,1.6, 1.5 But since part of this tube bulges out into the next tank, you need to slice it off at the 50m bulkhead. One good way to do this is simply to fit it to the main part of the tank. All you have to do is say: FIT DEEP1.S Now you can close the command with a '/'. Before you go to see how it turned out, let's make a port-side tank just like this one. Type: CREATE DEEP1.P OPPOSITE DEEP1.S / Your run file and geometry should look like this:
7 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
See whether yours looks the same. Note that in DISPLAY, the SPACE BAR is very useful for looking at successive parts, especially in the Axonometric and Body Views. The Hull component that you have been using does not include shell thickness, so our tank has its boundaries at the inside of the hull shell. After you have finished making the tanks, you can easily add the shell thickness to the hull with another MODIFY command. The plating on this vessel happens to be 1.2 cm., so the shell command would be: MODIFY HULL\HULL.C SHELL .012 / Since the skeg is a separate component, it was not touched by the MODIFY command. If you want the same shell thickness on the skeg, you must do another MODIFY for it, like this: MODIFY HULL\SKEG.C SHELL .012 And while you are at it, you may as well fit the SKEG to the HULL component in order to eliminate the overlap caused by adding the shell. FIT HULL.C /
8 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
If you had put the shell on before the tank was fit to the hull, the results would have been the same. Part Maker knows whether there is a shell and how thick it is, so it takes that into account when fitting tanks. It is recommended, however, that you fit the tanks before adding the shell, since the FIT process requires less processing when no shell is present. Like camber, shell thickness can be replaced simply by doing another MODIFY with a different shell thickness value. When you are all done and finished, your display and file should look like this:
We hope this tutorial has been helpful in getting you started using Part Maker. It is a very powerful, yet easy program to use. You can access information on additional commands and the program via the 'HELP PM' command using the GHS prompt, or look in the User's Manual.
9 of 10
11/2/2012 7:30 AM
Making a Model
http://www.ghsport.com/support/tutor/pmtut/pmake.htm
2. Geometry Files
10 of 10
11/2/2012 7:30 AM