jerbaroo / bridge-sim

Python library for concrete slab bridge simulation.
MIT License
1 stars 0 forks source link

Multiple load cases within an OS model - to avoid the repeated compilation of the stiffness matrix #39

Open rozsasarpi opened 5 years ago

rozsasarpi commented 5 years ago

Solved. See this commit: https://github.com/barischrooneyj/thesis-msc-computational-science/commit/847c2387eef924a518291419d9dba4df743d5c11 for how to include multiple load cases within the same OS model. (partially verified manually and with AxisVM as well)

The gist of it:

system BandGeneral
numberer RCM
constraints Plain
integrator LoadControl 1
algorithm Linear
analysis Static

# collect translations in y direction
recorder Node -file OpenSees_translation_y.out -node 1 2 3 4 5 6 -dof 2 disp
# collect reaction forces in y direction
recorder Node -file OpenSees_reaction_force.out -node 1 64 141 217 294 370 447 511 -dof 2 reaction

# -----------------------
# Load case 1
# -----------------------
timeSeries Linear 1

pattern Plain 1 1 {
load 227 0 1e05 0
}

analyze 1

# -----------------------
# Load case 2
# -----------------------
remove loadPattern 1
loadConst -time 0.0

pattern Plain 2 1 {
load 31 0 1e05 0
}

analyze 1

In case of large models this is expected to save quite some computational time. @barischrooneyj consider implementing it in your workflow.

jerbaroo commented 5 years ago

I will just try running the linear model first and once things get too time consuming will implement this. Thanks!

jerbaroo commented 5 years ago

I will keep the issue open though to keep track of and remember this, and keeping the low priority label.