Class WellMechanicalDesignDataSource
java.lang.Object
neqsim.process.mechanicaldesign.subsea.WellMechanicalDesignDataSource
- All Implemented Interfaces:
Serializable
Loads well design parameters from CSV standards databases.
This data source queries NORSOK D-010, API RP 90, API TR 5C3, and ISO 16530 entries from the standards CSV files for well integrity, casing design, and barrier verification parameters.
It follows the established NeqSim mechanical design pattern: CSV -> DataSource -> Calculator -> MechanicalDesign -> JSON.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate StandardBasedCsvDataSourceCached API data source.Applied standards tracking for JSON reporting.private static final Stringprivate static final Stringprivate StandardBasedCsvDataSourceCached ISO data source.private static final org.apache.logging.log4j.Loggerprivate static final Stringprivate StandardBasedCsvDataSourceCached NORSOK data source.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplySpecValue(Map<String, double[]> specs, String specName, WellDesignCalculator calculator, String target) Apply a specification value from the database to the calculator.voidClear the applied standards tracking list.private StandardBasedCsvDataSourceGet or create the API CSV data source.Get the list of applied standards codes.private StandardBasedCsvDataSourceGet or create the ISO CSV data source.private StandardBasedCsvDataSourceGet or create the NORSOK CSV data source.Load API RP 90 MAASP parameters.Load NORSOK D-010 barrier requirements.Load ISO 16530 lifecycle requirements.voidloadNorskD010DesignFactors(WellDesignCalculator calculator, boolean isInjectionWell) Load NORSOK D-010 design factors into the calculator.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.apache.logging.log4j.Logger logger -
NORSOK_CSV
- See Also:
-
API_CSV
- See Also:
-
ISO_CSV
- See Also:
-
EQUIPMENT_TYPE
- See Also:
-
norsokSource
Cached NORSOK data source. -
apiSource
Cached API data source. -
isoSource
Cached ISO data source. -
appliedStandards
-
-
Constructor Details
-
WellMechanicalDesignDataSource
public WellMechanicalDesignDataSource()Default constructor.
-
-
Method Details
-
loadNorskD010DesignFactors
Load NORSOK D-010 design factors into the calculator.Reads burst, collapse, tension, and triaxial design factors from the standards database. If the database is unavailable, the calculator retains its hardcoded NORSOK D-010 defaults.
- Parameters:
calculator- the well design calculator to configureisInjectionWell- true if loading injection-specific design factors
-
loadApiRp90Parameters
-
loadBarrierRequirements
-
loadIso16530Requirements
-
getAppliedStandards
-
clearAppliedStandards
public void clearAppliedStandards()Clear the applied standards tracking list. -
applySpecValue
private void applySpecValue(Map<String, double[]> specs, String specName, WellDesignCalculator calculator, String target) Apply a specification value from the database to the calculator.- Parameters:
specs- the specification map from CSVspecName- CSV specification namecalculator- the calculator to updatetarget- which calculator field to set ("burstDF", "collapseDF", "tensionDF", "vmeDF")
-
getNorsokSource
Get or create the NORSOK CSV data source.- Returns:
- the data source, or null if unavailable
-
getApiSource
Get or create the API CSV data source.- Returns:
- the data source, or null if unavailable
-
getIsoSource
Get or create the ISO CSV data source.- Returns:
- the data source, or null if unavailable
-