2.NAPA Online Manuals 2009
2.NAPA Online Manuals 2009
file:///C:/Napa/man/Man091/html/intro/curves/index.html
An explicitly defined point could be regarded as the smallest element of geometrical definitions. Where useful, a point can be stored as a named object in the database and, for example, used in the definition of curves. Alternatively, the points can be added directly to the curve definitions. This chapter will, however, concentrate on the definition of curves, whereas point objects will be given only a brief presentation.
1 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
In the following example, a curve having its location surface on the XY plane on level Z=0 is created. The curve proceeds from the origin (0, 0) to point (8, 4) through point (4, 2). The curve also has an angle condition at point (4, 2), where it has to leave the point at an angle of 0 degrees. We will concentrate on angles more thoroughly in a later chapter.
The following example consists of two curves with the same shape definition. The difference between the curves is that they have different location surfaces. Curve C1 has a plane location surface at X=-10, whereas C2 has a location surface of cylinder shape on the positive X side. CUR c1 X -10 YZ (2, 5), (3.4, 5.5), (5, 5), (6.6, 4.5), (8, 5) CUR c2 XY (8, 0), (9, 4.8), (11, 8) YZ (2, 5), (3.4, 5.5), (5, 5), (6.6, 4.5), (8, 5)
As can be seen from the examples shown here, a curve is defined by points. Points can be given directly with coordinates as in the previous examples, or they can be defined by adding a reference to an existing curve (the point is the intersection point of the location surface and the existing curve) or by using point objects. For example:
2 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
CUR example3 X, 0 YZ, (1, 1), cur1, (3, 2.5), cur2, cur3, (6, 6) Note that the command UPDATE is needed to update the references of a curve. For example, if the curve CUR1 had been changed in the previous example, the curve EXAMPLE3 should be updated with the command UPD example3
3 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
If points have the same key (ordering) values, the points will be sorted according to the order of appearance.
5.4 Angles
Curves can be defined not only by points but also by angles connected to the points. The following drawings show how angles are interpreted by NAPA. The same applies to all main coordinate planes (XY, XZ and YZ).
Let us now the use of angles. The following curve is defined as: YZ, A, /45, 0/, B, /60, C, ...
This should be interpreted as: 'start from point A at an angle of 45 degrees, then enter point B at an angle of 0 degrees and leave point B at an angle of 60 degrees, then enter point C without any angle condition'. The side on which the slash (/) is located reflects whether the curve is 'leaving' the previous point or 'entering' the next point. For example: A1/, P, /A2 'A1' gives the angle before point P and 'A2' after it. Note carefully: 'before' and 'after' depend on the direction of the curve, which may be different from the order in the record. For example: XY, A, /45, 0/, B, /60, C, D, /-30, E Should be interpreted as: /45 from A at an angle of 45 degrees 0/ to B at an angle of 0 degree /60 from B at an angle of 60 degrees /-30 from D at an angle of -30 degrees
4 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
A special case of the free angle would be a free angle leaving and entering every definition point. In that case it is not necessary to add -/ and /- to every definition point; instead a <> syntax can be used as shown below: XY, <>, A, B, C, D, E, .....
Before moving on to defining curves interactively on a workstation, let us first examine some examples in order to get a better idea of the behaviour of curves. The name of the next curve is 'example1'. It is located on the XY plane at level Z=0; it starts from point (x=15, z=55) and proceeds to point (x=55, z=15). CUR example1 Z, 0 XY, (15, 55), (55, 15)
5 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
CUR example3 Z, 0 XY, (15, 55), 0/, (30, 25), (55, 15)
CUR example4 Z, 0 XY, (15, 55), /-45, (30, 25), (55, 15)
CUR example5 Z, 0 XY, (15, 55), (30, 25), /-, (55, 15)
6 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
CUR example6 Z, 0 XY, (15, 55), -/, (30, 25), /-, (55, 15)
CUR example7 Z, 0 XY, (15, 55), -/, (20, 30), (30, 20), /-, (55, 15)
CUR example8 Z, 0 XY, <> (15, 55), (20, 30), (30, 20), (55, 15)
7 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
CUR example9 Z, 0 XY, * (10, 35), (35, 60), (60, 35), (35, 10), (10, 35)
CUR example10 Z, 0 XY, * (10, 35), /90, (35, 60), /0, (60, 35), /-90, (35, 10), /180, (10, 35), /90
CUR example11 Z, 0 XY, (15, 55), (30, 20), /-, (55, 15)
8 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
CUR example12 Z, 0 YX, (15, 55), (30, 20), /-, (55, 15)
We draw your attention particularly to the difference between examples 11 and 12. The only difference between the definitions is that the shape definition part in example11 begins with XY, while example12 has it in reverse order. The curves, however, look completely different. Alteration of the identifier from XY to YX causes the points to be ordered according to an increasing Y instead of an increasing X. In this case the definition reversed the direction of the curve.
9 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
This is also a typical problem when the flat bottom or the flat side curves refer to the mainframe and to the stem curve or the deck curve. Please see the second example on the next page. CUR XZ CUR YZ CUR ZY stem; y, 0 * frf, -/, (195, 0), 90/, (210, 5.74), 180/, (204, 9), (202.7, 9), (200, 10), /50, (212.5, 25) frblb; x, 201 * 0/, stem/z=#10, -90/, tf1, 180/, stem/Z<5 frf10; x, 201 50/, stem/z>10, 60/, deckf
CUR Y, XZ SC CUR Z, XY SC
fsf 6.5 0/, frf/z=1.8, (65, 2.2), 65/, deckf/x=72 P fbf 0 0/, frf/y=4.7, (65, 4.65), stem/x=80 P
10 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
The above four lines define the main frame. The frame is located at X=50 metres, it has a bilge radius of 2 metres and ends at the deck level at Y=10 and Z=12 metres. Side condition M means that the normal of the surface is perpendicular to direction X. CUR X, YZ SC CUR Y, XZ SC CUR Z, XY SC CUR XZ, XY SC frf 62 (0, 0), -/, (4.7, 0), (6.5, 1.8), /-, (6.5, 11.5) M fsf 6.5 0/, frf/z=1.8, (65, 2.2), 65/, deckf/x=72 P fbf 0 0/, frf/y=4.7, (65, 4.65), stem/x=80 P knf (68, 7.1), (85, 8.5) fsf, -30/, (81, 3.1), -//-
-90/, stem
The above example shows the most common ways of using the side conditions. More alternatives are, however, availabl,e which is demonstrated in the following. If you have no earlier experience of defining geometric objects with NAPA, please skip the following examples as well as the chapter TANGENT FUNCTION, and continue on to the CURVE/CURVE chapter. CUR CUR CUR CUR CUR CUR CUR C1; C2; C3; C4; C5; C6; C7; Z 0; Z 5; Z 10; X 0; X 3; X 7; X 10; XY XY XY YZ YZ YZ YZ (0, (0, (0, C1, C1, C1, C1, 0), 6), 8), C2, C2, C2, C2, (10, 0) (10, 10) (10, 10) C3 C3 C3 C3
In the following we will add a side condition SC *X=0 to curve C1. This side condition means that every curve entering or leaving curve C1 is forced to have an angle of 0 degrees on the YZ plane, i.e. the X-projection. The
11 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
other side condition added is SC *X=90 to curve C3. This consequently means that every curve entering or leaving curve C3 will have to have an angle of 90 degrees. We will also add side conditions SC -//- and -//- - to curve C2. Side condition -//- means that the curve in question is a knuckle curve, i.e. every curve intersecting this curve will have free angle both leaving and entering curve C2. Side condition -//- - means 'a free angle before the curve but no side condition after the curve'. The figures best illustrate the changes caused by side conditions. CUR CUR CUR CUR CUR CUR CUR C1; C2; C3; C4; C5; C6; C7; Z 0; Z 5; Z 10; X 0; X 3; X 7; X 10; XY XY XY YZ YZ YZ YZ (0, (0, (0, C1, C1, C1, C1, 0), 6), 8), C2, C2, C2, C2, (10, 0); (10, 10) (10, 10); C3 C3 C3 C3 SC *X=0 SC *X=90
Z 0; Z 5; Z 10; X 0; X 3; X 7; X 10;
XY XY XY YZ YZ YZ YZ
SC -//-
Z 0; Z 5; Z 10; X 0; X 3; X 7; X 10;
XY XY XY YZ YZ YZ YZ
SC -//-SC *X=90
12 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
C2 (0, 20), (10, 60) C3; C4; C5; C6; C7; Z, X, X, X, X, 10; 0; 3; 7; 10; XY ZY ZY ZY ZY (0, 8), (10, C1, */, C2, C1, */, C2, C1, */, C2, C1, */, C2, 10) C3 C3 C3 C3
Another alternative (and quite usual) method of defining a tangent function is to use previously defined curves. In the next example, we will define a tangent function for a deck by using a couple of previously defined curves. TGF deckf
13 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
XT
frm, -/, fsf, frf8, (175, 63), sn, /-, (190, *Y=53)
In this example, attention needs to be paid to several points. First is the mixed use of explicitly defined angles (175, 63) and references to other curves (such as FRF8). The normal of the surface at the intersection point between curves DECKF and FRF8 is defined by FRF8. Second, a tangent function behaves in the same way as a curve, and it can even be plotted with the command PLOT TGF deckf This explains why free angles entering (-/) and leaving (/-) points can be used in this connection. The first free angle means that the tangent function between FRF and FSF will be a straight line, while the second free angle means the tangent function behaves between FRM and SN as if the SN were the last point in the definition. The third thing of the previous example that should be noted, is that angles can be defined even in projections other than that of a default. The second line in this example begins with XT; thus the default of the following definitions is that the first number inside the brackets stands for the X coordinate and the second number represents the angle in the YZ plane.
Additional useful examples of the use of tangent functions can be found in the chapter on hull definition.
CUR Z XY
14 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
In this example, the second line (Z, STEM/FRF10) means that the location surface is an XY plane at the Z level on which curves STEM and FRF10 have an intersection point. The same syntax on the third line means that the curve is forced to end at STEM, at an angle which is defined by the current normal of the surface.
15 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
Where (0, 1, 2,) is the point x=0, y=1, z=2 P1 is a point object FRA1/TA1 is the intersection point between these two curves FRA/Z=5 is the point on FRA at Z=5 For more information about the XYZ curve, see the explanation text of XYZ at the C> prompt.
5.12 Exercises
16 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
Curve STEM
CUR Y ZX stem 0 frm, -/, (100, 0), (105, 3), 180/, (100, 6), /-, (110,12)
17 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
A new version named PATROL has thus been created. The next step is to define the main curves of the fore and aft bodies. We will begin with the fore body.
18 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
configuration. NOTE: It is not a good idea to minimize the NAPA Main Window, as it still is used for error messages, etc. A suggested configuration, that works quite well, is the following:
19 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
FRAn frames in the aft body (FRA1, FRA2, ...) WLAn waterlines in the aft body (WLA1, WLA2, ...) TAn space curves in aft body (TA1, TA2, ...)
Text Editor: File -> Run For this to work, you will have to be in the correct environment for curve definitions in NAPA, i.e. DEF or DR. When opening the geometry window on the TASK level, the environment will be set to DR. The environment can of course be checked from the prompt in the main window or from the prompt indicator in any window.
Depending on whether the data echo has been set on or off, you will be able to see the commands being echoed in the command input area of the main window. To toggle the data echo, please use: Main Window:-> View -> Data Echo
20 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
To plot the definitions we will use the Geometry Window. In the Geometry window, we will open the surface HULLF by writing the name HULLF in the object combo box or by selecting it. The selection is accomplished by clicking on the open button Geometry Window: File -> Open ... or by selecting 'Open' from the menu:
To see also the definition points (as above), you have to select 'D ' from the '1st id alternative' drop down menu, and draw the picture again by clicking on the 'Draw' button Next we will continue by defining the stem curve into the editor work area. Note that we will also add the definition to the surface definition. cur frf x 15 yz (0 0) -/ (1.8 0) (3 1.2) /- (3 4.4) sc m cur stem y 0 xz frf -/ (27.3 0) (29.2 1) /- (32 4.4) sur hullf thr frf stem ok Run and draw and set the projection to F
21 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
and draw
cur deckf z 4.4 xy frf -/ (22 3) (31.7 0.75) /- 90/ stem sur hullf thr frf stem deckf ok
Next we will add the rest of the border and special curves of the HULLF: cur fsf y 3 xz 0/ frf/z=1.2 deckf/x=22 sc p cur fbf z 0 xy 0/ frf/y=1.8 stem/x=27.3 sc p cur sn xz stem/z=2 /58 deckf/x=31.7 zy stem /85 deckf
sur hullf thr frf stem deckf fsf fbf sn ok Definition points can be chosen by selecting 'D' on the '1st id alternative' drop down menu. To see all reference points, select the 'P' alternative.
22 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
As we have now created the main border curves of the fore body, we can check the HULLF in various projections by choosing from the menu Geometry Window: Projection -> Note that the projection menu is a tear-off-menu which can be separated from the menu by clicking on the dashed top line. The menu-pane can then be placed anywhere on the desktop.
23 of 24
7/11/2012 11:21 AM
file:///C:/Napa/man/Man091/html/intro/curves/index.html
Please note that when choosing Geometry Window: Projection -> Interactive... it is possible to rotate the object using the mouse. Pressing the left button and dragging will rotate the object. Pressing the middle button and dragging will move the object. Clicking on the right button will exit the interactive projection mode. NOTE: While in the interactive projection mode (when the cursor is a cross hair), it is impossible to do any other functions of NAPA.
The definition of a curve can be checked in the Main Window command input area with the command DES {curve}. Points and angles of a curve can be checked with the command LIS {curve}, which shows not only the definition points but also the coordinates and angles of the intersection points. DEF?>des deckf CUR DECKF; Z, 4.4 XY FRF, -/, (22, 3), (31.7, 0.75), /-,
90/, STEM
DEF?>lis deckf LIST OF CURVE: DECKF ************************************** X Y Z T SC 15.000 3.000 4.400 0.00 (M/) 22.000 3.000 0.00 -/ 31.700 0.750 -46.40 /32.000 0.000 -90.00 90/
24 of 24
7/11/2012 11:21 AM