forked from OpenSees/OpenSees
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/OpenSees/OpenSees
- Loading branch information
Showing
271 changed files
with
17,041 additions
and
4,597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Dockerfile to build OpenSees | ||
# .. utilizes ubuntu:20.04 LTS as base | ||
# .. it will build sequential version and place in /usr/local/bin | ||
|
||
# written: fmk | ||
|
||
FROM ubuntu:20.04 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
WORKDIR /opensees | ||
|
||
ARG versionOpenSees=v3.6.0 | ||
|
||
RUN cp /etc/apt/sources.list /etc/apt/sources.list~ \ | ||
&& sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list \ | ||
&& apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata git \ | ||
&& apt-get install -y sudo \ | ||
&& sudo apt install -y cmake gcc g++ gfortran liblapack-dev git python3-pip \ | ||
&& pip3 install conan==1.60.1 \ | ||
&& git clone --depth 1 --branch hdf5-1_12_2 https://github.com/HDFGroup/hdf5.git \ | ||
&& cd hdf5 \ | ||
&& ./configure --prefix=/usr/local/hdf5 \ | ||
&& make \ | ||
&& cd .. \ | ||
&& git clone -b $versionOpenSees --single-branch https://github.com/OpenSees/OpenSees.git \ | ||
&& cd OpenSees \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& conan install .. --build missing \ | ||
&& cmake .. \ | ||
&& cmake --build . --config Release \ | ||
&& cmake --install . \ | ||
&& cp -r ./lib/tcl8.6 /usr/local/lib \ | ||
&& cd ../.. \ | ||
&& rm -fr OpenSees \ | ||
&& rm -fr hdf5 | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# ------------------------------ | ||
# Start of model generation | ||
# ------------------------------ | ||
|
||
# Remove existing model | ||
wipe | ||
|
||
# Create ModelBuilder | ||
model BasicBuilder -ndm 1 -ndf 1 | ||
|
||
# Create nodes | ||
# ------------ | ||
|
||
# Create nodes & add to Domain | ||
node 1 0.0 | ||
node 2 0.0 | ||
|
||
# Set the boundary conditions - command: fix nodeID xResrnt? | ||
fix 1 1 | ||
|
||
# Define materials for truss elements | ||
# ----------------------------------- | ||
|
||
# Create Elastic material prototype | ||
|
||
set Fy 200.0 | ||
set E 1000000.0 | ||
set fTravel 0.004 | ||
set fTravelInitial 0 | ||
set RatType 2 | ||
|
||
#set b -0.1 | ||
#uniaxialMaterial Steel01 1 $Fy $E $b | ||
#uniaxialMaterial ElasticPPGap 1 $E $Fy 0.002 0 damage | ||
#uniaxialMaterial GNG 1 $E $Fy $toothSize 0 | ||
uniaxialMaterial Ratchet 1 $E $fTravel $fTravelInitial $RatType | ||
uniaxialMaterial Elastic 2 1 | ||
|
||
# Define elements | ||
# --------------- | ||
|
||
# Create element | ||
element zeroLength 1 1 2 -mat 1 -dir 1 | ||
element zeroLength 2 1 2 -mat 2 -dir 1 | ||
|
||
# Define loads | ||
# ------------ | ||
|
||
set P 300.0 | ||
#create a Linear TimeSeries (load factor varies linearly with time): command timeSeries Linear $tag | ||
timeSeries Linear 1 | ||
|
||
# Create a Plain load pattern with a linear TimeSeries: command pattern Plain $tag $timeSeriesTag { $loads } | ||
pattern Plain 1 1 { | ||
|
||
# Create the nodal load - command: load nodeID xForce | ||
load 2 $P | ||
} | ||
|
||
# ------------------------------ | ||
# Start of analysis generation | ||
# ------------------------------ | ||
|
||
|
||
constraints Transformation | ||
numberer RCM | ||
test NormDispIncr 1.0e-6 6 0 | ||
algorithm ModifiedNewton | ||
system BandGeneral | ||
integrator DisplacementControl 2 1 0.001 | ||
analysis Static | ||
|
||
# create a Recorder object for the nodal displacements at node 2 | ||
recorder Node -file RatchetTestOutput.out -time -node 2 -dof 1 disp | ||
|
||
#foreach numIter {10 20 10 20} dU {0.001 -0.001 0.001 -0.001} { | ||
#integrator DisplacementControl 2 1 $dU | ||
#analyze $numIter | ||
#set factor [getTime] | ||
#puts "[expr $factor*$P] [lindex [nodeDisp 2] 0]" | ||
#} | ||
|
||
#foreach numIter {10 20 10 10 5 10} dU {0.001 -0.001 0.001 0.001 -0.001 0.001} { | ||
#integrator DisplacementControl 2 1 $dU | ||
#analyze $numIter | ||
#set factor [getTime] | ||
#puts "[expr $factor*$P] [lindex [nodeDisp 2] 0]" | ||
#} | ||
|
||
foreach numIter {10 20 10 20 10 20 10} dU {0.001 -0.001 0.001 -0.001 0.001 -0.001 0.001} { | ||
integrator DisplacementControl 2 1 $dU | ||
analyze $numIter | ||
set factor [getTime] | ||
puts "[expr $factor*$P] [lindex [nodeDisp 2] 0]" | ||
} | ||
|
||
print node 2 | ||
print ele |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.