Class PipeDesign
java.lang.Object
neqsim.process.mechanicaldesign.pipeline.PipeDesign
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA simple holder for arrays describing a pipe schedule: nps, inner diameters, outer diameters, thicknesses.static classHolds the arrays for a particular wire schedule. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double[]ConstantBWG_inchstatic final double[]ConstantBWG_integersstatic final double[]ConstantBWG_SIprivate static final doubleprivate static final doubleprivate static final doublestatic final double[]ConstantNPS10static final double[]ConstantNPS100static final double[]ConstantNPS120static final double[]ConstantNPS140static final double[]ConstantNPS160static final double[]ConstantNPS20static final double[]ConstantNPS30static final double[]ConstantNPS40static final double[]ConstantNPS5static final double[]ConstantNPS60static final double[]ConstantNPS80static final double[]ConstantNPSS5static final double[]ConstantNPSSTDstatic final double[]ConstantNPSXSstatic final double[]ConstantNPSXXSstatic final double[]ConstantS100istatic final double[]ConstantS100ostatic final double[]ConstantS100tstatic final double[]ConstantS10istatic final double[]ConstantS10ostatic final double[]ConstantS10tstatic final double[]ConstantS120istatic final double[]ConstantS120ostatic final double[]ConstantS120tstatic final double[]ConstantS140istatic final double[]ConstantS140ostatic final double[]ConstantS140tstatic final double[]ConstantS160istatic final double[]ConstantS160ostatic final double[]ConstantS160tstatic final double[]ConstantS20istatic final double[]ConstantS20ostatic final double[]ConstantS20tstatic final double[]ConstantS30istatic final double[]ConstantS30ostatic final double[]ConstantS30tstatic final double[]ConstantS40istatic final double[]ConstantS40ostatic final double[]ConstantS40tstatic final double[]ConstantS5istatic final double[]ConstantS5ostatic final double[]ConstantS5tstatic final double[]ConstantS60istatic final double[]ConstantS60ostatic final double[]ConstantS60tstatic final double[]ConstantS80istatic final double[]ConstantS80ostatic final double[]ConstantS80tstatic final Map<String, PipeDesign.ScheduleData> ConstantscheduleLookupstatic final double[]ConstantSS5DNstatic final double[]ConstantSS5istatic final double[]ConstantSS5ostatic final double[]ConstantSS5tstatic final double[]ConstantSSWG_inchstatic final double[]ConstantSSWG_integersstatic final double[]ConstantSSWG_SIstatic final double[]ConstantSTDistatic final double[]ConstantSTDostatic final double[]ConstantSTDtstatic final Map<String, PipeDesign.WireScheduleData> ConstantwireSchedulesstatic final double[]ConstantXSistatic final double[]ConstantXSostatic final double[]ConstantXStstatic final double[]ConstantXXSistatic final double[]ConstantXXSostatic final double[]ConstantXXSt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static double[]DiLookup(double DiMm, double[] NPSes, double[] Dis, double[] Dos, double[] ts) private static double[]DoLookup(double DoMm, double[] NPSes, double[] Dis, double[] Dos, double[] ts) static doubleerosionalVelocity(double rho, double C) Calculate the erosional velocity according to the API RP 14E equation:static doublegaugeFromThickness(double t, boolean SI, String schedule) Looks up the gauge of a given wire thickness for a chosen schedule.static voidmain.static double[]nearestPipe(Double Do, Double Di, Double NPS, String schedule) Searches for and finds the nearest standard pipe size to a given specification.private static double[]NPSLookup(double wantedNPS, double[] NPSes, double[] Dis, double[] Dos, double[] ts) static doublethicknessFromGauge(double gauge, boolean SI, String schedule) Looks up the thickness of a given wire gauge in a chosen schedule.
-
Field Details
-
INCH_TO_M
private static final double INCH_TO_M- See Also:
-
FOOT_TO_M
private static final double FOOT_TO_M- See Also:
-
LB_FT3_TO_KG_M3
private static final double LB_FT3_TO_KG_M3- See Also:
-
NPS5
public static final double[] NPS5ConstantNPS5 -
S5i
public static final double[] S5iConstantS5i -
S5o
public static final double[] S5oConstantS5o -
S5t
public static final double[] S5tConstantS5t -
NPS10
public static final double[] NPS10ConstantNPS10 -
S10i
public static final double[] S10iConstantS10i -
S10o
public static final double[] S10oConstantS10o -
S10t
public static final double[] S10tConstantS10t -
NPS20
public static final double[] NPS20ConstantNPS20 -
S20i
public static final double[] S20iConstantS20i -
S20o
public static final double[] S20oConstantS20o -
S20t
public static final double[] S20tConstantS20t -
NPS30
public static final double[] NPS30ConstantNPS30 -
S30i
public static final double[] S30iConstantS30i -
S30o
public static final double[] S30oConstantS30o -
S30t
public static final double[] S30tConstantS30t -
NPS40
public static final double[] NPS40ConstantNPS40 -
S40i
public static final double[] S40iConstantS40i -
S40o
public static final double[] S40oConstantS40o -
S40t
public static final double[] S40tConstantS40t -
NPS60
public static final double[] NPS60ConstantNPS60 -
S60i
public static final double[] S60iConstantS60i -
S60o
public static final double[] S60oConstantS60o -
S60t
public static final double[] S60tConstantS60t -
NPS80
public static final double[] NPS80ConstantNPS80 -
S80i
public static final double[] S80iConstantS80i -
S80o
public static final double[] S80oConstantS80o -
S80t
public static final double[] S80tConstantS80t -
NPS100
public static final double[] NPS100ConstantNPS100 -
S100i
public static final double[] S100iConstantS100i -
S100o
public static final double[] S100oConstantS100o -
S100t
public static final double[] S100tConstantS100t -
NPS120
public static final double[] NPS120ConstantNPS120 -
S120i
public static final double[] S120iConstantS120i -
S120o
public static final double[] S120oConstantS120o -
S120t
public static final double[] S120tConstantS120t -
NPS140
public static final double[] NPS140ConstantNPS140 -
S140i
public static final double[] S140iConstantS140i -
S140o
public static final double[] S140oConstantS140o -
S140t
public static final double[] S140tConstantS140t -
NPS160
public static final double[] NPS160ConstantNPS160 -
S160i
public static final double[] S160iConstantS160i -
S160o
public static final double[] S160oConstantS160o -
S160t
public static final double[] S160tConstantS160t -
NPSSTD
public static final double[] NPSSTDConstantNPSSTD -
STDi
public static final double[] STDiConstantSTDi -
STDo
public static final double[] STDoConstantSTDo -
STDt
public static final double[] STDtConstantSTDt -
NPSXS
public static final double[] NPSXSConstantNPSXS -
XSi
public static final double[] XSiConstantXSi -
XSo
public static final double[] XSoConstantXSo -
XSt
public static final double[] XStConstantXSt -
NPSXXS
public static final double[] NPSXXSConstantNPSXXS -
XXSi
public static final double[] XXSiConstantXXSi -
XXSo
public static final double[] XXSoConstantXXSo -
XXSt
public static final double[] XXStConstantXXSt -
NPSS5
public static final double[] NPSS5ConstantNPSS5 -
SS5DN
public static final double[] SS5DNConstantSS5DN -
SS5i
public static final double[] SS5iConstantSS5i -
SS5o
public static final double[] SS5oConstantSS5o -
SS5t
public static final double[] SS5tConstantSS5t -
scheduleLookup
ConstantscheduleLookup -
SSWG_integers
public static final double[] SSWG_integersConstantSSWG_integers -
SSWG_inch
public static final double[] SSWG_inchConstantSSWG_inch -
SSWG_SI
public static final double[] SSWG_SIConstantSSWG_SI -
BWG_integers
public static final double[] BWG_integersConstantBWG_integers -
BWG_inch
public static final double[] BWG_inchConstantBWG_inch -
BWG_SI
public static final double[] BWG_SIConstantBWG_SI -
wireSchedules
ConstantwireSchedules
-
-
Constructor Details
-
PipeDesign
public PipeDesign()
-
-
Method Details
-
DiLookup
private static double[] DiLookup(double DiMm, double[] NPSes, double[] Dis, double[] Dos, double[] ts) -
DoLookup
private static double[] DoLookup(double DoMm, double[] NPSes, double[] Dis, double[] Dos, double[] ts) -
NPSLookup
private static double[] NPSLookup(double wantedNPS, double[] NPSes, double[] Dis, double[] Dos, double[] ts) -
nearestPipe
Searches for and finds the nearest standard pipe size to a given specification. Acceptable inputs: - Outer diameter Do - Inner diameter Di - NPS - optionally specify the schedule (default "40") Returns an array {foundNPS, foundDi (m), foundDo (m), foundT (m)}. If none is found (i.e. the diameter is bigger than the largest in the table), throws exception. -
gaugeFromThickness
Looks up the gauge of a given wire thickness for a chosen schedule.If SI is true, input thickness t is in meters; otherwise, in inches. This returns the gauge number that best matches. If t is out of range, it will throw an IllegalArgumentException.
- Parameters:
t- thickness in meters if SI=true, else in inchesSI- true if t is in metersschedule- name of the wire gauge schedule, e.g. "BWG"- Returns:
- the gauge as a double
-
thicknessFromGauge
Looks up the thickness of a given wire gauge in a chosen schedule.If SI is true, returns thickness in meters; otherwise in inches.
- Parameters:
gauge- the gauge numberSI- if true, thickness is returned in meters; else inchesschedule- wire gauge schedule name, e.g. "BWG"- Returns:
- thickness in meters or inches
-
erosionalVelocity
public static double erosionalVelocity(double rho, double C) Calculate the erosional velocity according to the API RP 14E equation:V_e = C / sqrt(rho)
where C is in sqrt(lb/(ft*s^2)) and rho is in kg/m^3.
- Parameters:
rho- fluid bulk density in kg/m^3C- erosional velocity factor in sqrt(lb/(ft*s^2))- Returns:
- erosional velocity in m/s
-
main
-