4.3.1.14. Weld (FV)

Note

Weld is identified as Fully Validated.

4.3.1.14.1. Example Weld

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  "pdef_id": "548d72b3-ce66-4248-b297-abd314c7fd0b",
  "pdef_type": "weld",
  "meta_data": {},
  "additional_data": {},
  "part_number": "PR-10in-WPS-00474",
  "serial_number": "00871",
  "acceptance_criteria_type": "workmanship",
  "cut_out": false,
  "manuf_location": "Yard",
  "manuf_date_time": "2032-04-23T10:20:30.400000+02:30",
  "operator": [
    "ID12",
    "ID13"
  ],
  "repair_type": null,
  "start_pos": null,
  "end_pos": null,
  "related_pipe_end": [
    "6969a2d7-a900-4af7-b571-a1bb980ac448",
    "8a24432a-3c70-461b-afe9-e863a7c85c81",
    "4ea7b605-6e8f-4b6d-90d8-f50d6e53d7ea",
    "0bb2e7a0-c1fd-4253-bb6d-5d2cce8f1184",
    "e68d34b7-2efe-4184-9e1e-4219f1a7b2c7",
    "b9fe6936-9c45-4ad1-b25a-caffac20f21f"
  ],
  "related_weld_spec": null,
  "related_weld_flaw": null,
  "related_weld": null
}

4.3.1.14.2. Schema Weld

pdef.model.weld.Weld

Parameters defining a weld.

Show JSON schema
{
   "title": "Weld",
   "description": "Parameters defining a  weld.",
   "type": "object",
   "properties": {
      "pdef_id": {
         "title": "PDEF id",
         "description": ":ref:`pdef_id` is the unique identifier for the object.",
         "example": "14474720-db23-453a-b9c0-6a9fc9b03ef3",
         "type": "string"
      },
      "pdef_type": {
         "title": "Pdef Type",
         "const": "weld",
         "type": "string"
      },
      "meta_data": {
         "title": "Metadata",
         "description": "Optional user free structured :ref:`Metadata` object.",
         "example": "{'created':'2021-09-03'}",
         "allOf": [
            {
               "$ref": "#/definitions/MetaData"
            }
         ]
      },
      "additional_data": {
         "title": "Additional Data",
         "description": "Optional user free structured :ref:`Additional Data` object.",
         "example": "{'color':'grey'}",
         "allOf": [
            {
               "$ref": "#/definitions/AdditionalData"
            }
         ]
      },
      "part_number": {
         "title": "Part Number",
         "description": "Object :ref:`part_number`, ie the manufacturer or purchaser part design number.",
         "maxLength": 256,
         "example": "100-440-0.750-3434-A",
         "type": "string"
      },
      "serial_number": {
         "title": "Part Number",
         "description": "Object :ref:`serial_number`, ie the manufacturer or purchaser item serial number.",
         "maxLength": 256,
         "example": "P/N 12345",
         "type": "string"
      },
      "acceptance_criteria_type": {
         "title": "Type of Acceptance Criteria",
         "description": "Type of Acceptance Criteria",
         "examples": [
            "eca",
            "workmanship"
         ],
         "enum": [
            "eca",
            "workmanship"
         ],
         "type": "string"
      },
      "cut_out": {
         "title": "The nonconforming portion of a weld is removed by cut out",
         "description": "True or False weld cut-out used.",
         "type": "boolean"
      },
      "manuf_location": {
         "title": "Weld Manufacturing Location",
         "description": "Weld manufacturing site.",
         "example": "Yard",
         "type": "string"
      },
      "manuf_date_time": {
         "title": "Weld Manufacturing Date and Time",
         "description": "Weld manufacturing date and time.",
         "example": "2032-04-23T10:20:30.400+02:30",
         "type": "string",
         "format": "date-time"
      },
      "operator": {
         "title": "Operator list",
         "description": "List of operators and welders.",
         "example": [
            "ID12",
            "ID13"
         ],
         "type": "array",
         "items": {
            "type": "string"
         }
      },
      "repair_type": {
         "title": "Repair Type",
         "description": "Type of repair.",
         "enum": [
            "PTR",
            "TTR",
            "in_process_root",
            "cap"
         ],
         "type": "string"
      },
      "start_pos": {
         "title": "Start Position",
         "description": "Circonferential position of start point of the weld repair.",
         "example": [
            {
               "val": 32.8,
               "unit": "mm"
            }
         ],
         "allOf": [
            {
               "$ref": "#/definitions/Length"
            }
         ]
      },
      "end_pos": {
         "title": "End Position",
         "description": "Circonferential position of end point of the weld repair.",
         "example": [
            {
               "val": 32.8,
               "unit": "mm"
            }
         ],
         "allOf": [
            {
               "$ref": "#/definitions/Length"
            }
         ]
      },
      "related_pipe_end": {
         "title": "Relations to :ref:`PipeEnd`",
         "description": "Related instances of :ref:`PipeEnd`, provided as array of :ref:`pdef_id`.",
         "example": [
            "37e682a2-e4e5-497a-b252-ea4b4ea54bc0",
            "93b73ef3-cf5a-445e-a162-68fa6f246faa"
         ],
         "maxItems": 2,
         "type": "array",
         "items": {
            "type": "string"
         }
      },
      "related_weld_spec": {
         "title": "Relations to :ref:`WeldSpec`",
         "description": "Related instances of :ref:`WeldSpec`, provided as array of one :ref:`pdef_id`.",
         "examples": [
            "37e682a2-e4e5-497a-b252-ea4b4ea54bc0"
         ],
         "maxItems": 1,
         "type": "array",
         "items": {
            "type": "string"
         }
      },
      "related_weld_flaw": {
         "title": "Relations to :ref:`WeldFlaw`",
         "description": "Related instances of :ref:`WeldFlaw` that are repaired by the :ref:`Weld`. Provided as array of :ref:`pdef_id`.",
         "example": [
            "37e682a2-e4e5-497a-b252-ea4b4ea54bc0",
            "93b73ef3-cf5a-445e-a162-68fa6f246faa"
         ],
         "type": "array",
         "items": {
            "type": "string"
         }
      },
      "related_weld": {
         "title": "Relation to :ref:`Weld`",
         "description": "Related instance of :ref:`Weld` that is repaired by the current instance of :ref:`Weld`. Provided as array of one :ref:`pdef_id`.",
         "example": [
            "37e682a2-e4e5-497a-b252-ea4b4ea54bc0"
         ],
         "maxItems": 1,
         "type": "array",
         "items": {
            "type": "string"
         }
      }
   },
   "additionalProperties": false,
   "definitions": {
      "MetaData": {
         "title": "MetaData",
         "description": "Optional base JSON-fragment used to report meta data. User free structure.",
         "type": "object",
         "properties": {}
      },
      "AdditionalData": {
         "title": "AdditionalData",
         "description": "Optional base JSON-fragment used to report additional user specific data. User free structure.",
         "type": "object",
         "properties": {}
      },
      "Length": {
         "title": "Length",
         "description": ":ref:`Measure` of a length, distance, thickness, diameter, etc",
         "type": "object",
         "properties": {
            "val": {
               "title": "Value",
               "description": "The value taken by the Measure.",
               "examples": [
                  1.0,
                  -25.1,
                  1000000.0
               ],
               "type": "number"
            },
            "unit": {
               "title": "unit of measure",
               "description": "Unit of measure.",
               "enum": [
                  "km",
                  "hm",
                  "dam",
                  "m",
                  "dm",
                  "cm",
                  "mm",
                  "microm",
                  "ft",
                  "in"
               ],
               "type": "string"
            }
         },
         "required": [
            "val",
            "unit"
         ],
         "additionalProperties": false
      }
   }
}

Config
  • extra: str = forbid

acceptance_criteria_type: Optional[Literal[eca, workmanship]] = PydanticUndefined

Type of Acceptance Criteria

Constraints and examples:
  • examples = [‘eca’, ‘workmanship’]

cut_out: Optional[bool] = PydanticUndefined

True or False weld cut-out used.

end_pos: Optional[pdef.model.measure.Length] = PydanticUndefined

Circonferential position of end point of the weld repair.

Constraints and examples:
  • example = [{‘val’: 32.8, ‘unit’: ‘mm’}]

manuf_date_time: Optional[datetime.datetime] = PydanticUndefined

Weld manufacturing date and time.

Constraints and examples:
  • example = 2032-04-23T10:20:30.400+02:30

manuf_location: Optional[str] = PydanticUndefined

Weld manufacturing site.

Constraints and examples:
  • example = Yard

operator: Optional[List[str]] = PydanticUndefined

List of operators and welders.

Constraints and examples:
  • example = [‘ID12’, ‘ID13’]

part_number: Optional[str] = PydanticUndefined

Object part_number, ie the manufacturer or purchaser part design number.

Constraints and examples:
  • maxLength = 256

  • example = 100-440-0.750-3434-A

pdef_type: str = 'weld'
Constraints and examples:
  • const = weld

related_pipe_end: Optional[types.ConstrainedListValue[str]] = PydanticUndefined

Related instances of PipeEnd (FV), provided as array of pdef_id.

Constraints and examples:
  • example = [‘37e682a2-e4e5-497a-b252-ea4b4ea54bc0’, ‘93b73ef3-cf5a-445e-a162-68fa6f246faa’]

  • maxItems = 2

related_weld: Optional[types.ConstrainedListValue[str]] = PydanticUndefined

Related instance of Weld (FV) that is repaired by the current instance of Weld (FV). Provided as array of one pdef_id.

Constraints and examples:
  • example = [‘37e682a2-e4e5-497a-b252-ea4b4ea54bc0’]

  • maxItems = 1

related_weld_flaw: Optional[List[str]] = PydanticUndefined

Related instances of WeldFlaw (FV) that are repaired by the Weld (FV). Provided as array of pdef_id.

Constraints and examples:
  • example = [‘37e682a2-e4e5-497a-b252-ea4b4ea54bc0’, ‘93b73ef3-cf5a-445e-a162-68fa6f246faa’]

related_weld_spec: Optional[types.ConstrainedListValue[str]] = PydanticUndefined

Related instances of WeldSpec (PV), provided as array of one pdef_id.

Constraints and examples:
  • examples = [‘37e682a2-e4e5-497a-b252-ea4b4ea54bc0’]

  • maxItems = 1

repair_type: Optional[Literal[PTR, TTR, in_process_root, cap]] = PydanticUndefined

Type of repair.

serial_number: Optional[str] = PydanticUndefined

Object serial_number, ie the manufacturer or purchaser item serial number.

Constraints and examples:
  • maxLength = 256

  • example = P/N 12345

start_pos: Optional[pdef.model.measure.Length] = PydanticUndefined

Circonferential position of start point of the weld repair.

Constraints and examples:
  • example = [{‘val’: 32.8, ‘unit’: ‘mm’}]

4.3.1.14.3. List Weld

Weld Variables

Variable

Type

Description

pdef_id

<class ‘str’>

pdef_id is the unique identifier for the object.

pdef_type

<class ‘str’>

meta_data

<class ‘pdef.model.metadata.MetaData’>

Optional user free structured MetaData object.

additional_data

<class ‘pdef.model.additional_data.AdditionalData’>

Optional user free structured Additional Data object.

part_number

<class ‘pdef.model.weld.ConstrainedStrValue’>

Object part_number, ie the manufacturer or purchaser part design number.

serial_number

<class ‘pdef.model.weld.ConstrainedStrValue’>

Object serial_number, ie the manufacturer or purchaser item serial number.

acceptance_criteria_type

typing.Literal[‘eca’, ‘workmanship’]

Type of Acceptance Criteria

cut_out

<class ‘bool’>

True or False weld cut-out used.

manuf_location

<class ‘str’>

Weld manufacturing site.

manuf_date_time

<class ‘datetime.datetime’>

Weld manufacturing date and time.

operator

<class ‘str’>

List of operators and welders.

repair_type

typing.Literal[‘PTR’, ‘TTR’, ‘in_process_root’, ‘cap’]

Type of repair.

start_pos

<class ‘pdef.model.measure.Length’>

Circonferential position of start point of the weld repair.

end_pos

<class ‘pdef.model.measure.Length’>

Circonferential position of end point of the weld repair.

related_pipe_end

<class ‘str’>

Related instances of PipeEnd (FV), provided as array of pdef_id.

related_weld_spec

<class ‘str’>

Related instances of WeldSpec (PV), provided as array of one pdef_id.

related_weld_flaw

<class ‘str’>

Related instances of WeldFlaw (FV) that are repaired by the Weld (FV). Provided as array of pdef_id.

related_weld

<class ‘str’>

Related instance of Weld (FV) that is repaired by the current instance of Weld (FV). Provided as array of one pdef_id.