Helper Programs¶
SHIPFLOW is delivered with a number of command line programs that prepare input for, or post-process
the results of, the SHIPFLOW modules. This page describes them; at present it covers cad2esprep.
cad2esprep¶
cad2esprep prepares the blade geometry for the panel method propeller model
PPROP. It reads the CAD geometry of a propeller,
measures the blade at a series of radii, lets you check the result, and writes the files the panel
mesh is built from:
| File | Content |
|---|---|
<name>.prda |
The blade geometry as radial distributions of pitch, chord, thickness, camber, skew and rake. |
<name>.prof |
The shape of the blade sections at every radius. It must be kept in the same directory as the .prda file, under the same name. |
The two files are given together to the PROPELLER command with GEOFILE="<name>.prda", for the panel
method (PPROP) and the lifting line alike; PPROP finds the .prof file by its name. The panel mesh of the blades is generated from them when the SHIPFLOW
computation starts. The same program can also write the geofile of the
PROPELLER command, for the lifting line
model, so one extraction serves both propeller models.
cad2esprep is only the first program in this chain. It turns geometry into a numerical
description of the blade. The rest of the chain is run by PPROP when the computation starts:
ESPREP builds the panel mesh from that description and ESPPRO computes the propeller. Nothing else
has to be prepared; the two files this program writes are all PPROP needs.
Starting the program¶
The program is in the bin directory of the installation, beside shipflow. It runs on the
Python delivered inside the SHIPFLOW package, so nothing has to be installed: no Python, no
libraries, no environment variables.
The argument is an input file describing the propeller (next section). The program can also be
started with no argument in a directory holding exactly one .inp file, or with the CAD file named
directly:
| Command | What is read |
|---|---|
cad2esprep |
The single .inp file in this directory. |
cad2esprep DTC.inp |
This input file. |
cad2esprep propeller.igs |
No input file: every setting keeps its default. The five required settings have none, so without an input file only the SHIPFLOW geofile can be written (--shipflow-only). |
cad2esprep DTC.inp propeller.stl |
This input file, but this CAD model. |
The options:
| Option | Effect |
|---|---|
--new [name.inp] |
Write a commented starter input file and stop. The place to begin. |
--show-settings |
List every setting, its value and where the value came from, then stop. |
--shipflow |
Write the SHIPFLOW geofile for the PROPELLER command as well as the .prda. |
--shipflow-only |
Write only that geofile. |
--no-review |
Write the extraction unchecked. The check plot is still drawn. |
--accept-repair |
Check the extraction, apply the repair, do not ask. For scripted runs. |
--review |
Force the interactive check even when there is no terminal. |
--smooth |
Apply the smoothing step without asking. |
--no-smooth |
Never offer it. |
A run takes from half a minute to a few minutes. The measurement itself is the cost: every radial station is cut from the CAD surfaces by a root search on the NURBS, and that is done thousands of times per station.
The review needs a screen
The program is interactive. It draws the measured distributions and asks you what to do with the
stations it does not believe (see The interactive review). The
questions are asked and answered on the terminal; the plot opens in its own window beside it,
so run it where there is a display: a normal desktop session on Windows or Linux, or a remote
desktop such as VNC. In a plain ssh session without X forwarding no window can open; the plot
is then written to a .png file only. For a run with nobody at the keyboard, give
--accept-repair or --no-review.
The input file¶
The propeller is described in a small text file, not on the command line. Start one with
which writes a commented template. The syntax is one setting per line, NAME = value, and #
starts a comment. Anything not set keeps its default; cad2esprep --show-settings DTC.inp lists all
of them with their values.
Five settings have no sensible default and must be in the file. The program stops on a missing one before it opens the CAD, because sectioning a real propeller takes minutes and finding out afterwards would waste all of them. Each is something you know exactly and the CAD only approximately; the CAD is measured for all of them anyway and both numbers are printed side by side, so a typo shows at once.
MODEL_PATH = ../CAD/DTC.3dm # the CAD file, relative to THIS file
CAD_UNIT = mm # what the CAD is drawn in: mm, cm, m, in, ft
MODEL_DIAMETER = 150.0 # propeller diameter, in CAD units
HUB_RR = 0.188 # hub radius as a fraction of R
HAND = right # or left
| Setting | Why the CAD cannot supply it |
|---|---|
MODEL_PATH |
Path to the .3dm, .igs/.iges or .stl file. A relative path is relative to the input file, not to the directory you run from. Use forward slashes; they work on both Windows and Linux. |
CAD_UNIT |
The unit label in a .3dm or IGES header is something a CAD package wrote, not a measurement, and an STL has no unit at all. The program reads the label where there is one and warns if it disagrees with CAD_UNIT, but CAD_UNIT wins. This is the one mistake ESPREP cannot catch: every ratio in the .prda stays consistent and only the absolute size is wrong. |
MODEL_DIAMETER |
The CAD's largest radius is a measurement of whatever is drawn, tip caps and fillets included. The design diameter is a decision, and it places every radial cut. |
HUB_RR |
On a tapered hub the radius differs at every axial position, so there is no single answer to measure. Use the largest radius the hub reaches, since that is what buries the blade root. ESPREP deletes every station inboard of this radius, so a value taken from a fillet quietly throws away good stations. |
HAND |
A right-handed propeller turns clockwise seen from astern. It is not used to build the geometry; it is the cross-check on the leading-edge detection, and a check must come from outside the geometry. |
The settings that are commonly set beyond these:
| Setting | Default | Meaning |
|---|---|---|
OUTPUT_FORMAT |
esprep |
esprep writes the .prda and .prof; shipflow writes the geofile for the PROPELLER command only; both writes all of them. Same as the --shipflow options. |
PRDA_IDENT |
Propeller from CAD |
Free text, up to 80 characters, written as the first line of the .prda. It travels into the mesh and the ESPPRO output, so make it say which propeller and at what scale. |
AXIS |
auto |
Shaft axis: X, Y or Z. auto keeps whichever axis makes the blades come out evenly spaced. Set it when the automatic choice reports the wrong number of blade positions. |
N_BLADES |
counted | Blade count. Counted from the model, which needs the whole propeller in the file. Set it when the file holds a single blade. |
AXIS_POINT |
(0, 0, 0) |
The point the shaft axis passes through. |
TARGET_DIAMETER |
none | Diameter the .prda is written at, in metres. Unset, the file is written at the model's own size. Set it only to rescale, for instance a 170 mm model written at 3.4 m is the full-scale propeller. Not needed for SHIPFLOW, where PPROP sets the size from the case; it matters for a stand-alone ESPPRO run. |
STATIONS |
25 values from HUB_RR to 1 |
The radii to measure, as r/R, in square brackets: STATIONS = [0.188, 0.2, 0.25, ...]. The first value must equal HUB_RR. The default list is clustered towards the tip, which the review needs; if you thin it, thin the inner half. |
BLADE_RADIUS_FRACTION |
0.5 |
A surface counts as blade when its largest radius exceeds this fraction of the tip radius. Lower it when a blade is modelled in radial bands and the root is being thrown away. |
PRDA_STEM |
model name | Base name of the output files. |
AXIS_FORWARD |
auto |
+1 or -1: which way along the shaft axis is forward. Normally found from the blade; set it only when the run reports a weak leading-edge verdict. |
X_REFERENCE |
axis |
Where the rake \( x/R \) is zero. axis: at AXIS_POINT, the origin of the CAD on the shaft axis, which should be the propeller plane (see below); the root section then keeps its own offset from that plane in the file. root: zero at the hub station, as files written before October 2026 have it. |
SMOOTH |
auto |
Whether the smoothing step is offered (auto), applied (True) or never offered (False). |
Both ends of a run resolve against the input file, not against the directory you run from:
MODEL_PATH is read relative to it, and the output files are written beside it. So a propeller
directory needs only the input file and the CAD, and the run is the same from anywhere:
The run prints the output directory under its settings table, so it is never a guess.
Accepted CAD files, and how the propeller must be positioned¶
Three formats are read.
| Format | What is read | Notes |
|---|---|---|
.3dm (Rhino) |
Untrimmed NURBS surfaces; extrusions are converted. Meshes and SubD objects are skipped with a warning. Trims are not seen, see below. | The file's unit is read and compared with CAD_UNIT. |
.igs, .iges |
Untrimmed NURBS surfaces (entities 128, and 126 curves). | The unit in global parameter 14 is read and compared. On the same propeller the IGES and .3dm routes give identical results. |
.stl |
A triangle mesh, ASCII or binary. | Has no unit and no design radius, so CAD_UNIT and MODEL_DIAMETER are taken on trust. Slightly less accurate than the surface formats, at fine export tolerance about 0.02 % in P/D. |
The blade surfaces are expected to be untrimmed lofts, which is what a blade generator produces.
Neither reader evaluates trim curves. In an IGES file a trimmed surface is recognised, left out and
reported with a warning, rather than sectioned at the full extent of its underlying surface, which
would invent geometry. In a .3dm file the reader takes the underlying surface of every face and
cannot tell whether the face was trimmed, so a trimmed blade is measured wrongly without a warning.
A propeller modelled with trimmed surfaces should be exported as STL instead: a mesh export follows
the trims.
Position and orientation. The requirements are few, and the program checks each of them and prints what it found.
- The shaft axis lies along one of the global axes, X, Y or Z, and passes through the origin
(or through
AXIS_POINT). Which of the three it is does not matter; it is detected by trying all three and keeping the one about which the blades come out evenly spaced. A propeller modelled about Z needs no reorientation. - The origin lies in the propeller plane, the point where the generator line of the blade meets
the shaft axis. The rake is measured from it (see Rake and skew), and
PPROPplaces this point atXSHon thePROPELLERcommand. Propeller models from the model basins are normally drawn this way; the run prints how far the root section lies from the origin, so a model drawn elsewhere shows up as an offset of more than a few millimetres. - Which way along the axis is forward does not need to be known. Nothing in the geometry says which end of the shaft is the bow, and a model that arrives nose first is not unusual. The program settles forward from the blade itself, by identifying the leading edge (see the conventions below), so the signs of rake and skew do not depend on how the model was oriented.
- The whole propeller should be in the file if the blade count is to be counted. A single
blade works with
N_BLADESset. Only one blade is measured in either case. - Hub and shaft geometry may be present. Surfaces whose largest radius is below
BLADE_RADIUS_FRACTIONof the tip radius are treated as hub, shaft, fillet or annotation, and the largest radius among them is printed as the CAD's own hub radius, for comparison withHUB_RR. - The blade may be split into several surfaces, pressure side and suction side, or radial
bands. With radial bands the root patches may fall below the radius threshold; lower
BLADE_RADIUS_FRACTIONor use the STL route, which classifies nothing.
For an STL, export the propeller about its own axis, not in ship coordinates: STL vertices are single precision, so a propeller sitting 300 m from the origin loses about 1 % of its thickness to rounding alone. Export from a solid, since loose surfaces give a mesh that is not watertight and every crack is a hole in a section. Set a maximum facet edge length as well as a chord height, because a flat face has zero chord height and a sag-only export tessellates it into a few huge triangles. A tolerance of 0.01 mm on a model propeller is a good starting point.
Geometric conventions¶
Every number the program writes depends on a convention, and most of the conventions are ESPREP's. This section states them, with the figure that makes each one unambiguous.
The shaft frame¶
The shaft axis is the detected global axis. For a point at \( \mathbf{v} \) measured from the axis point, with \( v_{\mathrm{ax}} \) its component along the axis and \( v_{r1}, v_{r2} \) the other two in ascending axis order,
\( x \) runs along the shaft, \( r \) and \( \theta \) are measured in the plane normal to it, and a station is the intersection of the blade with the cylinder \( r = (r/R)\,R \).
The constant-radius cut and the developed section¶
Each station is cut at constant radius and the cut curve is developed: the cylinder is unrolled into a plane in which arc length around the shaft, \( s = r\,\Delta\theta \), is one coordinate and the axial position \( x \) the other. Everything below is measured in that plane. One consequence is stated up front: a constant-radius cut puts the leading and trailing edges at the same radius by construction, so the nose-tail inclination of a Kappel blade is invisible to this method and is written as zero. That is correct for a conventional propeller.
The section: chord, thickness, camber, pitch¶
Everything about a section is measured relative to one line, the nose-tail line joining the two ends \( A \) and \( B \) of the developed section.
| Quantity | Definition |
|---|---|
| chord \( c \) | the length of the nose-tail line |
| thickness \( t \) | the greatest thickness measured normal to that line |
| camber \( f \) | the greatest ordinate of the mean line above that line |
| reference point \( M \) | the midpoint of the nose-tail line, where ESPREP's reference point sits |
| pitch angle \( \beta \) | the angle between the nose-tail line and the tangential direction \( s \) |
The two ends are not single extreme points. Propeller edges are never perfectly sharp, and a single extreme point sits on a corner of the blunt end face and tilts the chord line. Each end is therefore taken as the mean of the points on its end face:
The chord length barely notices this; the chord angle, and with it the pitch and the camber, does.
Pitch is the axial advance of one revolution of the helix the chord line lies on. In the developed plane one revolution is \( 2\pi r \) of abscissa, so
This is the nose-tail pitch, which is what ESPREP builds its sections on and what belongs in a
.prda. Manufacturer data sheets for flat-faced section families often tabulate a face pitch,
measured on the pressure side. On a thin outboard section the two agree; on a thick inboard section
they need not. When comparing with a data sheet, establish which its pitch column means.
Rake and skew¶
Rake and skew are the axial and angular positions of the reference point \( M \). The rake is measured from the propeller plane, the origin of the CAD on the shaft axis, and the skew from the hub station:
| Quantity | In the .prda |
Positive direction |
|---|---|---|
| rake | \( x/R \), the axial position of \( M \) over the radius | aft |
| skew | \( \theta \), the angular position of \( M \), in degrees | back, that is towards the trailing edge |
Measured from the propeller plane, the rake of the hub station is not zero: it is the axial offset
of the root section's reference point from the plane, the geometric rake of the blade plus the rake
its skew induces at the root, one to three millimetres on the KCS, JBC, DTC and KVLCC2 model
propellers. That offset belongs to the blade and travels in the .prda file, so XSH on the
PROPELLER command is the propeller position from the drawing and no offset has to be added by
hand. Files written before October 2026 measure the rake from the hub station (X_REFERENCE=root),
so their origin is the root section's reference point instead; regenerate them, or move XSH by
the offset the run prints. The skew is a rotation about the axis and is zero at the hub station in
both.
These are the two quantities a SHIPFLOW geofile does not carry, and the reason cad2esprep exists.
Their signs come from the blade, not from the model's orientation. ESPREP defines both relative to
the blade: with positive pitch the leading edge is forward of the trailing edge, and skew runs
positive from the leading edge towards the trailing edge. So identifying the leading edge fixes
both signs at once, and the orientation of the CAD model never enters.
The leading edge¶
The leading edge is identified from where the section is thickest. Every propeller section has its maximum thickness forward of mid-chord, at 35 % to 45 % of the chord for practical sections, so a station whose thickest point lies before mid-chord has end \( A \) leading. Each station votes with a weight equal to how far from mid-chord its thickest point sits, the degenerate tip stations are excluded, and the verdict is taken over the whole blade. The run prints it:
leading edge : second end - thickest at 45.2% of chord from it,
100% weighted agreement over 25 sound station(s)
Confidence comes from agreement across the blade, not from the margin at any one station. HAND is
then used to check that the blade is wound the way you declared, which catches a mirrored model. Two
things to know:
- A weak verdict with dissent scattered across the blade means the sections really are close to
symmetric. Set
AXIS_FORWARDto+1or-1; with forward known independently, the handedness check then tests the leading edge itself. - Propellers are skewed back at the tip almost without exception, so a forward tip skew in the output is the signature of a leading edge read at the wrong end. The run reports the direction of the tip skew for exactly this reason.
What is written, and what is not¶
| Symbol | Name | Meaning |
|---|---|---|
| \( r/R \) | radius ratio | the station, as a fraction of the tip radius |
| \( P/D \) | pitch ratio | from the nose-tail line, as above |
| \( c/D \) | chord ratio | chord over diameter |
| \( t/c \) | thickness ratio | maximum thickness over chord |
| \( f/c \) | camber ratio | maximum camber over chord |
| \( x/R \) | rake | axial position of \( M \), positive aft |
| \( \theta \) | skew | angular position of \( M \) in degrees, positive back |
The SHIPFLOW geofile carries thickness over the diameter, \( t/D \); the .prda wants it over
the chord. The program converts. The expanded area ratio, a row of the geofile with no field in the
.prda, is integrated over the blade when a geofile is asked for:
with \( z \) the number of blades.
The size of the blade comes from the SHIPFLOW case
Line 4 of the .prda states the diameter in metres. Every other field is a ratio, so that one
number carries the whole size of the blade. In a SHIPFLOW computation it does not matter: PPROP
sets the diameter from the case, DPROP divided by the scale factor, and uses a copy of the file
at that size, so one .prda serves the model scale and the full scale computation alike, see
PPROP. The diameter in the file is used as it
is only by a stand-alone ESPPRO run, or with GEOSIZE="FILE" on the PPROP command.
The interactive review¶
Towards the tip the chord collapses and the section measurement degenerates with it: every ratio has a vanishing denominator, the section approaches symmetry, and a small imperfection in the surfaces is a large fraction of what is left. The extraction is therefore checked before it is written. The unrepaired measurement is printed in full and drawn on the check plot as the dashed grey curves, so the repair is a visible step and never a silent one.
Three tests are applied to every station: a chord that has collapsed below a fraction of the blade's largest chord, a value that departs from the radial trend fitted through the sound stations, and a value that is physically impossible. A station that fails is flagged. The program then draws the distributions, rings the flagged stations, and asks on the terminal. The plot window follows the answers: it is redrawn at every step. The review has up to four steps; each has its own plot and its own prompt.
1. Repair. The first prompt shows the raw extraction:
[a] accept the extraction as it is
[r] repair: estimate the flagged values from a fit
[e] edit which stations are flagged
[q] quit without writing
r replaces the flagged values by a fit through the sound stations. The basis of the fit is chosen,
not assumed: candidates are scored by how well they predict the outermost sound stations from the
ones inboard of them, and the run reports which basis won and how accurately. Stations that passed
the tests keep their measured value exactly. A second prompt then shows the repaired distribution,
with a to accept, e to change which stations are estimated, b to go back to the raw values.
2. Smoothing. None of the three tests can see a distribution that oscillates, where every value is plausible on its own and only the sequence is not. This happens when a discrete choice inside the measurement flips from station to station and rotates the chord line slightly; a rotation of a tenth of a degree is invisible in the chord and the thickness, moves the pitch by under a percent, and moves the camber by ten percent, because camber is a small residual measured from that line. The program lists what a local smoother would move, and by how much, and asks:
Only \( P/D \), \( f/c \), \( x/R \) and \( \theta \) are ever smoothed. The chord and the thickness are left alone, because their departures from a smooth curve near the tip are usually the real tip closure. Smoothing is off unless you accept it.
3. A fit by hand. The smoother is local: it can only see a station that disagrees with its neighbours. An outer run of stations that goes wrong together, which is what a tip does once the sections stop resolving the camber, sits on the curve through its neighbours and is never offered. For that case the last prompt lets you name a quantity and the radius out to which you trust it, and refits everything outboard from the part you kept:
[m] fit a curve by hand: name a quantity and the r/R out to
which it is trusted, and refit everything outboard of it
[n] no, write the values as they stand
Each fit is drawn as it is made, so the next choice is made against the picture the last one
produced. d writes the fits, q discards them all.
4. Writing. The files are written, and the run's closing summary names every station that carries an estimated rather than a measured value.
The check plot is written on every run, whichever way the review is settled, so there is always a
record of what the tests would have said. Under --no-review it is the only record; the flagged
stations are ringed and the file keeps them anyway.
How the review is settled without a person
With --accept-repair the repair is applied and nothing is asked; the smoothing and the hand fit
are skipped. With --no-review nothing is checked. When there is no terminal to ask at, the
default behaves like --accept-repair, so a scripted run never hangs. For a propeller that
needs a hand fit, there is no substitute for sitting at the review once.
Step by step: the DTC propeller¶
The Duisburg Test Case propeller is a five-bladed, right-handed, strongly skewed model propeller of 150 mm diameter, drawn in millimetres in a Rhino file, with the shaft along the global X axis. This is a complete run, with the console output as it appears.
1. Prepare the directory. Put the CAD file and the input file where the outputs should go.
2. Write the input file. Start from cad2esprep --new DTC.inp and fill in the five required
settings. The identification line is optional but worth setting.
MODEL_PATH = CAD/DTC.3dm
CAD_UNIT = mm
MODEL_DIAMETER = 150.0
HUB_RR = 0.188
HAND = right
PRDA_IDENT = DTC Duisburg Test Case propeller, model scale
3. Run. From the directory holding the input file, or from anywhere with the path to it:
The run first prints every setting it will use and where the value came from, then opens the CAD:
settings
CAD_UNIT mm DTC.inp
EAR_INNER 0.188 derived from HUB_RR
HAND right DTC.inp
HUB_RR 0.188 DTC.inp
MODEL_DIAMETER 150.0 DTC.inp
MODEL_PATH .../dtc/CAD/DTC.3dm DTC.inp, resolved against it
PRDA_IDENT ...Test Case propeller, model scale DTC.inp
STATIONS 25 values, 0.188 .. 1 derived from HUB_RR
(73 further settings at their PART 1 defaults; --show-settings lists them)
model: .../dtc/CAD/DTC.3dm
30 objects, units = UnitSystem.Millimeters
4. Read the checks. The axis detection tries all three axes; X gives five blade positions exactly 72 degrees apart, the other two do not:
axis detection:
axis X : tip radius 75.2837, 5 blade position(s), spacing deviation 0.000 deg
axis Y : tip radius 74.7557, 2 blade position(s), spacing deviation 9.667 deg
axis Z : tip radius 75.7636, 1 blade position(s), spacing deviation 0.000 deg
-> global X axis through (0.0, 0.0, 0.0)
tip radius 75.2837 -> model D = 150.0000 (set by hand)
blades 5 at [40.202, 112.202, 184.202, 256.202, 328.202] deg
Then the values you typed are printed next to what the CAD measures. A typo in the diameter or the unit shows here, before any time has been spent:
dimensions (typed in; the CAD is measured only to check it)
CAD unit mm the model says Millimeters as well
model D 150.0000 mm CAD 150.0002 -0.00%
physical D 0.150000 m the model's own size, 150 mm
written D 0.150000 m into the .prda
hub r/R 0.1880 CAD 0.1870 +0.52%
5. The measurement. One blade is sectioned at the 25 stations, and the four section quantities are tabulated as they come out of the CAD. The tip station is visibly wrong, as expected: at \( r/R = 1 \) there is almost no chord to measure.
r/R P/D c/D t/D f/c
----------------------------------------------------
0.1880 0.846018 0.234686 0.045138 0.027125
0.2000 0.856119 0.240185 0.044267 0.027356
...
0.9950 0.832457 0.094946 0.004295 0.004983
0.9990 0.827749 0.063978 0.004184 0.002306
1.0000 0.972188 0.050450 0.004138 0.025833
The leading edge is found with full agreement, forward is settled from it, and the handedness check passes. Rake and skew follow, with their signs:
orientation:
leading edge : second end - thickest at 45.2% of chord from it,
100% weighted agreement over 25 sound station(s)
forward : +1 along X (from the leading edge)
cross-check : the blade is wound right-handed, as declared
root mid-chord +1.8119 CAD units from the axis point (x/R -0.02416, aft +); X_REFERENCE = axis
...
rake + aft, -0.0431 .. +0.1093 x/R
skew + back (aft), -3.12 .. +28.73 deg
skew referenced to zero at r/R = 0.1880; rake to the axis point (the propeller plane)
tip skew : +28.6 deg, i.e. BACK - as propeller skew almost always is
rake vs skew: measured rake is 0.99 x the skew-induced rake, correlation +0.998
The first line says the root section's reference point lies 1.8 mm ahead of the propeller plane; the DTC blade has no geometric rake, so this is the rake induced by the skew of the root section. The last line says the blade's rake is essentially its skew-induced rake, that is the generator line is radial, which is the common case.
6. The review. The plot window opens and the tests report on the terminal. Only the tip station is flagged, in pitch and camber:
1.0000 0.972188 0.050450 0.004138 0.025833 P/D f/c
r/R 1.0000
P/D: the trend inboard predicts it to 15.1%, against 0.1% typical
f/c: the trend inboard predicts it to 100.0%, against 8.3% typical
[a] accept the extraction as it is
[r] repair: estimate the flagged values from a fit
[e] edit which stations are flagged
[q] quit without writing
> r
Answer r. The two flagged values are replaced by the fit, and the run says which basis it chose
and how well that basis predicted the stations it was tested on:
estimated from the fit to the sound stations
r/R extracted estimated
--------------------------------------------
1.0000 P/D 0.972188 0.825450
1.0000 f/c 0.025833 0.000000
fit basis chosen by walk-forward validation
P/D quadratic in sqrt(1-r/R) predicts held-out stations to 0.08%
f/c s*(a+b*s), zero at the tip predicts held-out stations to 6.68%
[a] accept the repaired distribution
[e] edit which stations are estimated
[b] back to the raw extraction
[q] quit without writing
> a
Answer a. The smoother then lists what it could move. The changes are small, a few percent of
camber at the outermost stations, and the measured values are kept:
stations the smoother CAN move onto a smooth radial curve
r/R from to
--------------------------------------------------------
1.0000 P/D 0.825450 -> 0.826632 (+0.14%)
0.9250 f/c 0.010123 -> 0.010171 (+0.48%)
...
1.0000 theta 28.598 -> 28.666 (+0.06753 deg)
[a] accept the smoothed distribution
[k] keep the measured values - do not smooth
> k
[m] fit a curve by hand: name a quantity and the r/R out to
which it is trusted, and refit everything outboard of it
[n] no, write the values as they stand
> n
Answer k, then n. The whole review for this propeller is four keystrokes on the terminal: r,
a, k, n.
The plot is the record of the review. Dashed grey is the raw extraction, solid blue what is written,
and a ring marks a station whose value was estimated or smoothed. The plot shown was drawn with the
smoothing accepted, as its title says; with k, as above, only the tip station is ringed.
7. What was written. The closing summary:
written to DTC.prda
DTC.prof 25 section curve(s), measured shape
section: MEASURED - DTC.prof beside the .prda
3800 nodes, 3600 elements, 5 blade(s) at ESPREP's default panelling
21 of 25 stations written; the closest two are 0.0100 apart in r/R.
dropped: 0.9800, 0.9900, 0.9950, 0.9990
EAR 0.7899 as ESPREP will report it from these stations,
0.7905 from all 25, 0.7912 from this tool's 41-station integral
station(s) 1.0000 carry estimated values - see DTC.png
Four stations near the tip were measured and reviewed but not written. ESPREP puts a spline knot at
every station it is given, and a run of knots 0.005 apart over a chord heading for zero is where
that spline swings between them; a negative chord stops ESPREP outright. The written list is thinned
to a minimum spacing of 0.01 in \( r/R \); every measured station was still reviewed, and the
.prof carries all of them.
8. Use it. Copy DTC.prda and DTC.prof to the SHIPFLOW case directory and name the first on
the PROPELLER command:
The output files¶
All are named from the CAD file's base name, or from PRDA_STEM, and written beside the input file.
| File | Content |
|---|---|
<name>.prda |
The blade description ESPREP meshes from. Given with GEOFILE on the PROPELLER command. |
<name>.prof |
The measured section shapes. Read by ESPREP when it sits beside the .prda under the same name. |
<name>.png |
The check plot. |
<name>_geofile.txt |
The SHIPFLOW geofile for the PROPELLER command. Only with --shipflow, --shipflow-only or OUTPUT_FORMAT. |
The .prda file¶
The file is written in fixed columns: integers in fields of 4 characters, real numbers in fields of 10 characters. Text after the last number on a line is ignored. The first three lines are free text; the program writes the identification, its own name and a time stamp there.
DTC Duisburg Test Case propeller, model scale
cad2esprep
20260827113130
5 0.15000 0.18800 21 0 nbla, D(m), r_hub/R, nsect, ijjk
0.18800 -0.02416 0.00000 0.84602 0.00000 r/R, x/R, theta, P/D, phi-v
0.20000 -0.02669 -0.46466 0.85612 0.00000
... nsect lines, hub to tip
1.00000 0.10932 28.59808 0.82545 0.00000
0.18800 0.23469 0.19234 0.02713 r/R, c/D, t/c, f/c
0.20000 0.24018 0.18430 0.02736
... nsect lines, hub to tip
1.00000 0.05045 0.08202 0.00000
Here D is the diameter in metres at the scale of the computation, r_hub/R the hub radius over the
propeller radius, x/R the axial position of the section reference point measured from the propeller
plane (the rake, positive aft),
theta the skew angle in degrees (positive back), c/D the chord length over the diameter, t/c the
maximum thickness over the chord length and f/c the maximum camber over the chord length. The last
column of the first block, phi-v, is the nose-tail inclination of a Kappel blade and is written as
zero; the last integer of the header, ijjk, selects the input coordinate system and is written as 0,
meaning that x/R and theta are used exactly as given. The chord must not be zero at the tip. The same blade can be given without a file, as the distributions of the PROPELLER command (R_RT, P_D, C_D, T_D = t/c times c/D, F_C, SKEW = theta, RAKE = x/R, with DHUB/DPROP as r_hub/R), see PROPELLER and PPROP.
The .prof file¶
A .prda describes a section by three numbers, chord, thickness and camber, and nothing else.
Without more information ESPREP builds every section from a NACA 66 thickness form on an a = 0.8
mean line, scaled to those three numbers. On a blade whose sections are that family this is exact;
on any other blade the panel mesh carries a different aerofoil with the same chord, thickness and
camber, and it does not have the same lift.
The .prof file carries the measured shape of every section. Each curve gives, against the
chordwise position \( x/c \), the half thickness normalised by the maximum thickness, the camber
normalised by the maximum camber, and the slope of the camber line. Only the shape is in this
file: the size, the camber and the pitch of every section still come from the .prda, that is from
the reviewed values, so a section shape is never applied at a size the review did not approve.
family CAD
index r/R
# ncurve, npoint
25 27
# curve at r/R = 0.18800
0.18800 0.27483
0.000000 0.000000 0.000000 7.9662
0.005000 0.055577 0.039831 6.9722
...
One curve is written per measured station, because real section families change shape along the blade. The second number on the curve header is the section's leading-edge radius, fitted from the measured surface near the nose, so ESPREP need not fall back on the NACA 66 value.
The file is used automatically: PPROP reads the .prof file with the same name as the .prda
file, from the same directory. Keep the two together. Without it, every section is meshed as
NACA 66.
The SHIPFLOW geofile¶
With --shipflow, --shipflow-only or OUTPUT_FORMAT = both, the program also writes the geofile
of the PROPELLER command, for the lifting
line propeller model. It is the same measurement in the other format: seven lines, the blade count,
the expanded area ratio, and the five distributions written at every measured station.
5 !nbla
0.7912 !EAR
0.188000 0.200000 0.250000 ... 1.000000 !r_R
0.846018 0.856119 0.895268 ... 0.825450 !P_D
0.234686 0.240185 0.261364 ... 0.050450 !C_D
0.045138 0.044267 0.040575 ... 0.004138 !t_D
0.027125 0.027356 0.028183 ... 0.000000 !f_C
Three things differ from the .prda. The file is non-dimensional, so the CAD unit and the diameter
cancel and the size is stated on the PROPELLER command instead. Thickness is over the diameter,
\( t/D \), not over the chord. And there is no row for rake or skew, which the lifting line does not
use. The expanded area ratio is integrated on a fine grid of its own when the geofile is asked for,
which is why a run that writes it takes about twice as long.
Troubleshooting¶
| Symptom | Cause and remedy |
|---|---|
| Blade count comes back 0, every station dropped | The axis is wrong, or the surface parameter along which radius varies was misdetected. Set AXIS by hand. |
| Ten blade positions for a five-bladed propeller | The two faces of each blade resolve as separate positions. Set AXIS and N_BLADES by hand; the blade grouping itself is right. |
| Nothing cuts inboard of some radius | BLADE_RADIUS_FRACTION is discarding root patches of a blade modelled in radial bands. Lower it, or use an STL. |
the hub station r/R = ... produced no section |
HUB_RR is inside the geometry the CAD carries. Raise it to the innermost station that cuts. |
| The model diameter is several percent from the CAD's | Normal when BLADE_RADIUS_FRACTION has been lowered: the surface family the measurement settles on may not reach the tip. The value used is MODEL_DIAMETER, so check that. |
| A warning that a station has holes in the section | Surfaces that do not quite meet, or an STL that is not watertight. Where holes are few the answer is still right; where they are many, the camber reads low. Fix the geometry or let the review replace the station. |
| A weak leading-edge verdict, dissent scattered across the blade | The sections are close to symmetric. Set AXIS_FORWARD. |
| Forward tip skew in the output | The leading edge was read at the wrong end. Set AXIS_FORWARD, or check the model. |
| Camber oscillates from station to station | The chord-end selection is switching between stations. Accept the smoothing. |
ESPREP prints Chord length negative and stops |
The written station list is too dense near the tip. Raise PRDA_MIN_SPACING. |
| No plot window appears | There is no display, for instance a plain ssh session. The plot is in <name>.png; run where there is a screen, or use --accept-repair. |
Limits¶
- The number of stations in a
.prdais at most 100 and the number of blades at most 10. The program checks both before writing. - Trimmed surfaces are not read. An IGES file reports and skips them; a
.3dmfile does not, and measures the untrimmed surface. Export such a propeller as STL. - The nose-tail inclination of a Kappel blade cannot be measured with a constant-radius cut and is written as zero. A Kappel propeller is not fully described by the file, and the run says so.
- Ducted propellers and hub geometry are not treated; only the blades are measured.
- The program writes the blade description and stops. ESPREP and ESPPRO are run by
PPROP.








