Stbatch
Stbatch
Version 2010
January 2010
All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the
written permission of the authors.
Products that are referred to in this document may be either trademarks and/or registered trademarks of the
respective owners. The publisher and the author make no claim to these trademarks.
While every precaution has been taken in the preparation of this document, the publisher and the author assume no
responsibility for errors or omissions, or for damages resulting from the use of information contained in this
document or from the use of programs that may accompany it. In no event shall the publisher and the author be
liable for any loss of profit or any other commercial damage caused or alleged to have been caused directly or
indirectly by this document.
Disclaimer
The STBatch program has been written by a team of highly qualified engineers
and programmers and have been extensively tested. Nevertheless, the authors
of the software do not assume responsibility for the validity of the results
obtained from the programs or for the accuracy of this documentation
Last not least, we want to thank EC Software who wrote the help tool called HELP & MANUAL that was used to
create this document.
Contents 3
Table of Contents
Foreword 0
3
4 STBatch
1 STBatch - General
The STBatch program can be used for two purposes:
to generate ASCII files containing STRAP geometry, loads and results data in the format specified by
the user. For example, the format may be suitable for spreadsheet input (delimited) or may be
compatible to the input format requirements of any program. Files may also be generated in tabular
form suitable for printing.
to run models in “batch mode” without using STRAP’s graphic interactive mode. The program is
instructed to solve the model, using either data written in ASCII files, the current geometry/loads, or a
combination of both.
The program is run from the “Command Line” (DOS) without starting STRAP.
The user must create the following ASCII command file to run the program:
Run file
This contains the name/number of the model, the name of the “Report file” (details of the data to be
written in the output file). Refer to Run file - format 5 .
If input/output data is to be written to a file, the following ASCII file must be created:
Report file
An ASCII file that contains a series of commands detailing the data to be written to the output file and
the format in which to write them. Note that the command syntax is very general so that the same
report file can be used for may different models. Refer to Report file - format 7 .
Note:
The program returns to Windows mode and displays the progress of the program
If the program solves the model, the screen showing the progress of the solution and any warning and/
or error messages is displayed.
where:
folder_name = the path name of the folder with the model (does not require “\” at end). The
default is the current working directory
title = model name for - NEW models (must not start with “Dir....” )
nnn = model number (as displayed in right column of STRAP main screen)
Examples:
Create a report for model 27 in folder D:\User1\school :
MOD 27 DIR D:\User1\school
Create a report for a new model titled “Level +1.50" in the current directory:
MOD NEW Level +1.50
GEOM geoin_filename
Specify the geometry input file name.
Note:
The command is optional; if omitted the program will use the current geometry.
If GEOM is included without geoin_filename, the program will use the current [Link] file
the file must be in the [Link] format (refer to Batch Mode - Geometry)
the first line of the file must be either:
REPLACE : the program will use this file instead of the existing geometry, i.e it ignores the
[Link] file
ADD : the program adds the commands in this file to existing geometry; data in
geoin_filename will overwrite the existing data
The program will search for the file in folder_name unless a different path precedes geoin_filename.
LOADS loads_filename
Specify the load input file name.
Note:
The command is optional; if omitted the program will use the current loads.
The LOADS command (without loads_filename) will recalculate the applied loads and should be
included when the geometry has been revised. For example, if section dimensions have been
changed, this command will recalculate self-weight.
The program will search for the file in folder_name unless a different path precedes loads_filename.
SOLVE
Instruct the program to solve the model.
Note:
The command is optional; if omitted the program will use the current results.
It must be included for NEW models when results are requested in the Report file
Note:
The output_filename can have one of the following formats:
a file name
*.ext header - the program will prompt the user for a the name of a file with extension “ext”. The
header of this prompt will be “title”
* title - the program will prompt the user for a the name of a file (no default extension). The
header of this prompt will be “title”.
Refer to the following examples.
END
Must be the last command in the file
Examples:
Create an output file for the current model in the current folder with the data format in file REPORT1.
DAT. Use the current geometry, loads and results . The program should prompt for the output file
name (with extension DAT).
MODEL CURRENT
REPORT [Link] *.DAT STBatch : output file name
END
Create a new model from geometry and load batch files in a different folder. Generate two reports and
prompt for the output file names (no default extension)
MODEL NEW DIR D:\USER1
GEOM [Link]
LOADS [Link]
SOLVE
REPORT [Link] *.DAT STBatch : output file name
REPORT [Link] *.DAT STBatch : output file name
END
Generate an output file [Link] for model 47 in the current directory. Read geometry from the
[Link] and recalculate the applied loads.
MODEL 47
GEOM
LOADS
REPORT [Link] [Link]
END
[SECTIONS]
.
data format for each section type; used when writing section data in the [REPORT] section
.
[REPORT]
.
#IF a condition is met
#LOOP on a data type
.
write specified data to file in specified format
.
# ENDLOOP
#ENDIF
.
more #IF, #LOOP
.
[END]
[SECTIONS]
This section specifies the format for the beams section types output. When the program encounters a
#PROP_DEF command in [REPORT], it determines the section type and uses the relevant format
defined in [SECTIONS]
Format:
#TYPE type_name
.
output format for type_name
.
#END TYPE
[REPORT]
The report file consists of lines with commands and parameters. All lines that are not commands will be
written to the output file as the appear in the report file (including punctuation), but the parameters will be
replaced by the model data.
All parameters and commands start with the character #. A different character may be selected (refer
to Report - commands 8 ) , but # will be used in this manual.
#LOOP
format:
#LOOP looptype
.
.
#ENDLOOP
For example, if the loop type is NODES the program will loop on all nodes in the model and write the
lines in the loop to the output file for each node. The parameters will be replaced with the values for the
current node.
Loops may not be nested except the BYLOAD loop that may be inside a results loop (see below).
#LOOP ERESULT {NEEDS (MOMENT) (FORCE) (STRESS) (S-) (PRINCP-) (WOOD) (Q) (AREA) (NODES))
loops on elements results. If the loop includes parameters for various element results then the
relevant NEEDS must be added so that the program will compute them. If NODES is specified then
results at nodes will be available.
#LOOP BYLOAD
All result loops by default assign the value of envelope results to the parameters. If results for each
load combination are required, add a #LOOP BYLOAD command inside the result loop. This is the
only case where nested loops are allowed.
If no combinations were defined, the #LOOP BYLOAD will display the results for load cases.
#SET
The #SET commands define the values of general parameters. A command applies to all lines following
it.
#SET NAME UNITS { M CM MM IN FEET TON KG KN GRAM POUND KIP NEWTON) name
Defines the text written in the output file for the unit variable specified. The default is the complete unit
name. For example, to write “mm.” instead of “millimeter”, write the command:
#SET NAME UNITS MM mm.
Note:
n1 = the total length of the number (including the decimal point and minus sign), d1 = is the no.
of digits after decimal point. For example, F7.3 is adequate for 123.456 or -12.345
If there are more numbers than formats, the last format applies to all the rest.
If the total length of a number with d1 digits exceeds n1, less digits will be added after the decimal.
For example, 12345.678 will be written as 12345.7 for F7.3.
The number will be padded with leading blanks if shorter.
Define a variable:
format: #DEFINE |R| n | equation |
|I | | INI |
|S|
where:
R : the variable is a ‘real’ value
I : the variable is an integer
S : the variable is a string (may be defined only in the [Link] file)
n = the variable number (1 to 99)
equation = equation used by the program for calculating the value of the variable is defined in the
report
INI = equation is retrieved from the [Link] file
Example:
#DEFINE R 2 #BRES_M3 * #BEAM_C11 * 2.1
Initial values may be assigned to variables in the [Link] file, under the header [STBATCH], with the
format:
VARn=value
Use a variable:
Insert one of the following in the report line:
#VAR_Rn
#VAR_In
Example: Generate a table of beams, where each row is numbered sequentially, starting with 1:
#DEFINE I 1 0
.
#LOOP BEAMS
#DEFINE I 1 #VAR_I1 + 1
#VAR_I1 ...........
#ENDLOOP
The following are dimensions for computed rectangle, tube, pipe, circle sections.
#PROP_B , #PROP_H, #PROP_T.
The following are for sections from table. The dimensions ending with 2 are for the second section in
combined sections.
#PROP_H, #PROP_TW, #PROP_BF, #PROP_TF, #PROP_RAD, #PROP_DIS, #PROP_H2, #PROP_TW2,
#PROP_BF2, #PROP_T1, #PROP_B1, #PROP_T2,#PROP_B2, #PROP_LIP
COMBINATION
The combination parameters are relevant for following loops: COMBINATION
Parameter Displays:
#COMB_NO combination no.
#COMB_L1, ....., #COMB_L16 loads no. in the combination (1 to 16)
#COMB_F1, ....., #COMB_F16 factors for each load case.
#COMB_NAME combination name.
LOADS
The loads parameters are relevant for following loops: LOAD
Parameter Displays:
#LOAD_NO load no. Can be used also in any BYLOAD loop and indicates the current load/
combination no.
#LOAD_NAME can be used only in the LOAD loop.
DEFLECTIONS
The deflection parameters are relevant for following loops: DEFLECT
Parameter Displays:
#DEFL_X1-#DEFL_X6 If outside the BYLOAD loop - indicates the maximal deflections. Inside the
BYLOAD loop - the deflection for the current load case.
BEAM RESULTS
The Beam result parameters are relevant for following loops: BRESULT
#BRES_AXB-#BRES_M3B
minimum results outside the BYLOAD loop, results at JB inside BYLOAD.
#BRES_DX2, #BRES_DX3
x2/x3 span deflections - can be used only if NEEDS DEFLECTION was defined in the LOOP
command.
REACTIONS
The Reaction parameters are relevant for following loops: REACTIONS
#REAC_X1, ..., #REAC_X6
maximum reactions outside the BYLOAD loop; reactions inside the loop.
#REAC_X1NEG, ..., #REAC_X6NEG
Minimum reactions; can be used only outside the BYLOAD loop.
ELEMENT RESULTS
The Element result parameters are relevant for following loops: ERESULTS
#ERES_MX, #ERES_MY, #ERES_MXY
Maximum result outside the BYLOAD loop, results at center inside the loop.
#ERES_PMX, #ERES_PMN, #ERES_SMX, #ERES_ANG - principal stresses and max. shear at +z face
#ERES_PMXA, #ERES_PMNA, #ERES_SMXA, #ERES_ANGA
principal stresses and max. shear at +Z face at JA. Use suffix B or C or D instead of A for nodes
JB, JC, JD.
#ERES_PMX-, #ERES_PMN-, #ERES_SMX-, #ERES_ANG- - principal stresses and max. shear at -z face
#ERES_PX-A, #ERES_PN-A, #ERES_SM-A, #ERES_AN-A
principal stresses and max. shear at -Z face at JA. Use suffix B or C or D instead of A for nodes JB,
JC, JD. (Note the syntax #ERES_PX-A, #ERES_PN-A, etc)
#ERES_AXA, #ERES_AYA
reinforcement at JA. Use suffix B or C or D instead of A for nodes JB, JC, JD.
SPRING STRESSES
The Spring stress parameters are relevant for following loops: SPSTRESS
#SPRES_X1-#SPRES_X6 maximum results outside the BYLOAD loop; stresses inside
the loop.
#SPRES_X1NEG-#SPRES_X6NEG can be used only outside the BYLOAD loop - minimum
stresses.
GENERAL PARAMETERS
These parameters can be used outside loops:
Parameter Displays:
#_HIBEAM highest beam no. or element no.
#_BEAM_NUMBER number of beams.
#_HINODE highest node no.
#_NODE_NUMBER number of nodes
#_ELE_NUMBER number of elements
#_HISOLID highest solid element no.
#_SOLID_NUMBER number of solid elements
#_HIPROPERTY highest property no.
#_PROPERTY_NUMBER number of properties
#_TYPE_OF_MODEL 0 = space, 1 = truss, 2 = plane frame, 3 = grid.
#_SYSTEMS_NUMBER number of restraint systems.
#_SPRINGS_EXIST 0 = no springs, 1 = springs defined
#_SLAVE_HI Number of rigid links
#_MATERIAL_NO Highest material no.
#_WUNITS weight units as defined in the SET command.
#_LUNITS length units as defined in the SET command.
#_TITLE Model title
1.3 Example
The following is a sample report file. An example of the output follows. Note that all text (commands or
parameters) not preceded by a # is written as it appears in the file, including all punctuation and text in a
line starting with a #.
[SECTIONS]
#TYPE RECT
#IF COMPOSITE
#PROP_NO,,45,#PROP_MAT,#PROP_MAJOR
#PROP_H,PROP_B,,,,,,,,,#PROP_CWIDTH,#PROP_CHEIGHT,#PROP_CDIST,#PROP_CMAT
#ELSE
#PROP_NO,,46,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_B
#ENDIF
#END TYPE
#TYPE I
#IF COMPOSITE
#PROP_NO,,1,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF,#PROP_BFD,#PROP_TFD,,,,,#PROP_CWIDTH,
#PROP_CHEIGHT,#PROP_CDIST,#PROP_CMAT
#ELSE
#PROP_NO,,50,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF,#PROP_BFD,#PROP_TFD
#ENDIF
#END TYPE
#TYPE TUBE
#PROP_NO,,3,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_T,#PROP_B
#END TYPE
#TYPE PIPE
#PROP_NO,,6,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_T
#END TYPE
#TYPE L
#PROP_NO,,4,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF
#END TYPE
#TYPE TABLE I
#IF COMPOSITE
#PROP_NO,"#PROP_TNAME #PROP_NAME",1,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF,#PROP_BF,#PROP_TF,,,,,#PROP_CWIDTH,#PROP_CHEIGHT,
#PROP_CDIST,#PROP_CMAT
#ELSE
#PROP_NO,"#PROP_TNAME #PROP_NAME",50,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF,#PROP_BF,#PROP_TF
#ENDIF
#END TYPE
#TYPE TABLE [
#PROP_NO,"#PROP_TNAME #PROP_NAME",2,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF
#END TYPE
#TYPE TABLE RHS
#PROP_NO,"#PROP_TNAME #PROP_NAME",3,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF
#END TYPE
#TYPE TABLE L
#PROP_NO,"#PROP_TNAME #PROP_NAME",4,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF
#END TYPE
#TYPE COLD [
#PROP_NO,"#PROP_TNAME #PROP_NAME",19,#PROP_MAT,#PROP_MAJOR
#PROP_H,#PROP_TW,#PROP_BF,#PROP_TF,#PROP_RAD
#END TYPE
[REPORT]
UNITS
1, #_LUNITS , #_WUNITS
2, #_LUNITS , #_WUNITS
NODES
#LOOP NODES
#NODE_NO , #NODE_X1 , #NODE_X2 , #NODE_X3
#ENDLOOP
RESTRAINTS
#LOOP RESTRAINTS
#NODE_NO ,#NODE_R1,#NODE_R2,#NODE_R3,#NODE_R4,#NODE_R5,#NODE_R6,#NODE_SYSTEM
#ENDLOOP
MATERIALS
#LOOP MATERIALS
#MAT_NO,"#MAT_NAME",#MAT_E,#MAT_PR,#MAT_DENS,#MAT_ALPHA,#MAT_G
#ENDLOOP
#IF OFFSET
OFFSET
#LOOP OFFSET
#OFF_NO,#OFF_TYPE,#OFF_X1A,#OFF_X2A,#OFF_X3A,#OFF_X1B,#OFF_X2B,#OFF_X3B
#ENDLOOP
#ENDIF
#IF BEAMS
BEAMS
#LOOP BEAMS
#BEAM_NO,#BEAM_JA,#BEAM_JB,#BEAM_BETA,#BEAM_RA,#BEAM_RJ,#BEAM_M3A,#BEAM_V2A,
#BEAM_M3B,#BEAM_V2B,#BEAM_PROP,#BEAM_OFFSET
#ENDLOOP
#ENDIF
#IF SPRINGS
SPRINGS
#LOOP SPRINGS
#NODE_NO,#NODE_S1,#NODE_S2,#NODE_S3,#NODE_S4,#NODE_S5,#NODE_S6,#NODE_SYSTEM
#ENDLOOP
#ENDIF
#IF RESULTS
LOADS
#LOOP LOADS
#LOAD_NO,#LOAD_NAME
#ENDLOOP
#LOOP DEFLECTION
#LOOP BYLOAD
#NODE_NO,#LOAD_NO,#DEFL_X1,#DEFL_X2,#DEFL_X3,#DEFL_X4,#DEFL_X5,#DEFL_X6
#ENDLOOP
#ENDLOOP
#IF BEAMS
BEAM RESULTS
#LOOP BRESULTS NEEDS FORCES
#LOOP BYLOAD
#BEAM_NO,#LOAD_NO,#BEAM_JA,#BRES_AX,#BRES_V2,#BRES_V3,#BRES_MT,#BRES_M2,#BRES_M3
#BEAM_NO,#LOAD_NO,#BEAM_JB,#BRES_AXB,#BRES_V2B,#BRES_V3B,#BRES_MTB,#BRES_M2B,
#BRES_M3B
#ENDLOOP
#ENDLOOP
#ENDIF
REACTIONS
#LOOP REACTIONS
#LOOP BYLOAD
#NODE_NO,#LOAD_NO,#REAC_X1,#REAC_X2,#REAC_X3,#REAC_X4,#REAC_X5,#REAC_X6
#ENDLOOP
#ENDLOOP
#ENDIF
[END REPORT]
The following is the output generated by the above file for a model consisting of a simply supported
beam:
UNITS
1, meter , ton
2, meter , ton
NODES
1 , 0.000 , 0.000 , 0.000
2 , 5.000 , 0.000 , 0.000
RESTRAINTS
1 ,1,1,1,1,1,1,
MATERIALS
1,"CONC",3000000.00,0.150,2.400,0.000010,1304347.88
PROPERTIES
1,,46,1,1
60.000,30.000
BEAMS
1,1,2,330.00,,,,,,,1,
LOADS
1,TEST1
1,1,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000
2,1,0.000139,-0.004231,0.002443,0.000000,-0.000643,-0.001114
BEAM RESULTS
1,1,1,-150.000,50.000,0.000,0.000,0.000,125.000
1,1,2,150.000,0.000,0.000,0.000,0.000,0.000
REACTIONS
1,1,-150.000,43.301,-25.001,0.000,62.501,108.252