TCL Command ABRESULT, Data of Influence line

Inhalt

Index

Syntax

array set infline   [ABRESULT inflid INFLINE GET]

array set stats     [ABRESULT inflid INFLINE GET LANEPOSS trpos]

array set lanexs   [ABRESULT inflid INFLINE GET LANEPOSX trpos]

array set laneys   [ABRESULT inflid INFLINE GET LANEPOSY trpos]

array set lanezs   [ABRESULT inflid INFLINE GET LANEPOSZ trpos]

array set widths   [ABRESULT inflid INFLINE GET LANEPOSW trpos]

array set bends   [ABRESULT inflid INFLINE GET LANEPOSB trpos]

array set axles    [ABRESULT inflid INFLINE GET LANEPOSA trpos vehicle]

array set elems    [ABRESULT inflid INFLINE GET LOADPOSE trpos vehicle]

array set nodes    [ABRESULT inflid INFLINE GET LOADPOSN trpos vehicle]

array set loadxs    [ABRESULT inflid INFLINE GET LOADPOSX trpos vehicle]

array set loadys    [ABRESULT inflid INFLINE GET LOADPOSY trpos vehicle]

array set loadzs    [ABRESULT inflid INFLINE GET LOADPOSZ trpos vehicle]

array set lvalxs    [ABRESULT inflid INFLINE GET LOADVALX trpos ltype]

array set lvalys    [ABRESULT inflid INFLINE GET LOADVALY trpos ltype]

array set lvalzs    [ABRESULT inflid INFLINE GET LOADVALZ trpos ltype]

Description

Query the data of a Influence line

The data was summarized in various fields. These fields are organised according to the lane positions.

Argument

Dimension

Meaning

inflid

OBJID

Daten-ID

INFLINE

KEYWORD

Result type of query

GET

KEYWORD

Query data

LANEPOSS

KEYWORD

Query the lane positions

LANEPOSX

KEYWORD

Query the lane coordinate

LANEPOSY

KEYWORD

Query the lane coordinate

LANEPOSZ

KEYWORD

Query the lane coordinate

LANEPOSW

KEYWORD

Query the lane width

LANEPOSB

KEYWORD

Query the lane bend

LANEPOSA

KEYWORD

Query the axle distance

LOADPOSE

KEYWORD

Query the number of the loaded elements

LOADPOSN

KEYWORD

Query the local node numbers of the loaded elements

LOADPOSX

KEYWORD

Query the coordinates of load positions

LOADPOSY

KEYWORD

Query the coordinates of load positions

LOADPOSZ

KEYWORD

Query the coordinates of load positions

trpos

INT

Train position

vehicle

INT

Vehicle

wheel

INT

Wheel

ltype

ENUM

Load type from {"VERTICAL", "BRAKING", "CENTRIFUGAL", "COMBINED"}

Return array for [ABRESULT ... GET]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

lset

TEXT

Name of lane set

lane

INT

Lane number

npos

INT

Number of lane positions

loads

LIST

List of loads taken into account with the following possible entries: "VERTICAL", "BRAKING", "CENTRIFUGAL", "COMBINED"

Return array for [ABRESULT ... GET LANEPOSS trpos]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of station values of type STATION

Return array for [ABRESULT ... GET LANEPOSX trpos]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of X-coordinates of type LSTRUCTD

Queries of Y- and Z-values accordingly.

Return array for [ABRESULT ... GET LANEPOSW trpos]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of lane widths of type LSTRUCTD

Return array for [ABRESULT ... GET LANEPOSB trpos]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of bends of type 1/LSTRUCTD

Return array for [ABRESULT ... GET LANEPOSA trpos vehicle]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of axle widths of type LSTRUCTD

Return array for [ABRESULT ... GET LOADPOSE trpos vehicle]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of element numbers

Query of local node numbers accordingly.

Return array for [ABRESULT ... GET LOADPOSX trpos vehicle]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of X-coordinates of load positions (Dimension LSTRUCTD)

Queries of Y- and Z-values accordingly.

Return array for [ABRESULT ... GET LOADVALX trpos ltype]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

pos

LIST

List of X-components of loads. The values are dimension-less.

Queries of Y- and Z-values accordingly.

Scopes

All

Examples

array set ul [ABMUNIT LSTRUCTD GET]

array set us [ABMUNIT STATION GET]

array set ua [ABMUNIT ANGLED GET]

set ub "1/"

append ub $ul(symb)

array unset inflret

array set inflret [ABRESULTS "Lane Set_right" INFLINE GET LANE 2]

array unset infline

array set infline [ABRESULT $inflret(id) INFLINE GET]

set format12 " %8d %11.4f %11.4f %11.4f %11.4f %10.3f %11.4f %10.3f %11.4f %11.4f %11.4f %7d %8.3f %8.3f %8.3f %8.3f %8.3f %8.3f"

set format13 " %11.4f %11.4f %11.4f %10.3f %11.4f %10.3f %11.4f %11.4f %11.4f %8s %8.3f %8.3f %8.3f %8.3f %8.3f %8.3f"

puts $outfile ""

puts $outfile ""

puts $outfile " Laneset : '$infline(lset)'"

puts $outfile " Lane : $infline(lane)"

puts $outfile " Positions : $infline(npos)"

puts $outfile " Load types: $infline(loads)"

puts $outfile ""

puts $outfile " Position Station Lane-X Lane-Y Lane-Z Width Bend Axle width Load-X Load-Y Load-Z Element Fx-vert Fy-vert Fz-vert Fx-cfg Fy-cfg Fz-cfg"

puts $outfile [format $format13 $us(symb) $ul(symb) $ul(symb) $ul(symb) $ul(symb) $ub $ul(symb) $ul(symb) $ul(symb) $ul(symb) "\[1\]" "\[1\]" "\[1\]" "\[1\]" "\[1\]" "\[1\]"]

puts $outfile " --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"

array set stats [ABRESULT $inflret(id) INFLINE GET LANEPOSS 1]

array set lanexs [ABRESULT $inflret(id) INFLINE GET LANEPOSX 1]

array set laneys [ABRESULT $inflret(id) INFLINE GET LANEPOSY 1]

array set lanezs [ABRESULT $inflret(id) INFLINE GET LANEPOSZ 1]

array set widths [ABRESULT $inflret(id) INFLINE GET LANEPOSW 1]

array set bends [ABRESULT $inflret(id) INFLINE GET LANEPOSB 1]

array set axles [ABRESULT $inflret(id) INFLINE GET LANEPOSA 1]

array set loadxs [ABRESULT $inflret(id) INFLINE GET LOADPOSX 1]

array set loadys [ABRESULT $inflret(id) INFLINE GET LOADPOSY 1]

array set loadzs [ABRESULT $inflret(id) INFLINE GET LOADPOSZ 1]

array set elems [ABRESULT $inflret(id) INFLINE GET LOADPOSE 1]

array set fvxs [ABRESULT $inflret(id) INFLINE GET LOADVALX 1 VERTICAL]

array set fvys [ABRESULT $inflret(id) INFLINE GET LOADVALY 1 VERTICAL]

array set fvzs [ABRESULT $inflret(id) INFLINE GET LOADVALZ 1 VERTICAL]

array set fcxs [ABRESULT $inflret(id) INFLINE GET LOADVALX 1 CENTRIFUGAL]

array set fcys [ABRESULT $inflret(id) INFLINE GET LOADVALY 1 CENTRIFUGAL]

array set fczs [ABRESULT $inflret(id) INFLINE GET LOADVALZ 1 CENTRIFUGAL]

for { set ipos 0 } { $ipos < $infline(npos) } { incr ipos } {

    set ipos1 [expr $ipos + 1]

    set stat [lindex $stats(pos) $ipos]

    set lanex [lindex $lanexs(pos) $ipos]

    set laney [lindex $laneys(pos) $ipos]

    set lanez [lindex $lanezs(pos) $ipos]

    set width [lindex $widths(pos) $ipos]

    set bend [lindex $bends(pos) $ipos]

    set axle [lindex $axles(pos) $ipos]

    set loadx [lindex $loadxs(pos) $ipos]

    set loady [lindex $loadys(pos) $ipos]

    set loadz [lindex $loadzs(pos) $ipos]

    set elem [lindex $elems(pos) $ipos]

    set fvx [lindex $fvxs(pos) $ipos]

    set fvy [lindex $fvys(pos) $ipos]

    set fvz [lindex $fvzs(pos) $ipos]

    set fcx [lindex $fcxs(pos) $ipos]

    set fcy [lindex $fcys(pos) $ipos]

    set fcz [lindex $fczs(pos) $ipos]

    puts $outfile [format $format12 $ipos1 $stat $lanex $laney $lanez $width $bend $axle $loadx $loady $loadz $elem $fvx $fvy $fvz $fcx $fcy $fcz]

}

It is assumed that a text file outfile has been opened for writing . The results are written formatted into the text file.

The output is project-dependent and can look like the following, for example:

Laneset : 'Lane Set_right'

Lane : 2

Positions : 70

Load types: VERTICAL CENTRIFUGAL

Position Station Lane-X Lane-Y Lane-Z Width Bend Axle width Load-X Load-Y Load-Z Element Fx-vert Fy-vert Fz-vert Fx-cfg Fy-cfg Fz-cfg

[m] [m] [m] [m] [m] 1/[m] [m] [m] [m] [m] [1] [1] [1] [1] [1] [1]

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1 0.0000 0.0000 0.0588 0.8500 3.001 0.0000 0.000 0.0000 0.0588 0.8500 101 0.000 -1.000 0.000 -0.000 0.000 1.000

2 5.0005 5.0000 0.1357 0.8500 3.001 0.0000 0.000 5.0000 0.1357 0.8500 101 0.000 -1.000 0.000 -0.000 0.000 1.000

3 5.0007 5.0000 0.1357 0.8500 3.001 0.0000 0.000 5.0000 0.1357 0.8500 102 0.000 -1.000 0.000 -0.000 0.000 1.000

4 10.0011 10.0000 0.2127 0.8500 3.001 -0.0000 0.000 10.0000 0.2127 0.8500 102 0.000 -1.000 0.000 -0.000 0.000 1.000

5 10.0013 10.0000 0.2127 0.8500 3.001 -0.0000 0.000 10.0000 0.2127 0.8500 103 0.000 -1.000 0.000 -0.000 0.000 1.000

6 15.0017 15.0000 0.2896 0.8500 3.001 -0.0001 0.000 15.0000 0.2896 0.8500 103 0.000 -1.000 0.000 -0.000 0.000 1.000

7 15.0019 15.0000 0.2896 0.8500 3.001 -0.0001 0.000 15.0000 0.2896 0.8500 104 0.000 -1.000 0.000 -0.000 0.000 1.000

8 20.0014 19.9992 0.3629 0.8516 3.001 -0.0004 0.000 19.9992 0.3629 0.8516 104 0.000 -1.000 0.000 -0.001 0.000 1.000

9 20.0016 19.9992 0.3629 0.8516 3.001 -0.0004 0.000 19.9992 0.3629 0.8516 105 0.000 -1.000 0.000 -0.001 0.000 1.000

10 24.9995 24.9967 0.4363 0.8628 3.002 -0.0008 0.000 24.9967 0.4363 0.8628 105 0.000 -1.000 0.000 -0.004 0.000 1.000

11 24.9997 24.9967 0.4363 0.8628 3.002 -0.0008 0.000 24.9967 0.4363 0.8628 106 0.000 -1.000 0.000 -0.004 0.000 1.000

12 29.9959 29.9925 0.5096 0.8932 3.002 -0.0012 0.000 29.9925 0.5096 0.8932 106 0.000 -1.000 0.000 -0.009 0.000 1.000

13 29.9961 29.9925 0.5096 0.8932 3.002 -0.0012 0.000 29.9925 0.5096 0.8932 107 0.000 -1.000 0.000 -0.009 0.000 1.000

14 34.9907 34.9865 0.5830 0.9525 3.003 -0.0015 0.000 34.9865 0.5830 0.9525 107 0.000 -1.000 0.000 -0.016 0.000 1.000

15 34.9909 34.9865 0.5830 0.9525 3.003 -0.0015 0.000 34.9865 0.5830 0.9525 108 0.000 -1.000 0.000 -0.016 0.000 1.000

16 39.9839 39.9781 0.6554 1.0501 3.003 -0.0018 0.000 39.9781 0.6554 1.0501 108 0.000 -1.000 0.000 -0.024 0.000 1.000

17 39.9841 39.9781 0.6554 1.0501 3.003 -0.0018 0.000 39.9781 0.6554 1.0501 109 0.000 -1.000 0.000 -0.024 0.000 1.000

18 42.4798 42.4730 0.6877 1.1163 3.003 -0.0021 0.000 42.4730 0.6877 1.1163 109 0.000 -1.000 0.000 -0.029 0.000 1.000

19 42.4800 42.4730 0.6877 1.1163 3.003 -0.0021 0.000 42.4730 0.6877 1.1163 110 0.000 -1.000 0.000 -0.029 0.000 1.000

20 44.9753 44.9670 0.7166 1.1956 3.004 -0.0023 0.000 44.9670 0.7166 1.1956 110 0.000 -1.000 0.000 -0.035 0.000 0.999

.....

Output for script above.



Allplan

(C) ALLPLAN GmbH

Privacy policy