XCHAP commands¶
XCHAP is the SHIPFLOW finite volume solver for the Reynolds-averaged Navier-Stokes (RANS) equations. The commands on this page are interpreted by XCHAP if they are found in the command file between the module delimiter commands XCHAP and END. XCHAP only uses the first four characters of a command or a keyword, so CONVERGENCE can also be written CONV.
The commands are listed in alphabetical order. Each section describes what the command does and then gives the general form of the command, its default values and a table of its keywords, followed by notes where needed. How to read these parts is explained in Manual conventions.
| Topic | Commands |
|---|---|
| Run control and solver settings | CONTROL, CONVERGENCE, KRYLOV, PARALLEL, VOF, WALL |
| Grids | XGRID, IMPORT, VOLUME, REFINE, XGREFINE |
| Overlapping grids | OVERLAP, PRIORITY, UNION |
| Propeller models and wake | LLINE, PPROP, POW, EXTPROPELLER, ACTUATOR (deprecated), WAKE |
| Free sinkage and trim | FREE |
| Extracting results | EXTRACT |
ACTUATOR¶
This method for modeling a propeller is deprecated. Use the lifting line propeller model (LLINE) or the panel method propeller model (PPROP) instead.
This command is used to control the running of the force actuator disc. Thrust and moment are taken from the PROPELLER command in the XFLOW section.
General form of command
ACTUATOR ( ID="c" , ON , ACTIVE ,
OFF
XUPSTR = v , XDOWNSTR = v , RMIN = v ,
RMAX = v , DIMENSION = [v_1,v_2,v_3] , BC11 = v ,
BC12 = v , BC21 = v , BC22 = v ,
LOW = [v_1,v_2] , HIGH = [v_1,v_2] , RUNINT )
Default values
ACTUATOR ( ID="ID", ON, BC11="INTERIOR", BC12="INTERIOR",
BC21="INTERIOR", BC22="INTERIOR", LOW= [0,0],
HIGH= [1,1], RUNINT=(10 for ADI, 1 for KRYLOV) )
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ID |
A string that is used to identify the actuator disc object. | |
| (1) | ON |
The propeller model is run. |
| (1) | OFF |
The propeller model is turned off. |
ACTIVE |
The body forces from the propeller are transferred to the propeller grid and the flow is solved there. The default behavior when ACTIVE is not specified is to interpolate the body forces directly from the propeller to the background grid. |
|
XUPSTR |
Upstream position of propeller grid in offset coordinate system. | |
DOWNSTR |
Downstream position of propeller grid in offset coordinate system. | |
RMIN |
Inner radius of propeller grid in offset coordinate system. | |
RMAX |
Outer radius of propeller grid in offset coordinate system. | |
DIMENSION |
Dimension of grid in axial, radial and circumferential direction respectively. | |
BC11 |
Specify the boundary condition 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 of the grid. | |
BC21 |
Specify the boundary condition of the grid. | |
BC22 |
Specify the boundary condition of the grid. | |
LOW |
Defines the parametric extent in axial and radial direction used for transferring propeller forces. LOW gives start point. HIGH gives end point. Values should be between 0 and 1. |
|
HIGH |
Defines the parametric extent in axial and radial direction used for transferring propeller forces. LOW gives start point. HIGH gives end point. Values should be between 0 and 1. |
|
RUNINT |
Number of outer solver iterations between running the propeller model. |
Notes
- Turning it
OFFwill still make XCHAP create a propeller and a propeller grid, so start-up will take a little longer and more memory will be used. If you want to restart later with the propeller turnedON, this will only be possible if the propeller was present butOFFfrom the beginning. When the propeller isONit will be run after every 10 XCHAP iterations.
CONTROL¶
This command is used to specify if the program shall generate an initial solution or restart from a previous solution. The maximum number of iterations can also be set and some additional output data can be requested.
General form of command
CONTROL ( START , MAXITER=n , GRID ,
RESTART OVERLAP
NEWCONFIG
KRYITER = n , MAXV = v , DUMP = n ,
VERBOSE = n , YTARGET = v , K0 = v ,
W0 = v , CFL = v ,
EASM , ADI , FROMM ,
KWSST KRYLOV SUPERBEE
KWBSL KRAD SUPBC
ADKR STACS
STRETCH , RMODEL = n ,
NOSTRETCH
AHR = v , KS = v , AH_KS = v ,
FLPO = n )
Default values
CONTROL ( START, MAXITER = [depends on grid size], EASM(KWSST for VOF),
STRETCH, YTARGET=1, DUMP=1000, VERBOSE=1, SUPERBEE, RMODEL = 0,
KRYLOV, KRAD, K0=1.0e-8, W0=10.0, CFL=1.0, RMODEL=4, AH_KS=5 )
Keywords
| Note | Note Keyword | Description |
|---|---|---|
START |
[START] Start new computation. | |
RESTART |
[START] Restart from old solution. | |
NEWCONFIG |
[START] Restart from an old solution, but with some change in the configuration. For example if a propeller is turned on or if an appendage is moved. | |
| (1) | MAXITER |
Maximum number of iterations. |
FLPO |
Number of data points from the _FORCELOG file used for calculating the average of forces and moments. |
|
KRYITER |
Run the first KRYITER iterations with KRYLOV, then use ADI up to MAXITER. There is seldom any reason to do this, but if many and/or complicated appendages are used this may improve convergence. |
|
STRETCH |
[STRETCH] All imported and parametric grid components are stretched towards NOSLIP boundaries. |
|
NOSTRETCH |
[STRETCH] The opposite of STRETCH. |
|
EASM |
[TURB] Selects the Explicit Algebraic Stress Model. This is the most advanced turbulence model in XCHAP. | |
KWSST |
[TURB] Selects the k-ω SST turbulence model. | |
KWBSL |
[TURB] Selects the k-ω BSL turbulence model. | |
K0 |
Initial and inlet value for the turbulent kinetic energy k. Default value is 1.0e-8, a small value intended to represent a non-turbulent inflow. For zonal approach computations this is not used; instead, the turbulent inlet quantities are determined from the boundary layer solution on the forebody. There is in general no reason to adjust this value; it should only be done for certain validation cases. | |
W0 |
Initial and inlet value for the turbulent frequency ω. Default value is 10. For zonal approach computations this is not used; instead, the turbulent inlet quantities are determined from the boundary layer solution on the forebody. There is in general no reason to adjust this value; it should only be done for certain validation cases. | |
CFL |
Pseudo-time CFL number of the standard (single-phase) solver. Default 1.0. With ADI it sets the local pseudo-time step. With KRYLOV it takes effect only together with KRYLOV(RELAX=1.0), which assembles the pseudo-time term; values of 5 to 50 have been used (a larger value converges faster, a too large value loses the damping). Without RELAX=1.0 the Krylov solver has no pseudo-time term and CFL is ignored. |
|
| (3) | AHR |
Sets the Average Hull Roughness value given in μm. |
| (3) | KS |
Sets the equivalent sand grain roughness height in μm. |
| (3) | AH_KS |
Controls the AHR/KS ratio necessary to convert between the different measures. |
| (3) | RMODEL |
Roughness model. 0 – Hellsten-Wilcox, 1 – Knopp, 2 – Knopp-modified, 3 – Aupoix-Nikuradse, 4 – Aupoix-Colebrook |
YTARGET |
Controls the y+ target value for the first cell center of all grids except the XGRID grid. For grids with NOSTRETCH defined in the IMPORT command this has no effect. |
|
MAXV |
Maximum velocity restriction. The velocity in all cells is restricted to the value after each iteration. If this happens in any cell, the progress indicator . is changed to *. |
|
DUMP |
Controls how many iterations should be run between each save to the CGNS file(s). Regardless of what DUMP is set to, the results will be saved when the case is finished. |
|
GRID |
[STOP] Only the grids are created in XCHAP. The program will be stopped before calculating overlap information and running iterations. This command should be used for a quick check of grids. | |
OVERLAP |
[STOP] Only overlap is computed in XCHAP. The program will be stopped before running iterations. This command should be used for a quick check of overlap. | |
VERBOSE |
Controls the level of output to the terminal. 0 = no output 1 = normal progress reporting 2 = full progress reporting 3 = debugging information |
|
ADI |
[SOLVER] Use the Alternating Direction Implicit solver to solve the linear equations. It is robust and uses little memory. For VOF computations ADI also restores the VOF solver path of earlier versions with all its old defaults, see KRYLOV and VOF. |
|
KRYLOV |
[SOLVER] Use a Krylov solver to solve the linear equations. This is the default for both double model and VOF computations. In general Krylov is faster than ADI, but it uses more memory: about 5 kB per cell with the default compact storage and about 7 kB per cell with KRYLOV(STORAGE="full"), see KRYLOV. |
|
KRAD |
[SOLVER] Hybrid ADI-Krylov scheme. Used by default if KRYITER is specified. |
|
ADKR |
[SOLVER] Hybrid ADI-Krylov scheme. The ADI solver is first run with MAXIT-KRYIT iterations and then the Krylov solver is run with the remaining KRYIT iterations. |
|
| (4) | FROMM |
[DSCHEME] Discretization scheme for volume fraction equation. More stable but diffusive. |
| (4) | SUPERBEE |
[DSCHEME] Discretization scheme for volume fraction equation. Best balance between stability and diffusion. |
| (4) | SUPBC |
[DSCHEME] Discretization scheme for volume fraction equation. More compressive but less stable. |
| (4) | STACS |
[DSCHEME] Discretization scheme for volume fraction equation. Blended scheme, very compressive, more unstable. |
Notes
- The maximum number of iterations to be performed. Without
MAXITERXSHIP sets it from the case: 200 withKRYLOV, 4000 withKRYLOVandVOFon HULLTYPE, where the free surface takes 2000 to 2500 iterations to settle, and withADIa value from the grid size, 2000 to 11600. Data for the log history is saved every tenth iteration withADIand every iteration withKRYLOV. A running computation can be stopped beforeMAXITERis reached by creating a file namedSTOP, or<configuration>.stop, in the run directory<configuration>_RUN_DIR. XCHAP then finishes the current iteration, saves the solution and writes the post-processing files as usual, and removes the stop file so that a followingRESTARTdoes not stop at once. - This is useful only for developers.
- Note that applying roughness requires lowering
YTARGET. It is recommended to useYTARGET = 0.5. Recommended model: 4 – Aupoix-Colebrook. - Applies to the VOF solver only.
CONVERGENCE¶
This command is used to specify the solver convergence criteria.
General form of command
Default values
CONV ( ON, EPFX=[0.1 for ADI, 0.025 for KRYLOV],
FXPSTD=[1.0 for ADI, 0.25 for KRYLOV], MINIT=0, TRBSTD=0.01)
Keywords
| Keyword | Description |
|---|---|
ON/OFF |
[CONVON] Switch on or off the automatic solver termination at convergence. |
EPFX |
Maximum percentage difference of the average Fx value between the current solution and the solution 100 iterations earlier. |
FXPSTD |
Maximum standard deviation of the pressure contribution to Fx, expressed in percent. |
MINIT |
Minimum number of iterations before the program stops due to convergence. |
TRBSTD |
Maximum standard deviation of the thrust-resistance balance. |
EXTPROPELLER¶
The EXTPROPELLER command offers an open interface to external propeller programs. The propeller program ESPPRO delivered with SHIPFLOW is run through the PPROP command, which does not need any of the settings below. Every 10th iteration in XCHAP, the velocities in the propeller grid are written to the UFILE and the propeller program(s) are launched. The propeller program(s) should write the body forces to the FFILE in the same grid.
Commonly an external propeller code requires more than one program to be run: typically the potential flow propeller program itself and one or more programs that adapt the wake coming from SHIPFLOW and compute the time-averaged force field read by SHIPFLOW. There may also be a need for copying and/or renaming files. To be able to do all these operations in general, EXTPROP runs a sequence of shell (command window) commands specified by the INIT and COMMAND parameters. The process is outlined in the diagram below.
In the directory where you have your command and offset files, you should also have your template command and data file(s) for the propeller program. The user can make SHIPFLOW transfer data to the template file(s) and to the commands by entering certain tags in them. The format of a tag is $(ID), where ID is the name of the tag, for example $(NRUN). Currently the following tags are available:
| Tag | Description |
|---|---|
ID |
Propeller object ID. |
NRUN |
Number of times the external program has been called. |
J |
Current advance ratio. |
UGRIDFILE |
Name of the file containing the wake grid. |
UFILE |
Name of the file containing the absolute wake. |
FORCEFILE |
Name of the file containing the propeller force field. |
XP |
X-coordinate of propeller, in propeller model coordinates. |
XEFF |
X-coordinate of the wake plane, in propeller model coordinates. |
NI |
First propeller grid dimension. |
NJ |
Second propeller grid dimension. |
NK |
Third propeller grid dimension. |
The propeller program will be run in a subdirectory called RUNID_DIR/PROPID_DIR. RUNID is the same as the SHIPFLOW command file name and PROPID is the same as the propeller name (or ID in the EXTPROPELLER command).
Most propeller programs behave differently the first time they are run, since for the first run they do not have the values of the sources. This can be flagged in the appropriate template file by inserting the $(NRUN) tag. The first time the propeller program is called, $(NRUN) will be replaced by 0, the following time by 1, and so on.
General form of command
EXTPROP ( ID="c" , INIT=["c", ...] , COMMAND=["c", ...] ,
TYPE="c" , CTOW=v ,
INPUT=["c", ...] , OUTPUT=["c", ...] , UGRID="c" ,
UGFORM="c" , UFILE="c" , UFORM="c" ,
FGRID="c" , FGFORM="c" , FFILE="c" ,
FFORMAT="c" , DMODEL=v , ACTIVE ,
ON , DEBUG , ROTATION = [v1,v2,v3] ,
OFF NODEBUG
EXTGRID , FS_1 , US_1 ,
INTGRID FS_KT US_V
UNC , FNC , FVOL
UCC FCC FCELL
CTGIVEN=v , FRACTION=v , DIME=[v1,v2,v3] ,
XUPSTREAM=v , XDOWNSTRAM=v , RMIN=v ,
RMAX=v , BC11="c" , BC12="c" ,
BC21="c" , BC22="c" , STR1="c" ,
STR2="c" , RELAX=v , NLOG = n ,
SLEEP = v , RUNINT = n , STARTAT = n )
Default values
EXTPROP ( UGRID="grid3d.dat" , FFILE="f.dat", UFILE="u.dat" ,
ON , RELAX=1.0 , CTOW=0.0 , XUPST=-0.3 , XDOWNST=0.3 , RMAX=1.2 ,
FRACTION=1.0 , DIME=[12,16,31] ,
UNC , US_1, FCC , FS_1 , FCELL ,
BC11=BC12=BC21=BC22="INTERIOR", NLOG=1, SLEEP=0.1,
RUNINT=(10 for ADI, 1 for KRYLOV), STARTAT=0, NODEB )
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ID |
A string that is used to identify the propeller object. The string should correspond to the ID given in the PROPELLER command in the XFLOW section. |
|
INIT |
Vector of strings, each one executed as a system command before XCHAP starts iterating. Before execution, tags in the format $(TAG) are replaced by current values. |
|
TYPE |
Name of a file stored in <your_homedir>/.shipflow/propmodel/<type>. The file should be a SHIPFLOW command file with a single XCHAP:EXTPROP command. It is read before the actual case command file to set defaults for a particular external propeller model, which allows the case command file to skip these and be much shorter. |
|
COMMAND |
Vector of strings, each one executed as a system command after every 10 iterations in XCHAP. Before execution, tags in the format $(TAG) are replaced by current values. |
|
INPUT |
Vector of strings that specify names of template files. These will become the input files for the external propeller program. Before running the commands in INIT or COMMAND, tags in the format $(TAG) are replaced by current values (file splicing) and the modified files are copied to the propeller directory where the external propeller program is run. |
|
OUTPUT |
Vector of strings that specify the names and formats of output files from the external propeller program. These files will be parsed according to the format after each run of the external propeller program. The format of each entry in PARSE is "filename(format)", for example "mp2208.out(skipline $(float) $(KT) $(KQ))". This means: in file mp2208.out, skip the first line, skip a floating point value, read KT, read KQ. |
|
DEBUG |
Turn on debug output. | |
NODEBUG |
Turn off debug output. | |
UGRID |
Name of the wake grid file. This file should be created by the propeller program and read by SHIPFLOW, which interpolates the Cartesian velocity components to each grid node and writes them to UFILE. |
|
UGFORMAT |
Specification of the format of UGRID. This is a recipe for telling SHIPFLOW how the propeller program specifies the grid in UGRID, for example "NI NJ{X Y Z}", which means: read grid dimensions NI and NJ, and then for each J=1..NJ, for each I=1..NJ, read x(I,J), read y(I,J), read z(I,J). A format code like "NI NJ{X} {Y} {Z}" means that all x values are read first, then y, etc. |
|
UFILE |
Name of the wake file. This file is written by SHIPFLOW before calling the external program(s) and contains the velocity of the current XCHAP solution, interpolated to the grid nodes or cell centers of UGRID. |
|
UFORMAT |
Format of the UFILE, specified in the same way as UGFORMAT. The velocity components are designated U, V and W in the format descriptor. The field dimensions are assumed to be the same as for the UGRID. For example "{U V W}" writes U(I,J) V(I,J) W(I,J) separated by spaces for each J,I. |
|
FGRID |
Name of the force grid file. This file should be created by the propeller program and read by SHIPFLOW. FGRID may be omitted if the propeller program writes both force and grid to the FFILE, see below. |
|
FGFORMAT |
Format of FGRID, specified in the same way as UGFORMAT. |
|
FFILE |
Name of the force field file. This file is written by the external propeller program and contains the time-averaged propeller force field. The force field is read by SHIPFLOW and added as a volume force to the flow equations. FFILE may also contain the grid for the force field. |
|
FFORMAT |
Format of the FFILE, specified in the same way as UGFORMAT. The force components are designated FX, FY and FZ. For example: "NI NJ NK{X Y Z FX FY FZ}". |
|
DMODEL |
Diameter of the propeller in the external model. Normally this is either 1 (normalized by diameter) or 2 (normalized by radius). | |
EXTGRID |
[GRID] The wake and force field grids are produced by the external program. | |
INTGRID |
[GRID] A cylindrical grid made by SHIPFLOW is used for the force and wake fields. | |
UCC |
[ULOC] The values in the VELOCITYFILE are given in the cell centers. |
|
UNC |
[ULOC] The values in the VELOCITYFILE are given in the node centers. |
|
FCC |
[FLOC] The values in the FORCEFILE are given in the cell centers. |
|
FNC |
[FLOC] The values in the FORCEFILE are given in the node centers. |
|
US_V |
[US] Velocities in the wake file are non-dimensionalized by the free stream velocity at infinity, i.e. ship speed. | |
US_1 |
[US] Velocities in the wake file are not scaled. | |
FS_KT |
[FS] Forces in the force file are non-dimensionalized by KT. This means that all the forces added up should be equal to KT. | |
FS_1 |
[FS] Forces in the force file are raw. This means that all the forces added up should be equal to the force in the computation. | |
FVOLUME |
[FUNIT] Forces are defined as force per volume. | |
FCELL |
[FUNIT] Forces are defined as force per cell. | |
ACTIVE |
[ACTIVE] Run the RANS solver on the propeller grid. For embedded propeller grids this gives essentially the same result as the default mode where the propeller grid is only used for interpolation. With ACTIVE the influence of interpolation errors tends to be smaller, but at the default resolution details in the wake may be lost since the propeller grid is rather coarse close to the symmetry plane. If the propeller grid is used stand-alone, without being embedded in (an)other grid(s), boundary conditions have to be specified and ACTIVE mode used. |
|
| (1) | ON |
[DISKON] The propeller model is run and the body forces are updated every 10 iterations. |
| (1) | OFF |
[DISKON] The propeller model is not run and the body forces are set to zero. |
ROTATION |
Rotation of the grid(s) specified by the Euler angles with the pitch, roll, yaw convention. Given in degrees. Use this transformation to align the external propeller model coordinate system axis with the EXTPROPELLER convention: x-axis pointing downstream, y-axis pointing to starboard looking upstream and z-axis pointing up. |
|
DIME |
Specify number of nodes in the axial, radial and tangential direction. | |
XUPST |
The position of the propeller grid inlet plane expressed as nondimensional propeller radius. TUNING COMMAND. | |
XDOWNST |
The position of the propeller grid outlet plane expressed as nondimensional propeller radius. TUNING COMMAND. | |
RMIN |
The propeller grid inner radius. If set to zero, BC21 is disregarded. If no value is given, RMIN is computed from DHUB in the PROPELLER command. TUNING COMMAND. |
|
RMAX |
The propeller grid outer radius expressed as nondimensional propeller radius, i.e. RMAX=1 will put the outer boundary at the propeller tip. TUNING COMMAND. |
|
BC11 |
Specify the boundary condition on the upstream plane. 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. Only relevant when running the propeller grid alone. |
|
BC12 |
Specify the boundary condition on the downstream plane. | |
BC21 |
Specify the boundary condition on the inner radius. | |
BC22 |
Specify the boundary condition on the outer radius. | |
STR1 |
Stretching in axial direction. | |
STR2 |
Stretching in radial direction. | |
RELAX |
Relaxation factor. The force added to the right hand side of the RANS equations is relaxed by this factor. A low value makes the model more stable but slower to respond. | |
NLOG |
Maximum number of log and error files that are saved from the external propeller model runs. | |
SLEEP |
Sleep time in seconds between checking if the propeller model has finished. Very small values will load the computer with MPI polling, very large values will give latency. Not a critical value, but should not be larger than about 0.1 times the expected propeller model run time. | |
RUNINT |
Number of solver outer iterations between running the propeller model. | |
STARTAT |
Number of solver outer iterations before the propeller model is run for the first time. |
Notes
- Turning it
OFFwill still make XCHAP create a propeller grid, so start-up will take a little longer and more memory will be used. If you want to restart later with the propeller turnedON, this will only be possible if the propeller was present butOFFfrom the beginning. When the propeller isONit will be run after every 10 XCHAP iterations.
EXTRACT¶
The EXTRACT command interpolates the solution to a set of specified points and writes the result to a Tecplot file. The points can be specified as a two-dimensional Cartesian grid, a two-dimensional circular grid or by a Tecplot file containing a point or block zone.
The extraction points will be transformed from the offset file coordinate system to the SHIPFLOW computational system, including sinkage and trim.
General form of command
EXTRACT ( FILE , INFILE="c" , OUTFILE="c" ,
DISC
RECT
LINE
X=v , Y=[v1,v2] , Z=[v1,v2] ,
R=v , N=[v1,v2] , SCALE=v ,
YSIGN=v , ROTATION=[v1,v2,v3] ,
TRANSLATION=[v1,v2,v3] ,
XIN="C" , YIN="C" , ZIN="C" ,
XVAR="C" , YVAR="C" , ZVAR="C" ,
UVAR="C" , VVAR="C" , WVAR="C" ,
PVAR="C" , KVAR="C" , OMVAR="C" ,
FIBVAR="C" , LFIBVAR="C" )
Default values
Keywords
| Keyword | Description |
|---|---|
FILE |
[TYPE] The extraction points are given as a point zone in a Tecplot file. See the Tecplot manual for a description of the file format. The name of the Tecplot file is given by the OUTFILE parameter. |
DISC |
[TYPE] The extraction points are arranged in a uniform circular grid. The geometry is specified by the X and R parameters. |
RECT |
[TYPE] The extraction points are arranged in a Cartesian grid. The geometry is specified by the X, Y and Z parameters. |
LINE |
[TYPE] The extraction points are distributed on a linear segment. The end points are specified by the X, Y and Z parameters. |
X |
The x coordinate of the grid given in the offset coordinate system. |
R |
The inner and outer radius of the circular grid. |
Y |
The y coordinates of the corners of the Cartesian grid. |
Z |
The z coordinates of the corners of the Cartesian grid. |
N |
The dimensions of the circular or Cartesian grid. For a circular grid the first dimension is the number of points in the tangential direction, and for a Cartesian grid it is the number of points in the y direction. For a linear grid only the first value is used. |
SCALE |
Scale factor for the grid. |
YSIGN |
Set to 1 if the grid is on the positive side of y=0, -1 otherwise. This will place the grid on the negative side of y=0 where the XGRID grid is for symmetrical computations. |
ROTATION |
Rotation of the grid(s) specified by the Euler angles with the pitch, roll, yaw convention. Given in degrees. |
TRANSLATION |
Translation of the grid origin, specified in offset file coordinates. |
XIN |
(FILE only) Find which column to use as x-coordinate. If this parameter is omitted the value of X is used for all points. |
YIN |
(FILE only) Find which column to use as y-coordinate. If this parameter is omitted the value of Y is used for all points. |
ZIN |
(FILE only) Find which column to use as z-coordinate. If this parameter is omitted the value of Z is used for all points. |
DIN |
(FILE only) Find which column to use as distance. |
XVAR |
Extract the x-coordinate. The column will be identified by the value of XVAR. The extracted value is in the computational coordinate system. |
YVAR |
Extract the y-coordinate. The column will be identified by the value of YVAR. The extracted value is in the computational coordinate system. |
ZVAR |
Extract the z-coordinate. The column will be identified by the value of ZVAR. The extracted value is in the computational coordinate system. |
UVAR |
Extract the x-component of the velocity. The column will be identified by the value of UVAR. The extracted velocity is non-dimensionalized by ship speed. |
VVAR |
Extract the y-component of the velocity. The column will be identified by the value of VVAR. The extracted velocity is non-dimensionalized by ship speed. |
WVAR |
Extract the z-component of the velocity. The column will be identified by the value of WVAR. The extracted velocity is non-dimensionalized by ship speed. |
PVAR |
Extract the non-dimensional pressure p=½Cp. The column will be identified by the value of PVAR. |
KVAR |
Extract the non-dimensional turbulent kinetic energy. The column will be identified by the value of KVAR. |
OMVAR |
Extract ω. The column will be identified by the value of OMVAR. |
FIBVAR |
Extract distance to nearest NOSLIP boundary. The column will be identified by the value of FIBVAR. |
LFIBVAR |
Extract distance to nearest component grid boundary. The column will be identified by the value of LFIBVAR. |
FREE¶
The FREE command controls RANS computation with free sinkage and trim. It only applies to VOF free surface computations.
Computations with free sinkage and/or trim are done by heaving and pitching the hull to achieve balance in lift and pitching moment. After every 10 iterations, the differences between the hydrodynamic lift force and pitching moment and the gravitational force and pitching moment are computed. Using the waterline area and area moment from XMESH, an equilibrium position is determined and the hull position is updated by deforming the grid.
During each iteration, the convergence and the number of iterations are controlled with the XCHAP:CONTROL:MAXIT parameter and XCHAP:CONV. Since the grid is modified, more iterations may be needed than for a fixed hull computation.
If either a propeller position in XFLOW:PROPELLER or a tow force position (TOWX,0,TOWZ) is specified, then the horizontal force that balances the hydrodynamic drag is applied there. If no force position is given, it is assumed that the drag is balanced by a force acting in the hydrodynamic center, so that there is no trimming moment. The latter condition can also be mandated with the keyword NOMOMENT.
The result from each iteration is logged in the file <id>_RUN_DIR/xship_TRIMLOG. The final result is also written to <id>_OUTPUT.
Since XMESH is used to get hydrostatic data and LPP is used, free sinkage and trim calculations require that there is an XFLOW:OFFSET command.
General form of command
FREE ( ON , HORIZON , ITSTART = i ,
TRIM SHAFT
SINK NOMOMENT
OFF
ITEND = i ITINTER = i VERB = i
XTOW = v , ZTOW = v , TRCRIT = v ,
SICRIT = v , DTRIMMAX = v , DSINKMAX = v ,
TRMAX = v , SIMAX = v , TRRELAX = v ,
SIRELAX = v , DSOLID = v , DFIXED = v )
Default values
FREE ( ON, NOMOMENT, ITSTART=300, ITEND=-1, ITINTER=10, SHAFT, TRCRIT=1e-3,
SICRIT=1e-5, DTRIMMAX=0.002, DSINKMAX=1e-5, TRMAX=2, SIMAX=0.05,
TRRELAX=0.02, SIRELAX=0.01, DSOLID=0.2, DFIXED=0.4, VERBOSE=1)
Keywords
| Keyword | Description |
|---|---|
ON |
[FREEON] The model is free to sink and trim. |
TRIM |
[FREEON] The model is free to trim. |
SINK |
[FREEON] The model is free to sink. |
START |
[MODE] In each iteration the RANS solver is started from an initial guess. |
ITSTART |
The hull remains fixed in its initial position until ITSTART iterations have been done. This is to let the initial solution gradients damp out. |
ITEND |
The hull remains fixed after this iteration. Default is ITEND=-1 which means infinity, i.e. the hull remains free for all iterations. There is usually no reason to change this parameter. |
ITINTER |
Number of iterations between each hull position update. There is usually no reason to change this parameter. |
SHAFT |
[TOWDIR] If an XFLOW:PROPELLER command is present, the propeller thrust is applied parallel to the shaft. |
HORIZONTAL |
[TOWDIR] If an XFLOW:PROPELLER command is present, the propeller thrust is applied in the horizontal direction. |
XTOW |
x-position in the offset (design) coordinate system of the centre of the drag balancing force. |
ZTOW |
z-position in the offset (design) coordinate system of the centre of the drag balancing force. |
TRCRIT |
Trim angle convergence criterion, in degrees. |
SICRIT |
Sinkage convergence criterion, expressed as fraction of LPP. |
DTRIMMAX |
Maximum absolute trim change. |
DSINKMAX |
Maximum absolute sinkage change. |
TRMAX |
Maximum allowed absolute trim angle. |
SIMAX |
Maximum allowed absolute sinkage. |
TRRELAX |
Relaxation factor for trim change. |
SIRELAX |
Relaxation factor for sinkage. |
DSOLID |
Inside this distance from the hull, the grid is deformed as a rigid body. The distance is non-dimensionalised with Lpp, so 0.2 means 20% of Lpp. |
DFIXED |
Outside this distance the grid is not deformed. Between DSOLID and DFIXED the deformation reduces linearly from rigid body to zero. DFIXED must be larger than DSOLID and the difference, typically 0.2, must allow for a smooth transition between the rigid body region and the fixed region. |
VERBOSITY |
VERBOSITY=2 prints diagnostics at each hull position update; the default is silent. |
IMPORT¶
This command imports internally or externally generated structured grids. The command may be repeated to import grids from other files or re-import from previously used files. If a file is used more than once, the grids will appear as new objects, i.e. the previously imported grids will not be modified or overwritten. Importing a grid twice (or more) is not by itself useful since the grids will cover the same domain, but by applying translation and/or rotation it can be used to represent a recurring geometrical feature.
SHIPFLOW can re-import XCHAP grids from a CGNS file produced by SHIPFLOW in a previous computation. Typically, this is useful when setting up a catamaran or trimaran case. For SHIPFLOW to recognize such a CGNS file, the keyword XCHAP should be set in the IMPORT command. GRIDNAME also needs to be set to read the correct grid from the CGNS file. If the boundary conditions need to be changed, the BC11, BC12, BC21, BC22, BC31 and BC32 keywords can be used.
Externally created grids in Plot3D ASCII file format can also be imported. The file must have the suffix .fmt or .p3d to be recognized as a Plot3D file. Each file may contain one or more grids. The Plot3D format is
N
L1 M1 N1 L2 M2 N2 ... Lnb Mnb Nnb
x11 x12 ... x1N1
y11 y12 ... y1N1
z11 z12 ... z1N1
m11 m12 ... m1N1
x21 x22 ... x2N2
.
.
.
znb1 znb2 ... znbNnb
mnb1 mnb2 ... mnbNnb
where N is the number of grids (blocks), L1 M1 N1 are the dimensions of the first grid, x11, y11, z11 are the x, y, z-coordinates of the first node in the first grid, m11 is an integer value that specifies properties for the first node in the first grid (not used by SHIPFLOW) and N1 = L1 x M1 x N1 is the number of nodes in the first grid. The ordering of the node data is such that if node number i corresponds to point (l,m,n) in index space, then node i+1 corresponds to (l+1, m,n). The numbers are separated by whitespace.
SHIPFLOW can also import externally generated grids from files in the CGNS format. Such files can be exported from, for example, ICEM CFD and Gridgen. The advantage with this format is that it can contain the connectivity information for the butt-joined grid faces and the boundary conditions for all faces. If the connectivity is specified in the file then it is important to set the NOSTRETCH parameter, since stretching the component grids is likely to invalidate the connectivities. If boundary conditions are specified in the command file they will override the values in the CGNS file. If no boundary conditions need to be specified in the command file then all grids in the CGNS file can be imported with a single IMPORT command.
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 one 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 the values map to SHIPFLOW boundary conditions according to the table below. Any unspecified boundary conditions will be assignedINTERIOR.CGNS BC identifier SHIPFLOW bc identifier BCInflowINFLOWBCOutflowOUTFLOWBCSymmetryPlaneSLIPBCWallNOSLIPBCWallViscousNOSLIPBCWallInviscidSLIPBCTypeNullINTERIOR -
Under each
BC_tnode there should be:PointRangewith Node Label equal toIndexRange_t.InwardNormalIndex.- Any other nodes are ignored.
Use a CGNS browser such as adfviewer to check that the grid data is correctly stored in the CGNS file.
The grids are assumed to be specified in the offset file coordinate system; if they are not, they may be translated, rotated and scaled. The rotation is specified by Euler angles using the pitch-roll-yaw convention. All transformations are done starting from the grid coordinate system. The transformations are made in the order SCALE, YSIGN, ROTATION, TRANSLATION.
General form of command
IMPORT ( ID = "c" , GROUP = n ,
FILE= "c" , NUMBER = n ,
TRANSLATION = [v1,v2,v3] , ROTATION = [v1,v2,v3] ,
RANGE = [n1,n2,n3,n4,n5,n6] , DIMENSION = [n1,n2,n3] ,
YSIGN = n , SCALE =v ,
BC11 = "c" , BC12 = "c" ,
BC21 = "c" , BC22 = "c" ,
BC31 = "c" , BC32 = "c" ,
ROTCENT = [v1,v2,v3] , STRETCH ,
NOSTRETCH
GRIDNAME = "c" , XCHAP ,
CUT , TRIM ,
NOCUT NOTRIM
SCUT=[n1,n2,n3,n4,n5,n6] , STRDIR = [n1,n2,n3] ,
COMPUT LINEAR )
CUBIC
HERMITE
ENO
Default values
IMPORT( NUMBER=0, TRANSLATION=[0,0,0], ROTATION=[0,0,0], YSIGN=-1, SCALE=1,
BC11="INTERIOR", BC12="INTERIOR", BC21="INTERIOR", BC22="INTERIOR",
BC31="INTERIOR", BC32="INTERIOR", CUT, TRIM, ENO)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the imported grid 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. For import file formats such as CGNS that supply a name, ID may be omitted. |
FILE |
Name of the Plot3D file that specifies the grid. The file name must end with .fmt or .p3d. |
NUMBER |
If there is more than one grid in the file, import only the NUMBERth one. The first grid in the file is number one. If the default value NUMBER=0 is given, all grids in the file are imported and they get the same name, transformations and boundary conditions. |
GROUP |
Group number in the overlapping grid algorithm. If not specified the grid will be the only grid in the group. |
SCALE |
Scale factor for the grid. |
YSIGN |
Set to 1 if the grid is on the positive side of y=0, -1 otherwise. This will place the grid on the negative side of y=0 where the XGRID grid is for symmetrical computations. |
ROTATION |
Rotation of the grid(s) specified by the Euler angles with the pitch, roll, yaw convention. Given in degrees. |
ROTCENT |
Center of rotation for the Euler angles given in ROTATION. |
TRANSLATION |
Translation of the grid origin, specified in offset file coordinates. |
RANGE |
Index range to import, [Lmin,Lmax,Mmin,Mmax,Nmin,Nmax]. If not specified, the whole range is imported. |
DIMENSION |
Set grid dimensions. Default is to use the dimensions in the file. Changing the default means that new node positions are interpolated from the original ones, which may lose features like sharp edges. |
BC11 |
Specify the boundary condition on side l=1 of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT", "INTERIOR" and "MIXED_BC" (see section H-O topology grid import). The INTERIOR condition means that the boundary values are taken by interpolation from other grids.For grids imported from SHIPFLOW CGNS files there is an additional option: one boundary condition can be changed to another boundary condition with the -> operator. Examples are "INTERIOR->SLIP" and "SLIP->INTERIOR". |
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. |
STRETCH |
[STRETCH] Stretch the grid. |
NOSTRETCH |
[STRETCH] Do not stretch the grid. The grid is used as given in the imported file. |
STRDIR |
Stretch only in directions j where STRDIR[j] == 1. |
XCHAP |
File to import from is a SHIPFLOW (XCHAP) CGNS file. |
GRIDNAME |
Name of the grid in the imported SHIPFLOW CGNS file. |
CUT |
Include faces with boundary condition=NOSLIP in hole cutting. This is seldom a concern. |
NOCUT |
Exclude grid faces from hole cutting. |
SCUT |
Select which grid faces to include in hole cutting. 1=side cuts, 0=side does not cut, [Lmin,Lmax,Mmin,Mmax,Nmin,Nmax]. |
TRIM |
Translate and rotate the grid(s) together with the hull sinkage and trim. This is the default and appropriate for grids that model appendages on the hull. |
NOTRIM |
Keep the grid(s) fixed, do not follow the hull sinkage and trim. This is appropriate for grids that model objects in the ship's environment, like a canal bank. |
COMPUT |
Do not transform the grid(s) to the computational coordinate system. Use this if the imported grids are already defined there, i.e. Lpp=1, origin at FP. |
LINEAR |
Linear interpolation. Robust. |
CUBIC |
Cubic interpolation. May oscillate. |
HERMITE |
Hermite interpolation. May oscillate. |
ENO |
ENO interpolation. Robust and accurate. Default. |
KRYLOV¶
This command is used to control the Krylov solver. The Krylov solver is the default solver for both double model and VOF computations; ADI in the CONTROL command in the XCHAP section selects the ADI solver instead. For VOF computations the Krylov solver assembles the coupled system from the same discretization as the ADI solver (VNEW) and solves the k and omega equations separately from the flow equations (UNCOUP=2). The keywords marked VOF only below apply to that path; CONTROL(ADI) keeps the behaviour of earlier versions.
General form of command
KRYLOV ( STARTIT = n , NSTOL = v , KTOL = v , OTOL = v ,
MAXIT = n
RELAX = v , VLIMIT = v , NSBJAC , KBJAC ,
NSASM KASM
OBJAC , NSGMRES , KGMRES , OGMRES ,
OASM NSBCGS KBCGS OBCGS
NSCGS KCGS OCGS
NSBICG KBICG OBICG
STORAGE = "c" , UNCOUP = n , TSUB = n , PCLAG = n ,
VNEW , KCFL = v , CFLMAX = v , CFLRAMP = n ,
NOVNEW
TRELAX = v , TREFRESH = n )
Default values
KRYLOV ( STARTIT=30, MAXIT=100, NSTOL=1e-3, KTOL=1e-5, OTOL=1e-5,
RELAX=0.8 (1.0 for VOF), VLIMIT=0.5, NSBJAC, KBJAC, OBJAC,
NSGMRES, KGMRES, OGMRES, STORAGE="compact", TSUB=1 (2 for VOF),
PCLAG=0, UNCOUP=0 (2 for VOF), VNEW (VOF), KCFL=15, TRELAX=1.0,
TREFRESH=0, CFLRAMP=0 )
Keywords
| Keyword | Description |
|---|---|
STARTIT |
Starting number of inner iterations per outer iteration. The number of inner iterations will increase as the computation progresses. STARTIT can be increased if problems are encountered. |
MAXIT |
Maximum number of inner iterations. |
NSTOL |
Relative residual decrease per outer iteration for the Navier-Stokes and Continuity equations. |
KTOL |
Relative residual decrease per outer iteration for the k-equation. |
OTOL |
Relative residual decrease per outer iteration for the omega-equation. |
RELAX |
Blending control between old and new values. 0 means keep the old value. 1 means use the new value entirely. The default is 0.8 for double model and 1.0 for VOF computations. |
VLIMIT |
Limit the update of the normalized velocities. |
STORAGE |
Storage of the Krylov solver matrix, the ILU preconditioner and the Krylov vectors: "compact" (32-bit, the default) or "full" (64-bit). The flow solution, residuals, fluxes and forces are 64-bit in both, so the converged result is the same; compact storage makes each iteration about 1.3 to 2 times faster and needs about 30% less memory. ADI runs always use full storage. |
UNCOUP |
Number of trailing equations that are solved separately from the coupled system. 0 keeps the fully coupled solve; 2 solves the k and omega equations separately, using KTOL and OTOL, while NSTOL controls the flow (and VOF) solve. The default is 0 for double model and 2 for VOF computations; with VNEW only 0 and 2 are allowed. |
TSUB |
Number of turbulence sub-iterations per momentum step when the k and omega equations are solved separately: they are solved TSUB times, with the eddy viscosity and their equations refreshed between the solves. 1 is a single solve. The default is 1 for double model and 2 for VOF computations, where 2 brings the friction to a given accuracy in 25-30% less wall time on single-grid cases at about 20% more cost per iteration, with no gain on overlapping-grid or transom cases; more than 2 over-drives the omega equation. Range 1 to 10. |
PCLAG |
Reuse the preconditioner factorisation for this many outer iterations, refactorising every PCLAGth. 0 or 1 refactorises every iteration, which is the default. Measured to be slower on the coupled VOF path. |
VNEW |
[VNEW] VOF only. Assemble the coupled system from the same flux discretization as the ADI solver, using all seven coefficient bands. This is the default for VOF computations. |
NOVNEW |
[VNEW] VOF only. Use the older PETSc kernel instead of the VNEW assembly. |
KCFL |
VOF only, with VNEW. Pseudo-time step multiplier for the fully coupled solve, the counterpart of ICFL in the VOF command for the implicit direction of the ADI sweep. A coupled solve has no explicit direction, so raising this is the main convergence lever. Must be greater than zero. Default 15. |
CFLMAX |
VOF only, with VNEW. End point of an optional geometric ramp of KCFL, reached after CFLRAMP iterations. A value less than or equal to KCFL disables the ramp, which is the default. Measured to give no advantage over a suitable fixed KCFL. |
CFLRAMP |
VOF only, with VNEW. Number of outer iterations over which KCFL ramps geometrically from its initial value to CFLMAX. 0 disables the ramp, which is the default. |
TRELAX |
VOF only, with VNEW. Additional relaxation of the k and omega updates, in the range (0, 1], applied after RELAX. Default 1.0. |
TREFRESH |
VOF only, with VNEW and UNCOUP=2. Number of separated turbulence stages that are preceded by a fresh nonlinear assembly: 0 keeps one frozen assembly, 1 reassembles after the flow/VOF solve before k, and 2 also reassembles after k before omega. Default 0. |
NSBJAC |
[NS_PC] Block Jacobi preconditioner for Navier-Stokes and the continuity equations. |
NSASM |
[NS_PC] Additive Schwarz Method preconditioner for Navier-Stokes and the continuity equations. |
KBJAC |
[K_PC] Block Jacobi preconditioner for k equation. |
KASM |
[K_PC] Additive Schwarz Method preconditioner for k equation. |
OBJAC |
[O_PC] Block Jacobi preconditioner for omega equation. |
OASM |
[O_PC] Additive Schwarz Method preconditioner for omega equation. |
NSGMRES |
[NS_KSP] GMRES solver for Navier-Stokes and the continuity equations. |
NSBCGS |
[NS_KSP] BiCGStab solver for Navier-Stokes and the continuity equations. |
NSCGS |
[NS_KSP] CGS solver for Navier-Stokes and the continuity equations. |
NSBICG |
[NS_KSP] BiCG solver for Navier-Stokes and the continuity equations. |
KGMRES |
[K_KSP] GMRES solver for k equation. |
KBCGS |
[K_KSP] BiCGStab solver for k equation. |
KCGS |
[K_KSP] CGS solver for k equation. |
KBICG |
[K_KSP] BiCG solver for k equation. |
OGMRES |
[O_KSP] GMRES solver for omega equation. |
OBCGS |
[O_KSP] BiCGStab solver for omega equation. |
OCGS |
[O_KSP] CGS solver for omega equation. |
OBICG |
[O_KSP] BiCG solver for omega equation. |
LLINE¶
This command is used to control the running of the lifting line actuator disc. The propeller position, geometry and advance ratio are taken from the PROPELLER command in the XFLOW section. The geometry there is the blade distributions, a table given with GEOFILE, or a .prda file given with GEOFILE (the description of the panel method, from which the distributions are derived).
In an open water computation, HUBFILE on the PROPELLER command gives the test rig, the shaft, hub and cap of the facility, as the contour x r that PPROP uses for its hub (see Hub). The open water computation puts the contour into the box as a no-slip body of revolution on the propeller axis and places the propeller at the origin, pointing in the direction of the flow, so that the lifting line computes the propeller in the flow around the same rig as PPROP. The same command file then serves both models: only LLINE or PPROP changes. Outside an open water computation HUBFILE is not used by the lifting line.
LLINE in a duct¶
The potential flow Goldstein Kappa model in LLINE assumes that the propeller is in free flow. A propeller duct with small tip clearance modifies the blade span loading in a way that cannot be reproduced by LLINE, making the result inaccurate. To handle this, the parameters DUCT, UTRED and UTEXP are used.
The effect of a duct is to accelerate/decelerate the axial velocity and to act as an endplate that stops the tip vortex from forming close to the blade. The first effect is captured in the wake, but the second needs to be handled directly in the potential flow model. This is done by reducing the tangential component of induced velocity, which otherwise decreases the blade angle of attack and hence the blade load at the tip. The reduction is done by multiplying the tangential induced velocity by \( \left(1 - \mathrm{UTRED} \cdot (r/R)^{\mathrm{UTEXP}}\right) \). Adding the keyword DUCT sets UTRED = 0.9 and UTEXP = 1.5, which are chosen to replicate the Wageningen Ka systematic series. It is expected that ducted propellers with similar blade and duct geometry will be accurately represented with these values, but if open water data is available it should be used to tune the values of UTRED and UTEXP. For geometries that differ significantly from the Ka series, this is mandatory. Giving the UTRED and UTEXP values explicitly overrides the defaults.
See also Ducted and other close-coupled propeller devices under POW.
General form of command
LLINE ( ID="c" , RELAX = v , CF=v , ACTIVE ,
DJLIMIT = v DIME=[v_1,v_2,v_3] , XUPST=v , XDOWNST=v ,
RMIN=v , RMAX=v , BC11="c" , BC12="c" ,
BC21="c" , BC22="c" , STARTAT=n , WPLANE = n
ON , DKDJF = v , RUNINT=n , VERBOSITY = n ,
OFF
CTGIVEN = v DUCT , UTRED = v , UTEXP = v )
Default values
LLINE ( ID from PROP if only one propeller, RELAX=0.2, CF=0.004, XUPST=-0.3,
WPLANE=5, XDOWNST=0.3, RMAX=1.2, STARTAT=0,
BC11=BC12=BC21=BC22="INTERIOR", DIME=[12,16,31],
DKDJF=2 (KRYLOV) or 1 (ADI), RUNINT=1 (KRYLOV) or 10 (ADI),
VERBOSITY=1, UTRED=0, UTEXP=1.5 )
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ID |
A string that is used to identify the propeller and connect it to a PROPELLER command. Most files output by MPUF will have names composed with ID as the first part. All terminal output from the last running of MPUF (and e3dummy) will be directed to a file called <ID>_out.log. KT, KQ and VEFF for all runs of MPUF are saved in the file <ID>_PROPLOG. |
|
RELAX |
Relaxation factor. Both the circulation in the lifting line model and the force added to the right hand side of the RANS equations are relaxed by this factor. A low value makes the model more stable but slower to respond. | |
CF |
Wing section friction drag coefficient for the propeller blades. Setting CF to a positive value increases KQ. CF depends on the Reynolds number; typical values are in the range 0.002 to 0.008. |
|
| (1) | ON |
[DISKON] The propeller model is run and the body forces are updated every 10 iterations. |
| (1) | OFF |
[DISKON] The propeller model is not run and the body forces are set to zero. |
ACTIVE |
[ACTIVE] Run the RANS solver on the propeller grid. For embedded propeller grids this gives essentially the same result as the default mode where the propeller grid is only used for interpolation. With ACTIVE the influence of interpolation errors tends to be smaller, but at the default resolution details in the wake may be lost since the propeller grid is rather coarse close to the symmetry plane. If the propeller grid is used stand-alone, without being embedded in (an)other grid(s), boundary conditions have to be specified and ACTIVE mode used. |
|
STARTAT |
Start the propeller model after STARTAT iterations. This can typically be set to 40 for the KRYLOV solver if problems are encountered. |
|
XUPST |
The position of the propeller grid inlet plane expressed as nondimensional propeller radius. TUNING COMMAND. | |
XDOWNST |
The position of the propeller grid outlet plane expressed as nondimensional propeller radius. TUNING COMMAND. | |
RMIN |
The propeller grid inner radius. If set to zero, BC21 is disregarded. If no value is given, RMIN is computed from DHUB in the PROPELLER command. TUNING COMMAND. |
|
RMAX |
The propeller grid outer radius expressed as nondimensional propeller radius, i.e. RMAX=1 will put the outer boundary at the propeller tip. TUNING COMMAND. |
|
BC11 |
Specify the boundary condition on the upstream plane. 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. Only relevant when running the propeller grid alone. |
|
BC12 |
Specify the boundary condition on the downstream plane. | |
BC21 |
Specify the boundary condition on the inner radius. | |
BC22 |
Specify the boundary condition on the outer radius. | |
DIME |
Specify number of nodes in the axial, radial and tangential direction. | |
WPLANE |
Propeller matching plane in the cylindrical propeller grid. | |
DKDJF |
Factor controlling the change in J due to the imbalance between thrust and drag for a self-propulsion run. | |
DJLIMIT |
Maximum allowed change of J in a self-propulsion computation. | |
RUNINT |
Number of solver outer iterations between running the propeller model. | |
VERBOSITY |
VERBOSITY=2 prints diagnostics at each propeller force update; the default is silent. |
|
CTGIVEN |
Total drag coefficient, overrides value from computation. | |
DUCT |
Keyword that turns on duct compensation with UTRED=0.9 and UTEXP=1.5. |
|
UTRED |
Tangential velocity reduction factor, see LLINE in a duct above. | |
UTEXP |
Tangential velocity reduction exponent, see LLINE in a duct above. |
Notes
- Turning it
OFFwill still make XCHAP create a propeller and a propeller grid, so start-up will take a little longer and more memory will be used. If you want to restart later with the propeller turnedON, this will only be possible if the propeller was present butOFFfrom the beginning. When the propeller isONit will be run after every 10 XCHAP iterations forADIand every XCHAP iteration forKRYLOV.
OVERLAP¶
This is a tuning command that gives the user control of some of the parameters in the overlapping grid algorithm. The normal use of this command is to diagnose problems with non-fluid points “leaking” out into and filling the fluid domain. By giving the keywords BDFLAG or ONEFILL, the recursive filling is inhibited and the non-fluid classified points can be inspected in SPOST.
A global refinement factor can be specified for all grids with VCOARSE, COARSE, MEDIUM or FINE in XGRID:SIZE. If a different factor is required for all grids except the hull grid, like rudders, shafts, brackets etc., this is done with the corresponding keywords in the OVERLAP command together with the keyword REFSEP (REFine SEParately). FINE is the default and corresponds to a refinement factor r=1.
The refinement factor can also be given explicitly with GREFINE. A value >1 gives more cells and a value <1 fewer cells. The factor is applied equally in all directions, so GREFINE = 2 gives \( 2^3 = 8 \) times more cells. In keyword form the ratio between values is \( \sqrt[4]{2} \), so MEDIUM gives a refinement factor of \( 1/\sqrt[4]{2} \) and VFINE \( \sqrt[4]{2} \). For refinement factors that are not an integer power of 2, the number of cells is rounded and hence the refinement is only approximately uniform.
The value of YTARGET is multiplied by 1/r to keep the refinement uniform.
Specifying the grid dimensions explicitly with the DIMENSION parameter overrides this functionality.
General form of command
OVERLAP ( FILL , TRIM , RECLASS , VCOARSE ,
NOFILL NOTRIM NORECLASS COARSE
BDFLAG MEDIUM
ONEFILL FINE
VFINE
FIL1 , REFXGR , IWEIGHT ,
FIL2 REFSEP NOIWEIGHT
FIL3
NFILL = n , VOLDIST=v , GREFINE = v NOLEAKCHECK ,
RELAX = v , NTHREAD = n , SMALLV = v ,
INTSAVE , GHTRIM , DIRECT )
INDIRECT
Default values
OVERLAP ( FILL, NFILL=-1, FIL1, TRIM, SMALLV=0.0, VOLDIST=10e15, NOIWEIGHT,
RELAX=1.0, DIRECT (with KRYLOV; ADI interpolates),
NTHREAD=MAX(PARA|NTHREAD,PARA|NPROC), COSVMIN=0.5, FINE, IWEIGHT,
REFXGR)
Keywords
| Keyword | Description |
|---|---|
FILL |
[FILL] Recursively mark cells that are outside of NOSLIP boundaries as non-fluid. |
NOFILL |
[FILL] Do not mark any cells as non-fluid. |
BDFLAG |
[FILL] Mark cells that are cut by a NOSLIP boundary as non-fluid. This is done to seed regions that are outside of the fluid domain before recursively filling them. This keyword stops the algorithm after the seeding. |
ONEFILL |
[FILL] Do the seeding and do the filling step once. Useful for finding “leaks”. |
NFILL |
Stop the filling of non-fluid volumes after NFILL recursions. This is useful for finding the location of the leak. The technique is to find NFILL such that only a few outside cells leak out into the fluid volume. The cells classified as outside can be visualized in SHIPFLOW Design/CAESES. |
FIL1 |
Select filling algorithm 1. This is the old algorithm and also the default. It finds initial non-fluid cells by investigating cells that are intersected by a physical boundary and using a geometric criterion to determine if the intersected cell's center is inside or outside of the intersecting cell face. |
FIL2 |
Select filling algorithm 2. It finds initial intersected cells like algorithm 1 but then finds the closest point on the total physical boundary. If the scalar product of the vector from the cell center to the closest point and the inward (seen from the fluid side) surface normal vector in the closest point is positive, the cell is classified as non-fluid. |
FIL3 |
Select filling algorithm 3. It loops through all cells and finds and classifies the nearest point on the physical boundary like algorithm 2. Since it investigates all cells it is considerably slower than the other two. |
IWEIGHT |
Use a more accurate calculation of interpolation weights for surface integrals in overlapped regions. |
NOIWEIGHT |
Use a less accurate calculation of interpolation weights for surface integrals in overlapped regions. This can be used in the rare case that the more accurate method fails. |
TRIM |
[TRIM] No recursive interpolation between overlapping grids will occur. This is the preferred way to run overlapping grids. |
GHTRIM |
[TRIM] In an additional step, recursive interpolation involving ghost cells is removed. |
NOTRIM |
[TRIM] Should be seen as a post-processing command. If the plots look strange in SPOST, try restarting SHIPFLOW with NOTRIM turned on and MAXIT=0 and RESTART set in the CONTROL command in the XCHAP module. |
SMALLV |
Controls what is considered a small cell volume. Cells smaller than this value will be treated in a more robust but less accurate way. SMALLV cannot be set to less than 0.0. |
VOLDIST |
If the distance to the nearest NOSLIP boundary is greater than VOLDIST, then the cell with the larger volume will interpolate from the cell with the smaller volume if they overlap. VOLDIST should be given in the nondimensional coordinate system. |
RELAX |
Blending control between old and new value in interpolation cells. 0 means keep the old value. 1 means use the new value entirely. The default is 1.0. Cells that are coupled directly (DIRECT) are never relaxed. |
DIRECT |
[COUPLING] Couple the equations directly over butt joints between grids, and over the centreplane fold of a NOSYM grid, instead of interpolating between the grids. This is the default with the Krylov solver, for both double model and VOF computations. With ADI the receiving cells are interpolated. |
INDIRECT |
[COUPLING] Turn the direct coupling off: the receiving cells are interpolated and relaxed with RELAX instead. On full-scale self-propulsion cases this makes the omega solves cheaper, at the price of a small bias of the pressure resistance at the centreplane fold of a NOSYM grid. |
NTHREAD |
Number of threads used in the classification of cells. |
RECLASS |
Reclassify orphan interpolation INTERIOR to NOSLIP. |
NORECLASS |
Do not reclassify orphan interpolation INTERIOR to NOSLIP. |
REFXGR |
Refine globally (COARSE, MEDIUM etc.) according to the value in XGRID:SIZE. |
REFSEP |
Refine separately from the specification in XGRID:SIZE. |
VCOARSE |
[REFLEV] Sets the refinement factor to 1/2. |
COARSE |
[REFLEV] Sets the refinement factor to \(1/\sqrt{2}\). |
MEDIUM |
[REFLEV] Sets the refinement factor to \(1/\sqrt[4]{2}\). |
FINE |
[REFLEV] Sets the refinement factor to 1. |
VFINE |
[REFLEV] Sets the refinement factor to \(\sqrt[4]{2}\). |
GREFINE |
Sets the refinement factor. Value must be >0. Overrides REFLEV. |
NOLEAKCHECK |
Do not check the overlapping grid for leaks. In rare cases the test gives a false positive, i.e. a component grid has a large proportion of outside and interpolation cells but not due to a leak. In this case NOLEAKCHECK allows the computation to proceed. |
INTSAVE |
Save interpolation information as fields in the CGNS file, so that it can be visualized in external software like ParaView. This is mainly for code development purposes. |
PARALLEL¶
This command controls parallel execution of XCHAP. The techniques supported in the current version are message passing and multithreading.
Message passing¶
In this parallelization technique the problem is split up and worked upon by different processes that communicate by sending messages. Each process runs a program in its own memory space. The programs are usually identical except for the data they work on. The most common standard for message passing is MPI (Message Passing Interface) which has several implementations. SHIPFLOW uses OpenMPI on Linux and Microsoft MPI on Windows.
MPI programs are run on clusters of computers connected through a network. For small clusters a standard gigabit Ethernet may be enough, but for large clusters specialized hardware is used since the amount of communication grows as the problem is divided into smaller parts.
A requirement of SHIPFLOW is that there is a common file system, i.e. that all involved computers can access the same data directory. This is not an unusual requirement, and if you use a large cluster a common file system is probably already there. If you set up your own cluster, you will have to do this yourself, for example using NFS.
Running on a Linux cluster¶
The small cluster scenario is a few standard workstations, say up to 8, connected with a standard Ethernet. The OpenMPI default way to establish communication between the processes is using ssh. For this to work, you need to set up your computers so that giving a password is not required when communicating between them. The recommended way is using DSA passphrases. The FAQ on the OpenMPI web pages gives these instructions on how to do it on a Linux machine:
The first thing that you need to do is generate a DSA key pair to use with ssh-keygen:
Accept the default value for the file in which to store the key ($HOME/.ssh/id_dsa) and enter a passphrase for your key pair. You may choose to not enter a passphrase and therefore obviate the need for using the ssh-agent. However, this greatly weakens the authentication that is possible, because your secret key is potentially vulnerable to compromise because it is unencrypted. It has been compared to the moral equivalent of leaving a plain text copy of your password in your $HOME directory. See the ssh documentation for more details.
Next, copy the $HOME/.ssh/id_dsa.pub file generated by ssh-keygen to $HOME/.ssh/authorized_keys (or add it to the end of authorized_keys if that file already exists):
In order for DSA authentication to work, you need to have the $HOME/.ssh directory in your home directory on all the machines you are running Open MPI on. If your home directory is on a common filesystem, this may be already taken care of. If not, you will need to copy the $HOME/.ssh directory to your home directory on all Open MPI nodes (be sure to do this in a secure manner – perhaps using the scp command – particularly if your secret key is not encrypted).
ssh is very particular about file permissions. Ensure that your home directory on all your machines is set to at least mode 755, your $HOME/.ssh directory is also set to at least mode 755, and that the following files inside $HOME/.ssh have at least the following permissions:
The phrase "at least" in the above paragraph means the following:
- The files need to be readable by you.
- The files should only be writable by you.
- The files should not be executable.
- Aside from
id_dsa, the files can be readable by others, but do not need to be. - Your
$HOMEand$HOME/.sshdirectories can be readable by others, but do not need to be.
For large clusters you are probably not required to do this, since they have an internal network that does not require high security. On the other hand, you probably have to share the cluster with other users, so some kind of queue system is likely.
SHIPFLOW integrates with the PBS/Torque job scheduler by looking at the value of the environment variable PBS_HOST_FILE. If this variable is set to a valid file name, a list of hosts is read from that file and neither NPROC nor HOSTFILE needs to be specified in the SHIPFLOW command file. This feature can be turned off with the NOPBS keyword.
Running on a Windows cluster¶
Running on more than one node requires that the user has the same user credentials on all nodes. This in turn requires that a Windows Domain with Windows Active Directory is set up. It also requires a master node running the Windows HPC Server 2008 operating system to manage the cluster. The detailed setup and configuration of the cluster can be done in many ways; see the Microsoft documentation for this information.
SHIPFLOW integrates with the Windows Job Manager by looking at the value of the environment variable CCP_HOST_LIST. If this variable is set, a list of hosts is read from it and neither NPROC nor HOSTFILE needs to be specified in the SHIPFLOW command file.
Multithreading¶
Multithreading means that the program still runs in one process with one memory space, but with more than one program pointer. If the hardware supports it, the different threads may be executed concurrently on different processors. The kind of hardware that can support this kind of execution is Shared Memory Processor (SMP) machines. This includes multi-processor machines and multi-core processors. Parallel computers without shared memory, like clusters, cannot use multiple threads, but within each node you can still benefit from threading. In XCHAP, when you specify NTHREADS>1, each process will run with that number of threads.
Not all of the XCHAP code is parallelized yet, only the two most work-demanding parts, where the flow equations are set up and solved. This means that the pre-processing stage, where the grid is set up, and the post-processing stage, where data is saved etc., will not run faster.
If other jobs are running, the maximum number of threads for a new job is M-N, where M is the maximum number of processes allowed by the license, and N the number in use. Here a job running with m processes and n threads counts as m × n threads.
General form of command
PARALLEL ( NPROCESSES = n , NTHREADS = n ,
HOSTFILE = "c" , NPERNODE = n ,
MPIPARAM = "c" , NOPBS ,
ENVP = "c" , ENVN = "c" ,
ENVC = "c" , BALANCE )
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
NPROCESSES |
Requested number of processes in parallel execution. Do not set it to a higher number than your number of physical CPU cores, since that would only slow down the computation. | |
NTHREADS |
Requested number of threads in parallel execution for one process. XCHAP does not support running with multi-threading and multi-processes at the same time, so keep NTHREADS=1 if NPROCESSES>1. Do not set it to a higher number than your number of CPU threads, since that would only slow down your computation.Note for Linux: From SHIPFLOW 6.0, OpenMPI v1.8.3 is used, where the default is to use the same number of CPU cores as the number of processes, i.e. 1. That means that only one CPU core will be used no matter how many threads you set. A workaround, for example for 4 threads, is to set MPIPARAM="--map-by slot:pe=4". |
|
NPERNODE |
Maximum number of processes per node. If undefined the MPI implementation distributes the processes. | |
HOSTFILE |
Name of a text file containing information about the machines the program will run on. The file is a text file with a computer URL on each line, optionally followed by slots=n where n is the number of processors on the machine. The number of slots gives MPI a hint about how many processes it should run on a particular node to achieve load balance. A host file may look like this:serv1.domain.name slots=1serv2.domain.name slots=1 |
|
MPIPARAM |
Extra MPI parameters that are passed verbatim to mpiexec. |
|
NOPBS |
Do not use the PBS/Torque host file. | |
| (1) | ENVP |
Environment variable for the number of processes. |
| (1) | ENVC |
Environment variable for the number of cores per node. |
| (1) | ENVN |
Environment variable for the number of nodes. |
BALANCE |
Balanced decomposition: the cell layers of all grids are shared proportionally over all processes, so that no process is left with the leftover layers and the number of processes is never silently reduced. Off by default. |
Notes
- Used to override the number of processes from the configuration file with system environment variables. Use either
ENVP, orENVCandENVN. See the queueing system documentation for the relevant variables.
POW¶
The Propeller Open Water simulations can be controlled with this command. The propeller is modelled with the propeller model given in the XCHAP section, LLINE or PPROP.
Note
XFLOW:HULLTYPE:POW needs to be set, i.e. the keyword POW on the HULLTYPE command in the XFLOW section.
Reynolds number of the open water computation¶
The open water computation is built in the units of the case: the box around the propeller is sized from DPROP on the PROPELLER command, and bodies kept with KEEP (a duct, a hub or a shaft) are used at the dimensions written on their commands. The flow solver works per unit of its grid, so XSHIP converts VSHIP to the length of one unit of the box before the computation starts. The speed stays the same; only the reference length, and with it the Reynolds and Froude numbers, are restated. The RANS flow around the propeller is therefore at the Reynolds number V D/ν of the propeller at the scale of the computation, whatever reference length VSHIP is given with:
- In a stand-alone open water case the geometry is normally the model propeller in metres. One unit of the box is then one metre, and
VSHIPcan be given as usual, for example with the propeller diameter asREFLEN. - In the open water computation that
SPAUTOruns, the geometry is that of the ship case (normally full scale in metres) and the speed that of the model. One unit of the box is then 1/scale metres, with the scale factorLPP/REFLEN(orSCALEonVSHIP), the same factor PPROP uses to size the blade.
The log of the run states the length of one unit and the values passed to the solver, for example
POW: the box is in the case's units, one unit = 0.0316461 m at the computed scale (OFFSET|LPP 230.0 / VSHIP|REFLEN 7.2786);
VSHIP for the RANS per unit: RN 60889.3, FN 3.9431, REFLEN 0.0316461 (case: RN 1.40045e+07, FN 0.26, REFLEN 7.2786); Re_D 481025
where Re_D is the Reynolds number based on the propeller diameter at the scale of the computation. The same values appear as rn and refl under VSHIP in the OUTPUT file of each advance ratio. The propeller models are not affected by the conversion: PPROP takes the speed and the blade size from the case, and LLINE uses its own section friction.
Ducted and other close-coupled propeller devices¶
When doing open water calculations with a ducted propeller, the duct has to be included since the propeller and duct interaction is so close-coupled that analyzing them separately is not accurate. Other types of appendages may also need to be included in a POW computation. To do this, use the APPENDAGE and KEEP parameters. Grids listed in APPENDAGE are included in the POW computation, and their thrust is added to the propeller thrust. Objects listed in KEEP are also copied to the POW command file; this is used to keep things like a 2D section for a ROTBODY forming a duct.
See LLINE in a duct for how to run LLINE in a duct with DUCT, UTRED and UTEXP. PPROP is not intended for ducted propellers, see PPROP.
Position and direction of the propeller with KEEP
Without KEEP, the open water computation places the propeller itself, at the origin of the box and pointing in the direction of the flow. With KEEP, it uses the PROPELLER command as written (except with the rig of the test, RIG of PPROP or HUBFILE with LLINE, which places the propeller as without KEEP). Then give XSH, YSH and ZSH, the position of the propeller in the box, and XDIR=1.0. Without XDIR the command gets the direction of a propeller in a ship case, XDIR=-1, which in the open water box points against the flow, and the propeller is computed reversed without a warning. The flow in the open water box runs in the positive x-direction, so a duct taken from a ship case has to be turned round as well, with its leading edge upstream.
General form of command
POW ( J = [v1,v2...] , OUTPUTFILE = "c" , MAXIT = n ,
RN = v , DIME = [n1,n2,n3] , REFINE = v ,
VERBOSE = n , COUPLED , FIXV ,
UNCOUPLED FIXN
ON , START COARSE ,
OFF RESTART MEDIUM
FINE
APPENDAGE = ["c1","c2",...] KEEP = ["c1","c2",...] )
Default values
POW ( ON, J=[0.5,0.6,0.7,0.8,0.9], OUTPUTFILE="id_pow.dat",
MAXIT=100 (500 with the ADI solver), FINE (inherited from XFLOW:HULL),
REFINE=1, VERBOSE=1, START, COUPLED, FIXV)
Keywords
| Keyword | Description |
|---|---|
J |
List of advance coefficients to be calculated. |
OUTPUTFILE |
Name of the file where a table of J, KT, KQ and Eta_o is stored. |
MAXIT |
Largest number of iterations in XCHAP for each J. With PPROP the iterations stop before that as soon as KT and KQ have settled: when they change by less than 0.1 % between two propeller runs, from the third run on, which is typically after 30 to 50 iterations. If MAXIT is reached first, XCHAP prints Solution Not Converged! Restart solver with more iterations. |
RN |
Reynolds number based on the propeller diameter. |
DIME |
Dimensions of the box grid. |
REFINE |
Refinement factor for box grid. |
VERBOSE |
Amount of diagnostic output to print, [0..4]. |
START |
[START] Start from initial guess. |
RESTART |
[START] Restart from the previous run. |
COARSE |
[GDENS] Coarse box grid. |
MEDIUM |
[GDENS] Medium box grid. |
FINE |
[GDENS] Fine box grid. |
ON |
[POWON] Run the POW calculations. |
OFF |
[POWON] Do not run the POW calculations. |
COUPLED |
[COUPLED] Run the propeller model coupled to the RANS solver. This includes the effects of coupling as in the self-propulsion calculation and generally gives better results. |
UNCOUPLED |
[COUPLED] Run the propeller model without coupling to the RANS solver. Much faster but only useful to test the propeller model. |
FIXV |
[POWFIX] Keep the speed of VSHIP for every advance ratio and change the rate of revolution with J, as in an open water test in a towing tank. This is the default. |
FIXN |
[POWFIX] Keep the rate of revolution and change the speed with J, as in an open water test in a cavitation tunnel. The rate of revolution is the one that VSHIP and JV on the PROPELLER command give, n = V/(JV D); each advance ratio is computed at the speed J n D, that is with every speed on VSHIP (FN, RN, VKNOT, VM_S) multiplied by J/JV. Needs JV. |
APPENDAGE |
List of strings that match the ID (name) of 3D component grids that make up a close-coupled propeller appendage that needs to be included in the POW computation. The thrust (negative drag) on these grids is added to the propeller thrust. Three columns are added to the OUTPUTFILE: Ktd which is the KT contribution from the appendages (typically a duct), Kta which is the total KT and eta_a which is the efficiency of the propeller and appendage(s). |
KEEP |
XFLOW commands/objects used in the APPENDAGE grids, e.g. a 2D WSECT used by a ROTBODY to make a duct. |
PPROP¶
This command couples the panel method propeller program ESPPRO, which is delivered with SHIPFLOW, to the RANS solver. The propeller position, diameter, hub diameter and initial advance ratio are taken from the PROPELLER command in the XFLOW section, exactly as for LLINE. The blade geometry is taken from the PROPELLER command as well: its GEOFILE, normally a .prda file with its .prof file or the name of one of the propellers delivered in data/propellers_panel, or the blade distributions given on that command, see Blade geometry below.
The propeller is represented in the RANS computation by a body force distribution on a cylindrical propeller grid around the propeller plane. Every RUNINT iterations XCHAP writes the velocity field around the propeller, ESPPRO computes the effective wake, the blade loading over one revolution and the time averaged force field, and the force field is added to the RANS equations. In a self-propulsion computation (SELFPROPULSION ON in the XFLOW section) the advance ratio is adjusted between propeller runs until thrust, drag and towing force balance. KT, KQ and J of every propeller run are logged, and the propulsive factors are evaluated and printed in the OUTPUT file in the same way as for LLINE.
PPROP is used in the same situations as LLINE: propeller open water computations (POW on the HULLTYPE command together with the POW command), self-propulsion computations and full propulsion analyses with SPAUTO. In addition, PPROP can compute sheet cavitation on the blades, see note 5. With POST the propeller acts during the computation as usual and is evaluated once more when the iterations have finished, without feeding that evaluation back. This is how a cavitation computation is normally made.
Ducted propellers
Use LLINE with DUCT for a ducted propeller, see LLINE in a duct, not PPROP. The panel model of PPROP does not contain the duct, so the effect of the duct wall on the loading of the blade tips is missing, and with the duct in the RANS computation only, the division of the thrust between the propeller and the duct is not reliable.
Blade geometry¶
ESPPRO needs a panel mesh of the propeller blades. The geometry that the mesh is generated from is given with GEOFILE on the PROPELLER command, the same keyword that gives the lifting line its table of radial distributions: one GEOFILE serves both models, and the extension of the file says what it is. A name without a directory and without an extension, for example GEOFILE="VP1304", is one of the propellers delivered with SHIPFLOW: a panel-method blade in data/propellers_panel/<NAME>/ (one folder per propeller, with the .prda, its .prof and any hub contour files; the folder's README.md lists them), or one of your own put under ~/.shipflow/propellers_panel/<NAME>/ in the same way, or one of the lifting line's tables in data/propellers. 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. Three file formats are accepted, recognised by the file extension:
| Extension | Content |
|---|---|
.prda |
The recommended input. The .prda file holds the blade geometry as radial distributions of pitch, chord, thickness, camber, skew and rake, and the section profile file with the same name and the extension .prof, in the same directory, holds the shape of the blade sections. Both are produced from the CAD geometry of the propeller by the helper program cad2esprep, see Helper Programs. The blade is panelled when the computation starts, using NSPAN, NCHORD, STRETCH, STRFAC, MESHKEYS, ARMAX, TECLOSE and TIPCUT (note 2). For a controllable-pitch propeller the .prda file of one pitch setting serves for every setting: PITCH turns the blade to the others (note 16). If there is no .prof file beside the .prda file, every section gets a NACA 66 thickness form on an a=0.8 mean line. |
.prop |
An already panelled propeller in the mesh format of ESPPRO. The file is used as it is, with the panelling it carries. The lifting line cannot use it. |
a table (.txt) |
The lifting line's table of radial distributions, see PROPELLER. It has no skew, no rake and no section shapes, so the blade built from it is a straight blade with NACA 66 sections, as from the distributions below; a warning says so. |
A .prda file given on the PROPELLER command serves the lifting line and the ITTC78 extrapolation as well: the radial distributions they need (R_RT, P_D, C_D, T_D, F_C, with NBLA, EAR integrated from the chord and DHUB from the hub radius when they are not given) are derived from it when the computation is set up, so nothing is typed twice. GEOFILE, GEOSIZE and HUBFILE were keywords of the PPROP command before; they are still accepted there, with a warning, and will be removed.
If the PROPELLER command has no GEOFILE, the blade is built from its distributions: NBLA, DHUB (the hub radius as the ratio DHUB/DPROP), and per station R_RT, P_D, C_D, T_D, F_C, SKEW and RAKE, up to 100 stations. These are the columns of the .prda file, with the thickness as t/c = T_D/C_D, so a blade given this way is the same blade as its .prda file, station by station. SKEW and RAKE complete it; without them the blade is built without skew and without rake, which the computation says in a warning, since that is a different blade from a skewed or raked propeller. The sections are the NACA 66 thickness form on the a=0.8 mean line, as for a .prda file without a .prof file; a .prof file cannot be given on this route, so a propeller whose sections differ from that form is given as a .prda file with its .prof file. A table given with GEOFILE (the lifting line's format, which has no skew and no rake) is used in the same way. The dimensional forms LENG, THICK and CAMB are accepted as for the lifting line.
This is the route for design studies: the distributions are values in the configuration, which a design variable in Design5 can change, so a family of blades can be computed without a geometry file. The .prda file that is built is written into the propeller's directory of the computation, where it can be checked.
A Wageningen B-series propeller is given with WAGENINGEN, NBLA, EAR and WPD on the PROPELLER command (and BB for the BB-series outline). The lifting line uses the radial distributions of the series. PPROP builds the complete blade from the definition of the series (Oosterveld and van Oossanen 1975, Kuiper 1992): the expanded outline, the maximum thickness, the section shapes of the series, the pitch reduction towards the hub of the four-bladed series, the rake of 15° and the skew that follows from the outline. The leading edge is a round nose of 0.2 times the maximum thickness, and the trailing-edge thickness follows the original offsets of the series. WPD is the face pitch ratio of the series; the blade is described about the nose-tail line of its sections, which gives a pitch ratio about 1 % higher at 0.7R. The series is defined for 3 to 7 blades. Outside the range of the series tests (expanded area ratio 0.30 to 1.05, pitch ratio 0.5 to 1.4) a warning says that the blade is the shape of the series extended, not a tested propeller. The .prda and .prof files that are built are written into the propeller's directory of the computation. WAGENINGEN and GEOFILE cannot be given together.
Against the open water tests of the series at their Reynolds number, the thrust and torque that PPROP computes with this blade lie up to about 8 % above the measured values in the operating range, and the open water efficiency agrees within 0.02. The test data contain the effect of partly laminar flow at the low Reynolds number of the models, which a full scale propeller does not have.
XSH, YSH and ZSH on the PROPELLER command place the origin of the geometry file. cad2esprep puts that origin on the propeller plane, where the generator line of the blade meets the shaft axis, which is the propeller position that drawings and test reports give, so XSH is taken from them as it stands. The blade keeps its own axial offset from that plane, its rake and the rake its skew induces, inside the file. Files written by cad2esprep before October 2026 measure the rake from the root section instead, so their origin is the mid-chord point of the root section; for a raked or skewed blade that lies one to three millimetres (model scale) off the propeller plane. Regenerate such files, see Helper Programs.
The geometry file supplies the shape of the blade; the size comes from the case. PPROP computes the diameter of the propeller at the scale of the computation as DPROP on the PROPELLER command divided by the scale factor, which is LPP/REFLEN when both are given, otherwise SCALE on the VSHIP command, otherwise 1 (an open water computation, or one at full scale). It writes a copy of the geometry file at that diameter into the run directory, and the propeller program uses the copy. The diameter written in the .prda or .prop file is therefore ignored: the same file can be used for a model scale and a full scale computation, and a file exported from the CAD model at any scale gives the right blade. The diameter matters because the propeller program works at the Reynolds number of the computation, and both its blade friction and its model scale Reynolds number correction depend on it; a blade at the wrong size would change none of the input that is visible, only these. The diameter used is printed in the OUTPUT file, together with the one in the geometry file when they differ. To use the diameter in the geometry file instead, give GEOSIZE="FILE" on the PROPELLER command; the computation then stops if that diameter differs from the one the case gives by more than 2 %.
Hub¶
Without a hub the panel model of the blades ends at the root section in free fluid, and the pressure difference between the two sides of the blade leaks around the root. HUBON adds the hub to the panel model: ESPREP meshes one sector of hub panels for each blade, between it and its neighbours, built on the root section and following a given contour, the hub radius as a function of the axial position. With the hub the root of the blade is loaded as on a real propeller: the innermost three strips carry about three, one and a half and one point one times the loading they carry without it. Thrust and torque change much less, because the root carries little of either. The root pressures, the root cavitation and any model of the hub vortex or of boss cap fins need the hub.
The hub is off unless HUBON is given. KT and KQ remain those of the blades, which is what a model test reports after the tare of the bladeless hub. The pressure force on the hub is printed apart in <ID>_out<n>.log, on the line hub ... (hub pressure force, not in the coefficients above). It is a force on the ends of the hub, since a cylinder carries no axial force, and it depends on the shape of the ends.
What the hub follows depends on the computation:
| Computation | Hub contour | Body in the RANS computation |
|---|---|---|
Open water (HULL(POW)) |
The generic rig: a nose cap shaped as a half-ellipsoid 1.5 hub diameters long, with its base 0.5 hub diameters ahead of the root leading edge, the hub cylinder through the blades, and the shaft continuing to 8 hub diameters behind the root trailing edge, open there. A contour of the facility's rig can be given with HUBFILE on the PROPELLER command. |
The same contour, as a no-slip body of revolution on the axis of the open water box, generated by PPROP. If the case already carries a body of revolution about the propeller axis, that body is used instead and the hub follows it (note 19). |
| Self-propulsion, or a propeller behind a hull | The boss of the hull, read off the hull's offsets along the shaft axis (HUBFILE="AUTO", note 19). |
The hull with its boss, as the grid is generated from it. |
Either way the hub of the panel model and the body of the RANS computation are one definition: nothing describes the hub twice. The open end of a contour is kept well beyond the plane on which the effective wake is sampled.
The coupling subtracts the velocity the panel model induces from the RANS velocity to find the effective wake (see Results). With a hub, what is subtracted of the hub is set by HUBEXPORT, and the right choice depends on the computation. Behind an open water rig the whole perturbation of the hub, its doublets and its sources (FULL), is subtracted, so that the inflow sampled ahead of the nose cap returns to the free stream. With a hull the boss continues into the hull: the hub of the panel model ends open somewhere under it, and subtracting its sources would subtract the displacement of a body whose end and length are arbitrary. There only the doublets (CURRENT) are subtracted. PPROP sets the right one for the case.
With the hub, the KCS self-propulsion point moved towards the model test: thrust deduction 0.126 → 0.131 (model test 0.147), delivered power from 3.8 % to 1.9 % below the measurement, effective wake unchanged. On the JBC the delivered power moved from 12.0 % to 9.2 % below the measurement. In open water, with the generic rig, the computed curves stayed within the scatter of the calibration on seven propellers. The hub triples the number of panels, which adds a few seconds to a propeller run of the coupling and makes a cavitating evaluation about three times longer.
Model scale Reynolds number¶
A propeller model tested at a low Reynolds number gives less thrust than the same propeller at a higher one. Near the minimum blade Reynolds number the ITTC allows for an open water test, about 2·105 at 0.7R, the boundary layer on the blades is partly laminar, it thickens and separates earlier towards the trailing edge, and the sections act as if they had less camber. The loss is nearly the same amount of KT at every advance ratio, 0.012 to 0.020, which at light loading is a large part of the thrust. The same propeller tested at two different sizes shows it: the KVLCC2 propeller at 89.6 mm gives 0.014 to 0.020 less KT than at 170 mm.
The panel method computes the lift of the blade without a boundary layer, so it cannot see this by itself. PPROP therefore applies a correction at model scale: every blade section is given a shift of its zero-lift angle, applied in the boundary condition of the panels so that it works on any blade mesh. The shift is 0.75° at a blade Reynolds number of 2·105, falls to zero at 4.5·105 and is zero above it (LOWRERN moves that limit, LOWRERN=0 switches the correction off). A full scale computation, and a model scale computation at an ordinary Reynolds number, are therefore not affected at all; only a model propeller that turns at a low Reynolds number is. The Reynolds number used is the one at 0.7R of the propeller at the scale of the computation, which is why the size of the blade must come from the case, see Blade geometry.
The correction was calibrated on two model propellers tested near 2·105 and verified in open water computations of five: it brings thrust to within about 1 % of the measurements for the JBC propeller MP687, where it was 5 to 18 % too high, and leaves the others unchanged. It corrects the lift only. The laminar boundary layer also lowers the friction, which is not modelled, so the torque of a low Reynolds number model propeller comes out a few per cent low.
Each propeller run prints the Reynolds number and the shift it applied in <ID>_out<n>.log, on a line beginning Low-Reynolds correction.
Leading edge vortex correction¶
At heavy loading the flow separates at the leading edge of a real blade and reattaches behind it, and the suction peak that the panel method computes there is replaced by a lower, flatter pressure. The panel method would otherwise find too little torque at low advance ratios. PPROP corrects this on the sections where the pressure gradient near the leading edge exceeds a threshold, which is why the correction fires at heavy loading and not at a normal operating point.
The correction was calibrated against model tests, and it is applied at model scale only. Its threshold depends on the Reynolds number, and at the Reynolds number of a ship propeller it fires on most of the blade even at the operating point; open water computations at full scale showed no consistent effect, only a change of the torque of a few per cent whose sign varied from one advance ratio to the next. PPROP therefore decides from the Reynolds number at 0.7R of the propeller at the scale of the computation: below 5·106, which covers every model test, the correction is applied, and above it, at every full scale propeller, it is not. Nothing has to be set for this; the line Leading-edge vortex correction (auto) in <ID>_out<n>.log says which applied. LEVON applies the correction at any Reynolds number and NOLEV switches it off, for a study of its effect or for a cavitation computation where the capped leading-edge suction is not wanted.
Blade roughness¶
A ship propeller is not hydraulically smooth, and at full scale the friction of its blades is set by the roughness of the surface rather than by the Reynolds number. PPROP uses the roughness allowance of the ITTC 1978 performance prediction method, a roughness height of 30 µm, at full scale: the friction coefficient of the blade sections is the larger of the smooth flat plate value and the fully rough value of the ITTC method. A model propeller is polished, and the ITTC method treats it as smooth, so at model scale the blades are smooth. Without the allowance a full scale computation gave a drop of torque from model to full scale two to four times larger than the ITTC method; with it the torque drop is halved and the change of thrust is within about one percentage point of the ITTC method. ROUGH gives another roughness height in micrometres, and ROUGH=0 a smooth blade at full scale.
Model scale and full scale¶
Three parts of the propeller model depend on whether the computation is at model scale or at full scale. PPROP decides this by itself from the Reynolds number of the blade at 0.7R, computed for the propeller at the scale of the computation, so that the same card gives the right model at both scales and nothing has to be switched by hand.
| Model scale | Full scale | Decided by the Reynolds number at 0.7R | |
|---|---|---|---|
| Model scale Reynolds number correction | applied below 4.5·105 (0.75° at 2·105) | not applied | below 4.5·105 |
| Blade roughness, 30 µm | smooth blade | applied | 5·106 and above |
| Leading edge vortex correction | applied | not applied | below 5·106 |
Model tests are run at Reynolds numbers between about 2·105 and 3·106 and ship propellers work at 3·107 and above, so the limit of 5·106 separates the two with a wide margin on both sides. The diameter, the rate of revolution and the water that set the Reynolds number all come from the case, see Blade geometry. Each propeller run states what it applied in <ID>_out<n>.log.
Results¶
The propulsive factors, the rate of revolution and the delivered power are evaluated and printed in the OUTPUT file of the computation, exactly as for LLINE, and nothing has to be read from the propeller directory to get them. What the propeller directory holds is the propeller's own side of the computation: the history of the balance, and the blade results that only the panel method can give. A POST evaluation is the exception, since it feeds nothing back: the propulsive factors in the OUTPUT file stay those of the computation itself, and the evaluation's thrust, torque and cavity are summarised in a block of their own (see The propeller summary in OUTPUT).
The propeller program runs in its own directory, one per propeller: <case>_RUN_DIR/<ID>_DIR in a self-propulsion or resistance computation. In an open water computation each advance ratio is a computation of its own with its own directory, <case>_POW_J<n>_DIR/<ID>_DIR, numbered in the order the J values are given on the POW command, and in a full propulsion analysis with SPAUTO each leg has its own, <case>_RESISTANCE_DIR, <case>_POW_J<n>_DIR and <case>_SELFPROP_DIR. The directory is created when the computation starts and the files in it are written as the computation proceeds, one propeller run at a time, so they can be followed while it runs.
| File | Written | Content |
|---|---|---|
<ID>_PROPLOG |
after every propeller run | A named-column table with one line per propeller run: KT, KQ, the advance ratio the run was made at, the drag and thrust coefficients, the blade pitch, and the side force and moment components. This is the history of the self-propulsion balance and it is what a restart reads back. A POST evaluation does not add a line to it. |
espprobatch.log |
after every propeller run | One line per propeller run with date and time, advance ratio, effective advance ratio, wake fraction, rate of revolution, KT and KQ. A compact view of the same history, with the effective wake added, and the place to read the effective advance ratio and wake fraction from. Its KT and KQ are the ones the blades give with the propeller held still in the inflow, not the ones the computation uses: with CAVITATION in particular they do not change when the cavity does. Take thrust and torque from the PROPLOG or from ktkq.dat. |
ktkq.dat |
after every propeller run | KT and KQ of the last propeller run as the computation uses them, for reading by a script. After a POST evaluation this holds that evaluation's values, which is where a cavitating thrust and torque are read from. |
<ID>_out<n>.log |
during propeller run n | Everything the propeller program printed in run n: the blade geometry it read, the effective wake, the section forces, the leading edge vortex correction and, with CAVITATION, the cavity at every blade angle. Only the last three runs are kept; earlier ones are removed as the computation goes on, so copy one aside if it is needed. |
<ID>_err<n>.log |
during propeller run n | Anything the propeller program wrote to the error channel in run n. Empty when the run succeeded. If a propeller run fails – a blade the panel method will not mesh, a missing file – the computation says so and stops rather than carrying the previous run's forces forward, and the reason is at the end of <ID>_out<n>.log. |
apscav.res |
with CAVITATION |
The cavitation result: for every recorded blade angle, the area of the sheet on the key blade as a percentage of the expanded blade area, its volume, and two reliability columns — No solution, the percentage of the cavity on which the cavity surface condition has no solution, and Converged, y or n for the cavity shape. See note 6. With FACECAV, three more columns: the face inception cavitation number of the most critical blade section, the local cavitation number and the radius of that section (note 15). |
apvcav.res |
with TIPVORTEX |
The tip-vortex result: for every recorded blade angle, the minimum pressure coefficient in the tip-vortex core, the cavitation number, whether the vortex cavitates at it, and the angle from 12 o'clock at which the vortex leaves the blade at that moment (note 9). |
aprehh.res |
with PULSES |
The hull pressure pulses: for every point of the PULSES file, the amplitudes of the first three blade-rate harmonics of the pressure in kPa, at the scale of the computation, and the same as Kp = p/(ρn²D²) with their phases against the key blade at 0°. The header gives the number of steps of the revolution that were interpolated over (note 17). The points are numbered in the order of the file; pulses.names in the same directory gives their names. |
aprehu.res |
with PULSES |
The pressure at every point of the PULSES file at every step of the evaluation, as a time series. |
unsteady.pvd, unsteady<nnnnn>.vtu |
with PLOT |
The blade pressure and, with CAVITATION, the cavity thickness, one file per recorded blade angle, for ParaView. Open the .pvd file to get the recorded angles as a time series. The trailing wake is written alongside as wakeunsteady.pvd and wakeunsteady<nnnnn>.vtu. |
When the computation starts, PPROP prints a short summary of the propeller set-up: the blade and its panelling, how often the propeller program runs and what it computes, and the cavitation condition. What it derived and wrote to set the propeller up – sizes, defaults taken, the input files of the propeller program – is in <case>_RUN_DIR/pprop_<ID>.log, and is printed in full with VERBOSE=2 on the XCHAP CONTROL command. During the iterations a line below XCHAP's progress line, every ten iterations, says that the propeller program is running and what it computes, and then gives its result: run time, J, KT and 10KQ, and in self-propulsion the rate of revolution.
The same directory holds the files the propeller and the RANS solver exchange – the velocity field the solver exports, the blade forces the propeller program returns and the force field that is added to the RANS equations – together with the propeller and wake grids, the section force tables and the case file the computation was generated from. They are overwritten at every propeller run and are working files rather than results.
The effective wake deserves a word, because it is not a quantity the RANS computation has on its own. What the propeller program receives is the total velocity at the propeller plane, which contains the velocity the propeller itself induces. It subtracts its own induction from that field, and what remains is the effective wake, the inflow the blades actually work in. It is printed in <ID>_out<n>.log and its disc average appears in espprobatch.log, and it is the quantity to compare against a measured wake field.
The propeller summary in OUTPUT¶
When the computation ends, a short block per propeller is written into the OUTPUT file, after the propulsive factors of that propeller, so that the propeller's own results can be read without opening the propeller directory. In an open water computation it is in the OUTPUT file of each advance ratio. Every line has a key, a description and a value:
| Key | Written | Meaning and how to read it |
|---|---|---|
NRUN |
always | The number of propeller runs in the coupling. |
DJ3, DKT3, DKQ3 |
after three runs | The change of J (when it is iterated), KT and KQ over the last three propeller runs, in per cent: how well the coupling has settled. Changes of a few tenths of a per cent are typical of a converged computation. |
KTC, KQC, DKTC, DKQC |
with POST |
KT and KQ of the cavitating evaluation and their change against the wetted propeller, in per cent. A change of a few per cent is typical in the reliable range; it is a consistency check, not a prediction of thrust breakdown (note 6). Not reported, with the reason, when blade angles are outside the model's range. |
ACAV, ACMX |
with CAVITATION |
The mean and the largest sheet-cavity area on the key blade over the recorded revolution, in per cent of the blade area. Both count the thin leading-edge film as well (note 7). |
VCMX |
with CAVITATION |
The largest sheet-cavity volume on the key blade over the revolution, as V/D3. The volume, rather than the area, is what drives the pressure pulse the cavity causes; use it to compare conditions and designs. |
NANG, NOUT |
with CAVITATION |
The number of blade angles evaluated, and how many of them are outside the range of the model (note 6). NOUT should be 0; otherwise the block says so, and the cavity at those angles must not be used. |
TVCM, TVCS |
with TIPVORTEX |
The tip-vortex inception margin, the smallest difference over the revolution between the cavitation number and −Cp,min of the vortex core, and the share of the revolution in which the vortex cavitates (note 9). A positive margin means no tip-vortex cavitation anywhere in the revolution; a negative one gives how far the cavitation number would have to rise to suppress it. |
FCVM, FCVS, FCVR |
with FACECAV |
The face cavitation inception margin, the smallest difference over the revolution between the cavitation number and the face inception cavitation number, the share of the revolution in which the face cavitates, and the radius r/R of the critical section at the smallest margin (note 15). A positive margin means no face cavitation anywhere in the revolution. |
CPPA, PD07 |
with PITCH |
The angle in degrees by which the blade was turned about its spindle axis to reach the pitch setting, positive for an increase of pitch, and the pitch ratio at 0.7 R of the turned blade (note 16). |
PP1K, PP1M, PP1P, PPNS |
with PULSES |
The largest first blade-rate harmonic of the pressure over the PULSES points, as Kp = p/(ρn²D²) and in kPa at the scale of the computation, the name of the point where it occurs, and the number of steps of the revolution at which the cavity is outside the range of the model and the pressure was interpolated over (note 17). PPNS is 0 for a wetted evaluation. When more than a tenth of the revolution is outside the range, the pulses are not reported and the block says why. |
Report pages¶
With PPROP, the automatic report of the computation (see XPOST) has pages of the propeller's own, after the flow field pages of each propeller. Blade angles are measured from the blade at 12 o'clock; in the pictures of the propeller disc they increase clockwise, as seen from behind for a right-handed propeller.
- Radial thrust distribution of one blade over a revolution: the mean and the range it varies in, which shows how strongly the wake modulates the blade loading, and where.
- Thrust and torque of one blade against the blade angle: the load each blade goes through in the wake, the peak and its position.
- Forces and moments of the whole propeller against the blade angle: thrust, torque, the two side forces and the two bending moments that the shaft and its bearings carry. The text file of the page gives their mean and the amplitudes of the first three blade-rate harmonics.
With CAVITATION the wetted and the cavitating results are drawn together on the three pages above, and the sector in which the sheet cavity sits on the blade is shaded. Five pages show the sheet cavity itself:
- The cavity area and volume against the blade angle, with blade angles outside the model's range marked. The volume shows how the cavity grows and collapses, which the area does not.
- A sequence of the cavity on the key blade at eight blade angles across the sector in which it cavitates. The part thicker than 0.5 mm and the thinner film are drawn in different shades, and arcs of constant r/R are drawn on the blade, so that it can be set against a cavitation-tunnel sketch (note 7).
- The whole propeller at the blade angle of the largest cavity, as a stroboscope in a cavitation tunnel shows it.
- Maps of the cavity over the revolution, blade angle around the disc and r/R outward: the cavity length as a fraction of the chord, and the largest cavity thickness as a fraction of the section thickness. One picture gives where the sheet starts and ends in the revolution, how far inboard it reaches, and where it covers the whole chord. At the outermost strips, where the sections are thin, the thickness can exceed that of the section.
- The cavity thickness at the blade angle of the largest cavity, with the 0.5 mm contour.
Next to each picture, the img folder of the report holds a text file with the same name and the extension .dat, with the plotted data in columns and a header that says what they are. Use these files to compare computations — conditions, designs, or wetted against cavitating — in a plotting program of your choice.
An open water computation (HULL(POW)) has no report of the flow field, since every advance ratio is a computation of its own; with PPROP its report, <case>_REPORT, consists of these pages, one set per advance ratio.
A page whose results are absent is left out. The pages show the cavity as computed; whether it is inside the range of the model is read from NOUT and the marks on the area plot. The examples show these results for particular cases and discuss how to read them.
General form of command
PPROP ( ID="c" , NSPAN=n , ON ,
NCHORD=n , STRETCH=n , OFF ,
STRFAC=v , MESHKEYS=n ,
ARMAX=v , TECLOSE=v , TIPCUT=v ,
PITCH=v , HUBON , HUBEXPORT="c",
RIG ,
NXPLA=n , NRAD=n ,
NANG=n , XMIN=v , XMAX=v ,
RMIN=v , RMAX=v , STARTAT=n ,
RUNINT=n , RELAX=v , ITRELAX=v ,
DJLIM=v , DKDJ=v , CTGIVEN=v ,
NTHREADS=n , CAVITATION , FULLSCALE ,
SIGMAN=v , PATM=v , POST ,
PLOT , TIPVORTEX , FACECAV ,
PULSES="c" , PSBF=v ,
WRELAX=v , NOMINAL="c" , REFINE ,
NOREFINE ,
PROFILE="c" , DMODEL=v , LEVAUTO ,
LEVON , NOLEV , TVCORE=v ,
ROUGH=v , CFFAC=v , LOWRERN=v ,
PHI0=v , NWRAD=n , NWANG=n ,
RWMIN=v , RWMAX=v , XUEF=v ,
XUPUP=v , UEFUP , ROTINC=v ,
UEFEXTRAP
ROTREC=v , ROTEND=v , WAKEREV=v ,
WPFAC=v , WCFAC=v , CAVROOT=n ,
CAVTIP=n , TOLREF=n , VSHIPM=v ,
NLOG=n , SLEEP=v , NSMF=n ,
NSMV=n , FRACTION=v , KEEP ,
VERBOSE=n , DEBUG )
Default values
PPROP ( ON, NSPAN=30, NCHORD=30, STRETCH=5, STRFAC=0.7, MESHKEYS=2, ARMAX=30,
TECLOSE=0.95, TIPCUT=0,
no hub; with HUBON: the contour PROPELLER HUBFILE, else the boss
of the hull or, without a hull, the generic rig; HUBEXPORT="FULL"
in open water and "CURRENT" with a hull, RIG in open water,
NXPLA, XMIN, XMAX sized to the blade (note 14),
REFINE behind a hull, NOREFINE in open water and without a hull (note 14),
NRAD=30, NANG=90,
RMIN=DHUB/DPROP from PROPELLER, RMAX=1.1, STARTAT=0 (50 in self-propulsion, 500 with VOF),
RUNINT=10 (2 in self-propulsion, 10 with VOF), RELAX=1.0 (0.2 in self-propulsion),
ITRELAX=0.0 (0.2 in self-propulsion),
DJLIM=0.02, DKDJ=4 (self-propulsion only), WRELAX=0.4 (1.0 in open water), NOMINAL="AUTO" (self-propulsion only),
NTHREADS=NPROC from PARALLEL,
PATM=101324.4, PSBF=2, DMODEL=2, PHI0=90, LEVAUTO, TVCORE=0.30, ROUGH=30, CFFAC=0.9, LOWRERN=4.5e5,
NWRAD=NRAD, NWANG=NANG, RWMIN=RMIN plus half a radial cell, RWMAX=RMAX,
XUEF=0.3 (open water; self-propulsion: 0.1 R ahead of XMIN, at least
0.35), XUPUP=0.5, UEFUP, ROTINC=5 (2 with TIPVORTEX),
ROTREC=359 (1080 with CAVITATION), ROTEND=444 (1440 plus ROTINC
with CAVITATION), WAKEREV=16, WPFAC=0.7 (from ESPPRO), WCFAC=0.5,
CAVROOT=1, CAVTIP=1, TOLREF=0, VSHIPM from VSHIP and the scale,
NLOG=3, SLEEP=0.2, NSMF=1, NSMV=0, VERBOSE=2 )
Keywords
| Note | Note Keyword | Description |
|---|---|---|
| (1) | ID |
The name of the PROPELLER command the propeller model belongs to, which gives the position, the diameter, the hub diameter, the advance ratio and the blade geometry (GEOFILE, GEOSIZE, HUBFILE or the distributions), see Blade geometry. |
| (2) | NSPAN |
Number of panel strips in the spanwise direction when the blade is panelled from a .prda file. |
| (2) | NCHORD |
Number of panels in the chordwise direction on each side of the blade when the blade is panelled from a .prda file, with and without CAVITATION. |
| (2) | STRETCH |
Spanwise panel distribution when the blade is panelled from a .prda file: 1 uniform, 2 cosine towards root and tip, 3 parabolic towards the tip, 4 blended, 5 sine towards the tip, 6 sine towards the root. |
| (2) | STRFAC |
Spanwise stretching factor for STRETCH 2 to 6. For the cosine distributions (2 to 4) keep it at 0.5 or below. |
| (2) | MESHKEYS |
How the blade surface is built from the .prda and .prof files. 2: the sections are placed on their cylinders and thickened normal to the chord, the conventions the section tables are measured in. 1: the construction used before October 2026. |
| (2) | ARMAX |
Largest aspect ratio of the panel at the leading edge. Where the chord shortens towards the tip, the chordwise clustering is relaxed strip by strip until the leading-edge panel is at least the strip width divided by ARMAX. 0 leaves the clustering as it is. |
| (2) | TECLOSE |
Closure of the trailing edge: the thickness of the section table is kept up to this fraction of the chord and closed behind it. 0 thins the whole rear of the section from the position of maximum thickness instead, the treatment used before October 2026. |
| (2) | TIPCUT |
End the panelling at this r/R instead of at the last section of the .prda file; the cut is closed with one thin strip. 0 panels to the last section, and the blade is left open there if that section has a chord. The calibration of PPROP was made in this way, on propellers with narrow tips, where the open end costs 0 to 2 % of the thrust. For a blade with a wide tip, such as Kaplan-type and Ka-series blades and some controllable-pitch blades, give TIPCUT=0.995: open, such a tip loses up to a quarter of the thrust. Also for a blade whose tip strips misbehave. |
| (2)(16) | PITCH |
Controllable-pitch propeller: the pitch setting, as the pitch ratio P/D at 0.7 R. The blade is panelled as the .prda file gives it and then turned about its spindle axis until its pitch ratio at 0.7 R is this value; the angle of the turn is reported in _OUTPUT (CPPA). Only with a .prda file. Default: the blade as given. See note (16). |
| (19) | HUBON |
(HUB until October 2026, still accepted with a warning.) Add the hub to the panel model, one sector of hub panels for each blade, see Hub. The contour is HUBFILE on the PROPELLER command, or without it the one the computation implies (the boss of the hull, the generic rig in open water). In open water it implies RIG. Off unless given or implied by HUBFILE on the PROPELLER command. A .prop file that already carries hub panels is taken as HUBON. Needs a .prda file to mesh the hub, unless the .prop file carries it. |
| (19) | HUBEXPORT |
What the coupling subtracts of the hub when it computes the effective wake: "FULL", the doublets and the sources of the hub, the default in open water; "CURRENT", the doublets only, the default behind a hull; "INCREMENT" and "BLADE" for comparisons. A value that does not suit the computation is used, with a warning. |
| (19) | RIG |
Open water only: put the contour of the hub into the open water box as a no-slip body of revolution, so that the RANS computation and the panel model carry the same body. Implied by HUBON in open water. If the case already carries a body of revolution about the propeller axis, that body is used and no second one is added. |
| (14) | NXPLA |
Number of planes in the axial direction of the propeller grid. The default gives axial cells of about 0.0125 R between XMIN and XMAX (note 14). TUNING COMMAND. |
NRAD |
Number of stations in the radial direction of the propeller grid. TUNING COMMAND. | |
NANG |
Number of stations in the circumferential direction of the propeller grid. TUNING COMMAND. | |
| (14) | XMIN |
The position of the propeller grid inlet plane expressed as nondimensional propeller radius, x/R, negative upstream of the propeller plane. The default is the upstream edge of the blade minus one cell (note 14). TUNING COMMAND. |
| (14) | XMAX |
The position of the propeller grid outlet plane expressed as nondimensional propeller radius, x/R. The default is the downstream edge of the blade plus one cell (note 14). TUNING COMMAND. |
| (14) | REFINE |
[REFINE] Refine the hull grid around the propeller grid: adds XGREFINE(ON, FIT, LEVEL=[1,1,2], LINEAR), see XGREFINE and note 14. The default behind a hull, that is when the hull is given with OFFSETFILE and the computation is not an open water computation. No effect if the case has its own XGREFINE or REFINE command. |
| (14) | NOREFINE |
[REFINE] Do not refine the hull grid around the propeller grid. |
RMIN |
The propeller grid inner radius expressed as nondimensional propeller radius. If no value is given, RMIN is computed from DHUB in the PROPELLER command. TUNING COMMAND. |
|
RMAX |
The propeller grid outer radius expressed as nondimensional propeller radius, i.e. RMAX=1 will put the outer boundary at the propeller tip. TUNING COMMAND. |
|
| (3) | ON |
[DISKON] The propeller model is run and the body forces are updated every RUNINT iterations. |
| (3) | OFF |
[DISKON] The propeller model is not run and the body forces are set to zero. |
| (10) | STARTAT |
Number of solver outer iterations before the propeller model is run for the first time. In a self-propulsion computation the default is 50, and 500 with VOF (note 4): the computation starts as a resistance computation, and the correction of the effective wake (NOMINAL) is taken from that towed flow when the propeller model starts. |
| (4) | RUNINT |
Number of solver outer iterations between running the propeller model. |
| (4) | RELAX |
Relaxation factor. The force added to the right hand side of the RANS equations is relaxed by this factor each time the propeller model has been run. A low value makes the model more stable but slower to respond. In an open water computation the advance ratio is fixed and the force is applied whole. |
| (4) | ITRELAX |
Relaxation of the body force towards the latest propeller force field on every iteration between two propeller runs. 0 keeps the force fixed between runs. Range 0 to 1. |
| (4) | DJLIM |
Maximum allowed change of J per propeller run in a self-propulsion computation. |
| (4) | DKDJ |
Factor controlling the change in J per propeller run due to the imbalance between thrust and drag in a self-propulsion computation. |
| (4) | WRELAX |
Relaxation of the effective wake given to the propeller model in a self-propulsion computation: the wake used in a propeller run is WRELAX times the newly computed wake plus (1 − WRELAX) times the one used in the previous run. The default in a self-propulsion computation, 0.4, damps a feedback between the propeller loading and the computed effective wake that can make the advance ratio drift towards zero behind a full stern when the propeller grid is sized to the blade (note 14); when the computation has converged the two wakes are equal and the value has no effect. 1 uses the new wake whole, as in open water. |
| (10) | NOMINAL |
Correction of the effective wake for the gradient of the hull wake ahead of the propeller, see note (10). "AUTO", the default in a self-propulsion computation: taken from the computation's own towed flow when the propeller model starts. "OFF": no correction. Otherwise the resistance computation of the same hull, grid and turbulence model, given as the path of its command file relative to this command file. No effect in open water. |
CTGIVEN |
Total drag coefficient, overrides the value from the computation. | |
FRACTION |
Fraction of the resistance balanced by this propeller in a self-propulsion computation with several propellers. | |
NTHREADS |
Number of threads used by ESPPRO. | |
LEVAUTO |
[LEV] The leading edge vortex correction decided from the blade Reynolds number at 0.7R: applied below 5·106, not above. The default. | |
LEVON |
[LEV] The leading edge vortex correction applied at any Reynolds number. | |
NOLEV |
[LEV] No leading edge vortex correction. The correction caps the leading-edge suction that a sheet cavity grows from, so a cavitation study may switch it off, as the E779A example does. | |
TVCORE |
With TIPVORTEX: the tip-vortex core calibration factor. Default 0.30, the calibrated value (note 11); a different value for a propeller with its own inception measurements. |
|
ROUGH |
The blade roughness in micrometres applied at full scale. Default 30, the ITTC-78 standard; 0 computes a smooth blade at full scale. | |
CFFAC |
Expert: factor on the smooth blade friction line at model scale. Default 0.9, the calibrated value with the default panelling. | |
LOWRERN |
Expert: the blade Reynolds number at 0.7R below which the model scale Reynolds number correction is applied. Default 4.5·105; 0 switches the correction off. | |
PROFILE |
Expert: a file of propeller-model settings of your own, $HOME/.shipflow/propmodel/<name>.esppro, spliced into the propeller model's input. Not needed: the physics the model was calibrated with is built into it, and the settings a user may change have the keywords above. |
|
DMODEL |
Propeller diameter in the ESPPRO model. Default 2, i.e. unit radius. | |
PHI0 |
Seam angle of the propeller grid in degrees from +y. Default 90, i.e. the seam at 12 o'clock, which is the SHIPFLOW convention and matches LLINE and the wake grid; 0 is the legacy 3 o'clock seam. |
|
NWRAD |
Number of radial stations of the wake grid, on which the effective wake is sampled. Defaults to NRAD. |
|
NWANG |
Number of angular stations of the wake grid. Defaults to NANG. |
|
RWMIN |
Inner radius of the wake grid, r/R. Defaults to the hub radius RMIN plus half a radial cell, so that the innermost station samples the flow rather than the hub surface. A value given here is used exactly as given. |
|
RWMAX |
Outer radius of the wake grid, r/R. Defaults to RMAX. |
|
XUEF |
(XUP until October 2026, still accepted with a warning.) Distance, in propeller radii, of the plane upstream of the propeller plane on which the effective wake is sampled. In a self-propulsion computation the default is 0.1 R ahead of the propeller grid inlet XMIN, rounded up to 0.05 R and at least 0.35 R: closer, the plane sees the upstream induction of the body force itself, and the effective wake rests more on the subtracted induced velocity. In open water the default is 0.3. |
|
XUPUP |
Distance of the far upstream plane, in propeller radii, used only with UEFEXTRAP. Default 0.5, or XUEF plus 0.2 if XUEF reaches it. |
|
UEFUP |
[UEF] Take the effective wake from the plane XUEF only. This is the default; in self-propulsion the gradient of the hull wake between XUEF and the propeller is corrected by NOMINAL. |
|
UEFEXTRAP |
[UEF] Extrapolate the effective wake to the propeller plane from the two upstream planes XUEF and XUPUP. This multiplies the plane-to-plane noise by 1 + XUEF/(XUPUP - XUEF) and gave 3 to 5 times the spurious open-water wake of UEFUP. |
|
ROTINC |
Step of the blade rotation in degrees between two propeller evaluations of an ESPPRO run. Default 5; with TIPVORTEX the cavitating evaluation steps at 2° (note 11). |
|
ROTREC |
Rotation angle in degrees at which ESPPRO starts recording. Default 359, or 1080 with CAVITATION: two wetted revolutions, then the sheet cavity is computed from the third, and the fourth is recorded. |
|
ROTEND |
Rotation angle in degrees at which an ESPPRO run stops. Default 444, or 1440 plus ROTINC with CAVITATION. |
|
WAKEREV |
Length of the trailing wake of the ESPPRO model, in propeller revolutions; converted into a number of wake elements from ROTINC and the number of blades, so that one value means the same wake on every propeller. Default 16. |
|
WPFAC |
Ultimate wake pitch factor of the ESPPRO trailing wake: the pitch ratio of the wake is J + WPFAC (P/D at 0.9 R - J). Overrides ESPPRO's own default of 0.7. |
|
WCFAC |
Radial contraction factor of the ESPPRO trailing wake: 0 is the historical cylindrical wake and 1 is Hoshino's contraction geometry. Default 0.5, validated on four propellers. | |
VSHIPM |
The ship speed in m/s at the scale of the computation, given to ESPPRO. Derived from VSHIP and the scale when it is not given, which is the normal case. |
|
NLOG |
Number of ESPPRO log and error files that are kept. Default 3. | |
SLEEP |
Time in seconds that the RANS processes wait between their checks for the end of a propeller run. Default 0.2. | |
NSMF |
Number of smoothing sweeps applied to the force field. Default 1. | |
NSMV |
Number of smoothing sweeps applied to the velocity field. Default 0. | |
KEEP |
Do not overwrite generated ESPPRO input files that already exist in the run directory. | |
VERBOSE |
How much the coupling prints, 0 to 3. Default 2. | |
DEBUG |
Turn on debug output of the coupling. | |
| (5)(6) | CAVITATION |
Compute sheet cavitation on the blades. Without FULLSCALE or SIGMAN the condition is a towing tank at atmospheric pressure at the scale of the computation. |
| (6) | FULLSCALE |
With CAVITATION: the ambient pressure is scaled so that the cavitation number at the shaft is that of the full scale ship, as in a cavitation tunnel set to the ship condition. |
| (6) | SIGMAN |
With CAVITATION: prescribed cavitation number \( \sigma_n = (p - p_v)/(\frac{1}{2} \rho n^2 D^2) \) at the shaft, uniform over the propeller disc. Overrides FULLSCALE and PATM. |
| (6) | PATM |
Atmospheric pressure at the free surface in Pa. |
| (6) | CAVROOT |
With CAVITATION: the number of blade strips at the root left without sheet cavitation. Default 1. |
| (6) | CAVTIP |
With CAVITATION: the number of blade strips at the tip left without sheet cavitation. Default 1: on the tip strip the sheet model does not converge, and it is the region of the tip vortex. 0 lets the sheet reach the tip. |
| (6)(11) | TOLREF |
With CAVITATION: the number of times the openness tolerance of the cavity shape is tightened after the shape first meets it. Default 0 (note 11). |
| (5)(9) | TIPVORTEX |
With CAVITATION: also evaluate the tip-vortex cavitation inception margin at the computed condition. An inception margin only; see note (9). |
| (5)(15) | FACECAV |
With CAVITATION: also evaluate the face (pressure-side) cavitation inception margin at the computed condition. An inception margin only; see note (15). |
| (5) | POST |
Evaluate the propeller once more when the iterations have finished, without feeding that evaluation back, so a cavitation result needs no second computation. The propeller itself acts during the computation as usual. Added to a computation that is already finished, together with CONTROL(RESTART, MAXIT=0) or POW(RESTART), the evaluation is made on the restored flow field and there are no iterations. |
| (5) | PLOT |
Write the blade pressure and, with CAVITATION, the cavity thickness for every recorded blade angle as VTU files for ParaView, together with the trailing wake. |
| (5)(17) | PULSES |
Hull pressure pulses: the name of a file of points at which the POST evaluation computes the pressure fluctuation the propeller causes and its blade-rate harmonics, wetted, or cavitating with CAVITATION. One point per line, x y z, optionally followed by a solid boundary factor and a name; in the coordinates and units of XSH, YSH and ZSH on the PROPELLER command. "AUTO" places a grid of points on the hull above the propeller instead. Needs POST. See note (17). |
| (17) | PSBF |
Solid boundary factor of the PULSES points that do not give their own: 2 for a point on the hull or another wall, 1 for a point in the open flow. |
Notes
- The
.prdaand.proffiles are produced from the CAD geometry of the propeller with the helper programcad2esprep. The input files for the panel mesh generation are explained under Helper Programs. The propeller tables delivered indata/propellerscan be given asGEOFILEas well, as described under Blade geometry (they carry no skew and no rake). - The default panelling follows the blade geometry closely: 30 strips concentrated towards the tip, 30 panels chordwise on each side concentrated towards the leading and trailing edges, the leading-edge panels kept at an aspect ratio of 30 or less where the chord shortens towards the tip, and the trailing edge closed over the last 5 % of the chord. It is the panelling the propeller model is calibrated and validated on, for the forces, the sheet cavity and the tip vortex alike; on the reference propellers every point of the panelled surface lies within 0.3 % of the diameter of the CAD surface. A finer panelling (40 × 40) changes the agreement with the measured open-water curves by about 0.1 percentage points. Change the panelling only with a reason, and report any result together with the panelling it was computed on. The panelling used before October 2026, 18 uniform strips with 20 panels chordwise, is
NSPAN=18, NCHORD=20, STRETCH=1, MESHKEYS=1, ARMAX=0, TECLOSE=0; the propeller model's settings for it differ as well, so results on it are not comparable with the current calibration. - Turning it
OFFwill still make XCHAP create a propeller grid, and the panel mesh of the blades is made, so start-up will take a little longer and more memory will be used. If you want to restart later with the propeller turnedON, this will only be possible if the propeller was present butOFFfrom the beginning. This is how a self-propulsion computation can be started from the towed flow: the first computation withOFF, which gives the resistance of the towed hull, and a restart withON, which continues from that flow to the self-propulsion point. The two switches act on a restart as follows.ONcontinues from the advance ratio and the propeller runs of the computation it restarts.OFFremoves the force of the propeller from the restored flow, so the flow returns to that of the towed hull. -
In a self-propulsion computation the advance ratio is changed once per propeller run, i.e. every
RUNINTiterations, and the propeller force is relaxed into the right hand side, soRUNINT,RELAX,ITRELAX,DJLIMandDKDJall act on the same balance and their defaults are chosen together. In an open water computation the advance ratio is fixed, there is nothing to balance, and the force is applied whole at each propeller run. The defaults therefore differ between the two, andPPROPtakes them from the case: nothing needs to be given on the command for either, and in a full propulsion analysis withSPAUTOthe open water leg is run with the open water settings and the self-propulsion leg with the self-propulsion ones. With the self-propulsion defaults thrust and drag balance to within 1 % in about 100 iterations, and together withthe computation stops by itself when the balance has settled, typically after 150 to 200 iterations.
With a free surface (
VOFon HULLTYPE) the defaults areRUNINT=10andSTARTAT=500. There the free surface, not the propeller, decides how long the computation takes: the wave pattern develops over some 2000 iterations, also without the propeller, and the self-propulsion point follows it. On the KCS at Fn 0.26 the delivered power was within 1 % of its final value from about iteration 2100, with the propeller run every 2 or every 10 iterations alike, and every 10 needs a fifth of the propeller runs, which otherwise take most of the computing time. With 500 towed iterations before the propeller starts, the correction of the effective wake (NOMINAL, note 10) is taken from a developed towed flow; started after 50 iterations, the delivered power came out 2.3 % higher. WithoutMAXITERin CONTROL aVOFcomputation runs up to 4000 iterations; XSHIP warns when a smaller value given there is below 2000. -
Running a cavitation computation. Sheet cavitation is switched on with
CAVITATION, and the condition withFULLSCALEorSIGMAN. There are two ways to run it.With
POST, which is the normal way, the propeller acts wetted while the flow field converges and the cavitating computation is made once, at the end, on the converged field:No second computation and no restart are needed. The cavitating evaluation feeds no force back, so the forces, the propulsive factors and the convergence of the computation are exactly those of the wetted computation, and what the evaluation adds is the cavity: its extent, its shape and the blade pressures under it. The blade keeps one panel mesh for the whole computation, so the wetted propeller runs and the cavitating evaluation are directly comparable.
The same command added to a computation that is already finished, together with
CONTROL(RESTART, MAXIT=0)orPOW(RESTART, MAXIT=0), makes the evaluation on the restored flow field instead. Use this to add cavitation to a computation that has already been run.Without
POSTevery propeller run is cavitating and the thrust of the cavitating propeller enters the self-propulsion balance. This is the physically complete formulation, and it is more expensive: a cavitating propeller run takes from three to about twenty times as long as a wetted one, depending on how much of the blade cavitates and on the angle step, and there is one of them everyRUNINTiterations. It is worth that cost only where the cavity is large enough to change the thrust appreciably, and then only in a self-propulsion computation, where a changed thrust moves the self-propulsion point. In an open water computation the advance ratio is fixed and there is nothing for the changed thrust to move: on a propeller cavitating over about 7 % of the blade area, running the cavitation in the computation rather than as a post-evaluation changed KT by 0.25 %, and took about 30 % more computing time. -
What the cavitation computation offers, and its limits. The propeller model computes sheet cavitation on the suction side of the blades and, with
TIPVORTEX, the inception of the tip vortex (note 9), inside the self-propulsion or open-water computation and at a small fraction of its cost: the sheet is found in a cavitating evaluation of the propeller on the converged flow field, so the extent of the sheet, its thickness and the cavitating thrust come out of the same computation as the propulsive factors, at model scale or at the ship's cavitation number. It has been validated against cavitation-tunnel observations, measured cavity areas and measured tip-vortex inception.Use the result with the following in mind.
- Where the sheet model is reliable. A suction-side sheet that covers up to about a quarter of the blade, which at the design loading typically means cavitation numbers \( \sigma_n \) down to about 2. There the extent of the developed sheet is within the spread of the cavitation-tunnel observations and of the other computational methods it has been compared with, and the computation converges at every blade angle.
- Where it is not. Below \( \sigma_n \approx 1.5 \) at the design loading, or earlier at a heavier loading, the sheet grows over most of the blade: the computed cavity is then no longer a solution of the model and must not be used. Such blade angles are marked: the log of the propeller run prints CAVITY OUT OF RANGE at blade angle … for each of them, with the reason, and in
apscav.resthe column Converged readsnor the column No solution is large. No solution is the share of the cavity on which the pressure cannot be brought down to the vapour pressure, so that the condition on the cavity surface has no solution; a few per cent at the end of the cavity are normal, and the line is printed above 10 %. A result with marked angles is outside the range of the model; typically the area also jumps from one angle to the next. Cavitation on the pressure side, which occurs at light loading, is not modelled, nor are bubble and cloud cavitation. - What the thrust means. With
POSTthe cavitating thrust and torque are reported but not fed back, so the propulsive factors are those of the wetted propeller. The change of thrust with cavitation is small in the reliable range, a few per cent, and with a partial sheet it comes out as a slight rise where tunnel tests show a slight loss: an inviscid sheet closed on the blade adds lift, a real one does not. ReadDKTCas a consistency check of the cavitating evaluation; the cavitating thrust is not a prediction of thrust breakdown, which happens outside the range. - Panelling. The extent of the cavity is more sensitive to the blade panelling than the forces are: use the default panelling (note 2), on which the cavity extent is validated against the E779A and PPTC tunnel observations of the examples, and report every cavity extent together with the panelling it was computed on.
The model is applied from the strip above the root to the strip below the tip: the tip strip is left wetted because cavitation there belongs to the tip vortex, and the root strip because the sheet model is unreliable in the hub flow.
CAVROOTandCAVTIPchange how many strips are left wetted at each end. -
Reading the cavity extent. The computed cavity usually consists of a clearly developed part and a leading-edge film well under half a millimetre thick at model scale. A cavitation tunnel observation does not record such a film, so when the result is compared with a sketch or a photograph, read the extent from the cavity thicker than about 0.5 mm in the VTU files rather than from the raw area in
apscav.res, which counts the film as well. This mirrors how computations with volume-fraction methods are read at the 50 % vapour fraction surface rather than at the lowest one. Read this way, the observable part of the computed cavity falls within the spread of cavitation-tunnel observations and of other computational methods; compared with photographed cavity areas, the whole computed extent is larger than the photographed one, since it includes the film, while the part thicker than 0.5 mm is of the same order over the reliable range. -
The cavity height guard. On a finely panelled blade, and in particular on a
.propmesh whose tip has been cut, the strip next to the outermost cavitating strip can carry unphysically large cavity thicknesses, and the cavity area can jump from one blade angle to the next, while thrust and torque remain plausible. The cause is a numerically ill-conditioned step in the cavity height computation on strips with extreme tip surface velocities.PPROPtherefore bounds that step in every cavitation computation, together with a floor on the cavity-closure tolerance of two leading-edge panel lengths, which a tip-refined mesh needs; neither changes a wetted force. The cavity thickness is also computed with the difference across the blade taken from the upstream side of the flow on the cavity, which keeps the cavity stable where that flow turns towards the hub over part of the revolution, as it does behind a hull and in inclined inflow; without it, a cavitation computation of a propeller on a shaft inclined by 12° in a cavitation tunnel diverged. On straight-inflow validation cases it reduces the computed cavity extent by 10 to 25 %, closer to the measurements where the cavity is large. A cavity area that still jumps from angle to angle is a sign of a result outside the range of the model (note 6). -
The tip-vortex inception margin.
TIPVORTEXadds the tip-vortex cavitation model to aCAVITATIONcomputation. It answers one question: at the computed loading and cavitation number, does the suction-side tip vortex cavitate, and by what margin in cavitation number. The strength of the vortex is the largest bound circulation of the blade, the circulation the tip vortex rolls up to, and its core is sized from the chord and the Reynolds number near the tip, with a core factor calibrated against cavitation-tunnel inception measurements at moderate to heavy loading. In that range the measured inception cavitation number is reproduced to within about ten per cent when the computed and the measured thrust are equal, with or without the hub of the test rig. The calibration is made on the mean of two blades of the same propeller, which in that test differ from each other by 14 % on average. At light loading the measured inception cavitation number rises again as the load falls: the vortex then starts from the pressure side of the tip, which this model does not represent, and the face cavitation inception margin (FACECAV, note 15) follows the measurements there instead. With both given, the larger of the two inception cavitation numbers is the inception of the propeller over the whole loading range. All of this holds in uniform inflow. In a wake it is not yet established: for a propeller tested behind wake screens in a cavitation tunnel (Nawigator XXI, Tani et al. 2026), the computed inception follows the measured variation over the revolution and first appears where the test shows it, at the wake peak, but at about half the measured cavitation number at all four loadings. The same test also reports bubble cavitation well above the computed suction, so part of the difference may lie in the test conditions rather than in the vortex model. Until a second case in a wake settles this, a positive margin behind a hull does not rule out tip-vortex cavitation. The results give both the angle of the blade's reference line and the angle at which the vortex leaves the blade, at the tip trailing edge; on a skewed blade the second lags the first by the skew of the tip plus half the tip chord (about 25° on the Nawigator propeller), and it is the one to compare with tunnel observations. The model is in a research phase: use the margin to rank conditions and designs against each other in the same inflow, not as an absolute prediction of inception.Use it as follows.
- With
POST. The tip vortex needs the blade solution at a finer time step and with a longer wake than the sheet:PPROPevaluates the cavitating propeller at 2° steps whenTIPVORTEXis given. On the default panelling this takes a few minutes on 16 cores and about 13 GB of memory per evaluation, longer where the sheet is large; withPOSTit is done once, withoutPOSTin every propeller run of the coupling. - Panelling. Use the default panelling (note 2): it resolves the tip, and on it the computed inception cavitation number of the inception bucket example is within 13 % of the measured one (the mean of two blades) over the whole bucket of six loadings, and within 10 % at five of them. A different panelling shifts the computed inception; keep the panelling the same for every condition and design that is compared, and give it with the result.
- Against a tunnel test, compare at equal thrust, not at equal advance ratio (adjust
Juntil the computed wetted KT equals the measured one), as in the inception bucket example. - Model or full scale. The core is sized with the Reynolds number of the computation. A computation at the scale of the ship gives inception at a higher cavitation number than one at model scale at the same loading, the familiar scale effect of tip-vortex inception; the size of this effect in the model has not been validated against full-scale observations.
FULLSCALEsets only the cavitation number: a model-scale computation withFULLSCALEevaluates the model-scale vortex at the ship's cavitation number, which gives less tip-vortex cavitation than the ship would have, so its margin is optimistic for the ship.
The result is in
apvcav.res: for every recorded blade angle the minimum pressure coefficient in the vortex core, −Cp,min, and the cavitation number it is compared with; the vortex cavitates where −Cp,min exceeds it. The inception cavitation number of the condition is the prescribed \( \sigma_n \) plus the largest excess of −Cp,min over the local cavitation number in the revolution. The_OUTPUTfile gives the smallest margin over the revolution (TVCM, negative where the vortex cavitates) and the share of the revolution with a cavitating vortex (TVCS); blade angles where the sheet is outside the range of the model (note 6) are left out of both, since they do not give a valid blade loading. Each row also gives the angle from 12 o'clock at which the vortex leaves the blade. At light loading, where the vortex starts on the pressure side, giveFACECAVas well (above). In an open-water computation over several advance ratios (POW) withPOST, the inception results of all advance ratios are also collected in one file next to the open-water table,<output>_TVC.dat: J, KT,TVCM,TVCS, the inception cavitation number \( \sigma_i \) =SIGMAN−TVCMand, withFACECAV, the face inception cavitation number; this is the inception bucket of the propeller from one computation, and withFIXNit follows a cavitation-tunnel test at a constant rate of revolution. The development of the tip-vortex cavity beyond inception, its extent and its volume, is not computed. - With
-
Correcting the effective wake for the hull wake gradient. The propeller model needs the wake that the propeller sees without its own induced velocity, the effective wake. The coupling finds it from the RANS velocity on a plane a short distance ahead of the propeller, outside the region where the propeller force acts, by subtracting the velocity the propeller model induces there. Behind a full stern the hull wake still changes over that distance: it is deeper on the sampling plane than in the propeller plane, and that part is not removed by the subtraction, so the propeller model would see too heavy a wake and the self-propulsion point would be found at too low a propeller rate.
PPROPtherefore corrects the effective wake by the difference between the towed (un-propelled) flow in the propeller plane and on the sampling plane, averaged around the circumference at each radius; points inside the hub, the boss or an appendage such as a duct ahead of the propeller are left out.By default (
NOMINAL="AUTO") the towed flow is taken from the self-propulsion computation itself. The propeller model starts only afterSTARTATiterations, 50 by default (500 withVOF, note 4), so the computation begins as a resistance computation; when the propeller model is run for the first time the correction is computed from that flow, written tonominal_auto.datin the propeller directory and used for the rest of the computation, including restarts. The run log reports the towed wake fraction on the sampling plane and in the propeller plane when this happens. If the file is missing when a computation is restarted, for example after a restart from a computation made without the correction, the computation continues without it and says so in the run log, together with the likely effect. GiveMAXITso that at least 100 iterations remain afterSTARTAT. Behind a full stern with flow separation the self-propulsion point can keep drifting slowly for a few hundred iterations after the forces have settled; for such hulls allow a largerMAXIT, 400 or more, and check thatDJ3,DKT3andDKQ3in theOUTPUTfile are small. WithNOMINAL="<resistance case>"the correction is taken instead from a separate resistance computation with the propeller defined and WAKEON, which writes<case>_<ID>_nominal_planes.datin its run directory. In open water there is no hull and the correction is zero. On the full-bodied JBC the correction raised the computed propeller rate by about 1.5 % and the delivered power by about 2 % towards the model test, and on the KVLCC2 it brought the effective wake to within 0.004 of the model test; on a finer ship such as the KCS the gradient, and with it the correction, is smaller. -
Settings and their defaults. The cavitating evaluation is made on the panelling of the computation, with the cavity shape iterated at each blade angle to the openness tolerance of the propeller model; the iteration brackets the end of the cavity and stops at the first convergence (
TOLREF=0;TOLREF=3tightens the tolerance three times after that, at about a third more computing time and with no visible change of the extent). The tip-vortex core factor is the calibrated value (0.30); a different value, for a propeller with its own inception measurements, is given withTVCORE. WithTIPVORTEXthe cavitating evaluation steps at 2° (or atROTINC, if smaller). The default panelling (note 2) is the one the cavity and the tip vortex are validated on.Without
FULLSCALEorSIGMANthe condition is a towing tank: the atmospheric pressurePATMwith the shaft immersion at the scale of the computation, where a model propeller does not normally cavitate. That is useful as a check, since it should give no cavity.FULLSCALElowers the ambient pressure at the scale of the computation until the cavitation number at the shaft is that of the ship under Froude similarity, which for a model scale computation means a pressure far below atmospheric. It needs the shaft immersion and the scale factor, soOFFSET(ZORI),PROPELLER(ZSH),OFFSET(LPP)andVSHIP(REFLEN)must all be given; if the scale factor cannot be worked out the computation silently falls back to the towing tank condition, so check the pressurePPROPprints.SIGMANprescribes the cavitation number at the shaft directly and needs nothing else, which makes it the simplest choice for open water and the one to use for a cavitation tunnel condition. -
In an open water computation the
PPROPcommand is carried over to the POW computation together with thePROPELLERandPARALLELcommands. NoLLINEcommand is needed. - The ITTC78 extrapolation needs the pitch ratio, chord length and thickness of the blade at 0.75R from the
PROPELLERcommand. With a.prdafile asGEOFILE, or the blade given as distributions, they are there; a.propfile does not carry them, so give the distributions as well whenITTC78is used with a.propfile. -
The propeller grid. The forces of the propeller model act on the flow on the propeller grid, and how the flow around the stern responds to them depends on how concentrated they are.
PPROPtherefore sizes the grid to the blade in every computation:XMINandXMAXare the upstream and downstream edges of the blade, read fromGEOFILE(the blade only, also when the mesh carries hub panels), with one cell of 0.0125 R added on each side, andNXPLAgives axial cells of about 0.0125 R. The effective wake (note 10) is sampled on a plane 0.1 R ahead of the grid, rounded up to 0.05 R and at least 0.35 R ahead of the propeller plane, so that the sampling plane is clear of the propeller force. For the KCS propeller KP505 this gives a grid from −0.25 R to 0.19 R with 36 planes; for the JBC propeller MP687, −0.16 R to 0.15 R with 26 planes; the sampling plane is 0.35 R ahead of the propeller plane for both. A grid of ±0.25 R is about twice the axial extent of such a blade: it spreads the thrust, weakens the pressure response of the stern, and gives too small a thrust deduction and too large an effective wake. The values used are written topprop_<ID>.login the run directory;XMIN,XMAXandNXPLAon the command override them. The concentrated force strengthens the feedback between the propeller loading and the effective wake, which is why the effective wake is relaxed withWRELAX=0.4in a self-propulsion computation. Open water uses the same rule so that the open water and self-propulsion computations, whose results are combined in the propulsive factors, see the same force distribution. Against open water model tests of seven propellers over their operating range, the open water results on this grid are as accurate as on the ±0.25 R grid used before for the blades that fit inside it (thrust and torque within 0.3 percentage points), and markedly better for a strongly skewed blade that reaches beyond it (thrust error 8 % → 2 %). A propeller behind a hull at a given advance ratio, withoutSELFPROP, and a propeller in a cavitation tunnel use the same rule; on an inclined-shaft cavitation-tunnel case it reproduced the thrust, torque and pressure pulses of a hand-set ±0.5 R grid to within a few per cent.The propeller grid overlaps the hull grid, and the flow is interpolated between the two where they overlap. Its axial cells of about 0.0125 R are much shorter than the hull grid's at the stern, which is stretched for the boundary layer rather than for the propeller; without a refinement of the hull grid there, the interpolation smears the concentrated propeller force and the flow it induces over a few long cells, and the thrust deduction suffers most (on the KCS it fell to about a third).
PPROPtherefore refines the hull grid around the propeller grid by default when the propeller is behind a hull: twice across and four times along the hull, five cells beyond the propeller grid in every direction (REFINE).NOREFINEturns the refinement off. An open water computation and a case without a hull grid, such as a cavitation tunnel made of a box, are not refined. -
The face cavitation inception margin. The sheet cavitation computed by the propeller model is on the suction side. At light loading – high advance ratio, a controllable-pitch propeller at reduced pitch, the blade passing through the high-velocity part of a ship wake – the face cavitates first, at the leading edge.
FACECAVadds a check of that to aCAVITATIONcomputation: at every blade angle, for every blade section, the face pressure is read close behind the leading edge (at 1 % of the face length) and converted to the cavitation number at which the face incepts, with a factor calibrated against cavitation-tunnel measurements of face cavitation inception at light loading; the most critical section gives the margin. Sections outside 0.95 R are not read: close to the tip the face pressure behind the leading edge is dominated by the flow around the tip edge, which under heavy loading, for example in the wake peak behind a hull, shows face suction where no face cavitation occurs. On the measurements used, the inception cavitation number is reproduced to within about ten per cent when the computed and the measured thrust are equal, and the blade sections where it first appears lie close to the observed ones. The face cavity itself, its extent and the loss of thrust it can cause are not computed. The inception bucket example shows the criterion against the tunnel measurement at three loadings.- Panelling. The calibration belongs to the default panelling (note 2). The face pressure close to the leading edge depends strongly on the chordwise panelling, so a different panelling gives a different margin; keep the default panelling, and the same panelling for every condition and design compared.
- Against a tunnel test, compare at equal thrust, as for the tip vortex (note 9).
- Use. Rank conditions and designs against each other; treat the margin as a research-phase estimate, calibrated on one propeller in one facility in uniform inflow and checked on a second propeller tested behind wake screens, where it agreed with the face cavitation observed in the lightly loaded part of the revolution; not as an absolute prediction.
The result is in
apscav.res(columns 6–8) and, summarised, in_OUTPUT(FCVM,FCVS,FCVR); blade angles where the sheet is outside the range of the model (note 6) are left out. -
Controllable-pitch propellers. The blade of a controllable-pitch propeller is the same at every pitch setting; the setting turns it about its spindle axis.
PITCHgives the setting as the pitch ratio at 0.7 R: the blade is panelled from the.prdafile of any one setting and turned until the panelled blade has that pitch ratio at 0.7 R. The turn changes the pitch by different amounts along a skewed blade, so the pitch distribution, the skew and the rake of the turned blade follow from the turn and differ from those of the original setting. The angle of the turn and the resulting pitch ratio are reported in_OUTPUT(CPPA,PD07) and written in the header of the panelled blade, the.propfile in the propeller's directory of the computation. The spindle axis is taken through the reference line of the.prdafile (the mid-chord line of its sections); on a propeller whose spindle sits elsewhere, a different turn results. Checked against the geometry of a controllable-pitch propeller supplied at two pitch settings, the turned blade reproduces the other setting's pitch distribution to within about one per cent of the pitch ratio.- Accuracy at reduced pitch. At a reduced setting the blade runs lightly loaded, with the blade tip at a negative angle of attack; the propeller model's thrust near zero thrust is less accurate than around the design point. Compare settings against each other with the same model, and validate against open-water measurements at the setting where they exist.
-
Hull pressure pulses.
PULSESadds the pressure that the propeller induces at given points to thePOSTevaluation: the pressure from the blade loading and the blade thickness and, withCAVITATION, from the growth and collapse of the sheet cavity, over one revolution in the effective wake of the computation. The contribution of the cavity is taken from the rate of change of its volume, which is what drives the pressure pulse at a distance from the blade. WithPOSTalone the pulses are those of the wetted propeller.The points file holds one point per line,
x y z, in the coordinates and units ofXSH,YSHandZSHon thePROPELLERcommand, optionally followed by the solid boundary factor of that point and a name for it. Text after#or!is a comment.PPROPturns the points into the frame of the propeller – from the propeller centre, x upstream along the shaft, z up – and lists them in that frame inpprop_<ID>.login the run directory: check them there before a long computation. A point without a name is calledPfollowed by its number.With
PULSES="AUTO"no file is needed:PPROPplaces a grid of 9 × 9 points, 0.8 D long and wide with a spacing of 0.1 D, centred over the propeller plane, on the hull above the propeller. From each grid point a vertical line is followed upward from the height of the blade tips to the hull surface, taken from the hull's offsets (those ofOFFSET, or the ones generated from an IGES or STL hull). A point that finds no hull there, behind the transom or outside the breadth, is left out, and so is one more than one diameter above the blade tips. The points are named after their position,x+0.1D_y-0.2Dfor the point 0.1 D from the propeller centre in the hull's x direction and −0.2 D in its y direction, and are listed with their position in the run log."AUTO"needs a hull, so it is not available in an open water computation or a case without hull offsets, such as a cavitation tunnel; give the points in a file there.- The solid boundary factor. The propeller model computes the pressure in unbounded water. A rigid wall reflects the pressure field and doubles it at the wall, so a point on the hull takes the factor 2 (
PSBF, the default) and a point in the open flow the factor 1. The factor is the usual approximation for a wall that is flat on the scale of the propeller; the curvature of the hull, the free surface and the hull grid of the computation do not enter the pressure pulse. - Time step. With
PULSESthe evaluation steps at 2° or atROTINC, if that is smaller. A wetted evaluation runs one revolution before the one it records, so that the result does not depend on how it started. - Results. The amplitudes of the first three blade-rate harmonics at every point, in kPa at the scale of the computation, as Kp = p/(ρn²D²) and with their phases, are in
aprehh.resin the propeller directory, and the pressure over the revolution is inaprehu.res._OUTPUTgives the largest first harmonic over the points (PP1K,PP1M) and where it occurs (PP1P). Kp is the quantity to compare against measurements and between scales. - With
CAVITATION. The pulse of a cavity is only as good as the cavity (note 6). At steps of the revolution where the cavity is outside the range of the model, the pressure is interpolated between the neighbouring steps before the harmonics are taken, andPPNSgives how many steps that was. When more than a tenth of the revolution is outside the range, the pulses are not reported in_OUTPUTand the block says so;aprehh.resis still written, for inspection. In strongly oblique inflow, for example a propeller on an inclined shaft in a cavitation tunnel, the sheet is outside the range at many blade angles and the cavitating pulses are then not reported. - Propeller grid.
PPROPsizes the propeller grid to the blade, or widens it to cover the blade, in every computation (note 14), so a strongly skewed blade needs no grid settings of its own. Check the extent inpprop_<ID>.logifXMINorXMAXis given on the command.
Checked against the cavitation-tunnel test of the PPTC propeller on a shaft inclined by 12° (SMP'15 workshop, case 3.1, wetted), with the tunnel walls, the shaft and the hub in the computation and the measured pressure sensors in the tunnel ceiling as the points: the computed thrust was 5 % below the measured one, and the first harmonic of the pressure was within 4 % and 9 % of the measured one at the two sensors behind the propeller plane. At the sensor just ahead of the propeller plane it was 50 % higher than measured, as with all but one of the methods compared at the workshop. Treat the cavitating pulses as a research-phase result: use them to compare conditions and designs with the same settings, and check
PPNSand note 6 before using them. - The solid boundary factor. The propeller model computes the pressure in unbounded water. A rigid wall reflects the pressure field and doubles it at the wall, so a point on the hull takes the factor 2 (
-
Left-handed propellers. The rotation direction is the one of the
PROPELLERcommand,ROTDIR: 1 (the default) for a right-handed propeller, turning clockwise seen from astern, -1 for a left-handed one. The propeller model computes a right-handed propeller; a left-handed one is computed as its mirror image, with the inflow mirrored on the way to the propeller model and the blade forces mirrored back, so the flow computation sees the left-handed propeller. The.prdaand.propfiles describe the blade as for a right-handed propeller of the same shape. Thrust, torque, the cavity and the pressure pulses are reported for the real propeller; in the files of the propeller directory (blade forces, cavity per blade angle, the VTU files) the blade angles count in the direction of rotation and the side forces and moments are those of the mirror image. -
Using the hub.
HUBONis the only keyword needed; the contour, the body in the RANS computation andHUBEXPORTfollow from the computation, see Hub.- Behind a hull. The boss is read off the hull's offsets (those of
OFFSET, or the ones generated from an IGES or STL hull) along the shaft axis given byXSH,YSH,ZSHand the shaft direction of thePROPELLERcommand: at every station of the offsets near the propeller, the largest distance from the axis among the points within 1.8 times the hub radiusDHUB/2 is the radius of the boss there. The contour runs from the end of the boss behind the propeller, where it closes on the axis, forward to where the boss widens into the hull, that is where its radius has grown 15 % above the one at the propeller plane or rises more steeply than 0.3, and from there it is continued at that radius to one propeller radius ahead of the plane on which the effective wake is sampled. The run log reports the radius of the boss at the propeller plane againstDHUB/2 and warns when they differ by more than 5 %; the panels between the blades keep the radius of the root section. The contour is written to<stem>_hub.datin the run directory. A boss that closes abruptly behind the propeller is followed as it is: closing one hub diameter behind the blade within a quarter of the hub radius changes KT by 0.04 % against a 45° cone of the same length. The shape of the contour matters little in general: on the KCS the boss read off the offsets reproduced one read by hand off the hull surface to within 0.001 in effective wake, and even the generic rig in place of the boss changed the effective wake by 0.002 and the thrust deduction by 0.001. - In open water. The generic rig is meshed and the same contour is put into the open water box as a no-slip body of revolution, with the propeller at the origin of the box pointing in +x. If the
KEEPlist of the POW command names aROTBODYmade from aHYPSURFsection, for instance a shaft of the facility's rig described in the command file, the hub follows that section within four propeller radii of the propeller plane instead, and no second body is added. A rig contour can also be given as a file withHUBFILEon thePROPELLERcommand, or by name for a delivered one (HUBFILE="VP1304_tunnel", the rig of the PPTC tunnel tests); the body in the box is then made from it. - A contour file. One point per line,
x r, withxthe axial position measured from the propeller plane, positive upstream, andrthe radius, in metres at the size of the blade inGEOFILE, which is scaled with the blade to the size of the computation. Text after#is a comment. An end on the axis is closed; an end with a finite radius stays open, as a shaft leaving the box or a boss entering the hull does. The file is copied into the run directory as<stem>_hub.dat. A contour file needs a.prdafile inGEOFILE. - Cavitation.
HUBONcan be combined withCAVITATION. The hub panels never cavitate; the sheet stays on the blades. On the DTC at J 0.7 the cavity area was 6.1 % of the blade area with the hub against 6.2 % without it at \( \sigma_n = 0.8 \), at equal KT. - Defaults. The propeller model is calibrated without the hub, and the hub is not applied unless asked for. Report a result computed with the hub together with that fact.
- Behind a hull. The boss is read off the hull's offsets (those of
PRIORITY¶
Sometimes, when overlapping grids are used, non-fluid points can leak out and fill entire grids. If there are at least three grids that overlap each other where the leak starts, it might be possible to fix this by assigning different priorities to different grids.
A grid with a certain priority x can cut holes, and thereby define which cells are non-fluid, in any grid with priority x-1 or higher. By default all grids have the same priority. The PRIORITY command can be used up to 100 times.
One possible scenario: there are three grids that overlap. Grid G1 is a coarse background grid. Grid G2 is a body-fitted grid. Grid G3 is a very small body-fitted grid around some small detail. Defining non-fluid points in G1 from G2 and in G2 from G3 gives no problems. The leak occurs when non-fluid points in G1 are defined from G3. Since G1 in this case has one cell center in the region that is considered to be non-fluid by G3 (inside the G3 grid) but no cell center in the region that is considered to be fluid by G3 (in the G3 grid), the algorithm will not know where the non-fluid domain ends and will fill all of G1.
The fix is to give G1 priority 1, G2 priority 2 and G3 priority 3 so that G3 will not cut any holes in G1.
General form of command
Default values
None
Keywords
| Keyword | Description |
|---|---|
PRIO |
Set the priority. |
GROUP |
Control which grids should be assigned the priority. |
REFINE¶
This command refines a region in the grid made by XGRID. The command may be repeated to specify several refinement regions. The refinement is done by cubic interpolation in the original grid, so oscillations may occur in regions where it is not smooth, for example around the aft tip of an aft bulb where the propeller shaft exits. The local refinement is intended to be used to resolve flow features, not geometry. To improve resolution of the hull geometry, use the SIZE and XDISTR commands in XGRID.
Example: The following command
refines the region where the bilge vortex is formed (see the figure below). If the size (i.e. number of nodes) is changed in XGRID, the refinement region will stay approximately the same, but if the point distribution is changed with XDISTR or by changing the ship speed the refinement region will change.
General form of command
REFINE ( LOW = [v1,v2,v3] , HIGH = [v1,v2,v3] , ENO ,
LINEAR
CUBIC
HERMITE
LEVEL = [v1,v2,v3] , GRID = "c" )
Default values
Keywords
| Keyword | Description |
|---|---|
LEVEL |
An integer value that specifies the refinement level. A level of 0 means no refinement in the direction and level 1 means that each cell is divided in two in that direction. Setting LEVEL=[1,1,1] means that every cell will be divided into 8 new cells. |
LOW |
The low corner of the refinement region. The values are given in the range [0,1], 0 being the first node and 1 the last. The actual region used is adjusted so that its corners coincide with grid nodes in the coarser grids. For every component it must be true that low<=high. |
HIGH |
The high corner of the refinement region. The values are given in the range [0,1], 0 being the first node and 1 the last. The actual region used is adjusted so that its corners coincide with grid nodes in the coarser grids. |
ENO |
[INTERP] Essentially Non-Oscillatory interpolation from the default grid to obtain the new grid. Uses a high order interpolation scheme to give a smooth representation of the geometry while still keeping sharp corners without creating oscillations. This is the preferred interpolation scheme. |
CUBIC |
[INTERP] Cubic interpolation from the default grid to obtain the new grid. This is more accurate than linear, but can create wiggles on a grid with sharp turns from one cell to the next. |
HERMITE |
[INTERP] Hermite polynomial interpolation from the default grid to obtain the new grid. This is more accurate than linear, but can create wiggles on a grid with sharp turns from one cell to the next. |
LINEAR |
[INTERP] Linear interpolation from the default grid to obtain the new grid. This should only be used when the ENO and cubic interpolations do not work. |
GRID |
Define at which grid the local refinement should be created by referring to the ID of the grid. Default is to use the XGRID grid. |
UNION¶
When overlapping grids are used, the total volume occupied by fluid is the intersection of the fluid volumes of the individual grids. If all component grids only have physical boundaries (NOSLIP, SLIP, INFLOW, OUTFLOW), forming the intersection is easy: it is all points that are inside all of the grids. If a component grid has the INTERIOR boundary condition on part of its boundary, its fluid volume extends to infinity, but the total volume is still bounded since one or more grids will have to form the physical boundary of the fluid volume.
This default behavior means that the fluid volume cannot be extended if one or more grids together form a closed boundary with no INTERIOR boundary, such as the grid produced by XGRID. To extend the fluid volume with, for instance, a thruster tunnel, the UNION command is used. This command splits the component grids into two sets. Within each set the fluid volume is the intersection of the grids in the set, but the total fluid volume is the union of the fluid volumes of the two sets.
For the thruster tunnel example, the tunnel is modeled with a CYLINDER in the XFLOW section:
xflow
…
cylinder ( id="bowtunnel", r=[0,2], from=[146,0,4], to=[146,6,4], dime=[30,25,30],
bc11="INTERIOR", bc12="NOSLIP", bc31="SLIP", bc32="noslip")
…
end
and then the union is formed in the XCHAP section:
The grids in the sets are identified by name. Local refinements are treated as part of the enclosing grid, so the suffixes _1, _2 etc. that can be seen in SPOST should not be specified. The default name of the XGRID grid is "Xgrid".
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
SET1 |
Names of the grids in the first set. |
SET2 |
Names of the grids in the second set. |
VOLUME¶
This command creates a volume grid from an imported surface grid. A hyperbolic volume grid generator is used.
The imported surface grid is specified in the Plot3D ASCII file format. The file must have the suffix .p3d to be recognized as a Plot3D file. Each file may contain one or more grids. The Plot3D format is
N
L1 M1 N1 L2 M2 N2 … LN MN NN
x11 x12 ... x1N1
y11 y12 ... y1N1
z11 z12 ... z1N1
m11 m12 ... m1N1
x21 x22 ... x2N2
.
.
.
znb1 znb2 ... znbNnb
mnb1 mnb2 ... mnbNnb
where N is the number of grids (blocks), L1 M1 N1 are the dimensions of the first grid, x11, y11, z11 are the x, y, z-coordinates of the first node in the first grid, m11 is an integer value that specifies properties for the first node in the first grid (not used by SHIPFLOW) and N1 = L1 x M1 x N1 is the number of nodes in the first grid. The ordering of the node data is such that if node number i corresponds to point (l,m,n) in index space, then node i+1 corresponds to (l+1, m,n). The numbers are separated by whitespace.
The grids are assumed to be specified in the offset file coordinate system; if they are not, they may be translated, rotated and scaled. The rotation is specified by Euler angles using the pitch-roll-yaw convention. All transformations are done starting from the grid coordinate system. The transformations are made in the order SCALE, YSIGN, ROTATION, TRANSLATION.
General form of command
VOLUME ( ID = "c" , GROUP = n ,
FILE= "c" , NUMBER = n
TRANSLATION = [v1,v2,v3] , ROTATION = [v1,v2,v3] ,
YSIGN = n , SCALE =v ,
BC11 = "c" , BC12 = "c" ,
BC21 = "c" , BC22 = "c" ,
BC31 = "c" , BC32 = "c" ,
ROTCENT = [v1,v2,v3] , STRETCH ,
NOSTRETCH
KMAX = n , STEP = v ,
FAC = v , VOLSM = v ,
MAXVOLSM = n , KTRVOLSM = n ,
ITETA = v , JTETA = v ,
EPSE = v , PRIO = n ,
HB11 = n , HB12 = n ,
HB21 = n , HB22 = n ,
CUT , NOTRIM )
NOCUT
Default values
VOLUME( PRIORITY=1, NUMBER=0, TRANSLATION=[0,0,0], ROTATION=[0,0,0],
ROTCENT=[0,0,0], YSIGN=-1, SCALE=1, BC11="INTERIOR", BC12="INTERIOR",
BC21="INTERIOR", BC22="INTERIOR", BC31="INTERIOR", BC32="INTERIOR", CUT)
Keywords
| Keyword | Description |
|---|---|
ID |
Gives the imported grid 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. |
FILE |
Name of the Plot3D file that specifies the grid. The file name must end with .p3d. |
NUMBER |
If there is more than one grid in the file, import only the NUMBERth one. The first grid in the file is number one. If the default value NUMBER=0 is given, all grids in the file are imported and they get the same name, transformations and boundary conditions. |
GROUP |
Group number in the overlapping grid algorithm. If not specified the grid will be the only grid in the group. |
SCALE |
Scale factor for the grid. |
YSIGN |
Set to 1 if the grid is on the positive side of y=0, -1 otherwise. This will place the grid on the negative side of y=0 where the XGRID grid is for symmetrical computations. |
ROTATION |
Rotation of the grid(s) specified by the Euler angles with the pitch, roll, yaw convention. Given in degrees. |
ROTCENT |
Center of rotation for the Euler angles given in ROTATION. |
TRANSLATION |
Translation of the grid origin, specified in offset file coordinates. |
BC11 |
Specify the boundary condition on side l=1 of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT", "INTERIOR" and "MIXED_BC" (see section H-O topology grid import). 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. |
STRETCH |
[STRETCH] Stretch the grid. |
NOSTRETCH |
[STRETCH] Do not stretch the grid. The grid is used as given in the imported file. |
KMAX |
Number of planes to make in normal direction. |
STEP |
First step size. The length is given in the computational coordinate system (where the hull has length 1). |
FAC |
Expansion factor. |
VOLSM |
Volume smoothing parameter. |
MAXVOLSM |
Maximum number of volume smoothings. |
KTRVOLSM |
Reduce the number of smoothings when k<KTRVOLSM, where k is the plane number in the normal direction. |
ITETA |
Diffusion parameter in i-direction. |
JTETA |
Diffusion parameter in j-direction. |
EPSE |
Added diffusion. |
HB11 |
Boundary condition for the grid generator. First parameter direction, low side. 0 = free 1 = constant x 2 = constant y 3 = constant z |
HB12 |
Boundary condition for the grid generator. First parameter direction, high side. |
HB21 |
Boundary condition for the grid generator. Second parameter direction, low side. |
HB22 |
Boundary condition for the grid generator. Second parameter direction, high side. |
CUT |
The created grid should cut holes in other grids. |
NOCUT |
The created grid should not cut holes in other grids. |
NOTRIM |
Do not apply hull sinkage and trim to the generated grid. |
VOF¶
This command sets the parameters of the VOF free surface solver. The physical properties are Z0, free surface z-coordinate at rest, RHOR, the density ratio between water and the fluid above, and NYR, the dynamic viscosity ratio between water and the fluid above. The defaults are set to represent the lighter fluid as being air. The method expects a heavier fluid as reference, so do not set RHOR>1.
Reflection of transient waves at the boundaries of the computational region can cause the solution to not reach a steady state for a long time. To avoid this, the z-component of velocity is damped outside the region XDU2<x<XDD1..YD1<|y|<YD2. The default values are set to work with the default dimensions of the grid made by XGRID. If these are changed or other grids are used, the dimensions of the damped region may need to be changed too.
Several keywords below have different defaults for the Krylov solver, which is the default solver, and for the ADI solver, see CONTROL and KRYLOV. CONTROL(ADI) keeps the behaviour of earlier versions.
General form of command
VOF ( Z0=v , RHOR=v , NYR=v , LVCDIST=v ,
PINTERP , HSCORR , TRWALL , ICFL=i ,
NOPINTERP NOHSCORR NOTRWALL
XDU1=v , XDU2=v , XDD1=v , XDD2=v ,
YD1=v , YD2=v , DAMP=v , BEACH=i ,
DTEXP=v , LVCMODEL=i , LVCTHR=v ,
VSEP=v , VSGATE=v , I1LVL=i , IFVISC=i ,
IFCONV=i , IFAT=i ,
VSDIST=v , VSMIN=v , VSMAX=v , VSSTREN=v ,
VSUB=v )
Default values
VOF ( Z0=0, RHOR=0.00127, NYR=15, LVCDIST=0.001, PINTERP, HSCORR, ICFL=10,
DAMP=0.2, XDU1=-1.0, XDU2=-0.5, XDD1=1.75, XDD2=2.5, YD1=1.0, YD2=1.75,
TRWALL, BEACH=2, LVCMODEL=8, LVCTHR=0.5, VSDIST=0.001, VSMIN=0.3,
VSMAX=1.0, VSSTREN=0, VSUB=0, DTEXP=0.0 (0.5 with ADI),
VSEP=0.1 (0 with ADI), VSGATE=4*VSEP, I1LVL=2 (0 with ADI),
IFVISC=1 (0 with ADI), IFCONV=1 (0 with ADI),
IFAT=100 (0 with ADI) )
Keywords
| Keyword | Description |
|---|---|
Z0 |
Free surface level. |
RHOR |
Fluid density ratio. |
NYR |
Fluid viscosity ratio. |
LVCDIST |
VOF extrapolation depth. Expressed as the non-dimensional distance to the nearest NOSLIP boundary, i.e. hull, appendages etc. Used to avoid air suction under the hull. |
PINTERP |
Switch on hydrostatic pressure gradient compensation in interpolation. This is important if overlapping grids are used. It improves interpolation of the pressure by subtracting the hydrostatic pressure gradient in each cell that is supplying the interpolation data and then adding the hydrostatic pressure gradient of the cell that the receiver point is located in. |
NOPINTERP |
Switch off hydrostatic pressure gradient compensation in interpolation. Usually a bad idea, but if no overlapping grids are used it will save a small amount of computation time. |
HSCORR |
Switch on hydrostatic pressure drag correction. If appendage grids are used the computation of integration weights is not exact so the projected hull areas as seen from the front and rear are not exactly equal. Even a very small difference will affect the pressure drag at low Froude numbers, so to correct for this the pressure drag for the hydrostatic case (initial solution), which should be zero, is saved and subtracted from the final result. |
NOHSCORR |
Switch off hydrostatic pressure drag correction. |
ICFL |
CFL number in the implicit direction of the ADI sweep. Increasing this parameter will make the boundary layer converge faster but also destabilizes the solution around the free surface. |
DAMP |
Strength of damping of the z-component of velocity in the outer parts of the computational region. This is needed to damp out transient waves and reach a steady state in a reasonable number of iterations. Setting DAMP=0 turns off damping and DAMP=1 is the maximum value. Depending on grid stretching, running without damping may or may not work. Too strong damping can cause long waves to bounce back and forth for a long time. |
XDU1 |
Start of the upstream damping ramp. For x<XDU1 the damping value is DAMP. |
XDU2 |
End of the upstream damping ramp. For XDU2<x<XDD1 the damping value is 0. |
XDD1 |
Start of the downstream damping ramp. |
XDD2 |
End of the downstream damping ramp. For x>XDD2 the damping value is DAMP. |
YD1 |
Start of the transverse damping ramp. For |y|<YD1 the damping value is 0. |
YD2 |
End of the transverse damping ramp. For |y|>YD2 the damping value is DAMP. |
TRWALL |
Use a wall law for the boundary conditions of the turbulent quantities on the transom. This may be important for high Reynolds number (full scale) cases due to the relatively thick cells there compared with other NOSLIP boundaries. |
NOTRWALL |
Use the same near-wall boundary condition for the turbulent quantities on the transom as on other NOSLIP boundaries. |
BEACH |
Formulation of the numerical beach, the damping of the z-component of velocity in the outer parts of the computational region, with the Krylov solver. 2, the default, damps the vertical velocity with a geometric sink rate that is bounded on degenerate cells and independent of the solver settings. 1 is the previous form, whose sink is proportional to the diagonal coefficient of the vertical momentum equation. Not used by ADI. |
DTEXP |
Exponent of the density-based scaling of the pseudo-time step, \( \rho^{-\mathrm{DTEXP}} \), applied to the artificial time term. 0.5 gives \( 1/\sqrt{\rho} \), which slows the air phase down by a factor of about 28 at the default density ratio while leaving the water unchanged. 0 disables the scaling. Range 0 to 1. Default 0.0 with the Krylov solver and 0.5 with ADI. |
LVCMODEL |
Mode of the liquid volume correction controlled by LVCDIST, a bit mask. Default 8. Bit 0 (LVCMODEL=9) makes the extrapolation one-sided: it fills cells holding less water than the flow outboard of them, but leaves a sound interface untouched, so a healthy free surface is not flattened onto the grid inside the band. |
LVCTHR |
Air-deficit threshold of the one-sided correction (LVCMODEL bit 0). The correction acts only where a cell holds at least this much less water than the flow outboard of it, so it works on hull-attached air next to water rather than on healthy interface gradients. Default 0.5. |
VSEP |
Gravity-separation drift speed of the volume fraction: a conservative face flux that separates mixed water/air columns. It is zero on stratified profiles and inert on a lake at rest. 0 disables it. Default 0.1 with the Krylov solver and 0 with ADI. |
VSGATE |
Stagnancy gate velocity of VSEP: the drift is scaled by ( \max(0,\, 1- |
I1LVL |
Level of the implicit coupling between the vertical velocity and the volume fraction: 0 off, 1 first order, 2 exact for a frozen limiter. Default 2 with the Krylov solver and 0 with ADI. |
IFVISC |
Density-consistent momentum diffusion at interface faces. It removes the numerical drag of the air on the water sheet, which biased transoms towards staying wet, and gives the air its physical laminar viscosity. 0 off, 1 physical, 2 no-drag limit (combine with IFAT at low Froude numbers). Default 1 with the Krylov solver and 0 with ADI. |
IFCONV |
The same interface weighting applied to the convective part of the momentum flux a cell receives. 0 off, 1 mass-consistent, 2 squared. Default 1 with the Krylov solver and 0 with ADI. |
IFAT |
Iteration at which IFVISC and IFCONV are activated; earlier iterations run the unmodified scheme, which guards against violent cold starts. Default 100 with the Krylov solver and 0 with ADI. |
VSDIST |
Distance from a NOSLIP boundary within which the volume-fraction source VSSTREN is active. Default 0.001. The source suppresses air ventilation along the hull. It is an alternative to LVCDIST that acts as a source term instead of replacing the VOF equation, so it has no grid-direction bias and is not disabled next to grid overlaps or on the transom. |
VSMIN |
Lower volume-fraction bound of the source. Cells below this value are left alone, so genuine air above the free surface is untouched. Default 0.3. |
VSMAX |
Upper volume-fraction bound of the source. Default 1.0. |
VSSTREN |
Strength of the volume-fraction source that drives the volume fraction towards 1 inside the band. 0 disables it, which is the default; 10 is a typical working value. It enters the VOF diagonal as a positive term, so raising it damps rather than destabilises. |
VSUB |
Strength of the submerged-air source. A cell holding air whose highest neighbour holds water is trapped air, which buoyancy forbids, so it is relaxed towards water. Unlike LVCDIST and VSSTREN this uses no wall distance, so it also reaches ventilation that has spread away from the hull. 0 disables it, which is the default. |
WAKE¶
This command is used to calculate the nominal wake for a propeller, i.e. the volumetric mean of one minus the velocity through the propeller disc. The geometry is taken from the PROPELLER command in the XFLOW input section. Diameter and shaft position are required. The wake computations are always active whenever the necessary data in the PROPELLER command is given.
The nominal wake is printed in the OUTPUT file if the propeller plane is defined. If there is an active propeller in the propeller plane, the thrust and torque coefficients will also be written to the OUTPUT file. Additionally, a history of the thrust and torque coefficients is logged every 10 iterations in the propellerid_PROPLOG file.
If the propeller plane is defined in the PROPELLER command, wake distribution data will also be written to the file id_propellerid.html. The following data is written to the HTML file:
- V/V0: the total velocity.
- Va/V0: the axial velocity component. Positive direction is downstream.
- Vtr/V0: the transversal velocity component.
- Vt/V0: the tangential velocity component. Positive direction is clockwise.
- Vr/V0: the radial velocity component. Positive direction is outwards.
- w = 1 - V/V0: total wake fraction.
- wa = 1 - Va/V0: axial wake fraction.
The angular position is 0 degrees at the top and increases in the clockwise direction looking from behind. If the propeller is rotated, the axial, radial and tangential components will follow the shaft direction.
The points for extracting the wake at the propeller disc are organized in the following way, looking from behind the ship:
General form of command
Default values
Keywords
| Note | Note Keyword | Description |
|---|---|---|
ON |
[ONOFF] WAKE computation is on. |
|
OFF |
[ONOFF] Disable the WAKE computations. |
|
| (1) | IMAX |
Number of integration points in the radial direction of the propeller. |
| (1) | JMAX |
Number of integration points in the circumferential direction of the propeller. The circumferential wake distribution is printed at JMAX points. |
PRADI |
Radii where the local wake is calculated. PRADI must be non-dimensional with respect to the propeller radius, i.e. PRADI equals one at the propeller tip. Uniform distribution if not given. |
|
CSV |
The extracted wake data will also be exported in Comma-Separated Values format. | |
DAT |
The extracted wake data will also be exported in Grace format. |
Notes
- The longitudinal velocity component is interpolated from the solution to
IMAX*JMAXintegration points on the propeller disc. The average wake is thereafter calculated using the assumption of a constant velocity onIMAX*JMAXarea elements.
WALL¶
This command controls the wall-law treatment used by the XCHAP RANS solver. KEQ, WEQ, and NEQ select the wall treatments for turbulent kinetic energy \(k\), specific dissipation rate \(\omega\), and wall-face turbulent kinematic viscosity \(\nu_t\), respectively.
General form of command
Default values
Keywords
| Keyword | Description |
|---|---|
ON |
Apply wall-law treatment to non-transom NOSLIP boundaries, including the hull and appendages. This also allows the wall-function stretching controlled by WFYT. |
OFF |
Use the standard low-y+ near-wall treatment on non-transom NOSLIP boundaries. This is the default. The default transom turbulence wall treatment is not disabled by this option. |
KEQ |
Select the wall treatment for the \(k\) equation. 0 = zero-gradient boundary condition (default) 1 = standard \(k\) wall function 2 = wall-law treatment of near-wall \(k\) production 3 = log-law-based \(k\) wall function |
WEQ |
Select the wall treatment for the \(\omega\) equation. 0 = zero-gradient boundary condition 1 = standard blended viscous/log-layer wall function (default) 2 = Reichardt-based wall function 3 = Menter SST wall function 4 = Knopp all-y+ wall function |
NEQ |
Select the wall-face turbulent-viscosity treatment. 0 = discontinuous wall function 1 = continuous Reichardt wall function 2 = Spalding wall function (default) 3 = SST wall function 4 = Knopp all-y+ wall function |
WFYT |
Target used for wall-function grid stretching. Creates a wall-function mesh from a wall-resolved mesh by removing the first n cells corresponding to the WFYT value. |
Notes
- The dedicated transom grid uses the selected
KEQ,WEQ, andNEQturbulence boundary conditions by default, even whenWALLis omitted or set toOFF. - Transom wall-law activation alone does not activate
WFYTstretching. Wall-function stretching is activated only byWALL(ON). - Consequently,
WALL(OFF, KEQ=n, WEQ=n, NEQ=n)can be used to select the transom turbulence wall treatment while retaining the standard low-y+ treatment and stretching on the hull and appendages.
XGREFINE¶
This command refines a region in the grid made by XGRID. The refined grid will be the same as can be created with the REFINE command, but this input format is more convenient for the user.
If propeller and/or appendage grids are used, default values for XSTART, XEND, ZETAEND, ETASTART and ETAEND will be automatically set to cover these grids with the refinement. Any of these values can be overridden by setting them manually.
If only an XGRID grid is used, it is mandatory to set XEND, ZETAEND, ETASTART and ETAEND.
The local refinement is intended to be used to resolve flow features, not geometry. To improve resolution of the hull geometry, use the SIZE and XDISTR commands in XGRID.
General form of command
XGREFINE ( XSTART = v , ON , ENO ,
OFF LINEAR
CUBIC
ZETAEND = g , ETASTART = g , ETAEND = g ,
LEVEL = [v1,v2,v3] , EXPROPCELLS = g , EXCELLS = g ,
XEND = v , FIT )
Default values
Note
It is mandatory to specify ON or OFF.
Keywords
| Keyword | Description |
|---|---|
LEVEL |
An integer value that specifies the refinement level. A level of 0 means no refinement in the direction and level 1 means that each cell is divided in two in that direction. Setting LEVEL=[1,1,1] means that every cell will be divided into 8 new cells. |
ON |
[ONOFF] The refinement is created. |
OFF |
[ONOFF] The refinement is not created. |
XSTART |
The x-coordinate of where the refinement starts. |
XEND |
The x-coordinate of where the refinement ends. |
ZETAEND |
Number of cells in the normal direction in the XGRID grid covered by the refinement. |
ETASTART |
Starting cell number in the girth-wise direction in the XGRID grid covered by the refinement. |
ETAEND |
Ending cell number in the girth-wise direction in the XGRID grid covered by the refinement. |
EXPROPCELLS |
Used when calculating the default extent of the refinement for a case with propeller grids (the cylinder grid used by the lifting line model). The propeller grids will be fully covered by the refinement plus EXPROPCELLS in all directions. |
EXCELLS |
Used when calculating the default extent of the refinement for a case with appendage grids. The solid boundaries (NOSLIP) of the appendage grids will be fully covered by the refinement plus EXCELLS in all directions. |
FIT |
Fit the refinement along the hull to the propeller and appendage grids too, as in the other two directions, instead of starting it at XSTART (0.85 by default); a given XSTART still applies. Gives a short refined region around a propeller grid; used by REFINE of PPROP. |
ENO |
[INTERP] Essentially Non-Oscillatory interpolation from the default grid to obtain the new grid. Uses a high order interpolation scheme to give a smooth representation of the geometry while still keeping sharp corners without creating oscillations. This is the preferred interpolation scheme. |
CUBIC |
[INTERP] Cubic interpolation from the default grid to obtain the new grid. This is more accurate than linear, but can create wiggles on a grid with sharp turns from one cell to the next. |
LINEAR |
[INTERP] Linear interpolation from the default grid to obtain the new grid. This should only be used when the ENO and cubic interpolations do not work. |
XGRID¶
This command controls and modifies the XGRID grid. The rotation is specified by Euler angles using the pitch-roll-yaw convention. All transformations are done starting from the grid coordinate system. The transformations are made in the order SCALE, YSIGN, ROTATION, TRANSLATION.
General form of command
XGRID ( TRANSLATION = [v1,v2,v3] , ROTATION = [v1,v2,v3] ,
YSIGN = n , SCALE =v ,
BC11 = "c" , BC12 = "c" ,
BC21 = "c" , BC22 = "c" ,
BC31 = "c" , BC32 = "c" ,
TR12 = "c" , TR22 = "c" ,
TR32 = "c" ,
NBCC , STRETCH ,
NBGHOST NOSTRETCH
YTAR = v , GROUP = n
TRSTRETCH )
Default values
Keywords
| Keyword | Description |
|---|---|
GROUP |
Group number in the overlapping grid algorithm. If not specified the grid will be the only grid in the group. |
SCALE |
Scale factor for the grid. |
YSIGN |
Mirror the XGRID grid around the y-axis. |
ROTATION |
Rotation of the grid(s) specified by the Euler angles with the pitch, roll, yaw convention. Given in degrees. |
TRANSLATION |
Translation of the grid origin, specified in offset file coordinates. |
BC11 |
Specify the boundary condition on side l=1 of the grid. Possible values are "NOSLIP", "SLIP", "INFLOW", "OUTFLOW", "INOUT", "INTERIOR" and "MIXED_BC" (see section H-O topology grid import). 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. |
TR12 |
Specify the boundary condition on side l=L for the transom grid. |
TR22 |
Specify the boundary condition on side m=M for the transom grid. |
TR32 |
Specify the boundary condition on side n=N for the transom grid. |
STRETCH |
Switches on ytarget stretching (default for Rn >= 1e8). |
NOSTRETCH |
Switches off ytarget stretching (default for Rn < 1e8). |
TRSTRETCH |
Stretch the transom grid towards the transom. Gives better resolution of the boundary layer but breaks the cells matching on the interior boundary with the hull grid. |
NBCC |
Use neighbouring cell center locations for interpolation to interior ghost cells. |
NBGHOST |
Use ghost cell centers for interpolation to interior ghost cells. |


