Skip to main content
Version: 2.9.0

Config File

Configuration for the PoF Network Extractor is specified in a JSON file.

OptionDescriptionRequired
pofConfigFileThe path to the PoF configuration used by this tool.
Refer to PoF Configuration below.
Yes
ewbDataPathThe path to the ewb data directory.Yes
meterSourceTypeIndicates the source of meters. One of TCS or MAPPING_FILE. Default: MAPPING_FILENo
meterMappingsObject that holds meter mapping related config if meter source is MAPPING_FILE.
Refer to Meter Mapping Config below.
No
connectionPointIdentifierName to use for the connection point identifier. E.g. NMI in Australia or ICP in New Zealand. Default: NMI.No

Meter Mapping Config

The PoF extractor can take meter mapping files to provide a mapping of meters and supply points to transformers. Each file is required to have its date in the file name so the appropriate mapping file can be used. All the options in this config object are required if it is included.

OptionDescription
pathThe path to the directory containing meter mapping files.
filePatternA regex to match meter mapping files.
This needs to have a single group capture that captures the date in the file name.
datePatternThe pattern of the date captured from the file name.
If any paths in the configuration are given as relative paths, they will be relative to the working directory of the JVM.

The following is a sample configuration file

Sample Configuration File

{
"ewbDataPath": "/users/release/ewb/data",
"pofConfigFile": "/users/release/ewb/conf/pof_config.json",
"meterMappings": {
"path": "/path/to/directory/with/mapping/files",
"filePattern": "NMI_TX_MAPPING_(\\d{8}).csv",
"datePattern": "yyyyMMdd"
}
}

PoF Configuration

The following describes PowerOn Fusion specific data configuration that allows the PoF Network Extractor to convert components from PoF to EWB network model assets.

OptionDescriptionType
distTransformerClassesA list of component class IDs for all distribution transformers.[int]
isoTransformerClassesA list of component class IDs for all isolation transformers.[int]
regulatorClassesReversibleA list of component class IDs for reversible regulators.[int]
regulatorClassesNonReversibleA list of component class IDs for non reversible regulators.[int]
zoneTransformerClassesA list of component class IDs for zone transformers.[int]
feederCbClassesA list of component class IDs for feeder circuit breakers.[int]
cbClassesA list of component class IDs for all other circuit breakers.[int]
fuseClassesA list of component class IDs for fuses.[int]
isolatorClassesA list of component class IDs for isolaters.[int]
recloserClassesA list of component class IDs for reclosers.[int]
switchClassesA list of component class IDs for all generic switch types. Only use this list if the switch does not fall into one of the explicit categories.[int]
faultIndicatorClassesA list of component class IDs for fault indicators.[int]
brokenBridgeClassesA list of component class IDs for broken bridges.[int]
generatorClassesA list of component class IDs for generators.[int]
capacitorClassesA list of component class IDs for capacitors.[int]
hvSupplyPointClassesA list of component class IDs for HV supply points.[int]
poleClassesA list of component class IDs for poles.[int]
ignoreSourcesA list of component class IDs which cannot be converted to sources.[int]
feederClassesA list of component class IDs for feeder start points.[int]
siteClassesA list of component class IDs for site components.[int]
worldsA list of world IDs to be included in the extract.[int]
zoneCloneIdsA list of component IDs that zones were cloned from. This is used to find the zone elements in the component hierarchy.[string]
businessesObject that holds businesses config.
Refer to Business Config below.
{}
transformerTypesObject that holds transformer types config.
Refer to Transformer Types Config below.
{}
equalLatLonCheckFlag to indicate if the latitudes and longitude for a component should be checked to see if they have the exact same value. Defaults to false.boolean
treatUnknownLengthAsZeroFlag to indicate if conductors with a missing length should have their length set to 0 rather than being left as null. Defaults to false.boolean
eastingNorthingStoreLongLatFlag to indicate if the Easting/Northing fields actually contain Longitude/Latitude values. Defaults to false.boolean
undergroundPatternRegular expression used to determine if a cable is underground from the component class name. Defaults to hvugc.string
txRatingAttributeThe name of the attribute that stores the transformer rating. Defaults to Rating (kVA).string
conductorNamingChoose which COMPONENT_HEADER field to use as the conductor name (COMPONENT_PATHNAME, COMPONENT_ALIAS or COMPONENT_ID). Defaults to COMPONENT_PATHNAME.string
geoGraphicsInterpolatorTraceStopVoltageThe voltage to stop at when tracing the network for interpolating missing geographic points. Defaults to 66000.int
attributeMappingObject that holds attribute mapping config.
Refer to Attribute Mapping Config below.
{}

Transformer Types Config

This object is a JSON version of the TRANSFORMER_TYPES table in the PowerOn Fusion database.

OptionDescriptionType
typeThe identifier of this transformer type (can be repeated).string
ratingMinThe minimum rating of a transformer to match against this type. Set to 0 if this is the lowest range for the type.int
ratingMaxThe maximum rating of a transformer to match against this type. Set to 999999999 if this is the highest range fo the type.int
cyclicRatingFactorMultiplication factor applied to the transformers rating when running in emergency situations.double
powerFactorThe power factor of this type of transformer.double

Businesses Config

OptionDescriptionType
nameThe name to give the business in the EWB model.string
rootsA list of the highest level component IDs in the hierarchy that have network assets for the specified business. All zones found under these roots will be added to this business.[string]

Attribute Mapping Config

Defines optional mappings to override the built-in defaults. All definitions provide a list of attributes to search in priority order. For string attributes, this will be a list of attribute names, for all other stypes, this will be a list of attribute convertion objects.

Optional attributes that have a default value can be removed/suppressed by specifying the key with a null value.

note

Voltage and rating attributes will only use the multiplier if there are no recognised units in the string extracted (kV and V or kVA and MVA). A voltage string of LV is also supported.

OptionDescriptionType
acLineSegmentOptional mapping rules for AcLineSegment instances. See AcLineSegment Attributesnull
conductingEquipmentOptional mapping rules for ConductingEquipment instances. See ConductingEquipment Attributesnull
linearShuntCompensatorOptional mapping rules for LinearShuntCompensator instances. See LinearShuntCompensator Attributesnull
powerTransformerOptional mapping rules for PowerTransformer instances. See PowerTransformer Attributesnull

AcLineSegment Attributes

OptionDescriptionType
lengthOptional length of the conductor. Only used if no DPA Length is provided. Defaults to Cable Length with a multiplier of 1.[AttributeConvertion]
typeOptional CODE from the CONDUCTOR_TYPES table. This is used to define both ratings and sequence impedance data. Defaults to DPA Cable Code.[String]
ratedCurrentOptional override containing the rated current for a conductor. If specified, this will be used rather than the current from the conductor type.[AttributeConvertion]
wireMaterialKindOptional conductor material. Defaults to Phase Conductor Material.[AttributeConvertion]
wireMaterialKindMappingOptional mapping between values in the wireMaterialKind attribute and a CIM WireMaterialKind.[WireMaterialKindMapping]

ConductingEquipment Attributes

OptionDescriptionType
baseVoltageOptional nominal voltage of the conducting equipment. Defaults to Operating Voltage with a multiplier of 1.[AttributeConvertion]
gisIdOptional GIS ID of the conducting equipment. Defaults to GIS ID.[String]

LinearShuntCompensator Attributes

OptionDescriptionType
assetInfoMridOptional ID stored in a SinCAL lookup database. No validation will be performed, and it will be prepended with "sci-" to ensure uniqueness. Defaults to Sincal Element ID[String]
sectionsOptional number of sections. If not specified, a single section will be used if bPerSection is specified.[AttributeConvertion]
bPerSectionOptional susceptance for each section. Defaults to DPA Susceptance with a multiplier of 0.000001.[AttributeConvertion]

PowerTransformer Attributes

OptionDescriptionType
assetInfoMridOptional ID stored in a SinCAL lookup database. No validation will be performed, and it will be prepended with "pti-" to ensure uniqueness. Defaults to Sincal Element ID.[String]
transformerUtilisationOptional utilisation of the transformer.[AttributeConvertion]
rOptional resistance of the transformer.[AttributeConvertion]
xOptional reactance of the transformer.[AttributeConvertion]
r0Optional zero-sequence resistance of the transformer.[AttributeConvertion]
x0Optional zero-sequence reactance of the transformer.[AttributeConvertion]
primaryRatedUThe rated voltage for the primary end. Defaults to Primary Voltage.[AttributeConvertion]
secondaryRatedUThe rated voltage for the secondary end. Defaults to Secondary Voltage.[AttributeConvertion]
ratedSThe power rating for the transformer. Defaults to Rating (kVA).[AttributeConvertion]
stepVoltageIncrementOptional voltage increment per tap step.[AttributeConvertion]
highStepOptional highest available tap step.[AttributeConvertion]
lowStepOptional lowest available tap step.[AttributeConvertion]
neutralStepOptional tap step when the tap changer is in a neutral position.[AttributeConvertion]
normalStepOptional tap step used in "normal" network operation.[AttributeConvertion]
tapControlEnabledOptional regulation status of the tap changer.[String]
typeOptional lookup into the transformer types defined in the configuration.[String]

Attribute Convertion

OptionDescriptionType
attributeThe name of the attribute.String
multiplierThe multiplication factor to apply to the attribute value to convert it into our CIM units.Double

WireMaterialKind Mapping

The mappings between values in the wireMaterialKind attribute and a CIM WireMaterialKind. If no mapping is found, a direct translation is attempted, otherwise it will default to a WireMaterialKind of other.

OptionDescriptionType
wireMaterialKind attribute value.Case-sensitive CIM WireMaterialKind value.String

If no mappings are specified, the following will be used by default:

Attribute ValueWireMaterialKind
a (Al)aluminum
AACaluminum
AAACaaac
ACSR/AZacsrAz
ACSR/GZacsr
c (Cu)copper
CUcopper
Cd CucopperCadmium
SC/ACaluminumSteel
SC/GZsteel

Sample Configuration File

Remember that this configuration is a sample. The lists for these options will likely be substantially larger than shown here for a real PoF

system.

{
"distTransformerClasses": [
1,
2
],
"isoTransformerClasses": [
3,
4
],
"regulatorClassesReversible": [
5,
6
],
"regulatorClassesNonReversible": [
7,
8
],
"zoneTransformerClasses": [
9,
10
],
"feederCbClasses": [
11,
12
],
"cbClasses": [
13,
14
],
"fuseClasses": [
15,
16
],
"isolatorClasses": [
17,
18
],
"recloserClasses": [
19,
20
],
"switchClasses": [
21,
22
],
"faultIndicatorClasses": [
23,
24
],
"brokenBridgeClasses": [
25,
26
],
"generatorClasses": [
27,
28
],
"capacitorClasses": [
29,
30
],
"hvSupplyPointClasses": [
31,
32
],
"poleClasses": [
33,
34
],
"ignoreSources": [
35,
36
],
"feederClasses": [
37,
38
],
"siteClasses": [
39,
40
],
"worlds": [
41,
42
],
"zoneCloneIds": [
"a00000001COMP",
"a00000002COMP"
],
"businesses": [
{
"name": "Business 1",
"roots": [
"a00000003COMP"
]
},
{
"name": "Business 2",
"roots": [
"a00000004COMP",
"a00000005COMP"
]
}
],
"transformerTypes": [
{
"type": "P",
"ratingMin": 0,
"ratingMax": 999999999,
"cyclicRatingFactor": 1.5,
"powerFactor": 0.95
},
{
"type": "K",
"ratingMin": 0,
"ratingMax": 100000,
"cyclicRatingFactor": 1.20,
"powerFactor": 0.9
},
{
"type": "K",
"ratingMin": 100001,
"ratingMax": 200000,
"cyclicRatingFactor": 1.25,
"powerFactor": 0.9
},
{
"type": "K",
"ratingMin": 200001,
"ratingMax": 999999999,
"cyclicRatingFactor": 1.30,
"powerFactor": 0.92
}
],
"equalLatLonCheck": true,
"treatUnknownLengthAsZero": false,
"eastingNorthingStoreLongLat": false,
"undergroundPattern": "hvugc",
"txRatingAttribute": "Rating (kVA)",
"conductorNaming": "COMPONENT_PATHNAME",
"geoGraphicsInterpolatorTraceStopVoltage": 66000,
"attributeMappings": {
"acLineSegment": {
"length": [
{
"attribute": "Cable Length",
"multiplier": 1.0
}
],
"type": [
"DPA Cable Code",
"Type"
],
"ratedCurrent": [
{
"attribute": "Amps",
"multiplier": 1.0
}
],
"wireMaterialKind": [
"Phase Conductor Material"
],
"wireMaterialKindMapping": {
"a (Al)": "aluminum",
"AAC": "aluminum",
"AAAC": "aaac",
"ACSR/AZ": "acsrAz",
"ACSR/GZ": "acsr",
"c (Cu)": "copper",
"CU": "copper",
"Cd Cu": "copperCadmium",
"SC/AC": "aluminumSteel",
"SC/GZ": "steel"
}
},
"conductingEquipment": {
"baseVoltage": [
{
"attribute": "Operating Voltage",
"multiplier": 1.0
}
]
},
"linearShuntCompensator": {
"assetInfoMrid": null,
"sections": null,
"bPerSection": [
{
"attribute": "DPA Susceptance",
"multiplier": 0.0001
}
]
},
"powerTransformer": {
"assetInfoMrid": null,
"transformerUtilisation": null,
"r": null,
"x": null,
"r0": null,
"x0": null,
"primaryRatedU": [
{
"attribute": "DPA Primary Nominal Voltage",
"multiplier": 1000
},
{
"attribute": "Primary Voltage",
"multiplier": 1000
},
{
"attribute": "Voltage",
"multiplier": 1000
}
],
"secondaryRatedU": [
{
"attribute": "DPA Secondary Nominal Voltage",
"multiplier": 1000
},
{
"attribute": "Secondary Voltage",
"multiplier": 1000
}
],
"ratedS": [
{
"attribute": "kVA Rating",
"multiplier": 1000
}
],
"stepVoltageIncrement": null,
"highStep": null,
"lowStep": null,
"neutralStep": null,
"normalStep": null,
"tapControlEnabled": null,
"type": null
}
}
}

Environment Variables

The following system environment variables are used by the tool. The default is applied if the environment variable does not exist.

VariableDescriptionDefault
ENMAC_USERThe user for the PoF Oracle database.enmac
ENMAC_PASSWORDThe password for the PoF Oracle database.password