Skip to content

Instantly share code, notes, and snippets.

@ckunte
Created November 2, 2020 05:10
Show Gist options
  • Save ckunte/d4bd35e2ac07dc6d575d95c60a61a8ef to your computer and use it in GitHub Desktop.
Save ckunte/d4bd35e2ac07dc6d575d95c60a61a8ef to your computer and use it in GitHub Desktop.
SACS commands common across its modules
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Find most common sacs commands across modules, 2020 ckunte
import re
from collections import Counter
# read a file containing all sacs commands
commands = re.findall(r'\w+', open('sacs-commands-all.txt').read())
# print 85 most common commands across all sacs modules
mcom = Counter(commands).most_common(85)
for com, nos in mcom:
print("{:<12}{:<9}".format(com, nos))
# COLLAPSE MODULE
BFSEL
BSSEL
CLPOP2
CLPOPT
CLPRPT
END
ENERGY
GRMSEL
GRPELA
IMPACT
JFSEL
JSOPT
JSSEL
JTSEL
LDSEQ
MEMELA
MEMSEL
MSLOPT
NLSPJJ
NLSPRG
PGRELA
PLTELA
PLTSEL
RSFAC
RSFACO
SHPIND
YSFACT
# COMBINE
CMBOPT
COMP
DIRECT
END
LCAS
LCOND
SPEC
TITLE
WSPEC
# CONCRETE
CNCOPT
END
GRUPC
LOADCN
PGRUP2
PGRUPC
PSTIF
SECT
SECT2
# DYNPAC
DYNOP2
DYNOPT
END
GROVR
JTWGT
MBOVR
PGOVR
PLOVR
SHOVR
# DYNAMIC RESPONSE
DROPT
END
ENGVIB
EQKLOD
FDAMP
FVIB
FVIB
GRPMD
ICE
JNTPLT
JNTSEL
JTNUM
LDFACT
LOAD
LOADC
MEMMD
MODSEL
PLTOPT
PSDSPC
RSFUNC
RSPEED
RSPSPC
RSPU1
RSPU2
SDAMP
SPCWIN
SPLAPI
SPLOAD
STCMB
THBEGIN
THCOMP
THDATA
THFACT
THFORCE
THLOAD
TIME
UNBAL
USRSP
WINSPC
# FREEBODY
CONN
END
JNTSL
LCSEL
SUB
# FLOTATION
ANGLE
BEGIN
CLOSE
END
FLGRP
FLLEG
FLMEM
FLTNK
FLTOPT
FLWT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PLSPRG
PLSTUB
PLTLC
PLTRQ
PLTSZ
SLOC
SOIL
T-Z
TZAPI
TZAXIAL
# POST
AMOD
BRACE
END
GRUP
HYDRO
HYDRO2
JNTSEL
LCOMB
LCSEL
MEMBER
MEMSEL
MGRPSL
OPTIONS
PSTOPT
REDES2
REDES3
REDES4
REDESIGN
SECT
SPAN
UCPART
WDEPTH
WHEAD
# RIGID
ACCL
CENTER
COMB
END
EQLOAD
MASS
SRSS
# SACS / WAMIT
BDOF
BETANG
BLOC
BODLN
BODY
BREL
CRANE
CRG
CRNJNT
DAMP
DMPGRP
END
ENDBOD
FILNAM
FREQ
GEOM
GRPDEL
HULL
JCK
JT
MOORLN
OR
ORIENT
PERIOD
PGRPDL
PROP
SCATD
SCEND
SCOFAC
SCPER
SCWAV
SELRSP
SPEC
SUPE
VIEW
WAMOPT
WAVHGT
WEIGHT
WORK
# SACS IV
AMOD
CENTER
CONC
CONC
DMOM
DTB
DYNMAS
ELASTI
ELEV
END
EXCGRP
GRPRED
GRUP
HEAD
HYDRO
HYDRO2
JOIN
JOINT
LCFAC
LCOMB
LCSEL
LOAD
LOADCN
MASTER
MEMB2
MEMBER
MOMT
OFFSET
OFFSETS
OPTIONS
PERSET
PGRUP
PLATE
PRES
PSTIF
PTEM
RAO
REDES2
REDES3
REDES4
REDESIGN
RFLRFD
SCY/SBX
SECSBX
SECSCY
SECT
SHELL
SHLGRP
SOLID
SPC
SPG
STB
STC
STM
STT
SUBM
SURFDR
SURFID
SURFWT
TEMP
THICK
TPBM
UCPART
UNIF
UNIF
WDEPTH
WGTFP
WGTFP2
WGTJT
WGTMEM
WGTNS
WGTNS2
WTCMB
WTSTR
# SEASTATE
ACCEL
AMOD
AREA
CDM
CENTER
CONC
CURR
DEAD
DELETE
DELGRP
DELJNT
DELMEM
DRAG
DUMMY
DYNMAS
ELEV
END
EXCGRP
FILE
GNTRF
GRPOV
GRPOV
HEAD
INCRAO
INCWGT
KEEP
LCFAC
LCOMB
LCSEL
LDOPT
LOADCN
LOADLB
LOADRP
MEMOV
MEMOV
MFLO
MFLO2
MGROV
MOTION
MOVGRP
MOVLOD
MOVSTP
PGROV
PGROV
RAO
REPGRP
REPLBL
REPMEM
REPORT
REYFAC
SFRC
SMOM
SURFDR
SURFID
SURFWT
UNIF
WAVE
WGTFP
WGTFP2
WGTJT
WGTMEM
WGTNS
WGTNS2
WIND
WINSHL
WTCMB
WTSTR
# SUPERELEMENT
CHGJ
CHGL
END
LDMAX
MRGLOAD
STFHEAD
STFR
SUBOPT
TRAN
# TOW
ACCEL
ACCL
AMOD
END
INCRAO
INCWGT
JTNUM
LCFAC
LCRAO
LOAD
MOTION
MOTN
POSITION
RAO
RBMASS
TOWOPT
WAVDEF
WEIGHT
# MOTION / STABILITY
BARGE
BRGWT
BSPEED
CARGO
CARGO2
COMP
END
FCOMP
LIB_VES
MOTOPT
MOTPLT
MOTRPT
OFFSET
POINT
STATN
STBOPT
TOLER
WAVHED
WAVPER
WSLOD
WSPEC
# WAVE RESPONSE
CURR
DAMP
ELVSEL
END
MODSEL
PERRNG
PLTTF
PSEL
PSJO
PSMF
PTSEED
PTSEL
RNSEED
SPEC
TFLCAS
THIST
TMSEL
WAVTIM
WROPT
WSPEC
END 23
LCSEL 8
LCOMB 5
WSPEC 5
AMOD 5
LOAD 4
GRPOV 4
HEAD 4
SPEC 4
WEIGHT 4
GRPDEL 3
SCATD 3
RAO 3
SCOFAC 3
LOADCN 3
SCWAV 3
CURR 3
LCFAC 3
UNIF 3
SECT 3
SCPER 3
CONC 3
JNTSEL 3
CENTER 3
MOTION 3
WGTNS2 2
SURFDR 2
PGROV 2
FVIB 2
RELIEF 2
ELEV 2
INCRAO 2
MEMBER 2
HYDRO2 2
PLTRQ 2
WTCMB 2
TIME 2
SURFID 2
MBRDEL 2
FATIGUE 2
PILE 2
INCWGT 2
JOINT 2
DYNMAS 2
WAVE 2
SURFWT 2
AREA 2
WGTMEM 2
REDESIGN 2
WDEPTH 2
ACCL 2
OPTIONS 2
GRUP 2
JSLC 2
WGTFP 2
EXCGRP 2
PSTIF 2
MGRPSL 2
WGTFP2 2
TITLE 2
MEMSEL 2
DAMP 2
MEMOV 2
COMP 2
CDM 2
ACCEL 2
WGTNS 2
MODSEL 2
WTSTR 2
OFFSET 2
RESPONSE 2
LAUNCH 2
SACS 2
REDES3 2
REDES2 2
REDES4 2
SCEND 2
UCPART 2
WGTJT 2
HYDRO 2
JTNUM 2
RSFAC 2
TMSEL 1
GMFAC 1
ENGVIB 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment