Class TopsidePiping
- All Implemented Interfaces:
Serializable, Runnable, AutoSizeable, CapacityConstrainedEquipment, PipeLineInterface, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
Topside piping equipment class for offshore platforms and onshore facilities.
<p> This class extends PipeBeggsAndBrills to provide topside piping-specific functionality
including: </p> <ul> <li>ASME B31.3 Process Piping design</li>
<li>Velocity limits for erosion and vibration prevention</li> <li>Pipe support
spacing calculations</li> <li>Flow-induced vibration (FIV) analysis</li>
<li>Acoustic-induced vibration (AIV) screening</li> <li>Thermal expansion and
stress analysis</li> </ul>
<h2>Service Types</h2> <p> The class supports multiple service types:
</p> <ul> <li><b>PROCESS_GAS</b>: High-pressure gas
piping</li> <li><b>PROCESS_LIQUID</b>: Liquid hydrocarbon
piping</li> <li><b>MULTIPHASE</b>: Two-phase or multiphase flow
piping</li> <li><b>PRODUCED_WATER</b>: Produced water handling</li>
<li><b>STEAM</b>: Steam distribution piping</li>
<li><b>UTILITY_AIR</b>: Instrument and utility air</li>
<li><b>FLARE</b>: Flare header and knockout drum piping</li>
<li><b>FUEL_GAS</b>: Fuel gas distribution</li> </ul>
<h2>Usage Example</h2>
<pre>
// Create topside process piping
TopsidePiping gasHeader = new TopsidePiping("HP Gas Header", inletStream);
gasHeader.setServiceType(TopsidePiping.ServiceType.PROCESS_GAS);
gasHeader.setDiameter(0.2032); // 8 inch
gasHeader.setLength(50.0); // 50 meters
gasHeader.run();
// Get mechanical design
TopsidePipingMechanicalDesign design = gasHeader.getTopsideMechanicalDesign();
design.setMaxOperationPressure(100.0);
design.setMaterialGrade("A106-B");
design.setDesignStandardCode("ASME-B31.3");
design.setCompanySpecificDesignStandards("Equinor");
design.readDesignSpecifications();
design.calcDesign();
// Check velocity limits
double erosionVelocity = design.getCalculator().getErosionalVelocity();
double actualVelocity = design.getCalculator().getActualVelocity();
boolean velocityOk = actualVelocity < erosionVelocity;
// Get support spacing
double supportSpan = design.getCalculator().getSupportSpacing();
</pre>- Version:
- 1.0
- Author:
- ASMF
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumInsulation type for topside piping.static enumPipe schedule for wall thickness selection.static enumService types for topside piping with different design requirements.Nested classes/interfaces inherited from class PipeBeggsAndBrills
PipeBeggsAndBrills.CalculationMode, PipeBeggsAndBrills.FlowRegime, PipeBeggsAndBrills.HeatTransferMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleAmbient temperature in Celsius.private booleanIs the piping in a corrosive environment?private booleanIs the piping exposed to weather?private intFlange rating class (150, 300, 600, 900, 1500, 2500).private doubleInsulation thickness in meters.private TopsidePiping.InsulationTypeInsulation type.private doubleMaximum operating pressure in bara.private doubleMaximum operating temperature in Celsius.private doubleMinimum operating pressure in bara.private doubleMinimum operating temperature in Celsius.private intNumber of anchors.private intNumber of 45-degree elbows.private intNumber of 90-degree elbows.private intNumber of expansion loops.private intNumber of flanges.private intNumber of guides.private intNumber of reducers.private intNumber of pipe supports.private intNumber of tees.private intNumber of valves.private TopsidePiping.PipeSchedulePipe schedule.private static final longSerialization version UID.private TopsidePiping.ServiceTypeService type for this piping.private doubleSupport spacing in meters.private TopsidePipingMechanicalDesignTopside piping mechanical design.private StringValve type (Gate, Ball, Globe, Check).private doubleWind speed in m/s.Fields inherited from class PipeBeggsAndBrills
cp, criticalPressure, dTlm, elevation, error, frictionFactor, frictionTwoPhase, hmax, iteration, iterationT, length, maxflowunit, muNoSlip, Nu, Pr, pressureOut, q1, q2, ReNoSlip, rhoNoSlip, S, temperatureOut, thermalConductivity, Tmi, Tmo, Ts, XFields inherited from class Pipeline
adiabatic, burialDepth, buried, coatingConductivity, coatingThickness, corrosionAllowance, designCode, designPressure, designTemperature, diameter, equilibriumHeatTransfer, equilibriumMassTransfer, fileName, fittings, flowPattern, flowRegime, inletElevation, innerHeatTransferCoefficient, insulationConductivity, legHeights, legPositions, liquidHoldup, locationClass, logger, materialGrade, mechanicalDesignCalculator, numberOfLegs, numberOfNodesInLeg, outerHeatTransferCoeffs, outerTemperature, outletElevation, pipe, pipeDiameters, pipelineMechanicalDesign, pipeMaterial, pipeWallConductivity, reynoldsNumber, roughness, soilConductivity, surfaceTemperature, system, times, useFittings, velocity, wallHeatTransferCoeffs, wallThicknessFields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TopsidePiping(String name) Constructor with name.TopsidePiping(String name, StreamInterface inStream) Constructor with name and inlet stream.TopsidePiping(TopsidePiping.ServiceType serviceType, String name, StreamInterface inStream) Constructor with service type, name and inlet stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic TopsidePipingcreateFlareHeader(String name, StreamInterface inStream) Create flare header piping.static TopsidePipingcreateFuelGas(String name, StreamInterface inStream) Create fuel gas piping.static TopsidePipingcreateMultiphase(String name, StreamInterface inStream) Create multiphase piping.static TopsidePipingcreateProcessGas(String name, StreamInterface inStream) Create process gas piping.static TopsidePipingcreateProcessLiquid(String name, StreamInterface inStream) Create process liquid piping.static TopsidePipingcreateSteam(String name, StreamInterface inStream) Create steam piping.doubleGet ambient temperature.doubleCalculate total equivalent length including fittings.intGet flange rating.doubleGet insulation thickness.Get the insulation type/material.Get insulation type enum.doubleGet maximum operating pressure.doubleGet maximum operating temperature.Get amechanicalDesignfor the equipment.doubleGet minimum operating pressure.doubleGet minimum operating temperature.intGet number of anchors.intGet number of 45-degree elbows.intGet number of 90-degree elbows.intGet number of expansion loops.intGet number of flanges.intGet number of guides.intGet number of reducers.intGet number of pipe supports.intGet number of tees.intGet number of valves.Get the pipe schedule.Get pipe schedule enum.Get service type.doubleGet support spacing.Get mechanical design as TopsidePipingMechanicalDesign.Get valve type.doubleGet wind speed.voidInitialize ainitMechanicalDesignfor the equipment.booleanCheck if in corrosive environment.booleanCheck if piping is exposed to weather.voidsetAmbientTemperature(double ambientTemperature) Set ambient temperature.voidsetCorrosiveEnvironment(boolean corrosiveEnvironment) Set if in corrosive environment.voidsetExposedToWeather(boolean exposedToWeather) Set if piping is exposed to weather.voidsetFittings(int elbows90, int elbows45, int tees, int valves) Set layout configuration for fittings.voidsetFlangeRating(int flangeRating) Set flange rating.voidsetInsulation(TopsidePiping.InsulationType type, double thickness) Set insulation configuration.voidsetInsulationThickness(double insulationThickness) Set insulation thickness.voidsetInsulationType(TopsidePiping.InsulationType insulationType) Set insulation type.voidsetMaxOperatingPressure(double maxOperatingPressure) Set maximum operating pressure.voidsetMaxOperatingTemperature(double maxOperatingTemperature) Set maximum operating temperature.voidsetMinOperatingPressure(double minOperatingPressure) Set minimum operating pressure.voidsetMinOperatingTemperature(double minOperatingTemperature) Set minimum operating temperature.voidsetNumberOfAnchors(int numberOfAnchors) Set number of anchors.voidsetNumberOfElbows45(int numberOfElbows45) Set number of 45-degree elbows.voidsetNumberOfElbows90(int numberOfElbows90) Set number of 90-degree elbows.voidsetNumberOfExpansionLoops(int numberOfExpansionLoops) Set number of expansion loops.voidsetNumberOfFlanges(int numberOfFlanges) Set number of flanges.voidsetNumberOfGuides(int numberOfGuides) Set number of guides.voidsetNumberOfReducers(int numberOfReducers) Set number of reducers.voidsetNumberOfSupports(int numberOfSupports) Set number of pipe supports.voidsetNumberOfTees(int numberOfTees) Set number of tees.voidsetNumberOfValves(int numberOfValves) Set number of valves.voidsetOperatingEnvelope(double minPressure, double maxPressure, double minTemperature, double maxTemperature) Set operating envelope.voidsetPipeSchedule(TopsidePiping.PipeSchedule pipeSchedule) Set pipe schedule.voidsetServiceType(TopsidePiping.ServiceType serviceType) Set service type.voidsetSupportSpacing(double supportSpacing) Set support spacing.voidsetValveType(String valveType) Set valve type.voidsetWindSpeed(double windSpeed) Set wind speed.Methods inherited from class PipeBeggsAndBrills
autoSize, autoSize, autoSize, calcFlowRegime, calcFrictionPressureLoss, calcHeatBalance, calcHydrostaticPressureDifference, calcPressureDrop, calcTemperatureDifference, calculateAIV, calculateAIVLikelihoodOfFailure, calculateFRMS, calculateFRMS, calculateLOF, calculateMissingValue, convertSystemUnitToImperial, convertSystemUnitToMetric, disableRhonePoulencVelocity, displayResult, estimateHeatTransferCoefficent, getAngle, getCalculationMode, getDiameter, getElevation, getElevationProfile, getErosionalVelocity, getErosionalVelocity, getFIVAnalysis, getFIVAnalysisJson, getFlowRegime, getFlowRegimeEnum, getFlowRegimeProfileList, getGasSuperficialVelocityProfile, getHeatTransferCoefficient, getHeatTransferMode, getIncrementsProfile, getInletSuperficialVelocity, getInsulationThermalConductivity, getLastSegmentPressureDrop, getLength, getLengthProfile, getLiquidDensityProfile, getLiquidHoldupProfile, getLiquidHoldupProfileList, getLiquidSuperficialVelocityProfile, getMaxAllowableVelocity, getMaxDesignAIV, getMaxVelocityMethod, getMixtureDensityProfile, getMixtureReynoldsNumber, getMixtureSuperficialVelocityProfile, getMixtureVelocity, getMixtureViscosityProfile, getNumberOfIncrements, getOuterHeatTransferCoefficient, getOutletSuperficialVelocity, getPipeWallThermalConductivity, getPressureDrop, getPressureDropProfile, getPressureProfile, getPressureProfileList, getRhonePoulencCalculator, getRhonePoulencMaxVelocity, getSegmentElevation, getSegmentFlowRegime, getSegmentGasSuperficialVelocity, getSegmentLength, getSegmentLiquidDensity, getSegmentLiquidHoldup, getSegmentLiquidSuperficialVelocity, getSegmentMixtureDensity, getSegmentMixtureReynoldsNumber, getSegmentMixtureSuperficialVelocity, getSegmentMixtureViscosity, getSegmentPressure, getSegmentPressureDrop, getSegmentTemperature, getSizingReport, getSizingReportJson, getSpecifiedOutletPressure, getSpecifiedOutletPressureUnit, getSupportArrangement, getTemperatureProfile, getTemperatureProfileList, getThermoSystem, getThickness, initializeCapacityConstraints, isAutoSized, isIncludeFrictionHeating, isIncludeJouleThomsonEffect, isRhonePoulencEnabled, isUseOverallHeatTransferCoefficient, reinitializeCapacityConstraints, run, runTransient, setAngle, setCalculationMode, setConstantSurfaceTemperature, setDiameter, setElevation, setFlowConvergenceTolerance, setHeatTransferCoefficient, setHeatTransferMode, setIncludeFrictionHeating, setIncludeJouleThomsonEffect, setInsulation, setLength, setMaxDesignAIV, setMaxDesignFRMS, setMaxDesignLOF, setMaxDesignVelocity, setMaxFlowIterations, setNumberOfIncrements, setOuterHeatTransferCoefficient, setOutletPressure, setOutletPressure, setPipeSpecification, setPipeWallRoughness, setPipeWallThermalConductivity, setRhonePoulencServiceType, setRhonePoulencServiceType, setRunIsothermal, setSupportArrangement, setThickness, setUseOverallHeatTransferCoefficient, toJson, toJson, useRhonePoulencVelocityMethods inherited from class Pipeline
addCapacityConstraint, addFitting, addFittingFromDatabase, addFittings, addStandardFitting, addStandardFittings, calculateHoopStress, calculateMAOP, calculateMinimumWallThickness, calculateOverallHeatTransferCoefficient, calculateTestPressure, calculateVonMisesStress, clearCapacityConstraints, clearFittings, generateMechanicalDesignReport, getBottleneckConstraint, getBurialDepth, getCapacityConstraints, getCapacityDuty, getCapacityMax, getCoatingConductivity, getCoatingThickness, getCorrosionAllowance, getDesignCode, getDesignPressure, getDesignTemperature, getEffectiveLength, getEntropyProduction, getFittings, getFrictionFactor, getInletElevation, getInnerHeatTransferCoefficient, getInsulationConductivity, getLiquidHoldup, getLocationClass, getMAOP, getMaterialGrade, getMaxUtilization, getMechanicalDesignCalculator, getNumberOfFittings, getNumberOfLegs, getOutletElevation, getOutletPressure, getOutletTemperature, getPipe, getPipeMaterial, getPipeWallConductivity, getPipeWallRoughness, getReynoldsNumber, getSoilConductivity, getSuperficialVelocity, getSuperficialVelocity, getTimes, getTotalFittingsLdRatio, getVelocity, getWallThickness, isAdiabatic, isBuried, isCapacityExceeded, isHardLimitExceeded, isMechanicalDesignSafe, isUseFittings, printFittingsSummary, removeCapacityConstraint, setAdiabatic, setAmbientTemperatures, setBurialDepth, setBuried, setCoatingConductivity, setCoatingThickness, setConstantSurfaceTemperature, setCorrosionAllowance, setDesignCode, setDesignPressure, setDesignPressure, setDesignTemperature, setEquilibriumHeatTransfer, setEquilibriumMassTransfer, setHeightProfile, setInitialFlowPattern, setInletElevation, setInnerHeatTransferCoefficient, setInsulationConductivity, setInsulationType, setLegPositions, setLocationClass, setMaterialGrade, setNumberOfLegs, setNumberOfNodesInLeg, setOuterHeatTransferCoefficients, setOuterTemperatures, setOutletElevation, setOutletTemperature, setOutputFileName, setPipeDiameters, setPipeMaterial, setPipeOuterHeatTransferCoefficients, setPipeSchedule, setPipeWallConductivity, setPipeWallHeatTransferCoefficients, setPipeWallRoughness, setSoilConductivity, setTimeSeries, setUseFittings, setWallHeatTransferCoefficients, setWallThicknessMethods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletStream, setInletTemperature, setOutletStream, setOutletTemperature, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, equals, getConditionAnalysisMessage, getController, getEffectiveCapacityFactor, getEnergyStream, getExergyChange, getFailureMode, getMassBalance, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, hashCode, isActive, isActive, isCapacityAnalysisEnabled, isFailed, isSetEnergyStream, reportResults, restoreFromFailure, run_step, runConditionAnalysis, setCapacityAnalysisEnabled, setController, setEnergyStream, setEnergyStream, setFailureMode, setFlowValveController, setMinimumFlow, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, simulateDegradedOperation, simulateTrip, solvedMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CapacityConstrainedEquipment
disableAllConstraints, enableAllConstraints, getAvailableMargin, getAvailableMarginPercent, getMaxUtilizationPercent, getUtilizationSummary, isCapacityAnalysisEnabled, isNearCapacityLimit, setCapacityAnalysisEnabledMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface PipeLineInterface
setOutPressure, setOutTemperatureMethods inherited from interface ProcessEquipmentInterface
getExergyChange, getFluid, getOperatingEnvelopeViolation, getRestCapacity, getSimulationValidationErrors, isSimulationValid, isWithinOperatingEnvelope, needRecalculationMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, run_step, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solvedMethods inherited from interface TwoPortInterface
getInletPressure, getInletStream, getInletTemperature, getInStream, getOutletPressure, getOutletStream, getOutletTemperature, getOutStream, setInletPressure, setInletStream, setInletTemperature, setOutletStream, setOutletTemperature, setOutPressure, setOutTemperature
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
topsideMechanicalDesign
Topside piping mechanical design. -
serviceType
Service type for this piping. -
pipeSchedule
Pipe schedule. -
insulationType
Insulation type. -
insulationThickness
private double insulationThicknessInsulation thickness in meters. -
maxOperatingPressure
private double maxOperatingPressureMaximum operating pressure in bara. -
minOperatingPressure
private double minOperatingPressureMinimum operating pressure in bara. -
maxOperatingTemperature
private double maxOperatingTemperatureMaximum operating temperature in Celsius. -
minOperatingTemperature
private double minOperatingTemperatureMinimum operating temperature in Celsius. -
numberOfElbows90
private int numberOfElbows90Number of 90-degree elbows. -
numberOfElbows45
private int numberOfElbows45Number of 45-degree elbows. -
numberOfTees
private int numberOfTeesNumber of tees. -
numberOfReducers
private int numberOfReducersNumber of reducers. -
numberOfValves
private int numberOfValvesNumber of valves. -
valveType
Valve type (Gate, Ball, Globe, Check). -
numberOfFlanges
private int numberOfFlangesNumber of flanges. -
flangeRating
private int flangeRatingFlange rating class (150, 300, 600, 900, 1500, 2500). -
supportSpacing
private double supportSpacingSupport spacing in meters. -
numberOfSupports
private int numberOfSupportsNumber of pipe supports. -
numberOfAnchors
private int numberOfAnchorsNumber of anchors. -
numberOfGuides
private int numberOfGuidesNumber of guides. -
numberOfExpansionLoops
private int numberOfExpansionLoopsNumber of expansion loops. -
ambientTemperature
private double ambientTemperatureAmbient temperature in Celsius. -
windSpeed
private double windSpeedWind speed in m/s. -
exposedToWeather
private boolean exposedToWeatherIs the piping exposed to weather? -
corrosiveEnvironment
private boolean corrosiveEnvironmentIs the piping in a corrosive environment?
-
-
Constructor Details
-
TopsidePiping
public TopsidePiping()Default constructor. -
TopsidePiping
-
TopsidePiping
Constructor with name and inlet stream.- Parameters:
name- equipment nameinStream- inlet stream
-
TopsidePiping
Constructor with service type, name and inlet stream.- Parameters:
serviceType- the service typename- equipment nameinStream- inlet stream
-
-
Method Details
-
createProcessGas
Create process gas piping.- Parameters:
name- equipment nameinStream- inlet stream- Returns:
- configured process gas piping
-
createProcessLiquid
Create process liquid piping.- Parameters:
name- equipment nameinStream- inlet stream- Returns:
- configured process liquid piping
-
createMultiphase
Create multiphase piping.- Parameters:
name- equipment nameinStream- inlet stream- Returns:
- configured multiphase piping
-
createFlareHeader
Create flare header piping.- Parameters:
name- equipment nameinStream- inlet stream- Returns:
- configured flare header piping
-
createFuelGas
Create fuel gas piping.- Parameters:
name- equipment nameinStream- inlet stream- Returns:
- configured fuel gas piping
-
createSteam
Create steam piping.- Parameters:
name- equipment nameinStream- inlet stream- Returns:
- configured steam piping
-
initMechanicalDesign
public void initMechanicalDesign()Initialize a
initMechanicalDesignfor the equipment.- Specified by:
initMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
initMechanicalDesignin classPipeline
-
getMechanicalDesign
Get a
mechanicalDesignfor the equipment.- Specified by:
getMechanicalDesignin interfaceProcessEquipmentInterface- Overrides:
getMechanicalDesignin classPipeline- Returns:
- a
MechanicalDesignobject
-
getTopsideMechanicalDesign
Get mechanical design as TopsidePipingMechanicalDesign.- Returns:
- topside piping mechanical design
-
getEquivalentLength
public double getEquivalentLength()Calculate total equivalent length including fittings.- Overrides:
getEquivalentLengthin classPipeline- Returns:
- equivalent length in meters
-
getServiceType
-
setServiceType
Set service type.- Parameters:
serviceType- service type
-
getPipeScheduleEnum
Get pipe schedule enum.- Returns:
- pipe schedule enum
-
getPipeSchedule
Get the pipe schedule.- Specified by:
getPipeSchedulein interfacePipeLineInterface- Overrides:
getPipeSchedulein classPipeline- Returns:
- pipe schedule
-
setPipeSchedule
Set pipe schedule.- Parameters:
pipeSchedule- pipe schedule
-
getInsulationTypeEnum
Get insulation type enum.- Returns:
- insulation type enum
-
getInsulationType
Get the insulation type/material.- Specified by:
getInsulationTypein interfacePipeLineInterface- Overrides:
getInsulationTypein classPipeline- Returns:
- insulation type
-
setInsulationType
Set insulation type.- Parameters:
insulationType- insulation type
-
getInsulationThickness
public double getInsulationThickness()Get insulation thickness.- Specified by:
getInsulationThicknessin interfacePipeLineInterface- Overrides:
getInsulationThicknessin classPipeBeggsAndBrills- Returns:
- insulation thickness in meters
-
setInsulationThickness
public void setInsulationThickness(double insulationThickness) Set insulation thickness.- Specified by:
setInsulationThicknessin interfacePipeLineInterface- Overrides:
setInsulationThicknessin classPipeline- Parameters:
insulationThickness- insulation thickness in meters
-
getMaxOperatingPressure
public double getMaxOperatingPressure()Get maximum operating pressure.- Returns:
- maximum operating pressure in bara
-
setMaxOperatingPressure
public void setMaxOperatingPressure(double maxOperatingPressure) Set maximum operating pressure.- Parameters:
maxOperatingPressure- maximum operating pressure in bara
-
getMinOperatingPressure
public double getMinOperatingPressure()Get minimum operating pressure.- Returns:
- minimum operating pressure in bara
-
setMinOperatingPressure
public void setMinOperatingPressure(double minOperatingPressure) Set minimum operating pressure.- Parameters:
minOperatingPressure- minimum operating pressure in bara
-
getMaxOperatingTemperature
public double getMaxOperatingTemperature()Get maximum operating temperature.- Returns:
- maximum operating temperature in Celsius
-
setMaxOperatingTemperature
public void setMaxOperatingTemperature(double maxOperatingTemperature) Set maximum operating temperature.- Parameters:
maxOperatingTemperature- maximum operating temperature in Celsius
-
getMinOperatingTemperature
public double getMinOperatingTemperature()Get minimum operating temperature.- Returns:
- minimum operating temperature in Celsius
-
setMinOperatingTemperature
public void setMinOperatingTemperature(double minOperatingTemperature) Set minimum operating temperature.- Parameters:
minOperatingTemperature- minimum operating temperature in Celsius
-
getNumberOfElbows90
public int getNumberOfElbows90()Get number of 90-degree elbows.- Returns:
- number of 90-degree elbows
-
setNumberOfElbows90
public void setNumberOfElbows90(int numberOfElbows90) Set number of 90-degree elbows.- Parameters:
numberOfElbows90- number of 90-degree elbows
-
getNumberOfElbows45
public int getNumberOfElbows45()Get number of 45-degree elbows.- Returns:
- number of 45-degree elbows
-
setNumberOfElbows45
public void setNumberOfElbows45(int numberOfElbows45) Set number of 45-degree elbows.- Parameters:
numberOfElbows45- number of 45-degree elbows
-
getNumberOfTees
public int getNumberOfTees()Get number of tees.- Returns:
- number of tees
-
setNumberOfTees
public void setNumberOfTees(int numberOfTees) Set number of tees.- Parameters:
numberOfTees- number of tees
-
getNumberOfReducers
public int getNumberOfReducers()Get number of reducers.- Returns:
- number of reducers
-
setNumberOfReducers
public void setNumberOfReducers(int numberOfReducers) Set number of reducers.- Parameters:
numberOfReducers- number of reducers
-
getNumberOfValves
public int getNumberOfValves()Get number of valves.- Returns:
- number of valves
-
setNumberOfValves
public void setNumberOfValves(int numberOfValves) Set number of valves.- Parameters:
numberOfValves- number of valves
-
getValveType
-
setValveType
Set valve type.- Parameters:
valveType- valve type (Gate, Ball, Globe, Check)
-
getNumberOfFlanges
public int getNumberOfFlanges()Get number of flanges.- Returns:
- number of flanges
-
setNumberOfFlanges
public void setNumberOfFlanges(int numberOfFlanges) Set number of flanges.- Parameters:
numberOfFlanges- number of flanges
-
getFlangeRating
public int getFlangeRating()Get flange rating.- Returns:
- flange rating class
-
setFlangeRating
public void setFlangeRating(int flangeRating) Set flange rating.- Parameters:
flangeRating- flange rating class (150, 300, 600, 900, 1500, 2500)
-
getSupportSpacing
public double getSupportSpacing()Get support spacing.- Returns:
- support spacing in meters
-
setSupportSpacing
public void setSupportSpacing(double supportSpacing) Set support spacing.- Parameters:
supportSpacing- support spacing in meters
-
getNumberOfSupports
public int getNumberOfSupports()Get number of pipe supports.- Returns:
- number of supports
-
setNumberOfSupports
public void setNumberOfSupports(int numberOfSupports) Set number of pipe supports.- Parameters:
numberOfSupports- number of supports
-
getNumberOfAnchors
public int getNumberOfAnchors()Get number of anchors.- Returns:
- number of anchors
-
setNumberOfAnchors
public void setNumberOfAnchors(int numberOfAnchors) Set number of anchors.- Parameters:
numberOfAnchors- number of anchors
-
getNumberOfGuides
public int getNumberOfGuides()Get number of guides.- Returns:
- number of guides
-
setNumberOfGuides
public void setNumberOfGuides(int numberOfGuides) Set number of guides.- Parameters:
numberOfGuides- number of guides
-
getNumberOfExpansionLoops
public int getNumberOfExpansionLoops()Get number of expansion loops.- Returns:
- number of expansion loops
-
setNumberOfExpansionLoops
public void setNumberOfExpansionLoops(int numberOfExpansionLoops) Set number of expansion loops.- Parameters:
numberOfExpansionLoops- number of expansion loops
-
getAmbientTemperature
public double getAmbientTemperature()Get ambient temperature.- Specified by:
getAmbientTemperaturein interfacePipeLineInterface- Overrides:
getAmbientTemperaturein classPipeline- Returns:
- ambient temperature in Celsius
-
setAmbientTemperature
public void setAmbientTemperature(double ambientTemperature) Set ambient temperature.- Specified by:
setAmbientTemperaturein interfacePipeLineInterface- Overrides:
setAmbientTemperaturein classPipeline- Parameters:
ambientTemperature- ambient temperature in Celsius
-
getWindSpeed
public double getWindSpeed()Get wind speed.- Returns:
- wind speed in m/s
-
setWindSpeed
public void setWindSpeed(double windSpeed) Set wind speed.- Parameters:
windSpeed- wind speed in m/s
-
isExposedToWeather
public boolean isExposedToWeather()Check if piping is exposed to weather.- Returns:
- true if exposed to weather
-
setExposedToWeather
public void setExposedToWeather(boolean exposedToWeather) Set if piping is exposed to weather.- Parameters:
exposedToWeather- true if exposed to weather
-
isCorrosiveEnvironment
public boolean isCorrosiveEnvironment()Check if in corrosive environment.- Returns:
- true if in corrosive environment
-
setCorrosiveEnvironment
public void setCorrosiveEnvironment(boolean corrosiveEnvironment) Set if in corrosive environment.- Parameters:
corrosiveEnvironment- true if in corrosive environment
-
setFittings
public void setFittings(int elbows90, int elbows45, int tees, int valves) Set layout configuration for fittings.- Parameters:
elbows90- number of 90-degree elbowselbows45- number of 45-degree elbowstees- number of teesvalves- number of valves
-
setInsulation
Set insulation configuration.- Parameters:
type- insulation typethickness- thickness in meters
-
setOperatingEnvelope
public void setOperatingEnvelope(double minPressure, double maxPressure, double minTemperature, double maxTemperature) Set operating envelope.- Parameters:
minPressure- minimum operating pressure in baramaxPressure- maximum operating pressure in baraminTemperature- minimum operating temperature in CelsiusmaxTemperature- maximum operating temperature in Celsius
-