Pipe Spec Fo CAD

Embed Size (px)

Citation preview

  • Parametric Technology Corporation

    Piping Specification User Guide

    CADDS 5 15.0

    DOC36805-007

  • Copyright 2007 Parametric Technology Corporation. All Rights Reserved.User and training guides and related documentation from Parametric Technology Corporation and its subsidiary companies (collectively PTC) is subject to the copyright laws of the United States and other countries and is provided under a license agreement that restricts copying, disclosure, and use of such documentation. PTC hereby grants to the licensed software user the right to make copies in printed form of this documentation if provided on software media, but only for internal/personal use and in accordance with the license agreement under which the applicable software is licensed. Any copy made shall include the PTC copyright notice and any other proprietary notice provided by PTC. Training materials may not be copied without the express written consent of PTC. This documentation may not be disclosed, transferred, modified, or reduced to any form, including electronic media, or transmitted or made publicly available by any means without the prior written consent of PTC and no authorization is granted to make copies for such purposes.

    Information described herein is furnished for general information only, is subject to change without notice, and should not be construed as a warranty or commitment by PTC. PTC assumes no responsibility or liability for any errors or inaccuracies that may appear in this document.

    The software described in this document is provided under written license agreement, contains valuable trade secrets and proprietary information, and is protected by the copyright laws of the United States and other countries. It may not be copied or distributed in any form or medium, disclosed to third parties, or used in any manner not provided for in the software licenses agreement except with written prior approval from PTC.

    UNAUTHORIZED USE OF SOFTWARE OR ITS DOCUMENTATION CAN RESULT IN CIVIL DAMAGES AND CRIMINAL PROSECUTION.

    For Important Copyright, Trademark, Patent, and Licensing Information: For Windchill products, select About Windchill at the bottom of the product page. For InterComm products, on the Help main page, click the link for Copyright 2007. For other products, select Help > About on the main menu for the product.

    UNITED STATES GOVERNMENT RESTRICTED RIGHTS LEGENDThis document and the software described herein are Commercial Computer Documentation and Software, pursuant to FAR 12.212(a)-(b) (OCT95) or DFARS 227.7202-1(a) and 227.7202-3(a) (JUN95), and are provided to the US Government under a limited commercial license only. For procurements predating the above clauses, use, duplication, or disclosure by the Government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software Clause at DFARS 252.227-7013 (OCT88) or Commercial Computer Software-Restricted Rights at FAR 52.227-19(c)(1)-(2) (JUN87), as applicable. 02202007

    Parametric Technology Corporation, 140 Kendrick Street, Needham, MA 02494 USA

  • Table of Contents

    Preface Related Documents _________________________________________ ixBook Conventions ___________________________________________ xWindow Managers and the User Interface ____________________ xOnline User Documentation __________________________________ xiOnline Command Help ______________________________________ xiiPrinting Documentation _____________________________________ xiiResources and Services _____________________________________ xiiiDocumentation Comments _________________________________ xiii

    Master Catalogs Function of Master Catalogs _____________________________________ 1-2

    Structure of Master Catalogs_____________________________________ 1-3Piping Specification User Guide Contents-iii

    Fields of the Standard Master Catalog File ______________________ 1-5TYPE _______________________________________________________ 1-5ENDS ______________________________________________________ 1-5RATE _______________________________________________________ 1-6SIZE ________________________________________________________ 1-6PARM ______________________________________________________ 1-6ECC _______________________________________________________ 1-6NAME ______________________________________________________ 1-6

    Components and Naming Conventions ___________________________ 1-8

  • Library Parts Function of Library Parts __________________________________________ 2-2

    Library Parts Structure_________________________________________ 2-10Figures ____________________________________________________ 2-10Layers ____________________________________________________ 2-10Nodal Entities _____________________________________________ 2-10Properties _________________________________________________ 2-10Graphics__________________________________________________ 2-11

    The Origin and Axes of Parts __________________________________ 2-12

    Inserting Part Properties _______________________________________ 2-13Inserting the COMPNAME Property _________________________ 2-13Inserting the STOCKNO Property ____________________________ 2-13Inserting the PNAME Property ______________________________ 2-13Inserting the FITTYPE Property _______________________________ 2-13

    Filing the Part as a Nodal Figure _______________________________ 2-14

    Layering Conventions ________________________________________ 2-14

    Piping Specifications Piping Specifications and Autoselection __________________________ 3-2

    GENERATE PSFILE and INFILE_______________________________________ 3-4

    Output from GENERATE PSFILE and INFILE __________________________ 3-5

    ASFILE (Autoselection File) __________________________________ 3-5PAFILE (Parameter File) _____________________________________ 3-5NMFILE (Nonmatching File)__________________________________ 3-5

    Creating a Piping Specification INFILE _____________________________ 3-7

    Piping Specification INFILE Used to Produce Specification D2B ___ 3-8

    Portion of Piping Specification INFILE Selecting All Components in Master Catalogs__________________ 3-13

    Portion of Piping Specification INFILE Selecting All Components in Master Catalogs (continued)______ 3-15

    INFILE Format __________________________________________________ 3-17

    Description __________________________________________________ 3-18Headers __________________________________________________ 3-18Code Equivalence ________________________________________ 3-18Contents-iv Piping Specification User Guide

  • Input/Output _____________________________________________ 3-18Selection_________________________________________________ 3-18Input Records ____________________________________________ 3-18Tables ___________________________________________________ 3-18Assembly Lists ____________________________________________ 3-18

    Header Lines ________________________________________________ 3-19Correspondence of Field Headers _________________________ 3-19

    Size Codes __________________________________________________ 3-21

    Type Classifications __________________________________________ 3-24

    End Types Codes ____________________________________________ 3-27

    Schedule/Rating Codes _____________________________________ 3-31

    Input/Output Definition ______________________________________ 3-31Input Line ________________________________________________ 3-32Stock Number Line _______________________________________ 3-33Stating the Specification __________________________________ 3-33Summary of Declaration/Classification Section of the INFILE_ 3-34

    Component Selection _______________________________________ 3-34Specifying the Catalog ___________________________________ 3-34Input Records ____________________________________________ 3-35Selection Name __________________________________________ 3-36Part Name _______________________________________________ 3-37

    Tables for Branch and Reducing Fittings ______________________ 3-38Reducing Fitting Tables ___________________________________ 3-39The Selection Process Using Tables_________________________ 3-39

    Assemblies: Input Record ____________________________________ 3-40

    Assembly List ________________________________________________ 3-41

    Using GENERATE PSFILE_______________________________________ 3-43Autoselection File ________________________________________ 3-43Parameter File____________________________________________ 3-43

    Additional Features__________________________________________ 3-44

    Specifications with Double-Reducing Fittings __________________ 3-45

    Sample INFILE for Specification with Three Sizes________________ 3-46

    Sorting and Merging Files _______________________________________ 3-51

    Piping Specifications and SELECT PPARAMETERS Selecting Parameters _____________________________________________ 4-2Piping Specification User Guide Contents-v

  • Defining Data Units _______________________________________________ 4-5

    Standard Dimensional Data for ANSI Standard Dimensional Data for ANSI _____________________________ A-2

    Properties in Library Parts Part Properties ___________________________________________________ B-2

    COMPNAME _______________________________________________ B-2FITTYPE _____________________________________________________ B-2NOBREAK __________________________________________________ B-2PNAME ____________________________________________________ B-2STOCKNO __________________________________________________ B-2

    Properties________________________________________________________ B-3

    BRANCH ___________________________________________________ B-3CONNECTOR_______________________________________________ B-3ENDTYPE ___________________________________________________ B-3GASKET ____________________________________________________ B-3INTERNAL __________________________________________________ B-3ITEMNO ____________________________________________________ B-3NPS ________________________________________________________ B-4PLEN _______________________________________________________ B-4PSCL_______________________________________________________ B-4SPEC_______________________________________________________ B-4

    Shapes Rules for Defining Shapes ________________________________________ C-2

    Procedure File Shapes ___________________________________________ C-3

    Derived Shapes _________________________________________________ C-6

    Keyword Definitions _____________________________________________ C-7

    Clearance Representation _____________________________________ C-12

    Procedure File Shapes -1_____________________________________ C-13

    Procedure File Shapes - 2 ____________________________________ C-14Contents-vi Piping Specification User Guide

  • Procedure File Shapes - 3 ____________________________________ C-15

    Procedure File Shapes - 4 ____________________________________ C-16

    Procedure File Shapes - 5 ____________________________________ C-17

    Procedure File Shapes - 6 ____________________________________ C-18

    Procedure File Shapes - 7 ____________________________________ C-19

    Procedure File Shapes - 8 ____________________________________ C-20

    Procedure File Shapes - 9 ____________________________________ C-21

    Procedure File Shapes - 10 ___________________________________ C-22

    Procedure File Shapes - 11 ___________________________________ C-23

    Procedure File Shapes - 12 ___________________________________ C-24

    Procedure File Shapes - 13 ___________________________________ C-25

    Procedure File Shapes - 14 ___________________________________ C-26

    Procedure File Shapes - 15 ___________________________________ C-27

    Procedure File Shapes - 16 ___________________________________ C-28

    Procedure File Shapes - 17 ___________________________________ C-29

    Procedure File Shapes - 18 ___________________________________ C-30

    Procedure File Shapes - 19 ___________________________________ C-31

    Procedure File Shapes - 20 ___________________________________ C-32

    Procedure File Shapes - 21 ___________________________________ C-33

    Procedure File Shapes - 22 ___________________________________ C-34

    Procedure File Shapes - 23 ___________________________________ C-35

    Procedure File Shapes - 24 ___________________________________ C-36

    Procedure File Shapes - 25 ___________________________________ C-37

    Procedure File Shapes - 26 ___________________________________ C-38

    File Formats Assembly File____________________________________________________ D-2

    Assembly File ______________________________________________ D-2

    ASFILE __________________________________________________________ D-3

    ASFILE_____________________________________________________ D-3

    PAFILE _________________________________________________________ D-14

    PAFILE ___________________________________________________ D-14Piping Specification User Guide Contents-vii

  • cvpd/spec/cvm/merge ________________________________________ D-19

    cvpd/spec/cvm/merge __________________________________ D-19

    MDF File Formats _______________________________________________ D-22

    File Format 1: In-File_______________________________________ D-22Example of Material Description File INFILE (ANSI) (cvpd.iso.mdfinfile-in)_____________________________________ D-22Example of Material Description File INFILE (DIN/ISO) (cvpd.iso.infile-mm) ______________________________________ D-23

    File Format 2: Matrix File _____________________________________ D-24CVPD.ISO.TABLE-IN (ANSI) _________________________________ D-24

    File Format 3: Output File ____________________________________ D-28Example of Material Description File (ANSI)_________________ D-28

    Example of Material Description File (DIN/ISO) ________________ D-29

    DIN/ISO Standard Files DIN/ISO Files _____________________________________________________ E-2

    Creating Parametric Fittings Parametric Fittings _______________________________________________ F-2

    The Parameter File for Parametric Fittings __________________________ F-7Contents-viii Piping Specification User Guide

  • Piping User Guide and Menu Reference Isometric Drawing User Guide Intelligent P&ID Managers Guide

    Stress Analysis Interface ReferencePreface

    Piping Specification User Guide describes the procedures for creating and accessing piping specification files. The piping design software uses these files to model piping systems. This book should be used in conjunction with the Generate Piping Specification File command (GENERATE PSFILE) or menu option, described in the Piping User Guide and Menu Reference.

    This book also describes the process of creating a piping specification infput file (INFILE), which tells the Generate Piping Specification File command or option what to include in a particular specification. This process is described in general terms and through a specific industry example:*the ANSI specification D2B.

    Related Documents

    The following documents may be helpful as you use Piping Specification User Guide:

    Explicit Modeling User Guide and Menu Reference Piping ReferencePiping Specification User Guide ix

  • PrefaceBook Conventions

    The following table illustrates and explains conventions used in writing about CADDS applications.

    Window Managers and the User Interface

    According to the window manager that you use, the look and feel of the user interface in CADDS can change. Refer to the following table:

    Convention Example Explanation Menu selections and options List Section option, Specify Layer

    fieldIndicates a selection you must make from a menu or property sheet or a text field that you must fill in.

    User-selected graphic location

    X, d1 or P1 Marks a location or entity selection in graphic examples.

    User input in CADDS text fields and on any command line

    cvaec.hd.data.param

    tar -xvf /dev/rst0

    Enter the text in a CADDS text field or on any command line.

    System output Binary transfer complete. Indicates system responses in the CADDS text window or on any command line.

    Variable in user input tar -cvf /dev/rst0 filename Replace the variable with an appropriate substitute; for example, replace filename with an actual file name.

    Variable in text tagname Indicates a variable that requires an appropriate substitute when used in a real operation; for example, replace tagname with an actual tag name.

    CADDS commands and modifiers

    INSERT LINE TANTO Shows CADDS commands and modifiers as they appear in the command line interface.

    Text string "SRFGROUPA" or SRFGROUPA Shows text strings. You must enclose text string with single or double quotation marks.

    Integer n Supply an integer for the n.

    Real number x Supply a real number for the x.

    # # mkdir /cdrom Indicates the root (superuser) prompt on command lines.

    % % rlogin remote_system_name -l root

    Indicates the C shell prompt on command lines.

    $ $ rlogin remote_system_name -l root

    Indicates the Bourne shell prompt on command lines.

    Look and Feel of User Interface Elements

    User Interface Element

    Common Desktop Environment (CDE) on Solaris and HP

    Window Manager Other Than CDE on Solaris, HP, and Windows

    Option button ON Round, filled in the center OFF Round, empty

    ON Diamond, filled OFF Diamond, emptyx Piping Specification User Guide

  • PrefaceOnline User Documentation

    Online documentation for each book is provided in HTML if the documentation CD-ROM is installed. You can view the online documentation in the following ways:

    From an HTML browser From the Information Access button on the CADDS desktop or the Local Data

    Manager (LDM)

    Please note: The LDM is valid only for standalone CADDS.

    You can also view the online documentation directly from the CD-ROM without installing it.

    From an HTML Browser:

    1. Navigate to the directory where the documents are installed. For example,/usr/apl/cadds/data/html/htmldoc/ (UNIX)Drive:\usr\apl\cadds\data\html\htmldoc\ (Windows)

    2. Click mainmenu.html. A list of available CADDS documentation appears.3. Click the book title you want to view.

    From the Information Access Button on the CADDS Desktop or LDM:

    1. Start CADDS.2. Choose Information Access, the i button, in the top-left corner of the CADDS

    desktop or the LDM. 3. Choose DOCUMENTATION. A list of available CADDS documentation appears.4. Click the book title you want to view.

    Toggle key ON Square with a check mark OFF Square, empty

    ON Square, filled OFF Square, empty

    Look and Feel of User Interface Elements

    User Interface Element

    Common Desktop Environment (CDE) on Solaris and HP

    Window Manager Other Than CDE on Solaris, HP, and WindowsPiping Specification User Guide xi

  • PrefaceFrom the Documentation CD-ROM:

    1. Mount the documentation CD-ROM.2. Point your browser to:

    CDROM_mount_point/htmldoc/mainmenu.html (UNIX)CDROM_Drive:\htmldoc\mainmenu.html (Windows)

    Online Command Help

    You can view the online command help directly from the CADDS desktop in the following ways:

    From the Information Access button on the CADDS desktop or the LDM From the command line

    From the Information Access Button on the CADDS Desktop or LDM:

    1. Start CADDS.2. Choose Information Access, the i button, in the top-left corner of the CADDS

    desktop or the LDM. 3. Choose COMMAND HELP. The Command Help property sheet opens

    displaying a list of verb-noun combinations of commands.

    From the Command Line: Type the exclamation mark (!) to display online documentation before typing the verb-noun combination as follows:

    #01#!INSERT LINE

    Printing Documentation

    A PDF (Portable Document Format) file is included on the CD-ROM for each online book. See the first page of each online book for the document number referenced in the PDF file name. Check with your system administrator if you need more information.

    You must have Acrobat Reader installed to view and print PDF files.

    The default documentation directories are:

    /usr/apl/cadds/data/html/pdf/doc_number.pdf (UNIX) CDROM_Drive:\usr\apl\cadds\data\html\pdf\doc_number.pdf

    (Windows)xii Piping Specification User Guide

  • PrefaceResources and Services

    For resources and services to help you with PTC (Parametric Technology Corporation) software products, see the PTC Customer Service Guide. It includes instructions for using the World Wide Web or fax transmissions for customer support.

    Documentation Comments

    PTC welcomes your suggestions and comments. You can send feedback electronically to [email protected] Specification User Guide xiii

  • Chapter 1 Master Catalogs

    This chapter describes the function and structure of the master catalogs for piping components. The relationship of these catalogs to parameter and autoselection files is explained.

    Function of Master Catalogs Structure of Master Catalogs Components and Naming ConventionsPiping Specification User Guide 1-1

  • Master CatalogsFunction of Master CatalogsFunction of Master Catalogs

    The master catalogs are a set of files listing dimensions for commonly used pipes and fittings. The catalogs also reference generic names and library parts to use when inserting fittings.

    To use the plant design system effectively, you must route pipes and insert fittings according to a piping specification. To create a set of specifications using Explicit Modeling software, a central store of selectable piping items is necessary. This store is referred to as the master catalog.

    We supply master catalog files that cover the commonly used ANSI standard pipes and fittings, as well as a range of manufacturers pipes and fittings, as part of its standard software package. Also available are the master catalog files to support DIN. These are not documented in detail in this book since it is sufficient to use the ANSI catalogs as an example. The items that are supported in these catalogs are listed in Appendix A, Standard Dimensional Data for ANSI. These catalogs are not exhaustive, but include the more commonly used piping components in the size range 1/2 through 48 N.B. (nominal bore). Future revisions of the software may include an extension to the master catalogs both in size range and component type. Current features of the system let you easily extend the range of the components.

    The file naming conventions presented here can be used at Explicit Modeling level only. See the Explicit Modeling User Guide for information on file naming conventions used at the operating system level.1-2 Piping Specification User Guide

  • Master CatalogsStructure of Master CatalogsStructure of Master Catalogs

    The process of creating piping specifications requires an understanding of the master catalogs structure as well as how the files are created, modified, and maintained.

    It is easier to edit and manipulate a small file than a large file. For this reason, master catalogs are subdivided into many small files as shown in the following table:

    Please note: Files in the CVPD Standard Master Catalogs (as shipped with the product) are in the /usr/apl/cadds/data/aec/2151 directory. Consult your system administrator for the location of data/aec/2151 on your system.

    You should become familiar with the contents of these files. They are, in effect, the department store where you go shopping with the software that generates piping specifications. Part of the file cvpd/mcat/balv is shown in the following figure.

    Parameter values T4 through T6 are missing in several entries in the master catalog. No dimensional ANSI standard exists for those sizes. Be sure to fill in these values according to your vendor-specified standards. All of these parameters are necessary to use the CREATE DETAIL command.

    Table 1-1 Files in the CVPD Standard Master Catalogs

    cvpd/mcat/balv Ball valves - 150#, 300#, 600#, 800#, 900#,1500#cvpd/mcat/branch Branches by full or half couplingcvpd/mcat/bwfitt Butt weld fittingscvpd/mcat/chkv Check valves - 150#, 300#, 600#, 800#, 900#,1500#cvpd/mcat/flange Flanges - 150#, 300#, 600#, 900#cvpd/mcat/gasket Gaskets - 150#, 300#, 600#, 900#cvpd/mcat/gatv Gate valves - 150#, 300#, 600#, 800#, 900#,1500#cvpd/mcat/glbv Globe valves - 150#, 300#, 600#, 800#, 900#,1500#cvpd/mcat/machbolt Machine boltscvpd/mcat/olet Olet type fittingscvpd/mcat/pipe Pipe and pipe nipplescvpd/mcat/plgv Plug valves - 150#, 300#, 600#, 900#, 3000#,6000#cvpd/mcat/scfitt Screwed fittingscvpd/mcat/studbolt Stud boltscvpd/mcat/swfitt Socket weld fittingsPiping Specification User Guide 1-3

  • Master CatalogsStructure of Master CatalogsTable 1-2 cvpd/mcat/balv

    BALV BW 600 01 8.50, 1.31, 1.00, 0.50, 4.50, 6.00 0 CVPD.F.BVBWBALV BW 600 02 11.50, 2.38, 2.00, 0.50, 6.00, 12.0 0 CVPD.F.BVBWBALV BW 600 03 14.00, 3.50, 2.00, 0.50, 8.00, 12.0 0 CVPD.F.BVBWBALV BW 600 04 17.00, 4.50, 2.00, 1.00, 9.00, 24.0 0 CVPD.F.BVBWBALV BW 600 06 22.00, 6.63, 3.00, 2.00, 10.0, 36.0 0 CVPD.F.BVBWBALV BW 600 08 26.00, 8.63, 3.00, CVPD.F.BVBWBALV BW 600 0D 6.50, 0.84, 1.00, 0.30, 4.00, 4.50 0 CVPD.F.BVBWBALV BW 600 0F 7.50, 1.05, 1.00, 0.30, 4.00, 4.50 0 CVPD.F.BVBWBALV BW 600 10 31.00, 10.8, 4.00, CVPD.F.BVBWBALV BW 600 12 33.00, 12.8, 4.00, CVPD.F.BVBWBALV BW 600 1D 9.50, 1.90, 1.00, 0.50, 6.00, 8.00 0 CVPD.F.BVBWBALV BW 900 01 10.00, 1.32, 1.00, 0 CVPD.F.BVBWBALV BW 900 02 14.50, 2.38, 2.00, 0 CVPD.F.BVBWBALV BW 900 03 15.00, 3.50, 2.00, 0 CVPD.F.BVBWBALV BW 900 04 18.00, 4.50, 2.00, 0 CVPD.F.BVBWBALV BW 900 06 24.00, 6.63, 3.00, 0 CVPD.F.BVBWBALV BW 900 08 29.00, 8.63, 3.00, 0 CVPD.F.BVBWBALV BW 900 10 33.00, 10.8, 4.00, 0 CVPD.F.BVBWBALV FF 150 04 9.00, 9.00, 0.93, 1.00, 8.00, 24.0 0 CVPD.F.BALVBALV FF 150 06 15.50, 11.0, 1.00, 2.00, 9.00, 48.0 0 CVPD.F.BALVBALV FF 150 08 18.00, 13.5, 1.13, 2.00, 10.5, 48.0 0 CVPD.F.BALVBALV FF 150 0D 4.25, 3.50, 0.44, 0.30, 4.00, 3.75 0 CVPD.F.BALVBALV FF 150 0F 4.68, 3.88, 0.50, 0.30, 4.00, 3.75 0 CVPD.F.BALVBALV FF 150 10 21.00, 16.0, 1.19, CVPD.F.BALVBALV FF 150 12 24.00, 19.0, 1.25, CVPD.F.BALVBALV FF 150 1D 6.50, 5.00, 0.69, 0.50, 5.00, 5.00 0 CVPD.F.BALVBALV FF 300 01 6.50, 4.88, 0.69, 0.50, 4.50, 3.75 0 CVPD.F.BALVBALV FF 300 02 8.50, 6.50, 0.88, 0.50, 6.00, 7.75 0 CVPD.F.BALVBALV FF 300 03 11.13, 8.25, 1.13, 1.00, 8.00, 24.0 0 CVPD.F.BALVBALV FF 300 04 12.00, 10.0, 1.25, 1.00, 9.00, 24.0 0 CVPD.F.BALVBALV FF 300 06 15.88, 12.5, 1.44, 2.00, 9.00, 48.0 0 CVPD.F.BALVBALV FF 300 08 19.75, 15.0, 1.63, CVPD.F.BALVBALV FF 300 0D 5.50, 3.75, 0.56, 0.30, 4.00, 3.75 0 CVPD.F.BALVBALV FF 300 0F 6.00, 4.63, 0.63, 0.30, 4.00, 3.75 0 CVPD.F.BALVBALV FF 300 10 22.38, 17.5, 1.88, CVPD.F.BALVBALV FF 300 12 25.50, 20.5, 2.00, CVPD.F.BALVBALV FF 300 1D 7.50, 6.13, 0.81, 0.50, 6.00, 5.00 0 CVPD.F.BALVBALV RF 150 01 5.00, 4.25, 0.56, 0.50, 4.50, 3.75 0 CVPD.F.BALV1-4 Piping Specification User Guide

  • Master CatalogsStructure of Master CatalogsThe header line for this file is common to all master catalog files. You can change the order of the fields or vary the length of the fields up to the maximums shown as follows:

    Fields of the Standard Master Catalog File

    The fields have the following meanings.

    TYPE

    An abbreviation of the fittings name, for example, BALV indicates ball valve.

    ENDS

    The type of facing on the fitting, for example, BW indicates butt weld. Some types are double-ended, for example, FFSO indicates Flat Face Slip On. These entries are necessary for end type compatibility checking. These codes are user-definable. If both ends of a fitting are the same, such as with valves, you need only use one end type.

    BALV RF 150 02 7.00, 6.00, 0.75, 0.50, 6.00, 7.75 0 CVPD.F.BALVBALV RF 150 03 8.00, 7.50, 0.94, 1.00, 6.00, 24.0 0 CVPD.F.BALVBALV RF 150 04 9.00, 9.00, 0.94, 1.00, 8.00, 24.0 0 CVPD.F.BALVBALV RF 150 06 15.50, 11.0, 1.00, 2.00, 9.00, 48.0 0 CVPD.F.BALV

    Table 1-3

    Field Number of CharactersTYPE 8

    ENDS 8 (4 + 4 for double-end types)

    RATE 8

    SIZE 16 (8 + 8 for double-size items)

    PARM Up to 10 characters per numeric parameter, with a maximum of 29 parameters. (Keep in mind that the width is limited to 132.)

    ECC 28NAME 28

    Table 1-2 cvpd/mcat/balvPiping Specification User Guide 1-5

  • Master CatalogsStructure of Master CatalogsRATE

    The pressure rating for the fitting, for example, 600 indicates 600#. For some types, rate may mean schedule; that is, 10S indicates Schedule 10S (for pipe). You can leave the rate field blank for fittings with the same TYPE, SIZE, ENDS, and dimensional data. This reduces the number of entries required in the master catalog.

    SIZE

    Default size codes meaning nominal bore of the fitting (see the Pipe Size Codes table).

    PARM

    A series of values, or parameters, that describes the fittings true size. Although the parameter fields are not numerically annotated, the system understands them to have headers of T1, T2, T3, and so forth. These entries are necessary for the procedure file(s) used by the commands CREATE DETAIL, CHECK INTERFERENCE, CREATE SURFACE, and INSERT FITTING (for parametrically scaled fittings only). See Chapter 2, Library Parts for more information. Note that this field can contain descriptive information instead, if you use the master catalog file as a description file.

    ECC

    For fittings, a nonzero value indicates the eccentricity or offset, of the fitting. For bolting, the value equals the number of bolts. If neither apply, this column can have a 0 or be left blank.

    NAME

    Name of the nodal figure (Nfigure).

    The system uses the parametric and eccentricity values in two ways. The first two parameters (T1 and T2) and the eccentricity value are copied into the SCLX, SCLY, and SCLZ fields, respectively, of the autoselection file. Their values appear in the autoselection file for use by the command INSERT FITTING. Second, all parameters (T1, T2, T3, and so forth) are copied into the PARAM field of the parameter file for use by the commands CREATE DETAIL, CREATE SURFACE, CHECK INTERFERENCE, and INSERT FITTING (for parametrically scaled fittings only).

    The parameter values are delimited by commas in the file. The final value is not delimited, however. The master catalog file also contains some exceptions. 1-6 Piping Specification User Guide

  • Master CatalogsStructure of Master CatalogsHere additional parameters are required to define the valve operator. In these size/classes, the valve typically requires gear/pneumatic/electrical operators. No dimensional ANSI standards or typical industry standards exist for these items. Therefore, you should fill in your own values for the type needed for your contract.

    As is commonly known, valve topwork of any type is not covered by ANSI standards, and the dimensions vary from manufacturer to manufacturer. For this reason, we have selected average values based on a survey of several makes. In potentially tight clearance situations, you may want to take this into account. In addition, you may extend the master catalogs to include the dimensions in a particular manufacturers catalog.Piping Specification User Guide 1-7

  • Master CatalogsComponents and Naming ConventionsComponents and Naming Conventions

    Appendix A, Standard Dimensional Data for ANSI lists components included in the CVPD standard master catalogs. The naming conventions used in this list are not mandatory. Certainly, abbreviations and naming conventions vary between companies. For this reason, the software for generating piping specifications allows you to replace the default naming system with your own. However, retaining the structure of the master catalogs is advised to facilitate the use of new software releases.

    Please note: Remember also that the files are and must remain sorted, even after you edit them to expand the content. You must sort the files on the first four fields (TYPE, ENDS, RATE, and SIZE).1-8 Piping Specification User Guide

  • Chapter 2 Library Parts

    This chapter describes the relationship between the master catalogs and library parts in plant design modeling. The structure of these parts is presented along with procedures for making such parts with appropriate properties. The process of developing procedure files for library parts is explained in the Visualization/Preparation Reference. Function of Library PartsPiping Specification User Guide 2-1

  • Library PartsFunction of Library PartsFunction of Library Parts

    Library parts provide graphic representations of components included in your piping specifications. Complementary to the master catalogs are the individual nodal figures (graphic representations) for each type of fitting. Without these Nfigures, you cannot do any piping system modeling. You can create piping specifications using only master catalogs, but these are text files with no graphics. You must have the parts to get graphic representations of piping components. Therefore, as you extend the range of the catalogs, you may also have to extend the parts library.

    You can model piping systems in either single-or double-precision part format. Note that library figures supplied with your system are in single-precision format only. If you want to work in double-precision format, you should reformat all your libraries (see the Explicit Modeling User Guide for more information). Your single- and double-precision libraries should be placed in separate CVPATHs so they may be discriminated easily. Each precision library should include its own Nfigures.

    A few of the figures in the CVPD.F part library are in Figure 2-1. See Appendix F, Creating Parametric Fittings for examples and descriptions of the parametric fittings.

    These parts are accessed by their part name, for example, CVPD.F.BALV. You can use the Local Data Manager (LDM) to activate the part and the drawing.2-2 Piping Specification User Guide

  • Library PartsFunction of Library PartsFigure 2-1 Figures in the CVPD Parts Library

    The Figures 2-2 through 2-6 illustrate the graphics, nodal entities, and properties for a representative case for valve, elbow, eccentric reducer, tee, and olet fittings. From these you can generalize to make specific examples of a given type. Piping Specification User Guide 2-3

  • Library PartsFunction of Library PartsFirst, see Figure 2-2, the library part representation of a gate valve. (You can use these as examples to make other components.)

    The gate valve in Figure 2-2 was modeled using the standard Explicit Modeling options.

    The scope of this book does not include the basics of modeling. Presented here is the process of creating library parts and preparing nodal figures from them. Also described are inserting properties on library parts and creating procedure files. See Appendix F, Creating Parametric Fittings for a discussion of parametric fittings and how they are made.2-4 Piping Specification User Guide

  • Library PartsFunction of Library PartsFigure 2-2 Library Part Gate ValvePiping Specification User Guide 2-5

  • Library PartsFunction of Library PartsFigure 2-3 Library Part Elbow2-6 Piping Specification User Guide

  • Library PartsFunction of Library PartsFigure 2-4 Library Part Eccentric ReducerPiping Specification User Guide 2-7

  • Library PartsFunction of Library PartsFigure 2-5 Library Part Tee2-8 Piping Specification User Guide

  • Library PartsFunction of Library PartsFigure 2-6 Library Part OletPiping Specification User Guide 2-9

  • Library PartsFunction of Library PartsLibrary Parts Structure

    The following sections describe the structure of library parts.

    Figures

    The library part in the Figure 2-2 is a simple three-dimensional stick representation. All the parts in the library are modeled similarly. They consist of connect nodes, internal nodal lines, and several properties and part properties. The model image is constructed with circles, lines, and other simple graphic entities.

    The parts in Figure 2-1 and Figure 2-2 are modeled in inches. This unit is required to ensure compatibility with the insertion software. However, you can use other units for scales and parameters. For details see Chapter 4, Piping Specifications and SELECT PPARAMETERS of this manual.

    The degree of detail given to the stick figure is a matter of choice, but should be the minimum required for recognition of the part. These simple, skeletal graphics are the most efficient for the computer to manipulate. Such graphics are generated quickly when you use the command INSERT FITTING.

    Layers

    In modeling, can may insert the entities that make up a figure on different layers. This is useful for differentiating elements of a part. Layering is also useful in differentiating three-dimensional and single-plane (isometric) graphics.

    Nodal Entities

    Nodal entities form an essential element of the library part. Cnodes represent the faces of the fittings. Nlines represent the internal flow path within the fittings. In valves, Tnodes associate an item number (nodal text) with the valve.

    The first step in creating a library part is to insert the nodal entities.

    Properties

    Properties are another important element of the library part. See Appendix B, Properties in Library Parts for definitions of important part properties. The type of property depends upon the function of the part and the information to be taken from it. The properties on the entities in the Figure 2-2 through Figure 2-6 are examples. The incoming Cnode at the parts origin is on layer 0 and has at least two properties attached to it: CONNECTOR and ENDTYPE. The CONNECTOR property establishes connectivity in the pipeline with which the fitting reports. 2-10 Piping Specification User Guide

  • Library PartsFunction of Library PartsOnly those fittings with the CONNECTOR property are reported by the command REPORT PIPE.

    The ENDTYPE property must be on all CNODES (except those at the origins of branches, such as tees and olets). Therefore, ENDTYPE is also attached to the outgoing Cnode on layer 0. The system uses the ENDTYPE property for compatibility checking. The command INSERT FITTING gets the text value for this property from the autoselection file. That file is created by the command GENERATE PSFILE. For reducing fittings and reducing tees, the NPS property should also be on all Cnodes. Both of these properties have null values of four periods which are replaced with size or end type information at insertion time. Note that any property that has variable information inserted by INSERT FITTING should have null values to speed later updating.

    The nodal line in the Figure 2-2 is 1 inch long and connects the incoming Cnode to the outgoing Cnode. This line is inserted on layer 30 and has the property INTERNAL so that the nodal line is not interpreted as a pipe and included in reports of pipe length. All nodal lines within in-stream components must have this property. In branching fittings, one nodal line also has the BRANCH property (see Figure 2-5 and Figure 2-6).

    The second step in creating a library part is to associate the appropriate properties with the nodal entities.

    Graphics

    1. The first step in creating the part shown in the Figure 2-2 is to insert the two Cnodes, the internal nodal line, and their properties.

    2. The next step in creating a library part is to add some graphics to make the image resemble a gate valve. One procedure is to insert two 1 inch diameter circles on layer 30 with their origins at the two Cnodes.

    3. Then rotate the entity to get them on the correct construction plane. Insert two strings on layer 0, one to represent the valve body and one for the handwheel.

    4. Then insert two more lines on layer 30 to complete the model graphics of the gate valve. These lines represent the valve body in the Z plane. Insert a Tnode with the property ITEMNO on layer 0. Associate the Tnode with the incoming Cnode by using the command RELATE CNODE TNODE.Piping Specification User Guide 2-11

  • Library PartsFunction of Library PartsThe Origin and Axes of Parts

    The Figure 1-1 illustrates an important element in a library part - the model axis system. All parts are modeled in the same relationship to this system. Its conventions are as follows: +X is East, +Y is North, and +Z is up. The origin of the gate valve in Figure 2-2 is on the Cnode at X0, Y0, Z0. The concept of origin is especially important in relation to the procedure files for creating a detailed appearance.

    As it is modeled, the gate valve in Figure 2-2 has a length of 1 inch in the positive x-direction (SCLX). The true length of this valve is parameter T1 (recorded in the master catalog). This is the value extracted by INSERT FITTING. The circles lie in yz- planes (SCLY and SCLZ). The circles true diameter extracted by INSERT FITTING is parameter T2. For flanged valves, T2 is equal to the flanges diameter. Scale y- and scale z- are generally taken as equal to parameter T2.

    The standard model representations inserted with the INSERT FITTING command are uniformly scaled according to the x- and y- dimensions from the autoselection file. This uniform scaling is appropriate for most components. However, in relation to nodal figures, SCLX, SCLY, and SCLZ have limitations. The column headed SCLZ in the ASFILE contains an offset number which is used only for eccentric reducers. Therefore, the representation of the topwork on the gate valve in Figure 2-2 can only be expressed in terms of SCLX and SCLY. If the circle that indicates the handwheel were modeled with a diameter of an inch, then upon insertion the handwheel would always be the same diameter as the length of the valve (SCLX), regardless of the valve size. This is, of course, not realistic.

    Similarly, the string that forms the cone to indicate the valve stem has a perpendicular equal to 1 inch in length. This means that the height of the handwheel would be equal to the diameter of the flange (SCLY). Again, this is not the case. Therefore, only an approximation of the topwork size can be given.

    In the sample valve, this approximation is created as follows.

    The circle is 0.75 in diameter and it is inserted on layer 30. The string has a perpendicular of one inch and a base length of 0.60; it is

    inserted on layer 0.

    Although you will find uniform scaling sufficient for most purposes, you may want more accurate dimensioning for specific components (for example, a branch fitting with unequal inlet and outlet or branch legs). You can prepare special library parts that can be scaled parametrically (in a similar manner to the way that CREATE DETAIL scales graphics). The dimensions for these parts are obtained from a fitting parameter file rather than interactively or from the autoselection file. 2-12 Piping Specification User Guide

  • Library PartsFunction of Library PartsAppendix F, Creating Parametric Fittings tells you how to prepare the library parts and parameter files for parametric fittings.

    Inserting Part Properties

    The final step in creating a library part such as the gate valve in Figure 2-2 is to insert part properties.

    Inserting the COMPNAME Property

    The COMPNAME property stores the name of the fitting. For example, GATV is a gate valve (flanged); GVBW is a gate valve (butt weld). Refer to the column NAME in the master catalog for fitting names.

    The command REPORT PIPE may use the COMPNAME property to generate component lists.

    Inserting the STOCKNO Property

    To increase the efficiency of the software, give the STOCKNO property a value of n periods or other filler character. The number of characters should equal the length of the longest stock number you use. The command INSERT FITTING assigns the stock number at the time of insertion. You define the format of the stock number while creating the piping specification.

    Inserting the PNAME Property

    The PNAME property stores the name of a procedure file. This property is optional and is not included on most fittings. This file is used by the commands CREATE DETAIL and CHECK INTERFERENCE to produce the solid appearance of the valve. The format of this text file is discussed in the next section.

    Inserting the FITTYPE Property

    FITTYPE is an integer-valued property. This property is used by the command GENERATE ISOMETRIC to rescale the fittings for isometric graphics. It is also used for dimensioning purposes (DIMENSION ISOMETRIC) and reporting purposes (REPORT PIPE). For a list of other fittings and their FITTYPE values, see Appendix B, Properties in Library Parts.

    For examples of the use of other properties, see Figure 2-3 through Figure 2-6.Piping Specification User Guide 2-13

  • Library PartsFunction of Library PartsFiling the Part as a Nodal Figure

    The following steps are essential after you model a part:

    1. Reduce the part extents for purposes of storage and retrieval.2. Compact data for efficient storage and retrieval.3. File the part as a nodal subfigure. The part is filed with the name you used in

    activating it: CVPD.F.GATV. NOTVF files the part without the associated drawing file. This helps you to save disk space. You can also rename the Nfigure at this stage.

    Once you have filed the gate valve as a nodal figure, the next step is to create a procedure file for use by the visualization and interference checking options. For more information on procedure files and visualization, see the Visualization/Preparation Reference. For more information on interference checking, see Reports and Analyses Reference.

    Layering Conventions

    The layering conventions used in the CVPD.F library for the construction of piping components are as follows:

    The system can produce fabrication isometrics from modeled pipelines (see the Isometric Drawing User Guide). Fabrication isometrics almost always have the fittings shown as two-dimensional as shown in Figure 2-7. Because of this, you must decide at the time of part construction what you want to see on the isometric. See Figure 2-2 to see which lines give the representation shown in Figure 2-7. These lines were inserted on layer 0, as the table of layering conventions indicates.

    Table 2-1

    Item Layer CommentsCnode 0Nline 30 When part of three-dimensional graphics.Nline 0 When part of isographics as in tees and

    elbows

    Three-dimensional graphics 30Two-dimensional isographics 0Tnode 0 Tnode is inserted with the ALAY modifier

    Ntext 250 (absolute layer), so that Ntext always goes to layer 250 regardless of the layer of the related Nfigure.2-14 Piping Specification User Guide

  • Library PartsFunction of Library PartsFigure 2-7 Isometric DrawingPiping Specification User Guide 2-15

  • Chapter 3 Piping Specifications

    This chapter discusses the relationship of a piping specification to the master catalogs and library parts. The procedures for creating a piping specification input file (INFILE) for the command GENERATE PSFILE are presented in detail. The command and its relation to the autoselection process are explained.

    Piping Specifications and Autoselection GENERATE PSFILE and INFILE Output from GENERATE PSFILE and INFILE Creating a Piping Specification INFILE INFILE Format Sorting and Merging FilesPiping Specification User Guide 3-1

  • Piping SpecificationsPiping Specifications and AutoselectionPiping Specifications and Autoselection

    The structure of the nodal figure combined with the information in the master catalogs greatly expands the use of each figure. One nodal figure can represent a whole range of size and pressure classes.

    The information in the master catalogs and the parts library is used to create the contract piping specification shown in the following table.

    You will recognize the format of this piping specification as representative of this type of document. The specification is D2B, the basic construction material is carbon-1/2 moly, and the flange rating is ANSI STD 600# RTJ.

    The piping insertion software is designed for piping and piping components in general. To make your piping specification work with the pipe and pipe fitting insertion software, you must create two basic files. One is an autoselection (specification) file. This is used primarily by the command INSERT FITTING to find and insert the part you specify. The other is a parameter file, used by the commands CREATE DETAIL, CHECK INTERFERENCE, and CREATE SURFACE. See Appendix D, File Formats for examples of these files. Parameter files are also used to scale specially prepared library parts. See Appendix F, Creating Parametric Fittings for a complete discussion of parametric fittings.

    A useful concept is to consider the autoselection file as the systems version of the piping specification. The autoselection file can contain more than one piping specification; however, creating one autoselection file per specification is strongly recommended. As with master catalogs, a smaller file makes for better system response and file manipulation.Table 3-1 Piping Specification Table

    PTC CONTRACT:NEGB CONTINUOUS REFORMATTING PLANTSERVICE : SEE LEAD SHEET

    Piping Specification Sheet 9 of 9

    RATINGS: 600# SPECIFICATION: D2B

    CORROSION ALLOW: 0.0625 MATERIAL: CARBON- 1/2 MOLYSEE LEAD SHEET FOR FLUID PRESS TEMP CONDITIONS

    PIPE 1/2-1.1/2 SEAMLESS, PLAIN-END, SCH-80, ASTM A335 GR.P1

    FITTINGS 1/2-1.1/2 SW,6000#, ASTM A182 GR.F12-12 8W, SCH 40, ASTM A234-WP13-2 Piping Specification User Guide

  • Piping SpecificationsPiping Specifications and AutoselectionFLANGES 1/2-1.1/2 WELD-NECK, RTJ, 600#, ASTM A182 GR.F1

    GASKETS ASA B16 20 14/6% CHR 1/2MOLV1 600# RTJ

    BOLTING STUD BOLTS U.N.C. ASTM A193 GR.B1

    VALVES 1/2-1.1/2 GATE, 1500#, SW, BODY ASTM A182 GR.F1 TRIM 13% CHRGLOBE, 1500#, SW, BODY ASTM A182 GR.F1 TRIM 13% CHRCHECK , 1500#, SW, PISTON-TYPE BODY ASTM182 GR.F12-12 GATE, OS&V, 600# BW, BODY ASTM A217 GR.WC1 TRIM 13% CHR2-6 GATE, OS&V, 600# BW, BODY ASTM A217 GR.WC1 TRIM 13% CHR2-12 CHECK, SWIMG TYPE, 600# BW, BODY ASTM A217 GR.WC1

    BRANCHES RUN SIZE 1/2-1.1/2 SW, EQUAL TEES OR SW REDUCING TEESRUN SIZE 2-12, BSIZE TO 1.1/2 SOCKOLETSRUN SIZE 2-12, BSIZE EQUAL, BW TEESRUN SIZE 3-12, BSIZE 2-10, WELDOLETS

    NOTES WELDS TO BE STRESS RELIEVEDDRAIN ASSEMBLIES : HEADER SIZE 1/2-, 1/2N.B VALVED AND CAPPED CONN DRAIN ASSEMBLIES : HEADER SIZE 1.1/2 AND ABOVE, 3/4 N.B VALVED AND CAPPED CONNVENT ASSEMBLIES : HEADER SIZE 1/2-, 1/2 N.B VALVED AND CAPPED CONNCAPPED CONNPRESSURE INDICATOES: 1N.BVALVED AND FLANGED CONN: ALL HEADER SIZESTEMPERATURE INDICATORS : 1.1/2 N.B FLNAGED CONN. 1MIN. HEADER SIZE 3

    Table 3-1 Piping Specification Table

    PTC CONTRACT:NEGB CONTINUOUS REFORMATTING PLANTPiping Specification User Guide 3-3

  • Piping SpecificationsGENERATE PSFILE and INFILEGENERATE PSFILE and INFILE

    The key to the two required files, autoselection and parameter, is an input file called an INFILE. This INFILE is the shopping list that you use in the department store - the master catalogs. The INFILE is required before you can proceed effectively with the modeling process. Basic to that process is the command GENERATE PSFILE, described in more detail below.

    When you use this command, the items you specify in the INFILE are searched for in the master catalog. If the item is found, the following information goes into the autoselection file.

    The item with its specification, size, end type, parameters T1 (SCLX), T2 (SCLY), ECC (SCLZ), name, and stock number.

    Insert Fitting Code (IFC) that GENERATE PSFILE creates.

    All the parameters and the stock number go into the parameter file.

    When the INFILE is complete, you process it with the following command:

    #n#GENERATE PSFILE INFILE PLANT.INFILE.D2B ASFILE PLANT.ASFILE.D2B PAFILE PLANT.PAFILE.D2B NMFILE PLANT.NMFILE.D2B

    These file names are hypothetical. File names are your choice, but to take advantage of the CVMAC CVPD.SPEC.CVM.MERGE that sorts these files and combines the parameter files, you should follow the convention of using the specification name (for example, A6A, B3A, C6A, D2B, D6A) as the last level of the file name. The command has several modifiers, which are discussed later.3-4 Piping Specification User Guide

  • Piping SpecificationsOutput from GENERATE PSFILE and INFILEOutput from GENERATE PSFILE and INFILE

    Using the previous command, you have created three files related to the pipe specification D2B, using the INFILE called PLANT.INFILE.D2B. Two of these are the autoselection and parameter files. They are required for inserting, detailing, and interference checking. The third is the NMFILE, or nonmatching file.

    ASFILE (Autoselection File)

    The command creates an autoselection file for components you specify in your INFILE. The autoselection file lists components by generic name, pipe specification, size, and end type. The command INSERT FITTING uses the autoselection file to select, scale, and orient fittings inserted into a pipeline.

    PAFILE (Parameter File)

    The parameter file gives the dimensional data needed to define the three-dimensional appearance of each component. The commands CREATE DETAIL, CHECK INTERFERENCE, and CREATE SURFACE use these parameters with the procedure files to create the three-dimensional appearance of components.

    NMFILE (Nonmatching File)

    The INFILE searches the master catalogs for matching items. Items that the INFILE cannot find go to the NMFILE. You can print this file to see what items were not found.

    You have these options when you examine the contents of the NMFILE:

    1. You must determine if the items are there because you made an error in the INFILE. In this case, correct the error and execute the command GENERATE PSFILE again. You can do this with the modifier DELETE as shown in the following example:#n# GENERATE PSFILE INFILE PLANT.INFILE.D2B ASFILE PLANT.ASFILE.D2B DELETE PAFILE PLANT.PAFILE.D2B DELETE NMFILE PLANT.NMFILE.D2B DELETE

    This command indicates that you do not want to retain the original versions of the ASFILE, PAFILE, and NMFILE files.

    2. The items in NMFILE are required in specification D2B. You made no errors in the INFILE. This means that these items are not in the master catalog. Now you have three options:Piping Specification User Guide 3-5

  • Piping SpecificationsOutput from GENERATE PSFILE and INFILE Add the items to the appropriate master catalog (make sure they are sorted). Rerun GENERATE PSFILE with the modifier DELETE.

    Create a new master catalog or catalogs for odd items such as strainers and traps. Rerun GENERATE PSFILE with the modifier DELETE. Again, make sure the catalogs are sorted.

    Edit the ASFILE and PAFILE produced by the initial processing of the command to insert the nonmatching items manually. Make sure that you keep the sorted order, or sort the whole file over again to ensure the correct order.In general, this is the least desired option. The missing items may be required by other pipe classes; therefore, you should add them to a master catalog.3-6 Piping Specification User Guide

  • Piping SpecificationsCreating a Piping Specification INFILECreating a Piping Specification INFILE

    The flowchart for GENERATE PSFILE that follows (see Figure 3-1, Flowchart for GENERATE PSFILE, on page 3-8) shows how the software uses INFILE to generate the ASFILE, PAFILE, and NMFILE.

    The Piping Specification INFILE Used to Produce Specification D2B on page 3-8 shows the actual INFILE, CVPDC.GENPSF.INFILE.D2B, that was created to produce the piping specification D2B. Refer to these as you read the procedure.

    In an INFILE, asterisks (*) indicate comment lines, which help to explain the file. The comments refer to the previous line or lines of input.

    Your first impression of an INFILE may well be that it is long (262 lines). You may also recall, however, that many piping specifications are remarkably similar. The basic piping components are the same, except for perhaps a different type of valve, a different grade of steel, or only a different grade of gasket material. This means that once you have created one INFILE for a contract specification, you can copy the INFILE into another file. You can then edit the new file to create a second specification.

    First, run GENERATE PSFILE for specification D2B to be sure it works satisfactorily. Then copy the file CVPDC/GENPSF/INFILE/D2B to PLANT/INFILE/B3A.

    A set of INFILEs that produces other industry specifications is contained in the cvpdc/genpsf/infile and the cvpd/spec/infile catalogs.

    For an example of an INFILE that selects all the components currently in the master catalogs, see the Portion of Piping Specification INFILE Selecting All Components in Master Catalogs on page 3-13 . An online version of this INFILE exists in the text file cvpdc/infile/example.Piping Specification User Guide 3-7

  • Piping SpecificationsCreating a Piping Specification INFILEFigure 3-1 Flowchart for GENERATE PSFILE

    Piping Specification INFILE Used to Produce Specification D2B

    1 TYPE SPEC SIZE ENDT SCLX SCLY SCLZ IFC# NAME STK# 2 STK# PARM 3 * 4 PIPE SPECIFICATION FILE 5 * 6 CC SIZE CODES = 0D, 0F, 01, 1D, 02, 03, 04, 06, 08, 10, 12 7 * 8 USERS TEXT CODES = 1/2, 3/4, 1, 1.1/2, 2, 3, 9 4, 6, 8, 10, 12 10 * 11 SIZE CODES = 0D, 0F, 01, 1D, 02, 03, 04, 06, 08, 10, 12 12 * 13 CC ELBOW = ELR4, ELR9, ESR9, ESW4, ESW9 14 CC ANGLE VALVE = RVAL, ANGV 15 CC FIELD WELD = FWEL 16 CC TEE = STEE, RTEE, SLET, 17 WLET,CROS 18 CC FLANGE = BLRJ, WNRJ 19 CC PIPE = PIPE 20 CC GASKET = GASK3-8 Piping Specification User Guide

  • Piping SpecificationsCreating a Piping Specification INFILE 21 CC VALVE = CHKV, GATV, GLBV 22 CC BOLT = STUD 23 CC GENERAL = CAPP, CPFW, CPRW, CRED, ERED, NIPL, 24 PLHX, UNIO 25 * 26 ELBOW = ELR4, ELR9, ESR9, ESW4, ESW9 27 * 28 ANGLE VALVE = RVAL, ANGV 29 FIELD WELD = FWEL 30 TEE = STEE, RTEE, SLET, 31 WLET, CROS 32 FLANGE = BLRJ, WNRJ 33 34 PIPE = PIPE 35 GASKET = GASK 36 VALVE = CHKV, GATV, GLBV 37 BOLT = STUD 38 * WAFER = BUTV 39 RELIEF VALVE = RVAL 40 GENERAL = CAPP, CPFW, CPRW, CRED, ERED, NIPL, 41 PLHX, UNIO, CPRC, FLAN, BRAN 42 ASSEMBLY = VENT, DRAN, PI, TI 43 * 44 CC ENDS = BW, RJ, RJ, BE, PE, SW, PBE, POE, TOE, SC 45 * 46 ENDS = BW,RJ,RJ,BE,PE,SW,PE,P,T,SC 47 * 48 ENDT TEXT CODES = BW, F6RJ, G6RJ, BE, 49 PE, SWF, PBE, POE, TOE, SCF 50 * 51 * SCHEDULE/PR VALUES 52 * 53 CC SCHEDULE/RATING = 40,80,600,1500,6000,STD 54 * 55 SCHEDULE/RATING = 40,80,600,1500,6000,STD 56 * 57 INPUT RECORD FORMAT 58 INPUT = SNAME,SR/TC,END,RATE,MAT 59 STOCK NUMBER FORMAT 60 * 61 * THE FOLLOWING STATEMENT DEFINES THE STOCK NUMBER TO BE IN 62 * THE STANDARD CV FORMAT WHICH IS NO LONGER REQUIRED. 63 * 64 STK NO = SNAME,END,NEND,RATE,MAT,DELIM1,SIZE,NSIZE 65 * 66 DELIM1 = - 67 * 68 SPECIFICATION = D2B 69 * 70 CATALOG NAME = CVPD.MCAT.PIPE 71 * 72 PIPE, 0D-1D, PE, 80, BA 73 PIPE, 02-12, BE, 40, BA 74 NIPL, 0D-1D, PBE, 80, BAPiping Specification User Guide 3-9

  • Piping SpecificationsCreating a Piping Specification INFILE 75 NIPL, 0D-1D, POE#TOE, 80, BA 76 * 77 *FLANGES 78 CATALOG NAME = CVPD.MCAT.FLANGE 79 * 80 SELECTION NAME FOR FLANGES = FLAN 81 * 82 WNRJ, 0D-12, F6RJ#BW, 600, BE 83 /S 84 BLRJ, 0D-12, F6RJ, 600, BE 85 * 86 * VALVES 87 * 88 CATALOG NAME = CVPD.MCAT.CHKV 89 * 90 CHKV, 02-12, BW, 600, BB 91 CHKV, 0D-1D, SWF, 1500, BE 92 * 93 CATALOG NAME = CVPD.MCAT.GATV 94 * 95 GATV, 0D-1D, SWF, 1500, BE 96 GATV, 02-12, BW, 600, BB 97 * 98 CATALOG NAME= CVPD.MCAT.GLBV 99 *100 GLBV, 02-06, BW, 600, BB101 GLBV, 0D-1D, SWF, 1500, BE102 *103 * GASKETS104 *105 CATALOG NAME = CVPD.MCAT.GASKET106 *107 GASK, 0D-12, G6RJ, 600, BC108 *109 * BOLTS110 *111 CATALOG NAME = CVPD.MCAT.STUDBOLT112 *113 STUD, 0D-12, F6RJ, 600, AE114 *115 * FITTINGS116 *117 CATALOG NAME = CVPD.MCAT.SWFITT118 *119 UNIO, 0D-1D, SWF, 6000, BE120 *121 SELECTION NAME = CPLG122 CPFW, 0D-1D, SWF, 6000, BE123 /S124 ESW4, 0D-1D, SWF, 6000, BE125 ESW9, 0D-1D, SWF, 6000, BE126 *127 SELECTION NAME = BRAN128 STEE, 0D-1D, SWF, 6000, BE3-10 Piping Specification User Guide

  • Piping SpecificationsCreating a Piping Specification INFILE129 /S130 *131 CATALOG NAME =CVPD.MCAT.SCFITT132 *133 CAPP, 0D-1D, SCF, 6000, BE134 *135 * BUTT WELD FITTINGS136 *137 CATALOG NAME = CVPD.MCAT.BWFITT138 *139 ELR9, 02-12, BW, TMP, BD140 ESR9, 02-12, BW, TMP, BD141 ELR4, 02-12, BW, TMP, BD142 *143 SELECTION NAME = BRAN144 STEE, 02-12, BW, TMP, BD145 /S146 CAPP, 02-12, BW, TMP, BD147 *148 * REDUCING FITTINGS149 *150 TABLE = BR151 *152 * R = SW REDUCING TEE153 * S = SOCKOLET154 * W = WELDOLET155 *156 A B C D E F GHIJK157 *158 0D - A159 0F - B R160 01 - C R R161 1D - D R R R162 02 - E S S S S163 03 - F S S S S W164 04 - G S S S S W W165 06 - H S S S S W W W166 08 - I S S S S W W WW167 10 - J S S S S W W WWW168 12 - K S S S S W W WWWW170 /T171 *172 TABLE = RE173 *174 * C=REDUCING COUPLING175 * R=CONCENTRIC OR ECCENTRIC REDUCER176 *177 A B C D E F GHIJK178 *179 0D - A180 0F - B C181 01 - C C C182 1D - D C C C183 02 - E R R RPiping Specification User Guide 3-11

  • Piping SpecificationsCreating a Piping Specification INFILE184 03 - F R R185 04 - G R R R186 06 - H R R187 08 - I RR188 10 - J RRR189 12 - K RRR190 *191 /T192 *193 CATALOG NAME = CVPD.MCAT.SWFITT194 *195 SELECTION NAME = BRAN196 USE TABLE = BR197 RTEE, R, SWF, 6000, BE198 /T199 CATALOG NAME =CVPD.MCAT.OLET200 *201 USE TABLE = BR202 *203 SLET, S, SWF, 6000, BE204 WLET, W, BW, STD, BD205 /T206 /S207 CATALOG NAME = CVPD.MCAT.SWFITT208 *209 USE TABLE = RE210 *211 CPRW, C, SWF, 6000, BE212 /T213 *214 CATALOG NAME = CVPD.MCAT.BWFITT215 *216 USE TABLE=RE217 *218 CRED-ERED, R, BW, TMP, BD219 /T220 *221 * ASSEMBLIES222 *223 DRAN, 0D, DA1,,224 DRAN, 0F, DA2,,225 DRAN, 01, DA3,,226 DRAN, 1D, DA4,,227 DRAN, 02-12, DA5,,228 VENT, 0D, VA1,,229 VENT, 0F, VA2,,230 VENT, 01, VA3,,231 VENT, 1D, VA4,,232 VENT, 02-12, VA5,,233 PI, 0D, PA1,,234 PI, 0F, PA2,,235 PI, 01, PA3,,236 PI, 1D, PA4,,237 PI, 02-12, PA5,,3-12 Piping Specification User Guide

  • Piping SpecificationsCreating a Piping Specification INFILE238 TI, 03-12, TA1,,239 *240 [ ASSEMBLY LIST SECTION241 *242 DA1, BRAN NIPL FACE PBE GATV NIPL FACE POE#TOE CAPP FACE SCF243 DA2, BRAN BSIZE 0D NIPL FACE PBE GATV NIPL FACE POE#TOE CAPP FACE SCF244 DA3, BRAN BSIZE 0D NIPL FACE PBE GATV NIPL FACE POE#TOE CAPP FACE SCF245 DA4, BRAN BSIZE 0F NIPL FACE PBE GATV NIPL FACE POE#TOE CAPP FACE SCF246 DA5, BRAN BSIZE 0F NIPL FACE PBE GATV NIPL FACE POE#TOE CAPP FACE SCF247 *248 VA1, BRAN NIPL FACE PBE GLBV NIPL FACE POE#TOE CAPP FACE SCF249 VA2, BRAN BSIZE 0D NIPL FACE PBE GLBV NIPL FACE POE#TOE CAPP FACE SCF250 VA3, BRAN BSIZE 0D NIPL FACE PBE GLBV NIPL FACE POE#TOE CAPP FACE SCF251 VA4, BRAN BSIZE 0F NIPL FACE PBE GLBV NIPL FACE POE#TOE CAPP FACE SCF252 VA5, BRAN BSIZE 0F NIPL FACE PBE GLBV NIPL FACE POE#TOE CAPP FACE SCF253 *254 PA1,BRAN NIPL FACE PBE CPRW NSIZE 01 NIPL FACE PBE GATV NIPL FACE PBE FLAN255 PA2,BRAN NIPL FACE PBE CPRW NSIZE 01 NIPL FACE PBE GATV NIPL FACE PBE FLAN256 PA3, BRAN NIPL FACE PBE GATV NIPL FACE PBE FLAN257 PA4, BRAN BSIZE 01 NIPL FACE PBE GATV NIPL FACE PBE FLAN258 PA5, BRAN BSIZE 01 NIPL FACE PBE GATV NIPL FLAN209 USE TABLE = RE259 *260 TA1,BRAN BSIZE 1D NIPL FACE PBE FLAN261 /A262 * EOF

    Portion of Piping Specification INFILE Selecting All Components in Master Catalogs

    STK# PARM*****************************************************************

    ****

    *THE COMMENTS IN THIS FILE REFER TO PREVIOUS LINE/LINES OF INPUT*****************************************************************

    ****

    PIPE SPECIFICATION FILE

    *

    CC SIZE CODES = 0D, 0F, 01, 1D, 02, 03, 04, 06, 08, 10, 12, 14, 16, 18, 20, 24Piping Specification User Guide 3-13

  • Piping SpecificationsCreating a Piping Specification INFILE*****************************************************************

    ****

    *(USED FOR CUSTOMER CATALOG LOOKUP. SIZES SHOWN ARE THOSE IN * CVPD.MCATs)*****************************************************************

    ****

    USERS TEXT CODES = 1/2, 3/4, 1, 1.1/2, 2, 3, 4, 6, 8, 10,

    12,14,16, 18, 20, 24*****************************************************************

    ****

    *(OUTPUT TO ASFILE AND FOR ROUTE PIPE USER-DEFINED VALUE.)*****************************************************************

    ****

    SIZE CODES = 0D, 0F, 01, 1D, 02, 03, 04, 06, 08, 10, 12, 14, 16, 18,

    20, 24*****************************************************************

    ****

    *(USED FOR INPUT RECORD AND STOCKNO USER-DEFINED VALUES. DO NOT* USE QUOTATION MARKS ().)*****************************************************************

    ****

    CC ELBOW = ELR4, ELR9, ESC4, ESC9, ESR9, ESW4, ESW9, E18L, E18SCC ANGLE VALVE = ANGV, RVALCC FIELD WELD = FWELCC TEE = BRFC, BRHC, CROS, NLET, RTEE, SLET, STEE, TLET, WLETCC FLANGE = BLFF, BLGR, BLRF, BLRJ, BLTF, SOFF, SORF, SORJ, SWFF,

    SWRF,THFF, THRF, WNFF, WNGR, WNRF, WNRJ, WNTFCC PIPE = PIPECC GASKET = GASKCC VALVE = BALV, CHKV, GATV, GLBV, PLGV, BUTVCC BOLT = BOLT, STUDCC GENERAL = CAPP, CPFC, CPFW, CPHC, CPHW, CPRC, CPRW, CRED, ERED, NIPL, PLHX, PLRH, PLSQ, UNIO*****************************************************************

    ****

    *(USED FOR CUSTOMER CATALOG LOOKUP. CODES HERE ARE THOSE IN * CVPD.MCATS)*****************************************************************

    ****

    ELBOW = ELR4, ELR9, ESC4, ESC9, ESR9, ESW4, ESW9, E18L, E18SANGLE VALVE = ANGV, RVALFIELD WELD = FWELTEE = BRFC, BRHC, CROS, NLET, RTEE, SLET, STEE, TLET, WLETFLANGE = BLFF, BLGR, BLRF, BLRJ, BLTF, SOFF, SORF, SORJ, SWFF, SWRF,

    THFF,THRF, WNFF, WNGR, WNRF, WNRJ, WNTFPIPE = PIPEGASKET = GASKVALVE = BALV, CHKV, GATV, GLBV, PLGV, BUTVBOLT = BOLT, STUDGENERAL = CAPP, CPFC, CPFW, CPHC, CPHW, CPRC, CPRW, CRED, ERED, NIPL, 3-14 Piping Specification User Guide

  • Piping SpecificationsCreating a Piping Specification INFILEPLHX, PLRH, PLSQ, UNIOWAFER = BUTVRELIEF VALVE = RVALASSEMBLY = VENT, DRAN, PI, TI

    Portion of Piping Specification INFILE Selecting All Components in Master Catalogs (continued)

    *****************************************************************

    ****

    *(USED FOR INPUT RECORD. OUTPUT TO ASFILE FOR USE BY INSERT FITTING.*ALSO OUTPUT TO STOCKNO < USER-DEFINED CODES.)*****************************************************************

    ****

    CC ENDS = BE, BW, FF, GR, PBE, PE, POE, RF, RJ, SC, SO, SW, TBE, TGG, TOE, TG*****************************************************************

    ****

    *(USED FOR CUSTOMER CATALOG LOOKUP. CODES SHOWN ARE THOSE IN*CVPD.MCATS.)*****************************************************************

    ****

    ENDS = BE, BW, FF, GR, PBE, PE, POE, RF, RJ, SC, SO, SW, TBE, TGG, TOE, TG

    *****************************************************************

    ****

    *(OUTPUT TO STOCKNO USER-DEFINED CODES (MAX 2-CHARACTERS FOR REV * 2.03.)*****************************************************************

    ****

    ENDT TEXT CODES = BE, BW, F1FF, F6GR, PBE, PE, POE, G1RF, F6RJ, SCF,

    SO, SWF,TBE, G9TG, TOE, F9TG

    *****************************************************************

    ****

    *(USED FOR INPUT RECORD. OUTPUT TO ASFILE FOR ENDTYPE COMPATIBILITY*CHECKING. THESE CODES ARE USER-DEFINED, BUT MUST APPEAR IN THE *ENDTYPE TABLE WHICH ESTABLISHES LEGAL ENDTYPE MATCHES. THE ABOVE *THREE LINES OF INPUT (CC ENDS, ENDS, ENDT TEXT CODES) ARE FOR *PURPOSES OF EXAMPLE ONLY FOR A REAL SPECIFICATION INFILE, YOU MUST *FIRST ESTABLISH ENDT TEXT CODES FOR THAT SPECIFICATION. THEN INPUT *CC ENDS AND ENDS TO CORRESPOND. NOTE THE RESTRICTION TO USER *DEFINITION: ENDT TEXT CODES FOR FLANGES MUST BEGIN WITH F AND *GASKETS WITH G. WELD DOTS WILL ONLY APPEAR ON ISOS IF CODE *INCLUDES W.)*****************************************************************

    ****Piping Specification User Guide 3-15

  • Piping SpecificationsCreating a Piping Specification INFILE* SCHEDULE/PR VALUES*

    CC SCHEDULE/RATING = 20, 30, 40, 80, 150, 160, 300, 600, 800, 900, 1500, 3000, 6000, 5S, 10S, 40S, STD, XST*****************************************************************

    ****

    *(USED FOR CUSTOMER CATALOG LOOKUP. CODES SHOWN ARE THOSE IN*CVPD.MCATS.)*****************************************************************

    ****

    SCHEDULE/RATING = 20, 30, 40, 80, 150, 160, 300, 600, 800, 900, 1500, 3000, 6000, 5S, 10S, 40S, STD, XST

    *****************************************************************

    ****

    *(USED FOR INPUT RECORD; OUTPUT TO STOCKNO--USER-DEFINED VALUES.)*****************************************************************

    ****

    INPUT RECORD FORMAT INPUT = SNAME,SR/TC,END,RATE,MAT STOCK NUMBER FORMAT*

    * THE FOLLOWING STATEMENT DEFINES THE STOCK NUMBER TO BE IN* THE STANDARD CV FORMAT, WHICH IS NO LONGER REQUIRED.*

    STK NO = SNAME,END,NEND,RATE,MAT,DELIM1,SIZE,NSIZE3-16 Piping Specification User Guide

  • Piping SpecificationsINFILE FormatINFILE Format

    A pipe specification INFILE has several categories of information which you must specify with required keywords in a required format. The main categories of information are headers, instruction lines, input records, size tables (for coding items with more than one size), and lists of items in assembly groups. The first two categories are required. The last two are optional depending on your piping specification sheet. The sets of instruction lines and input records in the INFILE establish the relationship between the components and their parameters in the master catalog and the components you select for a particular job in the INFILE.

    The required information falls into two major categories in the INFILE: Declaration/classification information Component selection information

    You can think of the INFILE as being divided into two major sections with the previous major categories of information: the declaration/classification section and the component selection section. The first section of the input file sets up correspondences between different codes and defines the rules for the selection process. The first section includes the header line, code equivalence, and input/output instruction lines, and a specification designation line.

    The second section controls the selection of specific components represented in the master catalogs to include in your specification files (ASFILE, PAFILE). It includes selection instruction lines, input records, tables, and assembly lists.

    There is no strict rule that your input file be physically divided into these sections. The important point is that you must declare the component codes for size, type, end type, and rating; the name of the piping specification; the format of your input records; and the format of your stock numbers before you select specific components. These declarations and/or classifications can be interspersed and redefined throughout the input file, therby applicable to subsequent input records.

    As you read the following description of categories of information, refer to the INFILE in Piping Specification INFILE Used to Produce Specification D2B on page 3-8.Piping Specification User Guide 3-17

  • Piping SpecificationsINFILE FormatDescription

    Headers

    These are the first lines of the INFILE. See the following for a detailed description.

    Code Equivalence

    These are required before the input records. Code equivalence instructions equivalence the codes used for the size, type, rating, and end type of a component in the master catalogs, autoselection files, pipeline label, and within the input file itself. Their format is keyword(s) followed by an equal sign and codes; for example:

    CC SIZE CODES = 0D, 0F, 01 ...

    The keyword information to the left of the equal sign is required as shown in the sample input files. The information to the right is described in detail below.

    Input/Output

    These are required before input records. Input/Output instruction lines define the format of the input records in your input file, and the stock numbers output to the specification files.

    Selection

    These are required before input records. Selection instruction lines instruct the system to use a catalog, table, or alternate type name.

    Input Records

    Select the specific components you want in your specification using information defined in the code equivalence instruction lines.

    Tables

    Identify sizes for branch and reducing fittings.

    Assembly Lists

    Define the components in assemblies.3-18 Piping Specification User Guide

  • Piping SpecificationsINFILE FormatPlease note: The line numbers mentioned next in the discussion of the INFILE in Piping Specification INFILE Used to Produce Specification D2B on page 3-8 are for reference only. The line number itself is not part of the format or the data.

    Header Lines

    The first line of input in the INFILE defines the header line for the ASFILE that the command GENERATE PSFILE creates. You should not include this header line when you use the submodifier APPEND with the GENERATE PSFILE modifiers ASFILE and PAFILE.

    The second line of input defines the header line for the PAFILE that the command GENERATE PSFILE creates. This line must begin with three blank spaces followed by STK# so parameter files can be merged later. Although INSERT FITTING works well with individual autoselection files (ASFILES), CREATE DETAIL, CHECK INTERFERENCE, and CREATE SURFACE work more effectively when parameters are combined in one file (PAFILE). There should be one parameter file which contains all piping specifications and parameter files, but there may be a number of separate parameter files for different disciplines. The merging of parameter files is discussed in Chapter 4, Piping Specifications and SELECT PPARAMETERS. For now, be aware that files cannot be merged successfully unless there are three blank spaces before STK# in the second header line. This restriction applies only if you use the CVMAC cvpd/spec/cvm/merge.

    The third line of input shows an asterisk (*). Any line with an asterisk is not read by the GENERATE PSFILE software. The asterisk provides a way to create space in a file for readability and to add comment lines to explain or identify information. Blank lines are also allowed, but marking them with an asterisk is recommended.

    Correspondence of Field Headers

    The field headers in the autoselection file (ASFILE) have the following correspondences:

    TYPE corresponds to component types in the INFILE, for example, ELR4 or CHKV in lines 26 through 38.

    SIZE refers to USERS TEXT CODES in the INFILE and to corresponding SIZE codes in the master catalogs. Note that the header contains only a single field for size (with the header SIZE). This is sufficient for fittings involving only a single size reduction. An INFILE to produce a specification for double-reducing fittings (that introduce two size changes into the pipeline) would contain two additional fields, one for branch size and one for new size.

    SPEC refers to the specification defined in the INFILE.Piping Specification User Guide 3-19

  • Piping SpecificationsINFILE Format ENDT refers to ENDT TEXT CODES in the INFILE and to corresponding information in an end-type file (END1, END2) and the master catalogs (ENDS).

    SCLX, SCLY, and SCLZ refer to the two left-most parameters and the ECC value for the component in the master catalog. The reference is based on the TYPE, ENDS, RATE, and SIZE.

    The GENERATE PSFILE command creates an Insert Fitting Code (IFC#) which it writes to the ASFILE. The code identifies the component for orientation, location, end type, and automatic insertion of flanges and gaskets. The Insert Fitting Code is put under the heading IFC#. The code has four contiguous columns. The single-character codes, in order, represent a components classification, end type (for example, flanged), whether the component is a wafered valve or a relief valve, and whether gaskets should be used.

    The letter in the first column of the code indicates the classification of the piping item. The command GENERATE PSFILE recognizes the following set of types:

    The end type appears in the second position of the IFC code as F for flanged ends or W for weld ends. The letter W in the third position in the code indicates a wafered component and if the nfigure does not have the property WAFERED then this property with integer value one will be inserted in the nfigure; then REPORT PIPE will report this fitting as a wafered fitting; R in the third position indicates a relief valve; L in the third position indicates an elbowlet. The letter G appears in the last position of the code if the item is to have gaskets inserted. The gasket code is referenced only if the item requires flanges.

    Table 3-2 Header Lines

    Item Type Type/Classification IFC CodeBolts BOLT BElbows ELBOW ETees, branch connections TEE T

    Assemblies ASSEMBLY AValves VALV V

    Flanges FLANGE FGaskets GASKET GAngle Valves, Corner Valves ANGLE VALVE CField Welds FIELD WELD SPipe PIPE PAny other type GENERAL blank3-20 Piping Specification User Guide

  • Piping SpecificationsINFILE Format NAME is the library part name. STK# refers to the stock number you define in the INFILE with the instruction

    line STK NO = . This same stock number goes into the parameter file under the header STK#. The field headers in the parameter file (PAFILE) have the following correspondences:This same stock number goes into the autoselection file under the header STK#.

    PARM refers to the parameter values for the component in the master catalog. The reference is based on the components TYPE, RATE, ENDS, and SIZE. The parameters generate the three-dimensional representation of components.

    Size Codes

    The size equivalence instructions define all the size codes referenced in the selection section of the file. There are three kinds of size codes defined with the following instruction lines:

    CC SIZE CODES =. USERS TEXT CODES =. SIZE CODES =.

    CC stands for catalog codes. These are the size codes used in the master catalog. The master catalog can be our version or your adaptation of it. In the CC SIZE CODES, you must include every size that you want to use in this INFILE for the particular specification. The size codes identified here must correspond to the size codes in your master catalog. The correspondence is required so that the items you input in the selection section can be found in the master catalog.

    USERS TEXT CODES are the codes you use in your pipeline labels and the SIZE field of your autoselection files. The commands INSERT FITTING and ROUTE PIPE read the size of the pipeline from the label and look up the fitting or pipe in the autoselection file matching on size (as well as type, spec, and end type). In the USERS TEXT CODES, you can state how you want your sizes to appear in the reports that the system generates and in the required input to the label for the command ROUTE PIPE. The data may be in metric sizes, inch fractions, or other symbols you want to use. The sizes appear in the autoselection file that this INFILE generates.

    SIZE CODES are the codes that you use in the input records to indicate the size or size range of piping components you intend to use.

    Please note: They cannot include an inch sign, because it would be confused with the ditto mark.Piping Specification User Guide 3-21

  • Piping SpecificationsINFILE FormatIn your input records, the ditto means repeat the contents of the corresponding field in the prior input record. If you define a size field in your stock number, these codes appear in the stock number generated by the system.

    You set up the equivalence between the different types of codes by putting them in corresponding positions (going from left to right) in the three equivalence instructions. Define the codes according to these rules. Delimit each item with a comma. Do not use intervening spaces between characters that are part of the code, but spaces before or after commas are acceptable. Do not repeat codes; each code should be unique. With a format of foot/inch/fraction, some character must fill the gap between the whole number and the fraction. For example, 1 1/2 becomes 1.1/2.

    The following excerpt taken from the D2B input file shows the relationship among the codes:

    CC SIZE CODES = 0D, 0F, 01, 1D, 02, 03, 04, 06, 08, 10, 12

    (for looking up items in the master catalogs)USERS TEXT CODES = 1/2, 3/4, 1, 1.1/2,

    2,3, 4, 6, 8, 10, 12

    (for the autoselection file and the command ROUTE PIPE)SIZE CODES = 0D, 0F, 01, 1D, 02, 03, 04, 06,

    08,10, 12

    (for the stock number and input records)

    Only CC SIZE CODES are allowed in the first line. In this line 0D equals 1/2 N.B. (nominal bore), 0F equals 3/4 N.B., and 1D equals 1-1/2 N.B. These CC values agree with the codes used in the master catalog (see the cvpd.mcat.balv Table 1-2 on page 1-4 ). For a list of these codes and their values, see the Pipe Size Codes table that follows.

    For a half-inch component, if a match occurs between a component selected by one of your input records and an entry in the master catalog, the size is shown in the ASFILE, as 1/2. If you define your stock number so that it contains a size, then 0D also appears in your stock number for that item. These related codes give you flexibility in representing sizes you intend to use. You cannot use an inch sign in these SIZE CODES since it would be confused with a ditto.3-22 Piping Specification User Guide

  • Piping SpecificationsINFILE FormatIn your input record the ditto means to repeat the information in the corresponding field of the previous record. Note your SIZE CODES do not have to be the same as the CC SIZE CODES shown here.

    Please note: For fractions, you must use 1.1/4, 1.1/2, and so forth. The period is the only filler character allowed.

    The Pipe Size Codes table indicates that specification D2B calls for pipe in the size range 1/2 through 12. The CC SIZE CODES in the D2B INFILE indicate that range. This first part of the file does not make component selection; instead, it lays down some ground rules. The CC SIZE CODES could, for example, show pipe up to 24. However, whatever you include for these codes must have a corresponding code in the USERS TEXT CODES and the SIZE CODES. It is mandatory to have a one-to-one correspondence in these three equivalence instruction lines.

    Table 3-3 Pipe Size Codes

    Component Size Code1/8 = 0A1/4 = 2/8 = 0B3/8 = 0C1/2 = 4/8 = 0D5/8 = 0E3/4 = 6/8 = 0F7/8 = 0G1 = 01

    1.1/4 = 1B1.1/2 = 1D2 = 02

    2.1/2 = 2D3 = 03

    3.1/2 = 3D4 = 04

    5 = 05

    6 = 06

    8 = 08

    10 = 10

    12 = 12

    14 = 14

    16 = 16

    18 = 18

    20 = 20

    24 = 24Piping Specification User Guide 3-23

  • Piping SpecificationsINFILE FormatNote the use of the comma as a delimiter in these codes. The comma is required after each entry except the last one (for example, the line shown : CC SIZE CODES =). However, if the line continues to a second or third line, put a comma at the end of each continuing line (for example, the lines shown: USERS TEXT CODES =). Do not put a comma at the end of a line if there is no continuation line.

    Type Classifications

    Type classifications enable the software to use automatic features to insert components. The equivalence instructions define the two sets of type codes for components: Catalog codes from the master catalogs and your own codes.

    The first set of codes (for example, CC ELBOW =, CC ANGLE VALVE = ) relates the piping components to their lookup names in the TYPE column of the master catalogs (see lines 13 through 24). For Piping Specification D2B, elbows include all items from the master catalog with ELR4, ELR9, ESR9, ESW4, or ESW9 in the TYPE column. Select only the CC equivalences you need for your specification. Note that the equivalent instruction for elbowlets (for example, SELT, WELT), not included in this example, is CC LLET=.

    The second set of codes (lines 26 through 41) lets you define your own names for these same piping components. The keywords (codes) to the left of the equal signs (for example, ELBOW =, ANGLE VALVE =) are the same as those in the first set except for the absence of the CC (Catalog Code). There must be a one-to-one correspondence (same number and same order) between the items in sets one and two. Although the user-defined names in the INFILE shown in Piping Specification INFILE Used to Produce Specification D2B on page 3-8 are the same as the Catalog Code names, you can choose any names you want, subject to the limitations on the total number of codes and characters-per-code as shown in the Header Lines table.

    Rather than breaking them into two successive lists as shown in the D2B INFILE, it is recommended that you alternate the lines of CC codes with your own codes; that way the correspondence is easier to see (for example, CC ELBOW =, ELBOW =). Like the SIZE CODES, your type codes appear in the autoselection file and in STOCKNO output.

    Table 3-4 Storage Limits for GENERATE PSFILE

    Keywords Max. No. CodesMax No. Characters per Code Comments

    Any input line 132ELBOW 24 8 Note 13-24 Piping Specification User Guide

  • Piping SpecificationsINFILE FormatELBOWLET 7 8 Note 1ANGLE VALVE 10 8 Note 1FIELD WELD 7 8 Note 1

    TEE 30 8 Note 1

    ASSEMBLY 40 8 Note 1FLANGE 50 8 Note 1PIPE 7 8 Note 1

    GASKET 7 8 Note 1VALVE 60 8 Note 1

    WAFER 10 8 Note 1

    BOLT 8 8 Note 1GENERAL 50 8 Note 1CC ENDS 45 4 Note 1ENDT 45 12 Note 1

    ENDS 45 12 Note 1CC SIZE CODES 40 8USERS TEXTCODES 40 12SIZE CODES 40 12INPUT 120 Note 2STK NO 120 Note 3DELIM1 to DELIM9 9 16 Must be on one

    line

    SPECIFICATION 1 30 Must be on one line

    TABLE 56

    USE TABLE 56USE STD TABLE 56 (filename) Must be on one

    line

    PART NAME 30

    SELECTION NAME 30 Must be on one line

    CATALOG NAME 70 (filename)INSERT 70 (filename)SCHEDULE/RATING 25 8 Note 1

    Table 3-4 Storage Limits for GENERATE PSFILEPiping Specification User Guide 3-25

  • Piping SpecificationsINFILE FormatPlease note:

    1. The maximum number of codes listed is based on four character codes. The maximum number of codes varies with code length.

    2. The maximum number of fields is 10, including NGASK.3. The STK NO is not to exceed the length of the stock number as allowed by the

    field width defined in the header line for your ASFILE (specification file).4. The 132-character limit for an input line may prevent you from using all the

    available characters in a single field.

    While your type classifications normally are at the top of your input file, they can be interspersed throughout the input file. However, you must define the type code equivalences before you reference the type codes in an input record or other instruction.

    There are a few other important type equivalence instructions in the INFILE in Piping Specification INFILE Used to Produce Specification D2B on page 3-8.

    Lines 38 and 39 contain the following entries:

    *WAFER = BUTV RELIEF VALVE = RVAL

    (Note that the asterisk indicates that line 38 is a comment line, which is not read by the system.)

    A component can be explicitly classified as either a wafered component or a relief valve. If the component is explicitly classified as such, then the GENERATE PSFILE inserts the letter W or R for wafered or relief in the third position of the IFC code. Wafered components and relie