XFLOW commands¶
This chapter describes the commands that are common to all the SHIPFLOW modules: XMESH, XPAN, XBOUND, XGRID and XCHAP. They are needed to set up the input files and to specify which module(s) should be executed.
In addition, the XFLOW commands define the general physical properties of the problem: the initial ship position and speed, the onset flow, the hull type, the propeller geometry, the fluid characteristics and the symmetry. Many XFLOW commands also define appendages and other component grids for XCHAP, such as rudders, shafts, boxes and cylinders.
The XFLOW commands are given in the XFLOW section of the command file, between the XFLOW and END delimiters (see Module section delimiter commands).
Command overview¶
The commands are described in alphabetical order. Grouped by purpose, they are:
| Purpose | Commands |
|---|---|
| Run control, files and output | PROGRAM, TITLE, FILE, PRTOPT, FMREF, OPTIM, RESCALE |
| Hull, position, speed and flow conditions | OFFSETFILE, HULLTYPE, IPOSITION, VSHIP, OSFLOW, TURN, SYMMETRY, FLUID, ROUGHNESS |
| Propeller and propulsion | PROPELLER, SELFPROPULSION, SPAUTO, ITTC78 |
| Appendages and hull features for XCHAP | RUDDER, SHAFT, OPENSHAFT, BRACKET, ENDPLATE, INTERCEPTOR, TUNNEL, VORTEXGEN |
| Other component grids for XCHAP | BOX, ENVBOX, CYLINDER, SPHERE, HYPSURF, WSECTION, ROTBODY, EXTRUSION |
| Adapting, positioning and modifying grids | APPENDAGE, RECESS, KNUCKLE, ASSEMBLY, MCIRCLE, SPLVOLUME, SUBVOLUME, STRETCHING, SUBCURVE |
Each command section starts with a description of what the command does, followed by:
- General form of command: all the keywords of the command.
nstands for an integer,vfor a real value,"c"for a character string and[v1,v2,...]for a vector. Keywords stacked in a column are mutually exclusive alternatives. - Default values: the default values of the keywords.
- Keywords: a table describing each keyword. A name in square brackets, such as [SHIPTYPE], is the group name in the SHIPFLOW GUI. Where the table has a Note column, the number refers to the numbered notes below the table.
- Notes: supplementary remarks, where there are any.
The notation is explained in Manual conventions and the general command syntax in Command syntax rules. SHIPFLOW only uses the first four characters of a command name, so PROP is the same command as PROPELLER, and the syntax check likewise identifies keywords by their first four characters (see Syntax check). This is why a general form sometimes uses a shorter name than the section heading or the keyword table, for example OFFSET for OFFSETFILE or PRIO for PRIORITY.
Module section delimiter commands¶
The following commands mark the beginning and end of the sections of the command file that are specific to the SHIPFLOW modules.
| Commands | Section |
|---|---|
XFLOW / END |
Beginning and end of the XFLOW section |
XMESH / END |
Beginning and end of the XMESH section |
XPAN / END |
Beginning and end of the XPAN section |
XBOUND / END |
Beginning and end of the XBOUND section |
XGRID / END |
Beginning and end of the XGRID section |
XCHAP / END |
Beginning and end of the XCHAP section |
APPENDAGE¶
This command specifies that the object ID is adapted to the grids in ADAPT. ADIR specifies the coordinate direction in which ID is adapted, and ASIDE is the grid face of adaption. To adapt more than one side of a grid, repeat the APPENDAGE command for each side.
General form of command
APPENDAGE ( ID = "c" , ADAPT = ["c"] , ADIR = n ,
START=v , MORPH , DBOX = [v1,v2,v3] ,
ASIDE = i , COSVMIN = v , BCNOSLIP ,
CUT )
Default values
APPENDAGE ( START={0.3 for RUDDER objects on the centerline, otherwise 1 if ASIDE=1 and 0 otherwise.},
DBOX=[0,0,0])
Keywords
| Keyword | Description |
|---|---|
ID |
Specifies that the object with matching ID is an appendage. |
ADAPT |
The grid(s) to which the object is appended (adapted). |
ADIR |
The coordinate direction used for adapting ID. |
ASIDE |
The side(s) that are adapted. Value should be 1 (low side) or 2 (high side). |
COSVMIN |
Minimum of the cosine between the coordinate line and surface normal where the adaption occurs. |
START |
Parametric position from which to start the search for an intersection with the surface to adapt to. 0 means start at the parametric low side, 1 at the parametric high side and 0.5 in the middle. Starting from the opposite side, i.e. 1 when ASIDE=1 and 0 when ASIDE=2, is usually the right thing to do and is the default (except for rudders), but if there are multiple intersections, START can help select the one you want. |
MORPH |
By default, the shape of the adapted grid is not changed; the points are only moved along the grid lines to fit the grid to the chosen surface. If MORPH is given, the shape of the grid is changed instead to fit the surface. This can be useful, for example, for bilge keels. |
DBOX |
Extension of the bounding box used for the MORPH version. This is especially useful for long, thin objects. The purpose is to extend the box so that the base surface to be fitted is completely inside the hull. |
BCNOSLIP |
Force the boundary condition on the adapted surface to NOSLIP, even if a coordinate line failed to intersect the adaption surface. |
CUT |
Allow the adapted and adaption surfaces to cut each other. This is very rarely a good idea. |
ASSEMBLY¶
This command controls the generation of data from the integration of forces on the ship. It also allows positioning of a group of grids to a specified position and orientation or along the normal at a point on the ship hull.
The force and moment for each assembly are logged in the file <id>_FORCELOG, and the averages of the force coefficients are written to the file <id>_FORCEAVERAGE. By default, an assembly is created for each component grid. In <id>_FORCEAVERAGE the forces are written as coefficients using the ship reference area S as given in the file <id>_OUTPUT.
The idea is to group component grids together in an assembly and save the integrated values at the integration times to get a log and/or the final averaged values. The results are printed to tables in tab-separated text files.
The integration surface is the union of boundary cell faces of the component grids in the assembly with boundary condition set to NOSLIP, except for grid faces that are adapted to another grid surface. Those cell faces are instead regarded as belonging to the grid they were adapted to.
The command can also be used to position the specified grids so that they are translated and rotated consistently. For general positioning the parameters TRANSLATE, ROTCENTER, ROTAXIS and ANGLE are used.
For positioning an assembly on the hull, the additional parameters POSGRID, POSDIRECTION, POSREFERENCE, POSORI, INTRAY and POSSHIFT are used. POSORI and INTRAY define a ray. The point POSORI should be inside the hull and the direction ROTAXIS should point out of the hull. The program will find the intersection of the ray and the hull and transform the assembly so that its local coordinate system origin is at the intersection point and the vector POSDIRECTION in the assembly coordinate system is aligned with the hull surface normal. POSREFERENCE is a reference vector for the rotation of the assembly around the normal vector. The default value usually does not need to be changed. Finally, POSSHIFT translates the object in the positive direction of ROTAXIS. As an example, the following commands
rudder ( id="fin1", s=[0,1], c=[3,2], section=["NACA4412"],
xle=[1,0], origin=[0,0,0], span=5, angle=0, tp2r )
append ( id="fin1", adapt=["Xgrid"], adir=3, aside=1 )
assembly ( id="fin1a", grids=["fin1"], posori=[9,0,3], intray=[0,1,0],
posref=[1,0,0.3], posshift=-0.2 )
give the result shown in the figure below. The APPEND (APPENDAGE) command is not necessary for positioning with ASSEMBLY, but it illustrates the need to move the RUDDER object into the hull with POSSHIFT so that it can be adapted. Positioning changes made in the object's own command, such as CANT, TILT and ANGLE for RUDDER, are preserved.
The function of POSREFERENCE is somewhat complicated. Before the transformation, the design (offset) and assembly coordinate systems coincide, and POSREFERENCE and POSDIRECTION define a plane. In addition to aligning the assembly with the normal vector, the assembly is rotated so that the reference vector lies in this plane. If POSREFERENCE is parallel to the undisturbed flow direction, the assembly therefore has the same angle of attack after the transformation as before.
For an assembly of more than one grid, the ASSEMBLY parameters ROTCENTER, ROTAXIS and ANGLE can similarly be used to adjust the position.
General form of command
ASSEMBLY ( ID = "c" , GRIDS = ["c1",...] , GROUP = n ,
TRANS = [v1,v2,v3] , ROTAX = [v1,v2,v3] , ROTC = [v1,v2,v3] ,
ANGLE = v , SCALE = v , POSGRID = "c" ,
POSDIR = [v1,v2,v3] , POSREF = [v1,v2,v3] , POSORI = [v1,v2,v3] ,
INTRAY = [v1,v2,v3] , POSSHIFT = v ,
INTDIR = i , INTSIDE = i , AREF = v )
Default values
ASSEMBLY ( TRANS=[0,0,0], ROTAX=[0,0,-1], ROTC=TRANS, ANGLE=0, SCALE=1,
POSDIR=[0,0,-1], POSREF=[1,0,0], POSORI=[0,0,0], INTRAY=[0,1,0],
POSSHIFT=0, INTDIR=1, INTSIDE=1)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the assembly a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
GRIDS |
Names of the component grids in the assembly. The _1 suffix should not be given in the name; local refinements will be included. |
GROUP |
Alternative to GRIDS: all grids with a group number equal to GROUP will be included in the assembly. |
TRANS |
Translation vector for the assembly. Specified in the design (offset) coordinate system. |
ROTAX |
Direction of the axis of rotation. Specified in the design (offset) coordinate system. |
ROTC |
Centre of rotation. Specified in the design (offset) coordinate system. |
ANGLE |
Angle of rotation in degrees. Clockwise as seen along ROTAX. |
SCALE |
Scale factor for the assembly. |
POSGRID |
Name of the grid to position the assembly on. If this parameter is present, TRANSLATION and ROTAXIS are interpreted as a ray for finding an intersection point where the assembly is positioned and aligned with the surface normal. |
INTDIR |
Integer that specifies the parameter direction of the grid POSGRID to use. Values can be 1..3. |
INTSIDE |
Integer that specifies which side of the grid POSGRID to use. Values can be 1..2. |
POSDIR |
Vector in the assembly coordinate system that will be aligned with the hull normal vector. |
POSREF |
Reference vector for rotation around the hull normal vector, given in the design (offset) coordinate system. See the explanation above. |
POSORI |
Origin of the ray intersecting the hull. |
INTRAY |
Direction of the ray intersecting the hull. |
POSSHIFT |
The assembly is shifted this distance in the direction of ROTAXIS. |
AREF |
Reference area for the assembly. |
BOX¶
Creates a rectilinear grid for XCHAP, which can be used as a tunnel into which other objects, such as rudders or shafts, are inserted. The grid is stretched towards NOSLIP boundaries (unless this has been switched off with the XCHAP:CONTROL:NOSTRETCH keyword) to get a y+ value of approximately 1 for the first grid node. The stretching cannot be done for opposing NOSLIP boundaries, and doing it for more than one side may cause stability problems for the solver.
No transformations are applied to the box.
General form of command
BOX ( ID = "c" , LOW = [v1,v2,v3] , HIGH = [v1,v2,v3] ,
DIMENSION = [v1,v2,v3] , BC11 = "c" , BC12 = "c" ,
BC21 = "c" , BC22 = "c" , BC31 = "c" ,
BC32 = "c" , GROUP = n , NOTRIM ,
NOTFM , PRIO = n , TRANS = [v1,v2,v3] ,
ROTATE = [v1,v2,v3] , SKEW = v , BVEL = [v1,v2,v3] ,
SCALE = v )
Default values
BOX ( ID="Box", LOW=[0,0,0], HIGH=[1,1,1], DIMENSION=[4,4,4], BC11="INFLOW",
BC12="OUTFLOW", BC21="NOSLIP", BC22="SLIP", BC31="SLIP", BC32="SLIP",
PRIO=-1, TRANS=[0,0,0], ROTATE=[0,0,0], SKEW=[0,0,0], BVEL=[0,0,0],
SCALE=1)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the box a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different grids may have the same name, but then only the total force on all of those objects will be calculated and output. |
LOW |
x,y,z coordinates of the first corner of the box. |
HIGH |
x,y,z coordinates of the second corner of the box. For every component it must be true that LOW < HIGH. |
DIMENSION |
Number of grid nodes along the x,y,z axes respectively. |
BC11 |
Specify the boundary condition on side l=1 of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Specify the boundary condition on side l=L of the grid. |
BC21 |
Specify the boundary condition on side m=1 of the grid. |
BC22 |
Specify the boundary condition on side m=M of the grid. |
BC31 |
Specify the boundary condition on side n=1 of the grid. |
BC32 |
Specify the boundary condition on side n=N of the grid. |
GROUP |
Group number in the overlapping grid algorithm. If not specified, the grid will be the only grid in the group. |
NOTRIM |
Trim rotation will not be applied to the box grid. This is typically used when you define the whole water domain with the box grid. |
NOTFM |
No transformations are applied to the box; it appears in the computational coordinate system as specified in the command. |
PRIO |
Set the classification priority for the box grid. |
TRANS |
Translation vector for the box. Specified in the design (offset) coordinate system. |
ROTATE |
Rotation given in Euler angles of the morphed grid. Unit is degrees. |
SKEW |
Skew the grid in the x, y and z directions. |
BVEL |
Velocity applied on NOSLIP boundaries. The most likely use case is to avoid (or create) a boundary layer by specifying a velocity tangential to the surface. |
SCALE |
Scale factor for the box grid. |
BRACKET¶
This command adds a bracket (strut) to the ship geometry in XCHAP. The command may be repeated to add more brackets. The geometry is specified in a bracket-fixed coordinate system according to the figure below.
The bracket position and orientation in the offset file coordinate system are given as two points, the start and end points of the bracket, and a rotation about the bracket's z-axis.
The section of the bracket is given as a set of points specified in an offset file. The file format is simple: each line contains the x and y coordinates of a point, separated by whitespace (spaces and/or tabs). The points should be ordered starting at the trailing edge, going forward on the upper side, around the leading edge and back on the lower side to the trailing edge, i.e. the last point must be the same as the first. The trailing edge must be at a point (x>0, 0) and the leading edge at (0,0). If the section is symmetrical about y=0 it is sufficient to give the points from the trailing edge to and including the point on the leading edge. Several symmetrical and non-symmetrical wing sections are supplied in the SHIPFLOW installation.
Except at the trailing edge, the program tries to fit a smooth curve to the set of points in the offset file. This is done with a Theodorsen-Garrick transform, which is a conformal mapping technique. The obtained mapping is also used to make 2D grids for uniformly spaced stations of constant z.
When the bracket grid is added to the overlapping grid that describes the complete geometry, it goes through the transformation to the SHIPFLOW computational coordinate system, including scaling by 1/LPP, sinkage and trim.
Since the bracket surface is not closed at either end, the bracket must intersect other boundary surfaces at both ends. A typical situation is that one end of the bracket sticks into the hull and the other into the supported structure, such as the propeller shaft. The curves at the ends of the bracket must be completely outside of the fluid domain.
General form of command
BRACKET ( ID = "c" , FROM = [v1,v2,v3] , TO = [v1,v2,v3] ,
ANGLE = v , S = [v1,v2,...,vn] , C = [v1,v2,...,vn] ,
SECTION = ["c"] , XLE = [v1,v2,...,vn] , T = [v1,v2,...,vn] ,
BC22 = "c" , OGRID ,
RMAX = v , GROUP = n , TWIST = [v1,v2,...,vn] ,
BC31 = "c" , BC32 = "c" , DIMENSION = [v1,v2,v3] ,
YTARGET = v , TGTRANS , EXTFROM = v ,
HYPWSECT EXTTO = v
HYPPT
GROW = v , DTAU = v , NITER ,
TP1O , TP2O , DN = v ,
TP1R TP2R
TP1F TP2F
SCALE = v , STRETCH = v , PRIO = n ,
STR1 = "c" )
Default values
BRACKET( ID = "Bracket", ANGLE = 0, SECTION = "", XLE = C*0.25, TWIST=[],
RMAX=1, TP1O, TP2O, SCALE=1, STRETCH=1, PRIO=-1)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the bracket object a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. |
FROM |
The starting point of the bracket. |
TO |
The ending point of the bracket. |
ANGLE |
Bracket rotation angle in degrees. The axis of rotation is the z-axis in the bracket coordinate system. |
S |
Bracket section stations along the z-axis, non-dimensionalized by bracket length. s=0 corresponds to the starting point and s=1 to the ending point. The first value should always be 0 and the last 1. |
C |
Bracket chord lengths. The length of this vector must be equal to the length of S. |
XLE |
Distance from the leading edge to the z-axis for each station. Positive numbers place the leading edge on the negative side of the axis. The length of this vector, if given, must be equal to the length of S. If not given, the default value 0.25*C is used. |
T |
Bracket thickness. The length of this vector must be equal to the length of S. |
TWIST |
Rotation of each section in degrees around the z-axis. The length of this vector, if given, must be equal to the length of S. If not given, the default value 0 is used for each station. |
SECTION |
The name of a file containing offsets for a 2D section. See above for a description of the file format. If an empty string is given, the NACA0012 section is used. |
TP1O |
The bracket is open at the first station. |
TP1R |
The bracket is closed with a rounded tip at the first station. |
TP1F |
The bracket is closed with a flat (square) tip at the first station. |
TP2O |
The bracket is open at the last station. |
TP2R |
The bracket is closed with a rounded tip at the last station. |
TP2F |
The bracket is closed with a flat (square) tip at the last station. |
RMAX |
Change the position of the outer surface of the grid. RMAX>1 increases the distance from the bracket to the outer surface and vice versa. |
GROUP |
Group number in the overlapping grid algorithm. If not specified, the grid will be the only grid in the group. |
BC22 |
Specify the boundary condition at the outer radius of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC31 |
Specify the boundary condition at the start of the bracket grid. |
BC32 |
Specify the boundary condition at the end of the bracket grid. |
DIMENSION |
Number of grid nodes in the circumferential, radial and axial directions, respectively. |
YTARGET |
y+ target value at noslip boundaries. |
TGTRANS |
Use the Theodorsen-Garrick transform. Gives high quality orthogonal planar grids for normal wing sections. |
HYPWSECT |
Use the 2D hyperbolic grid generator. The same format of offset file used by TGTRANS is used to specify the starting curve. This generator can handle more arbitrarily shaped sections than TGTRANS. |
HYPPT |
Use the 2D hyperbolic grid generator. The same format of offset file used by TGTRANS but with an additional point type column is used to specify the starting curve. This generator can handle more arbitrarily shaped sections than TGTRANS. |
OGRID |
A zero-thickness section at the trailing edge will be interpreted by HYPWSECT and HYPPT as a C-type grid. If this is not correct, OGRID forces the generation of an O-type grid. |
GROW |
[HYPSECT only] Growth factor in the normal direction. |
DTAU |
[HYPSECT only] Artificial time step for solving the hyperbolic equations. Lower the value to increase stability. |
NITER |
[HYPSECT only] Maximum number of iterations for solving the hyperbolic equations. May need to be increased if DTAU is decreased. |
DN |
[HYPSECT only] Thickness of the first layer of cells. DN is relative to the chord length. |
EXTFROM |
Extension distance from the starting point. |
EXTTO |
Extension distance from the end point. |
SCALE |
Scale factor for the bracket. |
STRETCH |
[HYPSECT only] Stretch factor towards regions with high curvature. Higher value gives stronger concentration. |
PRIO |
Set the classification priority for the bracket grid. Should be >0. |
STR1 |
Stretching function in the chord-wise direction. The value should be the ID of a STRETCHING command. |
CYLINDER¶
Creates a right circular cylindrical grid for XCHAP. The grid is stretched towards NOSLIP boundaries (unless this has been switched off with the XCHAP:CONTROL:NOSTRETCH keyword) to get a y+ value of approximately 1 for the first grid node.
The CYLINDER geometry is specified in the offset coordinate system, and the same transformations that are applied to the hull are applied to the cylinder.
To make an interior grid that can be used as a thruster tunnel, set the minimum radius to 0, the maximum radius to the desired value and then BC12 to NOSLIP.
General form of command
CYLINDER ( ID = "c" , FROM = [v1,v2,v3] , TO = [v1,v2,v3] ,
R = [v1,v2] , DIMENSION = [v1,v2,v3] , GROUP = n ,
BC11 = "c" , BC12 = "c" , BC31 = "c" ,
BC32 = "c" , NOCUT , ANGLE = [v1,v2] ,
SKEW = v , ANGROT = v )
Default values
CYLINDER ( ID="Cylinder", FROM=[0,0,0], TO=[0,1,0], DIMENSION=[10,20,20],
BC11="NOSLIP", BC12="INTERIOR", BC31="SLIP", BC32="SLIP",
ANGLE=[0,360], SKEW=0, ANGROT=0)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the cylinder a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different grids may have the same name, but then only the total force on all of those objects will be calculated and output. |
FROM |
Start point of the axis of the cylinder. |
TO |
End point of the axis of the cylinder. |
DIMENSION |
Number of grid nodes. Dimension 1 is radial, dimension 2 is circumferential and dimension 3 is axial. |
BC11 |
Specify the boundary condition on side l=1 of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Specify the boundary condition on side l=L of the grid. |
BC31 |
Specify the boundary condition on side n=1 of the grid. |
BC32 |
Specify the boundary condition on side n=N of the grid. |
GROUP |
Group number in the overlapping grid algorithm. If not specified, the grid will be the only grid in the group. |
NOCUT |
The physical boundaries will not cut holes in other grids. |
ANGLE |
Start and end angles. Default is [0, 360], which is a closed cylinder. |
SKEW |
Tangential skew. Used mainly to test discretization. |
ANGROT |
Rotation angle around the cylinder axis. |
ENDPLATE¶
This command makes an endplate on a RUDDER object. Given a rudder object ID and a curve representing the contour of the plate, grids are generated that conform to both the rudder tip and the plate.
The contour is either given in the command with the XPLATE, YPLATE and PTYPE parameters or imported from an offset file with the SECTION parameter. If the latter option is used, the file should be in the wing section offset format specified for the WSECTION command. The size of the contour is assumed to be normalized by the chord length of the rudder at the tip where the endplate is fitted. If needed, the size can be adjusted with the SCALE parameter and the chordwise position with XPOS. The rudder tip contour must be completely enclosed by the endplate contour.
General form of command
ENDPLATE ( ID = "c" , RUDDER = "c" , XPOS = v ,
SIDE= i , THICKNESS = v , SECTION = "c" ,
XPLATE = [v1,...] , YPLATE = [v1,...] , PTYPE = [i1,...] ,
GROW = v , DN = v , DSPAN = v ,
DTHICK = v , BTHICK = v , DIME = [i1,i2,i3] ,
YTARG = v , SCALE = v , GROUP = i ,
PRIO = i )
Default values
ENDPLATE ( XPOS=0, SIDE=0, PRIO=10, THICKNESS=0.03, GROW=1.05, DN= -0.001,
DSPAN=0.05, DTHICK=0.1, BTHICK=0.1, DIME=, YTARG=1, SCALE=1, GROUP=10,
PRIO=10)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the endplate a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
RUDDER |
Name of the associated RUDDER object. The position and direction of the endplate are derived from values in RUDDER. |
XPOS |
Translation of the endplate along the rudder chord line. Positive towards the leading edge. |
SIDE |
Specify which end of the rudder the endplate is fitted to. 0 → root and 1 → tip. |
THICKNESS |
Thickness of the plate in the rudder coordinate system. |
SECTION |
Name of the offset file for the endplate contour curve. The file should be in the wing section offset format specified for the WSECTION command. |
XPLATE |
List of x-coordinate values for the contour curve. Do not use this if the contour is specified with SECTION. |
YPLATE |
List of y-coordinate values for the contour curve. Do not use this if the contour is specified with SECTION. |
PTYPE |
List of point types for the contour curve, 0 → smooth and 1 → corner. Do not use this if the contour is specified with SECTION. |
GROW |
Growth rate for the hyperbolic grid generator used for the grid outside the contour. |
DN |
Initial cell thickness for the hyperbolic grid generator used for the grid outside the contour. The value is negative due to the orientation of the contour curve. |
DSPAN |
Spanwise thickness of the grid on the inside of the endplate. This value is given in the spanwise parameter of the rudder, so 1 means cover the whole rudder. |
DTHICK |
Normal thickness of the grid on the inside of the endplate. This value is given in the normal parameter of the rudder, so 1 means from the rudder surface to the outer surface of the rudder grid. This value should be chosen so that the curve is approximately the same distance from the rudder surface as the endplate contour. |
BTHICK |
Thickness of the outside (bottom) grid, given in the rudder coordinate system. |
DIMENSIONS |
Dimensions of the grids: the first component is along the contour, the second out from the contour and the third spanwise. |
YTARG |
Target y+ for the grids. |
SCALE |
Scale factor for the endplate. The endplate is automatically scaled by the rudder chord at the selected end and that scale factor is then multiplied by SCALE. |
GROUP |
Set the group number for the endplate grids. |
PRIO |
Set the classification priority for the endplate grids. |
ENVBOX¶
When this command is present, the grid generated by XGRID is shrunk and embedded in a BOX grid. Use this command for VOF cases with a drift angle (OSFLOW) and/or a turn radius (TURN). For such cases the hull grid is rotated by the angle specified in OSFLOW, rather than rotating the onset flow. In general, cases with a VOF free surface and an OSFLOW angle and/or a TURN radius will not work without this command.
ENVBOX replaces the computational domain filled by the XGRID grid. It does this by reading and modifying the parameters in the XGRID module and generating an XFLOW:BOX command. Parameters in the XFLOW:HULLTYPE and XCHAP:VOF commands are also used. The modified module and command can be read in the generated command file <id>_RUN_DIR/<id>. The parameter values taken over in this way can be overridden by setting values directly in the ENVBOX command.
For VOF cases, the BOX grid is automatically stretched towards the undisturbed position of the free surface, as specified by XCHAP:VOF:Z0.
General form of command
ENVBOX ( ID = "c" , XSTART = v , XEND = v ,
YWIDTH = v , ZBOTTOM = v , ZTOP = v ,
DIMENSION = [v1,v2,v3] , BC11 = "c" , BC12 = "c" ,
BC21 = "c" , BC22 = "c" , BC31 = "c" ,
BC32 = "c" , GROUP = n )
Default values
ENVBOX ( ID="EnvBox", XSTART from XGRID, XEND from XGRID, YWIDTH from XGRID,
ZBOTTOM from XGRID, ZTOP from XFLOW|OFFSET, DIMENSION from XGRID,
BC11="INFLOW", BC12="OUTFLOW" or "TOPOUT", BC21="SLIP", BC22="SLIP",
BC31="SLIP", BC32="SLIP" or "TOP")
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the envbox a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different grids may have the same name, but then only the total force on all of those objects will be calculated and output. |
XSTART |
Position in the SHIPFLOW computational system of the inflow (upstream) grid face. |
XEND |
Position in the SHIPFLOW computational system of the outflow (downstream) grid face. |
YWIDTH |
Y-direction half width of the box in the SHIPFLOW computational system. For symmetric cases the extent of the box is [-YWIDTH..0] and for unsymmetric cases [-YWIDTH..YWIDTH]. The default value is XGRID:RADIUS:RADIUS. |
ZBOTTOM |
Position in the SHIPFLOW computational system of the lower grid face. The default value is -YWIDTH. |
ZTOP |
Position in the SHIPFLOW computational system of the upper grid face. The default value is 0 for double model cases and XFLOW:OFFSET:ZTOP for VOF cases. |
DIMENSION |
Number of grid nodes along the x,y,z axes respectively. |
BC11 |
Specify the boundary condition on side l=1 of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Specify the boundary condition on side l=L of the grid. |
BC21 |
Specify the boundary condition on side m=1 of the grid. |
BC22 |
Specify the boundary condition on side m=M of the grid. |
BC31 |
Specify the boundary condition on side n=1 of the grid. |
BC32 |
Specify the boundary condition on side n=N of the grid. |
GROUP |
Group number in the overlapping grid algorithm. If not specified, the grid will be the only grid in the group. |
EXTRUSION¶
This command creates a volume grid by extruding a 2D grid in the z-direction.
General form of command
EXTRUSION ( ID = "c" , SECT = "c" , SCALE = v ,
TRANSLAT = [v1,v2,v3] , DIR = [v1,v2,v3] , DIM3 = n ,
YTARGET = v , ANGLE = v )
Default values
ROTBODY ( ID="Rotbody", SCALE=1, TRANSLATE=[0,0,0],
DIR=[1,0,0], DIM3=20, YTARGET = 1.0,
ANGLE=360 )
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the extrusion a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. |
SECTION |
Name of the 2D grid to extrude. If not overridden, the dimensions and boundary conditions are carried over to the 3D grid. |
SCALE |
Scale the grid. |
TRANSLATE |
Position of the local coordinate system origin in the offset file (ship) coordinate system. |
DIR |
Direction of the x-axis in the offset file coordinate system. |
DIM3 |
Number of grid planes generated by the rotation. |
YTARGET |
Sets the target value for y+. |
ANGLE |
Sets the rotation angle for the object. |
FILE¶
This command can be used to override the naming conventions for some of the files used by XPAN, XGRID and XCHAP.
General form of command
Default values
FILE ( PROFILES = id_XVPROF, MEASUREMENT = id_XVMEAS, GEOMETRY = id_XVGRID,
XBOUND = id_XBDB, XPAN = id_XPDB )
where id is the name of the command file.
Keywords
| Keyword | Description |
|---|---|
PROFILES |
File containing profiles of velocity and turbulent quantities at the inlet plane and velocity and pressure at the outer boundary. |
MEAS |
File containing boundary layer data at the inlet station for profile calculation. |
GEOMETRY |
File containing the coordinates generated by XGRID. |
XBOUND |
Database file containing results from XBOUND. |
XPAN |
Database file containing results from XPAN. To be used for restart and to transfer data to XBOUND and XCHAP. |
FLUID¶
This command is used to specify the fluid properties and the gravity.
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | DENSITY |
Density of the fluid [kg/m3]. |
| (2) | VISCOSITY |
Kinematic viscosity of the fluid [m2/s]. |
| (3) | GRAVITY |
Gravitational acceleration [m/s2]. |
TEMP |
Water temperature in degrees Celsius. Gives the default values for density and viscosity. | |
SEA |
Sea water. | |
FRESH |
Fresh water. |
Notes
- The default density is the density of sea water at 15 °C. It is only used to calculate forces for output.
- The default viscosity is the viscosity of sea water at 15 °C. It is used to convert the speed to a Reynolds number.
- Standard gravitational acceleration, used to convert the speed to a Froude number.
FMREF¶
This command is used to specify the ship dimensions for an additional output of the non-dimensionalized integrated forces and moments. The data is written to id_INTEGRALS.
General form of command
Default values
None
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | LENGTH |
Length of ship used for non-dimensionalisation only. |
| (1) | DRAFT |
Draught of ship used for non-dimensionalisation only. |
| (1) | BEAM |
Beam of ship used for non-dimensionalisation only. |
| (2) | XTRA |
Longitudinal position of the transformed coordinate system. Hence XTRA=0 is at FP and XTRA=1 is at AP. |
Notes
-
Computational forces and moments are non-dimensionalised in the following way:
\[ X' = \frac{2X}{\rho V^2 L_{PP} T} \qquad Y' = \frac{2Y}{\rho V^2 L_{PP} T} \qquad Z' = \frac{2Z}{\rho V^2 L_{PP} B} \]\[ K' = \frac{2K}{\rho V^2 L_{PP} T^2} \qquad M' = \frac{2M}{\rho V^2 L_{PP}^2 B} \qquad N' = \frac{2N}{\rho V^2 L_{PP}^2 T} \] -
The center of reference for the moments is at the intersection of the waterplane and the center plane, at position
XTRAfrom the forward perpendicular. The x-axis points forward, the y-axis to starboard and the z-axis down.
HULLTYPE¶
This command helps XMESH, XPAN and XGRID carry out the grid generation for different types of hulls. This command is also where the information for the Standard Case mode is to be specified. See Standard Cases. The Standard Case mode is triggered by the presence of the keyword H1GR.
General form of command
HULLTYPE ( MONO , NOFSFLOW , XMAUTO ,
CATAMARAN FSFLOW XMMANU
SUBMARINE VFSFLOW
TRIMARAN
TWINSKEG
YACHT
POW
H1GR = "c" , H2GR = "c" , H3GR = "c" ,
FBGR = "c" , OGRP = "c" , ABGR = "c" ,
H1GI = "c" , H2GI = "c" , H3GI = "c" ,
OGRI = "c" , ABGI = "c" , FBGI = "c" ,
H1GO = "c" , H2GO = "c" , H3GO = "c" ,
OGRO = "c" , ABGO = "c" , FBGO = "c" ,
BDENS = v , FDENS = v , NOWSING ,
WSING
WSDY = v , XWLP = v ,
NOKSINGCORR , TRXDIR , COARSE ,
TRXYZDIR MEDIUM
TRHBUT FINE
TRANSOM , WTRANSOM , VOF )
NOWTRANSOM
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | MONO |
[SHIPTYPE] XGRID will generate a grid that is a quarter of a circular cylinder. XPAN will assume a surface piercing mono hull configuration. A wave profile plot is generated for the read macro. |
CATAMARAN |
[SHIPTYPE] XMESH and XPAN will assume a catamaran configuration. | |
TRIMARAN |
[SHIPTYPE] XMESH and XPAN will assume a trimaran configuration. | |
SUBMARINE |
[SHIPTYPE] XGRID will generate a grid that is half of a cylinder. XMESH and XPAN will assume a fully submerged body. | |
XMAUTO |
[MESHMOD] Automatic mesh generation in XMESH/XPAN. Requires offset group specification in HULLTYPE. Replaces “Standard case”. |
|
XMMANU |
[MESHMOD] Manual mesh generation in XMESH/XPAN. Requires full description of panelization in XMESH section. Replaces “Normal input mode”. | |
| (2) | TWINSKEG |
[SHIPTYPE] XGRID will generate a grid for the twin skeg hull type. |
| (3) | YACHT |
[SHIPTYPE] XMESH and XPAN will assume a sailing yacht configuration. The panelization at the stern on the free-surface for heeled sailing yachts will be influenced. |
| (4) | POW |
[SHIPTYPE] Run Propeller Open Water calculations. This keyword will override most commands in the command file and just use a few. Propeller geometry in XFLOW:PROPELLER and the corresponding propeller model in XCHAP need to be set. |
H1GR |
Character string that gives the label of the offset group for hull group number one when the Standard Case mode is used. | |
H2GR |
Character string that gives the label of the offset group for hull group number two when the Standard Case mode is used. | |
H3GR |
Character string that gives the label of the offset group for hull group number three when the Standard Case mode is used. | |
OGRP |
Character string that gives the label of the offset group for the stern overhang when the Standard Case mode is used. | |
FBGR |
Character string that gives the label of the offset group for the fore bulb when the Standard Case mode is used. | |
ABGR |
Character string that gives the label of the offset group for the aft bulb when the Standard Case mode is used. | |
| (2) | H1GI |
Name of an offset group that describes the inner part of the main hull. |
| (2) | H2GI |
Second offset group that describes the inner part of the main hull. |
| (2) | H3GI |
Third offset group that describes the inner part of the main hull. |
| (2) | OGRI |
Name of offset group that describes the inner part of the overhang in the stern. |
| (2) | ABGI |
Name of offset group that describes the inner part of the stern bulb. |
| (2) | FBGI |
Name of offset group that describes the inner part of the bulb. |
| (2) | H1GO |
Name of an offset group that describes the outer part of the main hull. |
| (2) | H2GO |
Second offset group that describes the outer part of the main hull. |
| (2) | H3GO |
Third offset group that describes the outer part of the main hull. |
| (2) | OGRO |
Name of offset group that describes the outer part of the overhang in the stern. |
| (2) | ABGO |
Name of offset group that describes the outer part of the stern bulb. |
| (2) | FBGO |
Name of offset group that describes the outer part of the bulb. |
FSFLOW |
Specifies that a free-surface is included in the potential flow computation when the Standard Case mode is used. | |
NOFSFLOW |
Specifies that a free-surface is not included in the potential flow computation when the Standard Case mode is used. | |
VFSFLOW |
Specifies that the viscous flow should be calculated under the prescribed free-surface computed by XPAN. It implies that FSFLOW is set. XGRID will fit the grid to the free-surface computed by XPAN using linear or non-linear boundary conditions. Supported by XCHAP. |
|
| (5) | TRANSOM |
Specifies that a transom stern case is to be computed in the potential flow solution when the Standard Case mode is used. |
WTRANSOM |
Wet transom block in XGRID. Supported by XCHAP. On by default with VOF. |
|
NOWTRANSOM |
No wet transom block in XGRID, also with VOF. |
|
BDENS |
XMESH panel density factor for the H1GR, H2GR, H3GR, OGRP, FBGR and ABGR groups when the Automatic mode is used. |
|
FDENS |
XMESH panel density factor for the free-surface and transom groups when the Automatic mode is used. | |
| (6) | NOWSING |
[SINGULARITY] XGRID will create a grid without a singularity line in the water-line plane. |
WSING |
[SINGULARITY] XGRID will create a grid with a singularity line in the water-line plane. | |
WSDY |
[SINGULARITY] Fraction of the maximum breadth used for the default WSING. |
|
XWLP |
Start of WL projection. | |
| (7) | NOKSINGCORR |
The keel singularity correction is turned off. |
TRXDIR |
[WEDMODE] The wave profile will continue horizontally after the transom. Only used here in Automatic mode. In Manual mode this option can be specified in the TRANSOM group. |
|
TRXYZDIR |
[WEDMODE] The wave profile will follow the slope of the wedge after the transom. Only used here in Automatic mode. In Manual mode this option can be specified in the TRANSOM group. |
|
TRHBUT |
[WEDMODE] The wave profile can take any direction after the transom. Only used here in Automatic mode. In Manual mode this option can be specified in the TRANSOM group. |
|
COARSE |
[XMDENS] Corresponds to BDENS=0.5 and FDENS=0.5. |
|
MEDIUM |
[XMDENS] Corresponds to BDENS=0.8 and FDENS=0.8. |
|
FINE |
[XMDENS] Corresponds to BDENS=1.0 and FDENS=1.0. |
|
VOF |
The Volume of Fluid solver is executed. |
Notes
-
XBOUND assumes for the Standard Case mono-hull that a turbulent boundary layer on panel group
H1GRshould be computed. It automatically creates streamline group number one. Variables can be altered from the default values in the XBOUND data section. More streamline groups can be added manually.XGRID creates a default grid based on the information in
HULLTYPEfor the mono-hull case. Variables can be altered from the default values in the XGRID data section. -
Added support for twin skeg hulls. More information on grid generation for this type of ship can be found in Offset file format for twin skeg hulls.
-
The free-surface downstream of a sailing yacht may be modeled with or without a
TRANSOMgroup, depending on the geometry of the stern. If aTRANSOMgroup is used, it is recommended to extend the hull above the free-surface. See alsoEXPANELon the BODY command in XMESH andZFACTon the CONTROL command in XPAN.For a heeled sailing yacht where both sides of the hull are modeled, it may be necessary to search for two intersections with the free-surface,
TWOINT, on theBODYgroup that goes into the water. TheTRANSOMgroup may be attached to both sides of the yacht, or to one side only if the other side is lifted out of the water in the stern region.The keyword
IBDE= [n1] may be introduced on theFREEgroup attached to the side that goes out of the water, in order to attach theFREEgroup to the second free-surface intersection of theBODYgroup, [n1], on the other side of the hull.The temporary additional draught described above is recommended also for heeled sailing yachts.
The initial draught
ZORImust be changed for heeled yachts in order to have the same displacement as in the upright position. -
The keyword
POWoverrides all of the settings in the command file, except forLPP,XFLOW:PROPELLER,XCHAP:ACTUATOR,XCHAP:LLINE,XCHAP:PPROPandXCHAP:PARALLEL. This means that your regular command file that contains a hull can be used for an open water simulation by just adding the keywordPOW.The propeller grid is put inside a box grid. For each advance coefficient (J) a CGNS file is created (naming convention:
<id>_POW_J<J>.cgns). At the end of the computations a data file is produced which contains a table of J, KT, KQ and Eta_o.The list of advance coefficients that should be computed and the number of iterations per calculation can be modified with the
XCHAP:POWcommand. -
In the longitudinal direction the hull will be cut at the last offset station that has a point below the wavy free-surface. A
TRANSOMgroup will be generated on the free-surface downstream of the transom. TheTRANSOMkeyword can be used for high speed vessels, tunnel sterns and flat overhang sterns. For the latter cases it is recommended to model the hull also above the free-surface.See also
EXPANELon theBODYcommand in XMESH andZFACTon theCONTROLcommand in XPAN. -
XGRID will try to make a singularity line in the free-surface plane starting at the end of the ship if neither
NOWSINGnorWSINGis given. SpecifyingNOWSINGcan be better for ships without a transom or with a small transom. - For ships where the transom block option was used together with the prescribed free surface, a correction of the keel singularity line is active by default to improve the robustness of the grid generation. It is advised to keep this correction active, especially when the stern wave has a large amplitude.
HYPSURF¶
This command creates a hyperbolic two-dimensional grid in XCHAP. The command may be repeated to add more grids.
Hyperbolic grid generation is a technique where a grid is generated by time stepping a hyperbolic equation from a starting curve. Several parameters may be used to control the grid quality. Boundary conditions may be applied at the ends of the starting curve to control the surface shape, but the shape of the outer curve cannot be controlled. This makes the technique especially suited for generating component grids for overlapping grids, since the outer grid boundary does not need to be fitted to any other grid boundary.
The geometry of the starting curve is specified with control points in a local coordinate system, according to the figure above. Each point is given a type, 0 or 1, where 0 means that the curve is smooth and 1 that the curve has a corner (discontinuous derivative). A curve is constructed from the control points using Chaikin subdivision. This subdivision is approximating, like a B-spline, so the curve will in general not pass through the control points, except for the end points and the corner points. The type of the end points is ignored unless the first and last points coincide; the curve is then closed and the point type is taken from the first control point.
The starting curve, or polygon rather, is generated by distributing points approximately equidistantly along the subdivision curve, but grid points are forced to coincide with corner points.
Finally, the surface grid is generated by repeatedly generating new curves from the previous one with the hyperbolic method. The boundary conditions at the ends of the starting curve are specified implicitly by the y-coordinate of the corresponding control point. If it is zero, then the surface follows the x-axis, otherwise the boundary is free.
Limitations
The algorithm is not very good at smoothing the grid in concave corners. Increasing CONCAVE, NSMOOTH or the number of cells along the starting curve (the first dimension) may help. Increasing TSMOOTH can make things worse. Interior corners with angle less than 90 degrees tend to give bad grid quality.
General form of command
HYPSURF ( ID = "c" , X = [v1,v2,...,vn] , Y = [v1,v2,...,vn] ,
PTYPE = [v1,v2,...,vn] , DN = v , GROW = v ,
CAREA = v , STRETCH = v , NITER = n ,
DTAU = v , ,
ORIGIN = [v1,v2] , ANGLE=v , PRESCALE=v ,
SCALE = v , DIME = [v1,v2] , GROUP = n ,
BC11 = "c" , BC12 = "c" , BC21 = "c" ,
BC22 = "c" , YTARGET = v , OFFSET = "c" ,
YSCALE = v , CURVE = "c" , BC1X ,
BC1Y , BC2X , BC2Y )
Default values
HYPSURF( ID="Hypsurf", DN=0.01, GROW=1.1, CAREA=1, STRETCH=0, NITER=5,
ORIGIN=[0,0], SCALE=1, PRESCALE=1, ANGLE=0, DIME=[20,10], GROUP=unique,
BC11="INTERIOR", BC12="INTERIOR", BC21="NOSLIP", BC22="INTERIOR",
YSCALE=1, DTAU=0.5 )
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the hypsurf object a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. |
X |
Vector of x coordinates for the control points. At least 2 values are required. |
Y |
Vector of y coordinates for the control points. Same number of values as X. |
PTYPE |
Vector of control point types. 0 gives a smooth curve and 1 a corner. The end point values are ignored unless the curve is closed, in which case the first value is used. Same number of values as X. |
DN |
Thickness of the first layer of cells. |
GROW |
Growth rate of the cell thickness, typically 1-1.2. |
CAREA |
Area growth factor. Increasing the value makes small cells grow faster. Tends to smooth the grid in concave regions. |
NITER |
Maximum number of iterations for solving the hyperbolic equations. |
DTAU |
Artificial timestep in the update. Default value is 0.5. Lower values typically increase stability, but a larger NITER may be needed to smooth the grid. |
STRETCH |
Stretch factor towards regions with high curvature. Higher value gives stronger concentration. |
ORIGIN |
Translate the surface. |
SCALE |
Scale the surface. |
PRESCALE |
Grid scale factor applied before rotation and translation. |
DIME |
Grid dimensions. The first dimension is along the starting curve. |
GROUP |
Group number used in the overlapping grid algorithm. |
BC11 |
Boundary condition on the edge that starts at the first point of the starting curve. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Boundary condition on the edge that starts at the last point of the starting curve. Possible values same as BC11. |
BC21 |
Boundary condition on the starting curve. Possible values same as BC11. |
BC22 |
Boundary condition on the last generated grid line out from the starting curve. Possible values same as BC11. |
ANGLE |
Rotate the grid around the origin in the clockwise direction. ANGLE should be given in degrees. |
YTARGET |
y+ target value at noslip boundaries. |
OFFSET |
Read x, y, ptype from a text file. |
YSCALE |
Scale factor for the y coordinate. |
CURVE |
Name of a curve object to grow the grid on. |
BC1X |
Grid follows x=const at boundary curve start. |
BC1Y |
Grid follows y=const at boundary curve start. |
BC2X |
Grid follows x=const at boundary curve end. |
BC2Y |
Grid follows y=const at boundary curve end. |
INTERCEPTOR¶
This command generates an interceptor appendage at the transom. The geometry is defined by the width, the depth under the hull and the thickness. The contour of the device is parallel to the transom-hull intersection.
General form of command
INTERCEPTOR ( ID = "c" , WIDTH = v , DEPTH = v ,
THICKNESS = v , YTARGET = v , DIME = [i1,i2,i3] ,
GROW = v , DN = v )
Default values
INTERCEPTOR ( WIDTH=1.0, DEPTH=0.05, THICKNESS=0.01, YTARGET=1, GROW=1.1,
DN=0.001, DIME=[50,35,60])
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the interceptor a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
WIDTH |
Interceptor length measured from the centre plane y=0. Given in design (offset) coordinates. |
DEPTH |
Interceptor height measured from the transom corner vertically to its edge. Given in design (offset) coordinates. |
THICKNESS |
Constant thickness of the interceptor. Given in design (offset) coordinates. |
YTARGET |
Cell thickness given in y+ units. Typically <= 1. |
GROW |
Growth factor for the cell thickness for the grid. See GROW in HYPSURF for more information. |
DN |
Thickness of the first cell layer in the fairing grid. See DN in HYPSURF for more information. |
DIMENSIONS |
Dimensions of the grid. The dimensions are along the section, out from the surface and along the edge, respectively. |
IPOSITION¶
This command is used to specify the initial position of the ship. This makes it possible to use the same offset point coordinates for different roll and trim conditions.
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ROLL |
Roll-angle [°]. | |
| (3) | TRIM |
Trim-angle [°]. |
| (1) | XCOF |
The initial position of the centre of flotation. |
| (2) | XLCG |
Longitudinal position of the centre of gravity. |
| (2) | ZVCG |
Vertical position of the centre of gravity. |
| (3) | TM |
Draught at midship. |
| (3) | TF |
Draught at forward perpendicular. |
| (3) | TA |
Draught at aft perpendicular. |
Notes
XCOFis used to specify the axis for the trim rotation. TheXCOFvalue is only used for the model-fixed option and for the first iteration in the model-free option. TheXCOFvalue is re-computed in the following iterations according to the new sinkage and trim condition when the model is free to move.XCOFmust be specified in the offset coordinate system.XLCGis used for the calculation of the dynamic trim. This value usually does not need to be specified; the program estimatesXLCGby assuming equilibrium in the initial position.ZVCGis normally not used; it only affects the balance when external forces are applied in XPAN.XLCGandZVCGmust be specified in the offset coordinate system.- Use
TRIMandTM, orTFandTA, to set the hull position.
ITTC78¶
This command is used to specify the data needed to extrapolate model scale computations to full scale and do a performance prediction according to the ITTC 78 procedure. The resulting full scale propeller RPM, efficiency, thrust, torque and delivered power are written to the output file.
The prerequisites for using this command are that the SELFPROPULSION command is also given, that a nominal, unpropelled case is computed and that model scale propeller open water (POW) results are available. The POW results may come either from a SHIPFLOW computation (see the XCHAP POW command) or from another source, such as experiments.
General form of command
ITTC78 ( ON , LM = v , LS = v ,
OFF
DS = v , S = v , S_BK = v ,
A_T = v , KS = v , NPOW = v ,
KP = v , RHOS = v , NY_M ,
NY_S , ESD , K_BH = v ,
T_BH = v , W_BH = v )
Default values
ITTC78 (S=[from XPAN], S_BK=0, A_T=0, KS=150, KP=30, RHOS=1025, NPOW=17,
NY_M=1.048e-6, NY_S=1.188e-6, LS=LPP, LM [from REFL, SCALE or RN])
Keywords
| Keyword | Description |
|---|---|
ON |
[ONOFF] Command is switched on. |
OFF |
[ONOFF] Command is switched off. |
LM |
Model reference length [m]. |
LS |
Ship reference length [m]. |
DS |
Ship propeller diameter [m]. |
S |
Ship reference area [m2]. If the default is accepted, LS must be equal to Lpp. |
S_BK |
Area of bilge keels [m2]. |
A_T |
Maximum transverse area above the water line [m2]. |
KS |
Ship surface roughness [µm]. |
NPOW |
Model propeller open water RPS [s-1]. An open water test is normally run with a constant rotational speed. |
KP |
Propeller model surface roughness [µm]. |
RHOS |
Ship water density [kg m-3]. |
NY_M |
Model water kinematic viscosity [m2 s-1]. |
NY_S |
Ship water kinematic viscosity [m2 s-1]. |
ESD |
Case run with an Energy Saving Device. The full scale wake is calculated with a modified ITTC78 method. With ESD set, you also need to set K_BH, T_BH and W_BH, which you get from the OUTPUT files of computations without ESD. |
K_BH |
Form factor from the resistance calculation without ESD. |
T_BH |
Thrust deduction from the self-propulsion calculation without ESD. |
W_BH |
Effective mean wake in model scale (WTM) from the self-propulsion calculation without ESD. |
KNUCKLE¶
This command puts a knuckle in the contour of an object. It is quite specialized and intended to adapt part of a rudder to the hull. It differs from the general APPENDAGE command in that the rudder root should be closed with FLAT and the rudder positioned so that there is a gap between it and the hull. This allows studying the influence of the gap on the rudder lift and drag at different angles.
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
ID |
Name of the grid to modify. |
X0 |
The knuckle starts at X0 and the slope goes in the negative x-direction. |
Z0 |
Knuckle start level. It should coincide with the z-value of the grid surface to be modified. |
Z1 |
Knuckle end level, i.e. where the knuckle ends. |
SLOPE |
Slope of the knuckle. The value 0 means no change. |
SIDE |
Side at which the knuckle is applied. The value 1 means root, the value 2 means tip. |
MCIRCLE¶
This command morphs a volume grid by transforming a line segment into a circular segment. The command has no information about the grid to be transformed, so the user has to specify the two endpoints of a line segment in the grid coordinate system. To specify the transformation, the radius, axis of rotation and start and end angles are given. It is strongly recommended to choose the axis of rotation RAXIS so that it is perpendicular to the line segment PEND-PSTART, as this gives more predictable results.
By default, the source grid is disabled so that it does not appear in the computation. It does, however, remain available as a source for other morphed volumes.
Transformation details:
Let R=RAXIS and O=(PEND+PSTART)/2. Together they define a plane through O with normal vector R. Let L=PEND-PSTART and define a vector D=RxL which, since it is perpendicular to R, lies in the plane. The transformation to the circle is performed in this plane according to the following:
- Transform to the plane so that the new coordinate x' is along the D axis, z' is along the R axis and y' is along RxD. If R is perpendicular to L, L=RxD so that y' is along the user-defined line segment.
- Translate x' → x'+
RADIUS, y' → y'+|L|/2. This puts the start point of the line segment at (RADIUS, 0) in the plane coordinate system. -
Assign the polar coordinates
\[ r = x' \qquad a = {ASTART} + y' \, ({AEND} - {ASTART}) / |L| \] -
Transform x'' = r cos(a), y'' = r sin(a). This transforms from a line in the plane to a circle in the plane.
- Transform (x'', y'', z') back to the coordinate system of the source grid.
If R was chosen perpendicular to L, the points on L are transformed to a circle with r=RADIUS in a plane with normal RAXIS, and the point PSTART goes to the angular position ASTART and PEND goes to AEND. If R and L are not perpendicular, L is projected to the plane and then transformed to the circle.
General form of command
MCIRCLE ( ID = "c" , SOURCE = "c" , RADIUS = v ,
RAXIS = [v1,v2,v3] , ASTART=v , AEND=v ,
PSTART = [v1,v2,v3] , PEND = [v1,v2,v3] , TRANS= [v1,v2,v3] ,
ROTATE = [v1,v2,v3] , KEEPSRC , SCALE=v )
Default values
MCIRCLE ( RADIUS=1, RAXIS=[1,0,0], ASTART=0, AEND=90, PSTART=[0,0,0],
PEND=[0,0,1], TRANS=[0,0,0], ROTATE=[0,0,0], SCALE=1)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the MCIRCLE a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
SOURCE |
Name of the source grid object. This will be disabled unless KEEPSRC is given. More than one morphing command can use the same source. NB: KEEPSRC is disabled in the current release. |
RADIUS |
Radius of the circle. |
RAXIS |
Direction of the axis of rotation (normal to the plane of the circle). The centre position is derived from RADIUS, PSTART and PEND. |
ASTART |
Start angle of the circle. Unit is degrees. |
AEND |
End angle of the circle. Unit is degrees. |
PSTART |
Start point of the line segment to be transformed into the circle. |
PEND |
End point of the line segment to be transformed into the circle. |
TRANS |
Translation vector of the morphed grid. |
ROTATE |
Rotation given in Euler angles of the morphed grid. Unit is degrees. |
SCALE |
Scale factor for the grid. |
KEEPSRC |
Generate the SOURCE grid also. This can be helpful to check that it is OK. |
OFFSETFILE¶
This command is used to give the path to the file that contains the hull geometry (offsets, STL or IGES), to non-dimensionalize the offset points in this file and to specify the origin of the computational coordinate system.
An IGES file is converted to an STL file before the offsets are generated. The conversion is done by a converter based on Open CASCADE Technology (OCCT), whose triangulation is controlled with MAXEDGE or RELMAXEDGE, DEFLECTION or RELDEFLECTION, ANGLE, MAXTRIANGLES, ASCII and PARALLEL. STLLEGACY selects the converter of earlier versions, whose tolerance is set with STLT.
General form of command
OFFSET ( FILE = "c" , LPP = v , XAXDIR = v , YSIGN = v ,
STLF = "c"
IGES = "c"
STLT = v , XORI = v , YORI = v , ZORI = v ,
ZTEM = v , ITTE = n , TOTOL = v , ZTOP = v ,
FFWD = v , FAFT = v , THIN = v , REFI = v ,
BLEN = v , NSTA = n , NORC , UNIF ,
XTWS = v , YTWS = v , ZTWS = v ,
STLLEGACY , MAXEDGE = v , RELMAXEDGE = v ,
DEFLECTION = v , RELDEFLECTION = v , ANGLE = v ,
MAXTRIANGLES = n , ASCII , PARALLEL )
Default values
OFFSETFILE ( LPP = 1.0, XAXDIR = -1.0, YSIGN = 1.0, XORI = LPP, YORI = 0.0,
ZORI = [TM or (TF+TA)/2], ZTEM = 0.0, ITTE = 4, TOTOL = 1e-4,
ZTOP = 0.15LPP, RELMAXEDGE = 0.005, RELDEFLECTION = 0.00001,
ANGLE = 2, MAXTRIANGLES = 50000000, STLT = 0.0001 )
Keywords
| Note | Note Keyword | Description |
|---|---|---|
FILE |
Path to the file that contains the hull offsets. Must be shorter than 256 characters. | |
STLF |
Path to the file that contains the hull geometry in STL format. Must be shorter than 256 characters. If STLF is specified, the hull groups in the HULLTYPE command are set automatically. |
|
IGES |
Path to the file that contains the hull geometry in IGES format. Must be shorter than 256 characters. If IGES is specified, the hull groups in the HULLTYPE command are set automatically. | |
LPP |
LPP is the reference length used to non-dimensionalize the coordinates in the offset file. The reference length is normally specified as the length between perpendiculars of the ship measured in the offset coordinate system but other definitions of the reference length may be used. The Froude number specified in the VSHIP command must be based on the same reference length. |
|
XAXDIR |
The x-axis of the computational coordinate system is pointing from the bow towards the stern. XAXDIR must be set to -1.0 if the x-axis of the offset coordinate system is pointing in the opposite direction. |
|
YSIGN |
YSIGN is used to specify if the y-coordinate of the offset points is input using positive (ysign=1.0) or negative (ysign=-1.0) values. |
|
STLT |
STLT is used to specify the deflection tolerance for IGES surface input with the legacy converter (STLLEGACY). Default value is 0.0001. |
|
STLLEGACY |
Convert an IGES file to STL with the converter of earlier versions instead of the OCCT converter. Only STLT applies to the legacy converter. |
|
MAXEDGE |
[EDGE] Absolute maximum edge length of the STL triangles produced by the OCCT converter, in the units of the IGES file. Mutually exclusive with RELMAXEDGE. |
|
RELMAXEDGE |
[EDGE] Maximum edge length of the STL triangles as a fraction of the diagonal of the bounding box of the IGES geometry. Default 0.005. Mutually exclusive with MAXEDGE. |
|
DEFLECTION |
[DEFL] Absolute chordal deflection of the OCCT converter, i.e. the largest distance allowed between a triangle and the surface, in the units of the IGES file. Mutually exclusive with RELDEFLECTION. |
|
RELDEFLECTION |
[DEFL] Chordal deflection as a fraction of the diagonal of the bounding box of the IGES geometry. Default 0.00001. Mutually exclusive with DEFLECTION. |
|
ANGLE |
Angular deflection of the OCCT converter in degrees, i.e. the largest angle allowed between neighbouring triangles. Default 2. | |
MAXTRIANGLES |
Maximum number of triangles the OCCT converter may write. Default 50000000. | |
ASCII |
Write an ASCII STL file instead of a binary one. | |
PARALLEL |
Let the OCCT converter mesh the surfaces in parallel with one thread per logical processor. Without it the number of threads follows the solver settings. | |
TOTOL |
Tolerance used when creating the twin skeg offset file. | |
| (1) | XORI, YORI, ZORI |
XORI, YORI and ZORI specify the location of the origin of the computational coordinate system in the offset coordinate system. The origin is normally specified at the fore perpendicular. |
| (2) | ZTEMP |
ZTEMP is used to specify an additional draught that is gradually removed during ITTEMP iterations in a non-linear computation. |
| (2) | ITTEMP |
ITTEMP is the number of iterations used to remove the initial extra draught ZTEMP. |
ZTOP |
ZTOP is used to specify the height of the XGRID domain above the undisturbed free surface level for VOF computations. |
|
FFWD |
Freeboard height at the bow. | |
FAFT |
Freeboard height at the stern. | |
BLEN |
Bulb length (STL or IGES to OFFSET converting parameter). |
|
NSTA |
Initial number of stations in the offset file. | |
THIN |
Offset file coarsening after converting from STL or IGES. Input is non-dimensionalized by Lpp. | |
REFI |
Offset file refining after converting from STL or IGES. Input is non-dimensionalized by Lpp. | |
NORC |
Switches off ridge correction for twin skeg hull offset file generation. | |
UNIF |
Uniform distribution of sections in the generated offset file. | |
XTWS |
X-coordinates of the twin skeg contour (3 points) used to define the splitting plane. | |
YTWS |
Y-coordinates of the twin skeg contour (3 points) used to define the splitting plane. | |
ZTWS |
Z-coordinates of the twin skeg contour (3 points) used to define the splitting plane. |
Notes
- It is assumed that the computational coordinate system is located in the undisturbed free surface at the fore perpendicular. The initial draught at the centre of flotation (
XCOF) for the hull is therefore specified byZORI. -
ZTEMPandITTEMPare used to introduce an additional draught that is gradually removed during the firstITTEMPiterations in a non-linear computation. In the first iteration,ZTEMPis added to the original draught specified byZORI. This option can be used to give a shape of the waterline in the first iteration that is similar to the waterline in the final converged solution. The geometry for large flat sterns, tunnel sterns and sailing yachts may be better represented in the first iteration when the additional draught is introduced, and better convergence can be expected. The distanceZTEMPis specified in the same scale as in the offset coordinate system.The longitudinal position of the centre of gravity is estimated at the first iteration. This introduces an error in the calculation of the dynamic trim which can be important to correct for some types of hulls, for example hulls with large flare. In this case, the longitudinal centre of gravity (
XLCG) can be specified in the IPOSITION command. The value can be computed with a separate XPAN run. Note that the reference area will differ whenZTEMPis used, but this only affects the coefficients and can be corrected afterwards.
OPENSHAFT¶
This command generates a propeller shaft with a hull-shaft fairing. The input position and direction of the shaft are taken from an associated PROPELLER, and the shape of the shaft and fairing is given by contour curves. The shaft and fairing are adapted to the hull and partial collar grids represent the shaft-fairing intersection.
The geometry is made with HYPSURF, ROTBODY and EXTRUSION grids, and the adaption and transformation are done with APPENDAGE and ASSEMBLY commands. The documentation of these commands provides more in-depth information.
The shaft is divided into two parts, the second of which intersects the hull and the fairing.
It is important that the partial collars go as far forward as possible while not intersecting the hull. A typical symptom of collar grids that are too short is that the boundary layer thickens too much upstream of the collar grids due to the low fidelity in the shaft-fairing intersection.
The origin of the fairing grid is the lower point of the trailing edge, specified by XTE, YTE and ZTE. It is important to select these parameters and LENFAIRING, the fairing length along the trailing edge, so that the lower edge of the fairing is completely inside the second shaft grid and the upper edge is completely inside the hull. The geometry parameters are shown in the figure below.
General form of command
OPENSHAFT ( ID = "c" , PROP = "c" , XPOS = v ,
YTSHAFT = v , PRIO = i , FROLL = v ,
FYAW = v , FYSCALE = v , FXTWIST = v ,
FTW0ANG = v , FTW1ANG = v ,
XTE = v , YTE = v , ZTE = v ,
XSHAFT = [v1,...] , YSHAFT = [v1,...] , PTSHAFT = [i1,...] ,
XSPLIT = v ,
GRS1 = v , DNS1 = v , DIS1 = [i1,i2,i3] ,
GRS2 = v , DNS2 = v , DIS2 = [i1,i2,i3] ,
XFAIR = [v1,...] , YFAIR = [v1,...] , PTFAIR = [i1,...] ,
GRFAIR = v , DNFAIR = v , DIFAIR = [i1,i2,i3] ,
LENFAIR = v , LENCOLLAR = v , ZCOLLAR = v ,
GRCOLL = v ,
XCO1 = v , XCO2 = v , NOSA ,
COPRIO = i , SHOFF = "c" , FAIOFF = "c" ,
HULL = "c" )
Default values
OPENSHAFT ( XPOS=0, YTSHAFT=0, PRIO=10, FROLL=0, FYAW=0, XTE=0, YTE=0, ZTE=0,
GRS1=1.02, DNS1=0.01, GRS2=1.02, DNS2=0.01, GRFAIR=1.02, DNFAIR=0.01,
HULL="Xgrid")
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the open shaft a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
PROP |
Name of the associated PROPELLER object. The position and direction of the shaft are derived from values in PROP. |
XPOS |
Translation of the shaft along its axis. Positive towards the bow. |
YTSHAFT |
YTARGET parameter for the shaft grids. |
PRIORITY |
PRIORITY parameter for the second shaft grid and the fairing grid. Has to be larger than the hull grid priority (default 0). The collar grids are assigned a priority of PRIORITY+5. |
FROLL |
Roll rotation angle in degrees of the fairing. Positive counter-clockwise seen from the stern. |
FYAW |
Yaw rotation angle in degrees of the fairing. Positive counter-clockwise seen from above. |
FYSCALE |
Fairing scaling in the y-direction. Default is 1, <1 gives a thinner fairing and >1 a thicker one. |
FXTWIST |
X position of the fairing twist axis. Measured from the fairing trailing edge. |
FTW0ANG |
Fairing twist angle at the shaft end. |
FTW1ANG |
Fairing twist angle at the hull end. |
XTE |
X coordinate of the fairing relative to the shaft. |
YTE |
Y coordinate of the fairing relative to the shaft. |
ZTE |
Z coordinate of the fairing relative to the shaft. |
XSHAFT |
X coordinate values for the shaft contour. Start with the x value for the end of the shaft and go forward with increasing values. |
YSHAFT |
Y coordinate values for the shaft contour. Start at 0 and then give only positive values. |
PTSHAFT |
Point types for the shaft contour. 0 means that the curve is smooth at the point while 1 is a corner point. |
XSPLIT |
X position of the shaft grid split. The grid is split into two parts so that the adaption to the hull is confined to the second shaft grid. |
GRS1 |
Growth factor for the cell thickness for the first shaft grid. See GROW in HYPSURF for more information. |
DNS1 |
Thickness of the first cell layer in the first shaft grid. See DN in HYPSURF for more information. |
DIS1 |
Dimensions of the first shaft grid. The dimensions are along the shaft, out from the shaft and tangential to the shaft, respectively. |
GRS2 |
Growth factor for the cell thickness for the second shaft grid. See GROW in HYPSURF for more information. |
DNS2 |
Thickness of the first cell layer in the second shaft grid. See DN in HYPSURF for more information. |
DIS2 |
Dimensions of the second shaft grid. The dimensions are along the shaft, out from the shaft and tangential to the shaft, respectively. |
XFAIR |
X coordinate values for the fairing section. Start at the inboard end (negative y) and go aft with decreasing values until the trailing edge is reached at x=0. Then go forward with increasing x until the end. |
YFAIR |
Y coordinate values for the fairing section. Start with negative values, change sign at the trailing edge (x=0) and then continue with positive values. |
PTFAIR |
Point types for the fairing section. 0 means that the curve is smooth at the point while 1 is a corner point. Typically 1 or 2 points at the trailing edge should be corners. |
GRFAIR |
Growth factor for the cell thickness for the fairing grid. See GROW in HYPSURF for more information. |
DNFAIR |
Thickness of the first cell layer in the fairing grid. See DN in HYPSURF for more information. |
DIFAIR |
Dimensions of the fairing grid. The dimensions are along the section, out from the fairing and along the trailing edge, respectively. |
LENFAIRING |
Length of the fairing grid along the trailing edge before adaption to the hull. |
LENCOLLAR |
Length of the collar grids along the trailing edge before adaption to the second shaft grid. |
ZCOLLAR |
Z coordinate of the lower sides of the collar grids relative to the shaft. Must be inside the second shaft grid. |
XCO1 |
Collar starting (low) x distance from the fairing TE. Should be close to the hull intersection but outside of the hull. Measured from the fairing trailing edge. |
XCO2 |
Collar end (high) x distance from the fairing TE. Should be close to the hull intersection but outside of the hull. Measured from the fairing trailing edge. |
COSFAIR |
COSVMIN for the fairing. See COSVMIN in APPENDAGE. |
COSSHAFT |
COSVMIN for the shaft. See COSVMIN in APPENDAGE. |
NOSA |
NOShaftAdaption. Turn off adaption of the second shaft grid to the hull. Debugging option. |
COPRIO |
Set the priority offset of the collar grids. Debugging option. |
SHOFF |
Shaft offset file. ASCII text file with one point per line: X, Y, POINTTYPE. |
FAIOFF |
Fairing offset file. ASCII text file with one point per line: X, Y, POINTTYPE. |
HULL |
Name of the grid to append the open shaft to. This is normally the hull grid from XGRID. |
OPTIM¶
The file id_OPTRES is generated at the end of the SHIPFLOW execution when the OPTIM command is included. The file contains the computed resistance, displacement, LCB and wetted surface area. The purpose of this file is to transfer the SHIPFLOW results to the optimizer when SHIPFLOW is included in an optimization loop. The contribution from wave resistance can be based on pressure integration or transverse wave cuts.
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ON |
The file id_OPTRES will be generated using the default values. |
|
| (1) | FULL |
[OMAGN] Four resistance values, displacement, LCB and wetted surface area at even keel will be printed in the file id_OPTRES. |
| (1,2) | CW |
[OMAGN] Only the wave resistance will be printed in the file id_OPTRES. |
| (2) | LNONDIM |
[ONDIM] A fixed reference length that will be used to non-dimensionalize the wave resistance value printed at the first position in the id_OPTRES file. |
| (2) | SNONDIM |
[ONDIM] A fixed reference surface area that will be used to non-dimensionalize the wave resistance value printed at the first position in the id_OPTRES file. |
CWTWC |
The wave resistance value will be computed from a transverse wave cut method when CWTWC is specified. The default wave resistance is computed from transverse wave cut method. |
|
| (3) | TFORMF |
A total resistance based on the computed wave resistance and the friction resistance from ITTC78 will be printed in the id_OPTRES file. |
| (4) | READ |
Values for the XMESH keywords XSCA, YSCA, ZSCA, XTRA and YTRA will be read from the file temp1.dat. |
Notes
-
The
optres.datfile will contain 2 rows whenFULL(default) is specified. On the first row four resistance values are printed and the second row includes the non-dimensionalized displacement, LCB and wetted surface area (WSA) at even keel.The first resistance value is a measure of the wave resistance computed from:
\[ C_{wout} = C_w \qquad \text{wave resistance coefficient (default)} \]\[ C_{wout} = C_w \ast {WSA} \ast {Lpp}^2 / {LNONDIM}^2 \qquad \text{if LNONDIM is specified} \]\[ C_{wout} = C_w \ast {WSA} \ast {Lpp}^2 / {SNONDIM} \qquad \text{if SNONDIM is specified} \]The second resistance value is computed from the wave resistance and ITTC78:
\[ R_t = 0.5 \ast \rho \ast U^2 \ast {WSA} \ast {Lpp}^2 \ast \left( C_w + (1 + k) \ast C_{f_{ITTC57}} \right) \]\((1 + k)\) =
TFORMF, see note (3)The third resistance value is computed from:
\[ R_t = 0.5 \ast \rho \ast U^2 \ast {WSA} \ast {Lpp}^2 \ast \left( C_w + C_{ftot} \right) \]Cftot is the friction resistance computed in XBOUND and in XCHAP if executed.
The fourth resistance value is computed from:
\[ R_t = 0.5 \ast \rho \ast U^2 \ast {WSA} \ast {Lpp}^2 \ast \left( C_w + C_{vtot} \right) \]Cvtot is the friction resistance computed in XBOUND and the friction and viscous pressure resistance in XCHAP if executed.
-
Only the wave resistance will be included in
id_OPTRESwhenCWis specified. TFORMFis the total form factor (1 + k). See also note (1).- Simple geometrical changes can be applied to the geometry specified in the offset file during an optimization. The geometry for one group will be scaled and translated according to the information in the
temp1.datfile whenREADis specified. The filetemp1.datmust contain the values for the XMESH keywordsXSCA,YSCA,ZSCA,XTRAandYTRAon the first row. These values will override the values specified for the BODY group in XMESH. Note that initial values must be specified on theBODYgroup. A typical application for this option is the scaling and positioning of the side hull of a trimaran.
OSFLOW¶
This command is used to specify the onset flow direction.
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | FLOW |
Onset flow angle specified in degrees. |
Notes
- More than one onset flow angle can only be handled by XPAN. A maximum of 25 values may be specified. No xz-plane symmetry is allowed for angles other than zero. Multiple onset flows cannot be stored in the TECPLOT file.
PROGRAM¶
This command is used to specify which module(s) of SHIPFLOW should be executed. The command is mandatory.
General form of command
Default values
None
Keywords
| Keyword | Description |
|---|---|
XMESH, XPAN, XBOUND, XGRID, XCHAP |
The SHIPFLOW modules corresponding to the given keywords are executed. The modules are run in the order shown above, regardless of the order in which they appear in the command. The XPAN keyword instructs SHIPFLOW to run both the XMESH and the XPAN module. |
ALL |
All modules (except MOTIONS) are executed one after the other in one go. The information needed by subsequent modules is always saved, so it is possible to run SHIPFLOW module by module and adjust the input for each module during the process. |
XPTD |
Run MOTIONS. |
XPOST |
Run only the post-processing features (automatic reporting and Python scripts). |
PROPELLER¶
This command is used to specify the geometry and position of a propeller. The propeller thrust coefficient used in the potential flow computation including a propeller is also specified on this command. Several (max 100) propeller commands can be given, but in the XPAN module only the last one is used. For use with XCHAP see the XCHAP ACTUATOR, LLINE and PPROP commands. The blade geometry is given here for both propeller models: with GEOFILE, a table of radial distributions for the lifting line or, for PPROP, a .prda file with its .prof file beside it (from which the lifting line's distributions are derived as well), or as the blade distributions on this command (R_RT, P_D, C_D, T_D, F_C, SKEW and RAKE), from which PPROP builds the complete blade when there is no GEOFILE, or as a Wageningen B-series propeller with WAGENINGEN. The hub contour of the panel model is HUBFILE, which in an open water computation is also the test rig in the RANS computation, for both propeller models. See PPROP.
General form of command
PROPELLER ( ID = "c" ,
DPRO = v , DHUB = v , XSH = v , YSH = v ,
XDIR = v , YDIR = v , ZDIR = v , ZSH = v ,
NBLA = n , JV = v , EAR = v ,
CTS = v , CMO = v , ROTDIR = n , FRACTION=v ,
BETA = v , PMOD = v , MODE = n , FTHRUST ,
FPOWER
KQFIX = v , CAMB = [v1, ..., vNUMB] ,
R_RT = [v1, ..., vNUMB] , P_D = [v1, ..., vNUMB] ,
THIC = [v1, ..., vNUMB] , LENG = [v1, ..., vNUMB] ,
C_D = [v1, ..., vNUMB] , T_D = [v1, ..., vNUMB] ,
F_C = [v1, ..., vNUMB] , SKEW = [v1, ..., vNUMB] ,
RAKE = [v1, ..., vNUMB] , GEOFILE = "c" ,
GEOSIZE = "c" , HUBFILE = "c" ,
WAGENINGEN , WPD = v ,
BB )
Default values
PROPELLER ( DPRO = 0.0, DHUB = 0.0, XSH = 0.0, YSH = 0.0, ZSH = 0.0,
XDIR = XFLOW:OFFSET:XAXDIR, YDIR = 0.0, ZDIR = 0.0,
CTS = 0.0, FRAC = 1.0, FTHRUST, JV = 0.85,
ROTDIR=0 for XZPLANE set in SYMMETRI and YSH=0.0,
otherwise ROTDIR=1)
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ID |
Name used by XCHAP to identify the propeller. | |
| (1) | DPRO |
Propeller diameter. |
| (1) | DHUB |
Hub diameter. With PPROP it sets the inner radius of the propeller grid, and with HUBON behind a hull the boss of the hull is searched for around it, see PPROP. |
| (1) | XSH |
x-coordinate for the propeller centre. With PPROP this is the propeller plane on the shaft axis, the point where the generator line of the blade meets the axis, as drawings and test reports give it, see PPROP. |
| (1) | YSH |
y-coordinate for the propeller centre. |
| (1) | ZSH |
z-coordinate for the propeller centre. |
XDIR |
Direction cosine in the x-direction for the propeller axis. | |
YDIR |
Direction cosine in the y-direction for the propeller axis. | |
ZDIR |
Direction cosine in the z-direction for the propeller axis. | |
| (2) | CTS |
Propeller thrust coefficient. For XPAN and XCHAP force actuator disk. |
| (3) | CMO |
Propeller moment coefficient. For XCHAP force actuator disk. |
| (4) | ROTDIR |
Propeller rotation direction. For the XCHAP lifting line and actuator disk, and for the panel propeller of PPROP. |
FRACTION |
Propeller load fraction. Specifies the fraction of the propeller load for the propeller. The value is 1.0 by default corresponding to a single propeller. The value should be set to 0.5 in both propeller commands for a twin screw. The sum of the fractions specified in all propeller commands should be 1.0. | |
FTHRUST |
Distribute propeller load by thrust. | |
FPOWER |
Distribute propeller load by delivered power. | |
NBLA |
Number of propeller blades. | |
JV |
Propeller advance ratio VS/(DPROP*N), where VS is the ship speed and N the rate of rotation. | |
EAR |
Expanded area ratio. | |
KQFIX |
Specify desired Kq and vary J or BETA depending on MODE. |
|
MODE |
Parameter to vary during self-propulsion. 0=JV(default), 1=blade pitch angle, 2=pitch. |
|
BETA |
Blade pitch angle in degrees. Positive->higher pitch. | |
PMOD |
Additional blade pitch, normalized by diameter. | |
R_RT |
Propeller radii made dimensionless by the radius of the propeller tip. | |
P_D |
Pitch ratio. | |
| (1) | LENG |
Length of blade section. |
| (1) | THICK |
Maximum blade thickness. |
| (1) | CAMB |
Camber. |
C_D |
Length of blade section divided by propeller diameter. This can be entered instead of LENG. |
|
T_D |
Maximum blade thickness divided by propeller diameter. This can be entered instead of THICK. |
|
F_C |
Camber divided by the length of the corresponding blade section. This can be entered instead of CAMB. |
|
SKEW |
Skew distribution: the skew angle of each blade section in degrees, positive towards the trailing edge (skew back), one value per R_RT station. Used by PPROP when it builds the blade from the distributions on this command; the lifting line does not use it. |
|
RAKE |
Rake distribution: the axial position of each blade section measured from the propeller plane, divided by the propeller radius, positive aft, including the axial displacement that the skew induces, one value per R_RT station. It is the x/R column of the .prda file, see Helper Programs. Used by PPROP as SKEW is; the lifting line does not use it. |
|
GEOFILE |
The blade geometry from a file, for the lifting line and for PPROP alike; the extension says what the file is. A table of radial distributions (.txt): NBLA, EAR, R_RT, P_D, C_D, T_D and F_C, an ASCII text file with 7 lines, on each line a space-separated list of floating point numbers followed by an optional comment, the first line NBLA, the second EAR, the third the R_RT values etc. A small example with three stations:4 !NBLA0.55 !EAR0.0 0.5 1.0 !R_RT0.6 0.65 0.6 !P_D0.25 0.35 0.1 !C_D0.03 0.02 0.005 !T_D0.04 0.02 0.01 !F_CA .prda file, the blade description of the panel method with its .prof file beside it, see PPROP: PPROP meshes the blade from it, and the distributions above (with SKEW and RAKE, NBLA, EAR integrated from the chord and DHUB from the hub radius, when they are not given) are derived from it for the lifting line and the ITTC78 extrapolation when the computation is set up. A .prop file, a finished panel mesh: for PPROP only. A name without a directory and without an extension is one of the propellers delivered with SHIPFLOW: a table in data/propellers or a panel-method blade in data/propellers_panel/<NAME>/; when a PPROP command names the propeller the panel-method store is searched first, otherwise the tables, and the run log says which file was taken. Anything else is a path to a file of your own, relative to the directory of the command file. Either GEOFILE or the distributions, not both. |
|
GEOSIZE |
With PPROP: where the size of the blade comes from. "CASE", the default: from the case, DPROP divided by the scale of the computation, so GEOFILE supplies only the shape and the diameter written in it is ignored. "FILE": the diameter in GEOFILE as it is; the computation stops if it differs from the one the case gives by more than 2 %. See PPROP. Not used by the lifting line. |
|
HUBFILE |
With PPROP and HUBON: where the contour of the hub of the panel model comes from. "AUTO", the default behind a hull: the boss is read off the hull's offsets along the shaft axis. A file name: a table of the contour, x r per line; a bare name such as "VP1304_tunnel" is a contour delivered with the propeller in data/propellers_panel. "GENERIC": the generic open-water rig, also behind a hull. See PPROP. With LLINE, in an open water computation (POW on the HULLTYPE command) only: a file name or a bare name as above, the contour of the test rig, which is put into the open water box as a no-slip body of revolution, as PPROP does, and the propeller is placed at the origin of the box pointing in the direction of the flow. See LLINE. |
|
WAGENINGEN |
Keyword that triggers the built-in Wageningen propeller series. In addition to the propeller size and position, the following input is required: NBLA, EAR and WPD. Without DHUB the hub diameter is set to 0.167 times the diameter for four to six blades and 0.18 times otherwise. The lifting line uses the radial distributions of the series; PPROP builds the complete blade from the definition of the series, with its section shapes, skew and rake, for 3 to 7 blades, see PPROP. Not together with GEOFILE. |
|
WPD |
P/D for the Wageningen propeller, the face pitch ratio of the series. | |
BB |
Wageningen BB-Series: the BB outline instead of the B-series one. |
Notes
- All geometrical data for the propeller is given in the same coordinate system as in the offset file.
-
The propeller thrust coefficient is computed from
\[ {CTS} = \frac{T}{\frac{1}{2} \rho U^2 A} \]Where T is the propeller thrust, computed or estimated, U is the ship speed and A is the propeller disk area.
-
The propeller moment coefficient is computed from
\[ {CMO} = \frac{Q}{\frac{1}{2} \rho U^2 A D} \]Where Q is the torque, computed or estimated, U is the ship speed, A is the propeller disk area and D is the propeller diameter.
-
Integer values equal to 1 or -1 specify clockwise or counter-clockwise direction. The default value is 0 which sets the tangential force component to zero. For the lifting line and actuator disk in XCHAP. With
PPROP, 1 is a right-handed propeller (clockwise seen from astern, the default) and -1 a left-handed one; 0 is taken as right-handed.
Requirements for different modules
The following data is required by XPAN: DPRO, DHUB, XSH, YSH, ZSH, XDIR, YDIR, ZDIR and CTS.
PRTOPT¶
This command is used to specify additional output from XMESH, XPAN and XBOUND.
General form of command
PRTOPT ( PGEOM , FDOP , PCON , STRLRES ,
CFRES ,
PANCO , NLTERM , BMRES , FSRES ,
OBPRES , NAPA , XYPLOT , TRACE )
Default values
None
Keywords
| Keyword | Description |
|---|---|
PGEOM |
Panel geometry information. |
FDOP |
Finite difference operator terms from XPAN. |
PCON |
Panel connectivities. |
STRLRES |
Streamline coordinates and detailed results from XBOUND. |
CFRES |
Results from the boundary layer computation: control point coordinates, local skin friction and panel surface area. |
PANCO |
Panel corner coordinates from XPAN. |
NLTERM |
Non-linear terms and velocity derivatives on the free-surface. |
BMRES |
Results from the basic model calculation (double or single model): control point coordinates, velocities and pressures, panel source strengths and normal vectors. |
FSRES |
Results from the free surface calculation: control point coordinates, velocities and pressures, panel source strengths and normal vectors, panel area, wave heights. |
OBPRES |
Results from the off-body point calculation: off-body point coordinates, velocities and pressures. |
NAPA |
Output for the NAPA interface. FSRES must also be specified. |
XYPLOT |
Diagram information for XPOST. |
TRACE |
Trace file for XMESH/XPAN. |
Note
The additional output is written to files named id_keyword, where id is the name of the command file and keyword is the keyword that triggers the creation of the output file. For example, SHIPFLOW creates the file hamb_STRLRES if the command file hamb contains the command PRTOPT(STRLRES).
RECESS¶
This command specifies that the object ID is adapted to the grids in ADAPT from the outside, so that the fluid region is extended. ADIR can presently only have one component and specifies the coordinate direction in which ID is adapted. ASIDE specifies the grid faces of adaption.
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
ID |
Specifies that the object with matching ID is an appendage. |
ADAPT |
The grid(s) to which the object is appended (adapted). |
ADIR |
The coordinate direction used for adapting ID. |
ASIDE |
The side(s) that are adapted. |
COSVMIN |
Minimum of the cosine between the coordinate line and surface normal where the adaption occurs. |
RESCALE¶
To run your computations on the Rescale.com cluster, add this command to the command file and then run the case like any local computation. Do the following:
- Sign up for an account at rescale.com.
- At rescale.com, get your API key and save it in a file on your computer.
- Set the
APIKEYkeyword to point to the file with your API key. - Run your case in one of three ways:
- From SHIPFLOW Design or CAESES, by specifying
shipflow_rescale.batinstead ofshipflow.batas the program to execute. - From a terminal, by typing
shipflow_rescale <name of configuration>. - (Windows only) From Notepad++, by selecting to run at Rescale from the Run menu.
- From SHIPFLOW Design or CAESES, by specifying
Note that there is a cost involved in using these services.
General form of command
RESCALE ( APIKEY = "c" , VERSION = "c" , INSECURE ,
MARBLE , ALL , PLATFORM = "c" )
NICKEL OUTPUT
ONYX CGNS
Default values
Keywords
| Keyword | Description |
|---|---|
APIKEY |
File with your API key. Do not show the key to others, since it is basically your password at rescale.com. |
VERSION |
Version of SHIPFLOW you want to run at Rescale. Not all versions are installed. |
INSECURE |
Adds -k to all the cURL commands. |
MARBLE |
Computational nodes that support 1, 2, 4, 8, 12, 16, 20, 24, ... processes. One node has 4 cores. |
NICKEL |
Computational nodes that support 1, 2, 4, 8, 16, 32, 48, 64... processes. One node has 16 cores. |
ONYX |
Computational nodes that support 1, 2, 4, 8, 18, 36, 54, 72... processes. One node has 18 cores. |
TITANIUM |
Computational nodes that support 1, 2, 4, 8, 20, 40, 60, 80... processes. One node has 20 cores. |
ALL |
Copy all files back after the run is completed. All files will be deleted from your Rescale account. |
OUTPUT |
Just copy the OUTPUT file back. |
CGNS |
Copy the CGNS and OUTPUT files back. |
PLATFORM |
Alternative Rescale platform name, e.g. "eu.rescale.com". |
ROTBODY¶
This command creates a body of rotation in XCHAP by rotating a two-dimensional grid around the x-axis, see the figure below. The two-dimensional grid is generated by a separate command, and its ID is referenced in the ROTBODY command. When generating the two-dimensional grid, it is important that it does not have any nodes with y<0, since that will give degenerate cells with negative volume.
The two-dimensional grids available for generating bodies of rotation are WSECTION, which represents a wing section, and HYPSURF, which can represent general shapes.
The first two dimensions and the boundary conditions of the generated grid are taken from the two-dimensional grid.
General form of command
ROTBODY ( ID = "c" , SECT = "c" , SCALE = v ,
TRANSLAT = [v1,v2,v3] , DIR = [v1,v2,v3] , DIM3 = n ,
ROTATE = [v1,v2,v3] , YTARGET = v , ANGLE = v ,
GROUP = n , BC11 = "c" , BC12 = "c" ,
BC21 = "c" , BC22 = "c" , BC31 = "c" ,
BC32 = "c" , PRIO = n )
Default values
ROTBODY ( ID="Rotbody", SCALE=1, TRANSLATE=[0,0,0], DIR=[1,0,0], DIM3=20,
YTARGET = 1.0, ANGLE=360, ROTATE=[0,0,0], GROUP=unique, BC11="NOSLIP",
BC12="INTERIOR", BC21="INTERIOR", BC22="INTERIOR", BC31="INTERIOR",
BC32="INTERIOR", PRIO=-1)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the rotation body a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. |
SCALE |
Scale the grid. |
TRANSLATE |
Position of the local coordinate system origin in the offset file (ship) coordinate system. |
ROTATE |
Rotation in Euler angles. |
DIR |
Direction of the x-axis in the offset file coordinate system. |
DIM3 |
Number of grid planes generated by the rotation. |
YTARGET |
Sets the target value for y+. |
ANGLE |
Sets the rotation angle for the object. |
GROUP |
Assign to group. |
BC11 |
Specify the boundary condition on the rotation surface. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Specify the boundary condition on the outer surface. |
BC21 |
Specify the boundary condition on the face at the start of the generating curve. Not needed if the curve is periodic or the grid follows y=0. |
BC22 |
Specify the boundary condition on the face at the end of the generating curve. Not needed if the curve is periodic or the grid follows y=0. |
PRIO |
Set the overlapping grid classification priority. |
ROUGHNESS¶
This command sets the roughness parameter KS on no-slip boundaries. The distribution is piecewise constant in x-intervals. The command can be repeated to specify KS on different regions. It can be given in four forms:
- A single value for
KS. This is the default value used if no other region matches. -
Nx x-values, Nz z-values and (Nx-1)x(Nz-1)
KS<j>values. Let (xf, zf) be the x and z coordinates of the boundary face element to be assigned aKSvalue. If there is an interval X[i+1] < xf ≤ X[i], Z[j+1] < zf ≤ Z[i], then KSf = KSX<j>[i], otherwise KSf =KS. If noZvalues are given, then implicitly Z[1] = ∞, Z[2] = -∞.The notation
KS<j>means vectors namedKS01for the first interval in z,KS02for the second interval, etc.Note that
XandZare given in decreasing magnitude, so that theKSvalues are distributed starting from the bow and going aft with increasing i-index, and down with increasing j-index. For Nx=5 and Nz=4 there should be 3 vectorsKS01,KS02,KS03with 4 values each. The distribution over the hull is, with the bow to the left: -
An assembly name and a single
KSvalue. All grids belonging to the assembly will get the constantKSvalue. - An assembly name, Nx x-values, Nz z-values and (Nx-1)x(Nz-1)
KS<j>values. All grids belonging to the assembly will getKSvalues according to item 2 above.
The KS values are assigned with criterion 4 given the highest priority, then 3, etc. For a description of how to define assemblies, see ASSEMBLY.
X values are given from bow to stern, so if the x-axis is pointing forward then the values should be ordered largest to smallest.
Z values are given from waterline to keel, so if the z-axis is pointing upward then the values should be ordered largest to smallest.
If no ROUGHNESS command is given, the default value KS=0 is used. See also XCHAP:CONTROL:KS.
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
KS |
Default value for regions not otherwise specified. Default is KS=0. If the KS parameter is given, X and KSX should not be used. |
X |
A vector of X values specifying contiguous intervals with constant KS. At least two X values must be specified, giving one interval. The values are given bow to stern. |
Z |
A vector of Z values specifying contiguous intervals with constant KS. At least two Z values must be specified, giving one interval. The values are given waterline to keel. |
KS<j> |
Vector with one KS value for each X interval. The length of KS<j> must be the length of X minus one. The number of KS<j> vectors must be the length of Z minus one. The actual names are KS01, KS02, KS03, etc. |
ASSEMBLY |
Name of the assembly on which to apply the KS value or KS<j> values. |
RUDDER¶
This command adds a rudder to the ship geometry in XCHAP. The command may be repeated to add more rudders. The geometry is specified in a rudder-fixed coordinate system according to the figure below.
The rudder position and orientation in the offset file coordinate system are given as a translation of the origin and two rotations: the rudder angle about the z-axis and the cant angle about the x-axis, in that order.
The tip of the rudder is closed with a half body of rotation with the same section as the rudder. If the case is symmetric about y=0 and the y-component of ORIGIN=0, then only one side of the rudder is modelled. ANGLE, CANT and TWIST must be zero for this case.
The section of the rudder is given as a set of points specified in an offset file. The file format is simple: each line contains the x and y coordinates of a point, separated by whitespace (spaces and/or tabs). The points should be ordered starting at the trailing edge, going forward on the upper side, around the leading edge and back on the lower side to the trailing edge, i.e. the last point must be the same as the first. The trailing edge must be at a point (x>0, 0) and the leading edge at (0,0). If the section is symmetrical about y=0 it is sufficient to give the points from the trailing edge to and including the point on the leading edge. Several symmetrical and non-symmetrical wing sections are supplied in the SHIPFLOW installation.
Except at the trailing edge, the program tries to fit a smooth curve to the set of points in the offset file. This is done with a Theodorsen-Garrick transform, which is a conformal mapping technique. The obtained mapping is also used to make 2D grids for uniformly spaced stations of constant z. The complete 3D grid has an O-O structure.
When the rudder grid is added to the overlapping grid that describes the complete geometry, it goes through the transformation to the SHIPFLOW computational coordinate system, including scaling by 1/LPP, sinkage and trim.
If the rudder surface is not closed, the rudder must intersect another boundary surface, such as the hull and/or the free surface, so that the curve ending the surface at the root of the rudder is completely outside of the fluid domain.
General form of command
RUDDER ( ID = "c" , GCUR = "c" , SPAN=v ,
ANGLE = v ,
CANT = v , ORIGIN=[v1,v2,v3] , SECTION=["c",...] ,
S =[v1,v2,...,vn] , C =[v1,v2,...,vn] , XLE =[v1,v2,...,vn] ,
T = [v1,v2,...,vn] , TWIST = [v1,v2,...,vn] , FLIP ,
DIMENSION=[v1,v2,v3] , TILT = v , ROTATE=[v1,v2,v3] ,
YSIGN = n , SCALE = v , RMAX=v ,
BC22 = "c" , BC31 = "c" , BC32 = "c" ,
TP1O , TP2O , IGES = "c" ,
TP1R TP2R STLF = "c"
TP1F TP2F
TPCELLS = n , YTARGET = v , STLT = v ,
TGTRANS , TOP , OGRID ,
HYPWSECT BOTTOM
HYPPT BOTH
FLAP = [v1,v2,...,vn] , FANGL = v , SCALE = v ,
GROW = v , DTAU = v , NITER = n ,
DN = v , STRETCH = v , PRIO = i ,
HALF , NOLESTR , CTIP = v ,
STR1 = "c" )
Default values
RUDDER( ID = "Rudder", SPAN = 1, ANGLE = 0, CANT = 0, ORIGIN = [0, 0, 0],
SECTION = [""], XLE = C*0.25, TWIST=[], T=[], TILT=0, TP1O, TP2R,
BC22="INTERIOR", BC31="INTERIOR", BC32="INTERIOR", RMAX=1,
SCALE=1, YTARGET=1, TGTRANS, FANGL=0, GROW=1.1, DTAU=0.5,
NITER=5, DN=0.01, STRETCH=0, PRIO=-1, BOTH, CTIP=0.1, SCALE=1)
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ID |
Gives the rudder object a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. | |
GCUR |
ID of an XFLOW SUBCURVE defining the spanwise generator curve. Rudder sections follow the curve and are oriented using its local tangent. If omitted, the standard straight rudder is generated. The generator curve should normally start at (0,0), so that ORIGIN specifies the rudder-root position. Its coordinates are dimensional and are not rescaled by SPAN. SUBCURVE:X gives the z displacement and SUBCURVE:Y gives the y displacement. |
|
SPAN |
The total length (depth) of the rudder. | |
ANGLE |
Rudder rotation angle in degrees. The axis of rotation is the z-axis in the rudder coordinate system. | |
CANT |
Rotation in degrees around the x-axis in the rudder coordinate system. | |
ROTATE |
Rotation given in Euler angles (degrees). Do not use together with ANGLE, CANT or TILT. |
|
TILT |
Rotation in degrees around the y-axis in the rudder coordinate system. | |
ORIGIN |
Position of the rudder coordinate system origin in the offset (ship) coordinate system. | |
SECTION |
The name of a file containing offsets for a 2D section. The file name can be given as a full path, otherwise SHIPFLOW will look for it first in your working directory and then in shipflow/data/wing_sections. See above for a description of the file format. Either only one section is given, which is then used for all stations, or the number of sections should be the same as the number of stations. If an empty string is given, the NACA0012 section is used.Alternatively SECTION can be the ID of a 2D grid specified in the command file. |
|
S |
Rudder section stations along the z-axis, non-dimensionalized by SPAN. s=0 corresponds to the root and s=1 to the tip. The first value should always be 0 and the last 1. |
|
C |
Rudder chord lengths. The length of this vector must be equal to the length of S. |
|
T |
Rudder thickness. The length of this vector must be equal to the length of S. |
|
XLE |
Distance from the leading edge to the z-axis for each station. Positive numbers place the leading edge on the negative side of the axis. The length of this vector, if given, must be equal to the length of S. If not given, the default value 0.25*C is used. |
|
TWIST |
Rotation of each section in degrees around the z-axis. The length of this vector, if given, must be equal to the length of S. If not given, the default value 0 is used for each station. |
|
TP1O |
The rudder is open at the first station. | |
TP1R |
The rudder is closed with a rounded tip at the first station. | |
TP1F |
The rudder is closed with a flat (square) tip at the first station. | |
TP2O |
The rudder is open at the last station. (Same as NOTIP) |
|
TP2R |
The rudder is closed with a rounded tip at the last station. (Same as ROUND) |
|
TP2F |
The rudder is closed with a flat (square) tip at the last station. (Same as FLAT) |
|
TPCELLS |
Number of cells in the spanwise direction on each closed tip. The total number of tip cells cannot, of course, exceed the number of axial cells (see the DIMENSION keyword). |
|
BC22 |
Specify the boundary condition at the outer grid surface. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
|
BC31 |
Specify the boundary condition at S=0. Possible values the same as BC22. |
|
BC32 |
Specify the boundary condition at S=1. Possible values the same as BC22. |
|
DIMENSION |
Number of grid nodes in the circumferential, radial and axial directions, respectively. | |
RMAX |
Change the position of the outer surface of the grid. RMAX>1 increases the distance from the rudder to the outer surface and vice versa. Only applies to the default section grid type. |
|
YSIGN |
Sign of the y-coordinate. | |
FLIP |
Flip top → bottom and vice versa. | |
SCALE |
Scale the rudder. | |
YTARGET |
y+ target value at noslip boundaries. | |
| (1) | STLF |
Path to the file that contains the rudder geometry in STL format. Must be shorter than 256 characters. |
| (1) | IGES |
Path to the file that contains the rudder geometry in IGES format. Must be shorter than 256 characters. |
STLT |
STLT is used to specify the deflection tolerance for IGES surface input. Default value is 0.0001. |
|
TGTRANS |
Use the Theodorsen-Garrick transform. Gives high quality orthogonal planar grids for normal wing sections. | |
HYPWSECT |
Use the 2D hyperbolic grid generator. The same format of offset file used by TGTRANS is used to specify the starting curve. This generator can handle more arbitrarily shaped sections than TGTRANS. |
|
HYPPT |
Use the 2D hyperbolic grid generator. The same format of offset file used by TGTRANS but with an additional point type column is used to specify the starting curve. This generator can handle more arbitrarily shaped sections than TGTRANS. |
|
OGRID |
A zero-thickness section at the trailing edge will be interpreted by HYPWSECT and HYPPT as a C-type grid. If this is not correct, OGRID forces the generation of an O-type grid. |
|
FLAP |
[HYPSECT only] Flap chords. If only 1 value is given, it will be used for all stations. | |
FANGL |
[HYPSECT only] Flap angle in degrees, positive is counter-clockwise seen along the rudder axis. | |
GROW |
[HYPSECT only] Growth factor in the normal direction. | |
DTAU |
[HYPSECT only] Artificial time step for solving the hyperbolic equations. Lower the value to increase stability. | |
NITER |
[HYPSECT only] Maximum number of iterations for solving the hyperbolic equations. May need to be increased if DTAU is decreased. |
|
DN |
[HYPSECT only] Thickness of the first layer of cells. DN is relative to the chord length. |
|
STRETCH |
[HYPSECT only] Stretch factor towards regions with high curvature. Higher value gives stronger concentration. | |
PRIO |
Set the classification priority for the rudder grid. Should be >0. | |
HALF |
The section input is one side only and the grid should also be one side. The default behaviour is to mirror the section offsets to make a closed, symmetric section curve. | |
NOLESTR |
Disable leading edge stretching. The leading edge stretching is done to place the parametric value 0.5 at the leading edge. This usually makes the folding that closes the tip better, but in some cases it causes grid generation to fail. | |
BOTH |
Generate a grid over both sides of the rudder. This is the default unless the rudder is at y=0 and ANGLE, CANT, TILT are all zero. In that case only one side is generated and the boundary conditions are set for symmetric flow. |
|
TOP |
Generate a grid over the top side of the rudder only. | |
BOTTOM |
Generate a grid over the bottom side of the rudder only. | |
CTIP |
Flat tip grid thickness chord scaling factor, default=0.1. This may have to be reduced for extremely low aspect ratio, for example if using a RUDDER as a bilge keel. Reducing CTIP will reduce the thickness of the grid over a flat tip in the spanwise direction. |
|
SCALE |
Scale factor for the rudder. | |
STR1 |
Stretching function in the chord-wise direction. The value should be the ID of a STRETCHING command. |
Notes
- Feature for a symmetric rudder. The geometry has to be specified on one side only.
SELFPROPULSION¶
This command runs SHIPFLOW in self-propulsion mode. Basically, this means that the propeller RPM is adjusted so that the drag and thrust are in balance. For a full scale computation this is usually sufficient, but to mimic a model scale experiment, an external towing force is usually added that compensates for the difference in frictional drag. This can also be modeled with SELFPROPULSION, which also allows a constant propeller thrust to be specified.
In order to run a self-propulsion simulation, the computational model has to include a hull, possibly with appendages, and one or more propeller models such that the thrust is a function of the advance ratio J. The lifting line model LLINE and the panel method propeller model PPROP fulfill this, but the actuator disc ACTUATOR does not. External propeller models integrated with the EXTPROP command are also likely to fulfill this property. Since the ship speed and propeller diameter are not varied in the computation, changing J is the same as changing the rate of revolution.
The results are presented in the OUTPUT file. If propeller open water characteristics are given, more results are presented, such as the effective mean wake, relative rotative efficiency, hull efficiency and propulsive efficiency.
The self-propulsion computation can be done alone, but to get the full results from the analysis, two or three computations have to be done:
- A nominal, unpropelled resistance calculation.
- A Propeller Open Water (POW) computation of the propeller open water characteristics. Data from other sources can also be used.
- A computation of the self-propelled case.
General form of command
SELFPROP ( ON , CTOW = v , POW = "c" ,
OFF
CTTO = v , CTEFD = v , AEFD = v,
NOMINAL="c" , FORMFAC = v )
Default values
Keywords
| Keyword | Description |
|---|---|
ON |
[ONOFF] Self-propulsion ON, i.e. J is adjusted to achieve balance between thrust, drag and tow force. |
OFF |
[ONOFF] Computation is run with constant propeller speed. |
POW |
File containing table with POW data. |
CTOW |
Coefficient of towing force, same normalization as the drag coefficients. A positive CTOW pulls the ship forwards and reduces the propeller load. |
CTTO |
Total drag coefficient for the nominal, un-propelled case. |
NOMINAL |
Name of the CGNS file holding the results of the nominal case. If this parameter is given then CTTO is read from the CGNS file. |
CTEFD |
Total drag coefficient from the towing tank resistance test. |
AEFD |
Area of non-dimensionalization for CTEFD. |
FORMFAC |
Form factor. If not given it is computed from the result in NOMINAL. |
SHAFT¶
This command adds a propeller shaft to the ship geometry in XCHAP. The geometry is a circular cylinder ended by a hemisphere. The geometry is specified in a shaft-fixed coordinate system according to the figure below.
The position and orientation of the shaft in the offset file coordinate system are given as a translation of the origin and a rotation that aligns the x-axis of the shaft with a given vector.
When the shaft grid is added to the overlapping grid that describes the complete geometry, it goes through the transformation to the SHIPFLOW computational coordinate system, including scaling by 1/LPP, sinkage and trim.
Since the shaft surface is not closed, the shaft must intersect another boundary surface, such as the hull and/or the free surface, so that the curve that ends the surface at the root of the shaft is completely outside of the fluid domain.
General form of command
SHAFT ( ID = "c" , R = v , LENGTH = v ,
ORIGIN = [v1,v2,...,vn] , DIR = [v1,v2,...,vn] , RMAX = v ,
DIMENSION = [v1,v2,v3] , GROUP = n , YTARGET = v )
Default values
SHAFT( ID="Shaft", R=0.1, LENGTH=1, ORIGIN=[0,0,0], DIR=[1,0,0], RMAX=1, PRIO=4,
BC11="INTERIOR", BC21="NOSLIP", BC22="INTERIOR")
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the shaft object a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. |
R |
The radius of the shaft. |
LENGTH |
The length of the shaft. |
ORIGIN |
Position of the shaft coordinate system origin in the offset file (ship) coordinate system. |
DIR |
Direction of the shaft in the offset file coordinate system. |
RMAX |
Change the position of the outer surface of the grid. RMAX>1 increases the distance from the shaft to the outer surface and vice versa. |
GROUP |
Group number in the overlapping grid algorithm. If not specified, the grid will be the only grid in the group. |
DIMENSION |
Number of nodes in each direction. |
YTARGET |
y+ target value at noslip boundaries. |
BC11 |
Boundary condition at the start (open) end, typically inside the hull. |
BC21 |
Boundary condition on the shaft. |
BC22 |
Boundary condition on the outer radius. |
SPAUTO¶
To do a full propulsion analysis according to ITTC78 you need results from a resistance computation, propeller open water results and a self-propulsion computation. While this can be done as three separate SHIPFLOW runs, SPAUTO can do all three computations from a single command file. This is especially handy if the design is being optimized with respect to the extrapolated delivered power. The command file must contain a propeller model in the XCHAP section, LLINE or PPROP, and the POW command. With PPROP each leg is run with the settings that suit it: the open water leg with a fixed advance ratio and the force applied whole, the self-propulsion leg with the balance settings. Nothing has to be given on the command for either.
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
ALL |
[RUN_] All three computations required for the propulsion analysis (described below) are run. |
RESISTANCE |
[RUN_] Only the resistance computation will be executed. |
POW |
[RUN_] Only the propeller open water computation will be executed. |
SELFPROP |
[RUN_] Only the self-propulsion computation will be executed. |
EXTRAPOL |
Only the ITTC78 extrapolation will be executed. |
MITRES |
Override the maximum number of solver iterations in the resistance computation. |
MITPOW |
Override the maximum number of solver iterations in the POW computations. |
MITSELF |
Override the maximum number of solver iterations in the self-propulsion computation. |
SPHERE¶
Creates a spherical grid for XCHAP, useful for modeling, for example, buoys or planets. The grid is stretched towards NOSLIP boundaries (unless this has been switched off with the XCHAP:CONTROL:NOSTRETCH keyword) to get a y+ value of approximately 1 for the first grid node.
The SPHERE geometry is specified in the offset coordinate system, and the same transformations that are applied to the hull are applied to the sphere.
General form of command
SPHERE ( ID = "c" , R = v , THICK = v ,
PHI = [v1,v2] , THETA = [v1,v2] , ORIGIN = [v1,v2,v3] ,
SKEW = v , DIMENSION = [n1,n2,n3] , GROUP = n ,
BC11 = "c" , BC12 = "c" , BC31 = "c" ,
BC32 = "c" , GROUP , PRIO )
Default values
SPHERE ( ID="Sphere", R=0.5, THICKNESS=0.5, DIMENSION=[10,30,30],
PHI=[-90,90], THETA=[0,360], BC11="NOSLIP", BC12="INTERIOR",
BC21="INTERIOR", BC22="INTERIOR", BC31="INTERIOR", BC32="INTERIOR",
GROUP=-1, PRIO=-1, SKEW=0)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the sphere a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different grids may have the same name, but then only the total force on all of those objects will be calculated and output. |
R |
Radius of the sphere. |
THICKNESS |
Radial thickness of the grid. |
PHI |
Start and end polar angles (latitude) in degrees. |
THETA |
Start and end circumferential angles (longitude) in degrees. |
ORIGIN |
Position of the sphere's center. |
DIMENSION |
Number of grid nodes. Dimension 1 is radial, dimension 2 is circumferential and dimension 3 is axial. |
BC11 |
Specify the boundary condition on the sphere surface. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Specify the boundary condition on the outer radius. |
BC21 |
Specify the boundary condition on the start polar angle. Not needed if angle is -90 degrees. |
BC22 |
Specify the boundary condition on the end polar angle. Not needed if angle is 90 degrees. |
BC31 |
Specify the boundary condition on the start circumferential angle. Not needed if THETA(2)-THETA(1) = 360. |
BC32 |
Specify the boundary condition on the end circumferential angle. Not needed if THETA(2)-THETA(1) = 360. |
GROUP |
Group number in the overlapping grid algorithm. If not specified, the grid will be the only grid in the group. |
SKEW |
Circumferential skew. Used mainly to test discretization. |
SPLVOLUME¶
Splits a volume (component) grid at a point. The point is given in the design (offset) coordinate system and it has to be inside the grid to be split. After the parametric position of the point in the grid has been found, the grid is split in the specified direction, creating two SPLVOLUMEs.
Boundary conditions on the split surfaces are set to INTERIOR; for the other grid faces, the boundary conditions of the source grid are used.
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
ID |
Names of the two new grids made by the split. |
SOURCE |
Name of the source grid to split. |
SPOINT |
Point in the design (offset) coordinate system. The point has to be inside the source grid. |
SPLDIR |
Split direction. |
KEEPSRC |
Keep the source grid visible. Default is to hide it. This is mainly for debugging. |
STRETCHING¶
Defines a one-dimensional stretching function. Stretching functions are used to change the node distribution in a component grid. The stretching is applied in a specified coordinate direction and the node positions are changed in this direction along the grid lines, leaving the distribution in the remaining directions unchanged. One stretching can be applied in each direction.
For all stretching functions f(r): f(0) = 0, f(1) = 1 and f'(r) > 0 for r in [0,1].
Note that not all of the parameters S0, S1, DU, DU0, DS0, DS1 apply to all stretchings.
General form of command
STRETCHING ( ID = "c1" , EXP , FLIP
TANH NOFLIP
OUTLET
MIDDLE
FS
MIDPOINT
S0 = v , S1 = v , DU = v ,
DU0 = v , DS0 = v , DS1 = v )
Default values
Keywords
| Keyword | Description |
|---|---|
ID |
Name of the stretching. |
FLIP |
Reverse the parameter direction so that f(r) → f(1-r). |
NOFLIP |
Do not reverse the parameter direction. |
EXP |
Exponential stretching towards r=0. DS0 specifies stretching at r=0. Default is DS0=0.5; DS0=1 gives no stretching. |
TANH |
Hyperbolic tangent stretching towards r=0 and r=1. DS0 specifies stretching at r=0 and DS1 at r=1. Values <1 give smaller spacing than the original distribution and values >1 give larger spacing than the original distribution. Defaults are DS0=0.5 and DS1=0.5. |
OUTLET |
Uniform spacing followed by exponential stretching. The exponential stretching parameter is set so that the spacing is smooth. S0 specifies where the change from uniform to exponential occurs and DS0 the spacing in the uniform region. Defaults are S0=0.5, DS0=1. |
MIDDLE |
A uniform stretching between 0<S0<S1<1 with matching exponential stretchings on either side. DS0 specifies the spacing in the uniform region. Defaults are S0=0.25, S1=0.75 and DS0=1. The parameters are not intuitive, so if you are thinking about using MIDDLE it is better to use FS. |
FS |
Similar to MIDDLE except that the flanking stretchings are TANH. 0<S0<S1<1 specifies the region of uniform spacing. DU specifies the fraction of cells inside the uniform region, 0<DU<1. The function of DU0 is unclear at the time of writing; it is best left alone. Defaults are S0=0.25, s1=0.75, DU=0.8, DU0=0. |
MIDPOINT |
Adds a sinusoidal shift to a uniform stretching. DS0 is the amplitude of the shift. DS0=0 gives no stretching, DS0<0 shifts towards r=0 and DS0>0 towards r=1. Default is DS0=0. |
S0 |
Multi use parameter, see above. |
S1 |
Multi use parameter, see above. |
DU |
Multi use parameter, see above. |
DU0 |
Multi use parameter, see above. |
DS0 |
Multi use parameter, see above. |
DS1 |
Multi use parameter, see above. |
Example stretching types, FS (top) and OUTLET (bottom):
SUBCURVE¶
This command defines a two-dimensional subdivision curve. The curve can be specified directly using coordinate vectors or read from a file. Its ID can be referenced by other XFLOW commands, including RUDDER:GCUR.
General form of command
SUBCURVE ( ID = "c" , X = [v1,v2,...,vn] , Y = [v1,v2,...,vn] ,
PTYP = [n1,n2,...,nn] , NSUBDIV = n , STRETCH = v ,
DIME = n , FILE = "c" , VTK = "c" )
FILE is an alternative to specifying X, Y and PTYP directly.
Default values
Keywords
| Keyword | Description |
|---|---|
ID |
Name of the curve. This name is used when referencing the curve from another command, such as RUDDER:GCUR. |
X |
Vector containing the first coordinate of each input point. |
Y |
Vector containing the second coordinate of each input point. |
PTYP |
Point type for every input point. A value of 0 specifies a smooth point, while 1 specifies a corner that is retained during subdivision. |
NSUBDIV |
Number of subdivision refinements applied to the input curve. |
STRETCH |
Stretching toward regions of high curvature. A value of zero gives approximately uniform arc-length spacing. Increasing the value concentrates more points in regions of high curvature. |
DIME |
Number of points in the final discretized curve. The value must be greater than the number of corner points. |
FILE |
Name of a file containing the input points. Each line must contain three whitespace-separated values: X Y PTYP. Do not use FILE together with the X, Y and PTYP vectors. |
VTK |
Writes diagnostic VTK output containing the input, subdivided and final discretized curves. |
Notes
X,YandPTYPmust contain the same number of values and must define at least two points.- When the curve is used by
RUDDER:GCUR, start it at(0,0)so thatRUDDER:ORIGINidentifies the rudder-root position. Avoid repeated points.
SUBVOLUME¶
Creates a smaller grid from a source grid by specifying a range in parameter space [1..0] in each direction.
Setting LOW=[0,0,0] and HIGH=[1,1,1] makes a copy of the source grid.
General form of command
SUBVOL ( ID = "c" , SOURCE = "c" , LOW = [v1,v2,v3] ,
HIGH = [v1,v2,v3] , DIMENSION = [n1,n2,n3] , KEEPSRC ,
BC11 = "c" , BC12 = "c" , BC21 = "c" ,
BC22 = "c" , BC31 = "c" , BC32 = "c" ,
PRIO )
Default values
SUBVOL ( DIMENSION=<from SOURCE>, BC11=<from SOURCE>, BC12=<from SOURCE>,
BC21=<from SOURCE>, BC22=<from SOURCE> BC31=<from SOURCE>,
BC32=<from SOURCE>, PRIO=-1)
Keywords
| Keyword | Description |
|---|---|
ID |
Name of the sub-volume. |
SOURCE |
Name of the source grid. |
LOW |
Start corner of the range in parameter space. |
HIGH |
End corner of the range in parameter space. |
DIMENSION |
Number of grid nodes in each parameter direction. |
BC11 |
Specify the boundary condition on the low surface in the first parameter direction. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC12 |
Specify the boundary condition on the high surface in the first parameter direction. |
BC21 |
Specify the boundary condition on the low surface in the second parameter direction. |
BC22 |
Specify the boundary condition on the high surface in the second parameter direction. |
BC31 |
Specify the boundary condition on the low surface in the third parameter direction. |
BC32 |
Specify the boundary condition on the high surface in the third parameter direction. |
SYMMETRY¶
This command is used to specify the symmetry condition, if any.
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | NOSYM |
[SYMMETRY] No symmetry planes are included in the computation. |
| (1) | XZPLANE |
[SYMMETRY] The xz-plane is treated as a symmetry plane. |
Notes
-
The xz-plane is the only symmetry plane that can be specified on the
SYMMETRYcommand. The xy-plane is automatically treated as a symmetry plane for the body groups when the double-model solution is used as a basic model.NOSYMmust be used for onset flow angles other than zero (see OSFLOW).
TITLE¶
This command is used to give title information to SHIPFLOW. The title is used for headers in various files and plots. The command is optional.
General form of command
Default values
None
Keywords
| Keyword | Description |
|---|---|
TITLE |
The maximum length of the string is 80 characters. Only the first 53 characters of the title will be shown in the plots produced by FIPOST. |
TUNNEL¶
Makes a thruster tunnel grid. The tunnel is parallel to the y-axis, and the y-coordinate of the tunnel should always be zero. For cases with XFLOW:SYMMETRY:NOSYMMETRY set, the tunnel is automatically mirrored.
The tunnel opening may be fitted with a protective grid, which may also reduce drag. The parameters that control this function are prefixed with TG (for TunnelGrid), see the figure below.
All geometric dimensions are given in the design (offset file) coordinate system.
General form of command
TUNNEL ( ID = "c" , RADIUS = v , ORADIUS = v ,
LENGTH = v , ORIGIN = [v1,v2,v3] , ADAPT = "c" ,
DIME=[i1,i2,i3] , CROSSFLOW , ANGLE = v ,
CWIDTH = [v1,v2,v3] , CDEPTH = [v1,v2,v3] ,
TGRID , TGNBAR = i , TGCHORD = v ,
NOTGRID
THFGRID
TGTHICK = v , TGOFFSET = v , TGANGLE = v ,
, YTARGET = v , YTBAR = v ,
NOADAPT , TGNOADAPT )
Default values
TUNNEL ( ID="Tunnel", RADIUS=1, ORADIUS=1.5*RADIUS, LENGTH=10, ORIGIN=[0,0,0],
ADAPT="Xgrid", DIME=[10,20,20], ANGLE=0, YTARGET=1, YTBAR=4)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the tunnel a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
RADIUS |
Radius of the tunnel. |
ORADIUS |
Outer radius, i.e. the radius of the flange grid that adapts to the hull. |
LENGTH |
Length of the grid object, from the center plane and including the part that overlaps the hull grid. Half of the cells are distributed inside the tunnel and half in the overlap region. |
ORIGIN |
Coordinates of the tunnel origin. The y-coordinate should always be zero. |
ADAPT |
Name of the grid that the tunnel is fitted to. SHIPFLOW appends <n> to grid names, which can be seen during post-processing. In this context only the base name should be used, for instance "Xgrid" and not "Xgrid_1". |
DIME |
Node dimensions of the grid inside the tunnel. The first dimension is radial, the second tangential and the third axial. The axial dimension is doubled so that there is an equal number of cells in the part of the tunnel grid that is outside the hull, i.e. inside the hull grid. A toroidal flange grid with dimension DIME is also added, so the total number of grid nodes is i1*i2*(i3*3-1). If XFLOW:SYMMETRY:NOSYMMETRY is set, the grids are mirrored, so the number of nodes is doubled. |
CROSSFLOW |
A tunnel through the hull can produce oscillations in the flow if both sides of the hull are modeled. In a real case there is an impeller in the tunnel that damps the cross flow, and in model experiments some kind of obstruction is usually mounted in the tunnel. To avoid the oscillations in the computation, the tunnel grid is split at y=0 and the SLIP boundary condition is applied to the two split faces. If the CROSSFLOW keyword is given, the split is not done and the tunnel is open for cross flow. This is required if, for instance, a propeller model is used to pump fluid through the tunnel. |
ANGLE |
Angle of rotation in degrees. The geometry is only affected if the CWIDTH and CDEPTH parameters are given. |
CWIDTH |
Width of the region around the tunnel edge where the hull is chamfered. The width is given at three angular positions, 0, 90 and 180 degrees. The width at 270 degrees is the same as that at 90 degrees. The chamfered region is represented by two elliptical curves. From 270 to 90 degrees the half axes are RADIUS + CWIDTH[1] and RADIUS + CWIDTH[2] and from 90 to 270 degrees they are RADIUS + CWIDTH[3] and RADIUS + CWIDTH[2]. |
CDEPTH |
The depth of the chamfer is specified at 0, 90 and 180 degrees with the depth at 270 degrees the same as at 90 degrees. The variation between points is linear. |
TGRID |
Turn on the tunnel protective grid. |
NOTGRID |
Turn off the tunnel protective grid. |
THFGRID |
Turn on the hull-following tunnel protective grid. |
TGNBAR |
Number of bars in the grid. |
TGCHORD |
Chord length, i.e. the length in the tunnel axial direction, of the bars. The bars have a rectangular cross section. |
TGTHICK |
Thickness of the grid bars. |
TGOFFSET |
Inward offset from the hull surface of the bar endpoints. |
TGANGLE |
Rotation angle around the y-axis in degrees for the grid. |
TGDIME |
Dimensions of the tunnel grid bar. |
YTARGET |
y+ target value at noslip boundaries. |
YTBAR |
y+ target value at tunnel grid bar noslip boundaries. This may have to be reduced for very high Re cases, i.e. full scale. |
NOADAPT |
Do not adapt the tunnel to the hull. This is for checking that the tunnel is properly placed and sized. If a tunnel grid is specified, it will be disabled since it requires the intersection curve between hull and tunnel. |
TGNOADAPT |
Do not adapt the tunnel grid to the tunnel. This is for checking that the bars are properly placed and sized. |
TURN¶
This command is used to specify the turning radius and center position. The ship always turns left when turning motion is applied.
General form of command
Default values
None. The ship moves straight forward by default.
Keywords
| Keyword | Description |
|---|---|
XCEN |
Longitudinal position of the turning center in the computational coordinate system. |
TRAD |
Turning radius in the computational coordinate system. |
VORTEXGEN¶
This command adds a delta wing vortex generator to the ship geometry in XCHAP. The command may be repeated to add more vortex generators. Each vortex generator consists of 4 butt-joined component grids.
The position and size of the vortex generator are given in the offset file coordinate system. The user specifies the x-position and z-position, and the y-position is automatically calculated by SHIPFLOW so that the vortex generator is appended to the hull. The vortex generator is also automatically rotated so that it points in the normal direction of the hull surface, with the leading tip in the axial direction of the offset file. Note that if trim is used, the leading tip still points in the axial direction of the offset file coordinate system, which then differs from the SHIPFLOW coordinate system.
For a non-symmetrical case, the vortex generator is placed on the starboard side unless the PORT keyword is specified.
Restrictions:
The vortex generator only works together with an XGRID grid. If only imported grids are used, SHIPFLOW stops if the user tries to add a vortex generator object.
Risks:
- If the curvature of the hull surface is large compared to the size of the vortex generator, the vortex generator might stick out somewhere, which leads to a “leak of non-fluid points”. If a large part of the total number of cells is flagged as outside (non-fluid), it is a sign that such a leak has occurred. Results from a calculation with leaks cannot be considered valid.
- If the shape of the vortex generator is changed a lot compared to the original shape, some cells might be very skewed, which will give the solver problems.
If the default delta-shaped vortex generator is not applicable, another shape may be imported through the GRID parameter. The value of GRID should be the full pathname to a CGNS file that contains a block structured grid. The file should also contain the connectivity information for the butt-joined grid faces, and the boundary conditions for all faces. Since there are several ways to store a grid in a CGNS file, the following should be noted:
-
Use CGNS version 2.
-
There should be only 1 base in the file.
-
The domains should be located directly under the base.
-
Each domain should be of
ZoneTypeStructured. -
The
ZoneGridConnectivitydata should have the Node LabelGridConnectivity1to1_t. -
The
ZoneBCdata should have the Node LabelBC_tand have the Node Data equal toBCWallorBCWallViscous, both of these map to the SHIPFLOW boundary conditionNOSLIP. Grid faces that should have theINTERIORboundary condition should not appear at all in the CGNS file. -
Under each
BC_tnode there should be:PointRangewith Node Label equal toIndexRange_t.InwardNormalIndex.- Any other nodes are ignored.
Use a browser such as adfviewer to check that the grid data is correctly stored in the CGNS file.
The orientation of the imported geometry is important for the VORTEXGEN command to position the appendage correctly. The origin must be at the base and trailing edge of the appendage, the x-axis must point forward and the z-axis towards the tip.
General form of command
VORTEXGEN ( ID="c" , XPOS=v , ZPOS=v ,
PITCH=v , CHORD=v , HEIGHT=v ,
POST , AXIAL , PORT ,
POSL PROJ STARBOARD
POSC
THICKNESS=v , SCALE=v , DIMS=v ,
GRID = "c" )
Default values
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the vortex generator object a name. The name is used in general to identify the object and to associate results like integrated forces with it. |
XPOS |
The x-position of the vortex generator. |
ZPOS |
The z-position of the vortex generator. |
PITCH |
Pitch angle in degrees in the local coordinate system of the vortex generator after it has been placed normal to the hull. Tip turns up for positive values. |
CHORD |
Chord length of the vortex generator at the hull surface. |
HEIGHT |
Height of the vortex generator from the hull surface. |
THICKNESS |
Thickness of the vortex generator from its center plane. |
SCALE |
Linear scaling factor. |
DIMS |
Used for scaling the number of cells. 0.5 gives half as many cells in each parameter direction and 2 gives twice as many cells in each parameter direction. Changing this value will require interpolations to create the grid. The most robust way is to leave DIMS unchanged. |
POST |
[POSITION] The position given by XPOS and ZPOS is for the intersection between the hull surface and the trailing side. |
POSL |
[POSITION] The position given by XPOS and ZPOS is for the intersection between the hull surface and the leading edge. |
POSC |
[POSITION] The position given by XPOS and ZPOS is for the intersection between the hull surface and the center of the vortex generator. |
AXIAL |
[PTYPE] Rotate the vortex generator PITCH degrees around its own axis. |
PROJ |
[PTYPE] Rotate the vortex generator so that the projection of the intersection between the hull surface and the vortex generator on the symmetry plane is rotated PITCH degrees. |
PORT |
[SIDE] Use this keyword if the vortex generator is on the port side. |
STARBOARD |
[SIDE] Use this keyword if the vortex generator is on the starboard side. |
GRID |
CGNS file with grids and boundary conditions. If this is specified, the parameters that define the shape of the vortex generator are not needed. |
VSHIP¶
This command is used to specify the speed of the ship. The command is mandatory.
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | FN |
Ship speed in Froude number. |
| (1) | RN |
Reynolds number. |
| (1) | VKNOT |
Velocity in knots. |
| (1) | VM_S |
Velocity in meters per second. |
| (1) | REFLEN |
Reference length. |
| (1) | SCALE |
Scale factor. |
Notes
- The geometry in
XFLOW:OFFSETshould be given in ship scale. The speed in ship scale has to be given byVKNOT,VM_SorFN. To run in model scale, set the appropriateREFLEN,SCALEorRN.
WSECTION¶
This command creates a two-dimensional grid around a wing section in XCHAP. The command may be repeated to add more grids.
The shape of the wing section is given as a set of points specified in an offset file. The file format is simple: each line contains the x and y coordinates of a point, separated by whitespace (spaces and/or tabs). The points should be ordered starting at the trailing edge, going forward on the upper side, around the leading edge and back on the lower side to the trailing edge (see the figure above), i.e. the last point must be the same as the first. The trailing edge must be at a point (x>0, 0) and the leading edge at (0,0). If the section is symmetrical about y=0 it is sufficient to give the points from the trailing edge to and including the point on the leading edge. Several symmetrical and non-symmetrical wing sections are supplied in the SHIPFLOW installation.
The grid is generated with a conformal mapping technique that gives a high quality orthogonal grid. It is, however, restricted to wing section shapes. Inputting offsets for other shapes may give unsatisfactory results. Trying to introduce corners with double points will specifically cause the algorithm to fail.
Alternatively, a hyperbolic grid generator can be chosen with the HYPERBOLIC keyword. This is more robust but generates lower quality grids that are not orthogonal.
General form of command
WSECTION ( ID = "c" , OFFSETS = "c" , ANGLE = v ,
SCALE = v , ORIGIN = [v1,v2] , RMAX = v ,
BC21 = "c" , BC22 = "c" , GROUP = n ,
PRESCALE=v , DIME = [v1,v2] , CONFORMAL )
HYPERBOLIC
Default values
WSECTION ( ID="Wsect", ANGLE=0, SCALE=1, ORIGIN=[0,0], RMAX=1, BC21="NOSLIP",
BC22="INTERIOR", GROUP=unique, PRESCALE=1, DIME = [50,20], CONFORMAL )
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the wsect object a name. The name is used in general to identify the object and to associate results like integrated forces with it. Different objects may have the same name, but then only the total force on all of those objects will be calculated and output. |
ANGLE |
Clockwise rotation in degrees. |
SCALE |
Grid scale factor. |
PRESCALE |
Grid scale factor applied before rotation and translation. |
ORIGIN |
Translation vector of the grid. The translation is applied before the rotation ANGLE, so the translation vector will be rotated too. |
RMAX |
RMAX>1 makes the grid thicker and 0<RMAX<1 makes it thinner. The default thickness is approximately half the chord length of the section, but it depends on the actual shape of the section. |
GROUP |
Group number used in the overlapping grid algorithm. |
BC21 |
Boundary condition on the wing section. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT" and "INTERIOR". The INTERIOR condition means that the boundary values are taken by interpolation from other grids. |
BC22 |
Boundary condition on the outer boundary. Possible values same as BC21. |
DIMENSION |
Dimensions of the grid in the chord-wise and radial directions, respectively. |
CONFORMAL |
Use the conformal grid generator. |
HYPERBOLIC |
Use the hyperbolic grid generator. |



















