Code Monkey home page Code Monkey logo

strata's Introduction

Strata

License: GPL v3 Build Status Build status DOI

Equivalent linear site response with random vibration theory, site property randomization, and a graphical user interface.

The Strata GUI simplifies the process for performing site response analysis, but limits the flexibility and requires extensive coding to add features. To help address these shortcomings, I have written pyStrata, which is a Python library for performing site response. With pyStrata, complicated customized workflows can be developed, or examples using Jupyter notebooks can be used to aid in understanding of the process.

Binaries

Pre-built binaries for Windows are available from the Github releases page.

Citation

When citing Strata, refer to either the technical manual:

Kottke, Albert R., and Ellen M. Rathje. (2008). "Technical manual for Strata." Report No.: 2008/10. Pacific Earthquake Engineering Research Center, University of California, Berkeley.

or the DOI of the release and this website.

Building

Compiling Strata from the source code requires the following dependencies prior to building:

  • CMake (version 3.2 or later)
  • Qt (version 5.5 or later)
  • GNU Scientific Library (GSL)
  • Qwt (version 6.1 or later)
  • FFTW (optional)

See Building on Windows for installing these dependencies on windows. Once, these dependencies are installed the Strata can build checked out and built using the following commands:

$> git clone https://github.com/arkottke/strata.git
$> cd strata
$> mkdir build
$> cd build
$> cmake .. -DCMAKE_BUILD_TYPE=Release
$> make -j2

Strata executable is located in: strata/build/source/strata. If the build is unable to find header files and libraries for linking, paths to these files can be added by modifying the strata.pro text file, or by passing the INCLUDEPATH and LIBS environmental varibles. On Linux and OS X, the variabile LD_LIBRARY_PATH may need to be updated to include paths to Qwt and GSL library files. On Windows, PATH should include the paths to Qwt and GSL DLL files.

Building on Linux

Depending the distribution, the Qt binaries may or may not be in the package manager. On Ubuntu Trusty, Qt 5.6 is available from [ppa:beineri/opt-qt-5.10.1-trusty] 1, which can be installed with the following steps:

$> sudo add-apt-repository --yes ppa:beineri/opt-qt-5.10.1-trusty
$> sudo apt-get update -qq
$> sudo apt-get install -qq libgsl0-dev qt510base qt510tools qt510svg

If Qwt 6.1 is not available in the package manager. Qwt can be built using the following commands:

$> source /opt/qt10/bin/qt10-env.sh
$> cd $HOME/..
$> svn checkout <svn://svn.code.sf.net/p/qwt/code/branches/qwt-6.1> qwt
$> cd qwt
$> qmake
$> make -j2
$> sudo make install

Here is an example of passing adding paths for Qwt headers and shared libraries, and GSL to CMake:

$> QWT_ROOT_DIR=/usr/qwt-6.1.3/lib
$> GSL_ROOT_DIR=/usr/include/gsl
$> cmake .. -DQWT_ROOT_DIR=$QWT_ROOT_DIR -DGSL_ROOT_DIR=$GSL_ROOT_DIR -DCMAKE_BUILD_TYPE=Release

Building on Windows

Building on Windows is greatly simplified by using MSYS2. After installing MSYS2, the required dependencies can be installed with the following commands:

$> pacman -Sy
$> pacman -S \
    cmake \
    mingw-w64-i686-qt5 \
    mingw-w64-x86_64-qwt-qt5 \
    mingw-w64-x86_64-gsl \
    git

Using a MinGW-w64 shell, execute the commands listed in Building.

Building on OS X

Prior to building on OS X, install homebrew. Next install the dependencies:

$> brew install qt gsl qwt cmake

Then compile:

$> git clone https://github.com/arkottke/strata.git
$> cd strata
$> mkdir build
$> cd build
$> QWT_ROOT_DIR="/usr/local/Cellar/qwt/6.1.3_4"
$> QWT_INCLUDE_DIR="/usr/local/Cellar/qwt/6.1.3_4/lib/qwt.framework/Versions/6/Headers"
$> GSL_ROOT_DIR="/usr/local/Cellar/gsl/2.5"
$> cmake .. \
    -DQWT_ROOT_DIR=$QWT_ROOT_DIR \
    -DQWT_INCLUDE_DIR=$QWT_INCLUDE_DIR \
    -DGSL_ROOT_DIR=$GSL_ROOT_DIR \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX:STRING=dist
$> cmake --build . --target install

After building, the executable can be run by issuing the following command from the build directory:

$> ./dist/usr/bin/strata

Right now (12/15/2019) on macOS Mojave homebrew installs qwt version 6.1.4 and gls version 2.6, so change the relative lines

$> QWT_ROOT_DIR="/usr/local/Cellar/qwt/6.1.4"
$> QWT_INCLUDE_DIR="/usr/local/Cellar/qwt/6.1.4/lib/qwt.framework/Versions/6/Headers"
$> GSL_ROOT_DIR="/usr/local/Cellar/gsl/2.6"

or in case of error control the version in the directory: /usr/local/Cellar/

If you find a cleaner way to specific the library paths, please let me know.

Testing

Examples for testing are located in the example/ directory.

strata's People

Contributors

arkottke avatar bert432 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

strata's Issues

AppImage

Do you offer the AppImage for download? Thanks

G/Gmax and Damping Iteration in Equivalent Linear Method

Dear developers,

I ran the test problem (Shake2000b example problem) provided in the strata v0.8.0 zip file, and exported profile-damping, profile-shear modulus, profile-max strain files. when I compare the Strata G/Gmax and damping values for each layer vs. the interpolated G/Gmax and damping values using (effective strain ratio times strain at mid-depth of each layer), the results did not match. When I interpolate G/Gmax and damping values, I use linear interpolation of log10(strain) vs. G/Gmax or damping.

Please see below screenshot. The maximum error for G/Gmax is 2% at layer 3 (depth = 15 ft) and the maximum error for damping is 5.7% also at layer 3 (depth = 15 ft). These errors become large when I run problems with larger strains. I wonder if I'm using the correct method to interpret G/Gmax and damping from effective strain (max strain at mid depth of each layer times effective strain ratio).

I also doublechecked that the auto-discretization is off.

Capture

I appreciate your help in advance.
Andrew

Strata 0.7.0 crashes

Dear Albert,
Strata 0.7.0 crashes when the maximum shear strain profile is required as output.
I don't know why but in files attached to the software there aren't problem.
I uploaded my file.

RSL.zip

Best regards,
M

Cannot install on macOS Big Sur 11.4

Hi,

I tried installing the strata on macOs 11.4, but encountered the error message below, can you please help? Thank you.

usr/local/include/QtCore/qglobal.h:675:43: error: no template named 'is_arithmetic_v' in namespace 'std'; did you mean 'is_arithmetic'?
typename = std::enable_if_t<std::is_arithmetic_v && std::is_arithmetic_v &&
~~~~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:1183:50: note: 'is_arithmetic' declared here
template struct _LIBCPP_TEMPLATE_VIS is_arithmetic
^

Transfer function in Version 399 vs Version 426

Dear Albert,
With reference to your mail, please find attached screenshots of inputs and output using version 399 and 426.
The problem is in output Ratio - 0.00m (Outcrop 2A) from 10.00m (Outcrop 2A) -Acceleration TF. hence the screenshot of that output is only. I was using Ver 399 and when I got this output it was obvious that this is wrong hence I checked for STRATA manual to check how thi TF is calculated to confirm. Also I modelled the same thin in SHAKE2000. Results of SHAKE 2000 and Ver 426 matches well.
The Soil Type Rock has G/Gmax and Damping function from Schnabel, 1973 similar to SHAKE2000.

There are some changes in other TFs also but for transfer function like above are significant where second layer is also assigned as Outcrop.
I could have sent you the STRATA files but this system is not allowing the same.

tr_ver_399
1
2
3
4
5
tr_ver_426

very high error

Good morning, I’m an italian geologist. I’m am currently using your Strata software to obtain response spenctrums at surface. I’m having some issues when I compute datas I’ve set in the software: the problem is the percentage of error which is very high and not acceptable for my project.
Here you can see the stats:
Method: equivalent linear
Maximum n° iterations: 60
Error tolerance: 2%

Starting Strata Calculation
7 Trial(s) (1 Site(s) and 7 Motion(s) )
[1 of 1] Generating site and soil properties
[1 of 7] Computing site response for motion: WAVEFORMS_SET_1\E.SRC0.00.HNN.D.IT-1976-0027.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 64.45 %
[2 of 7] Computing site response for motion: WAVEFORMS_SET_1\IT.0LAI.00.HGN.D.IT-2012-0061.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 45.52 %
[3 of 7] Computing site response for motion: WAVEFORMS_SET_1\IT.MNF.00.HGN.D.EMSC-20160824_0000006.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 186.33 %
[4 of 7] Computing site response for motion: WAVEFORMS_SET_1\IV.MDAR..HNE.D.EMSC-20160824_0000006.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 109.54 %
[5 of 7] Computing site response for motion: WAVEFORMS_SET_1\IV.T1218..HNE.D.EMSC-20161026_0000095.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 129.14 %
[6 of 7] Computing site response for motion: WAVEFORMS_SET_1\IV.TERO..HNE.D.EMSC-20160824_0000006.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 138.07 %
[7 of 7] Computing site response for motion: WAVEFORMS_SET_1\KO.DEMR..HNE.D.EMSC-20151006_0000093.ACC.MP.ASC
!! -- Maximum number of iterations reached (60). Maximum Error: 92.00 %
Computing statistics.

My question is: how can I reduce the error to zero?
Thank you

v0.5.5 - Within motion

Unable to specify the location of input motion other than at Bedrock. On selecting the 'Specify depth' window, there is no additional window to specify the input depth based on soil layering.

Please provide AppImage for download on GitHub Releases

Right now an AppImage is uploaded to transfer.sh for each build. But for users this is a bit inconvenient, since they need to look up the transfer.sh download URL in each Travis CI build log. Hardly anyone will look for it there.

Hence it would be nice if for releases and possibly also for continuous builds, the AppImage could be downloaded to the GitHub Releases page as well.

Personally I am using https://github.com/probonopd/uploadtool for this. Could easily be adapted to your needs.

Reference:
AppImage/appimage.github.io#15

wave propagation error

Hi I am getting this mesage over and over:

Starting Strata Calculation
1 Trial(s) (1 Site(s) and 1 Motion(s) )
[1 of 1] Generating site and soil properties
[1 of 1] Computing site response for motion: Desktop\RSN212_LIVERMOR_A-DVD156.AT2
Wave propagation error -- removing site.
Canceled by the user.

I did not cancel it and I assume somethig is wrong with the file. But it is AT2 formatted and i cant understand what could go wrong.

Not able to install in Windows.

Dear Developers,
I have done exactly instructed on your GitHub page still I am not able to install the software.
I am getting the following error.
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/bhawe/strata/build/CMakeFiles/CMakeOutput.log".
Please help.
After getting this error I have separately installed CMAKE using mingw-w64-x86_64-cmake as instructed in MSYS website.

Problems with Windows using suggested commands

Following the suggested command sequences found in the compiling notes for
Windows build (near bottom of page) ...completed successfully, but required separate downloads of packages then -Update to bring all packages up to date. The -Synch option would time out on download and issue fatal errors.
Back up to top of page "Building" under the MINGw64 shell and all is well until qmake ..
Cannot read C:/msys64/home/Richie/strata/strataconfig.pri: No such file or directory
WARNING: Failure to find: debug/strata_res.o
WARNING: Failure to find: release/strata_res.o

I could see there was a strataconfig.pri.example in the directory so I copied it and renamed to strataconfig.pri where I still got the warnings and then gave the following command

make -j2 release
-bash: make: command not found

There were also conflicting comments in the readme and profile files as well, so I am stuck.

I can see all my cloned files, all the MSYS2 updates are fine.

Windows 10, ASUS board, dual Xeon E5620 Quad Core, NVidia GeoForce GT730 24 Gb Ram 27 Gb free on system drive where MSYS2 is installed. Other hard drives have 6+ Tb free space.

gslcblas.dll

When I try to launch the v0.5.10 version of Strata, I receive an error message that gslcblas.dll cannot be found. Also, even though I download the *.exe for x64, it appears that the x86 version is being installed.

Crashes when using multiple ground motions and acceleration transfer function output

Strata will crash just after calculation begins when computing acceleration transfer function for 800 motions. Spectral Ratio computes fine, but when acceleration transfer function is added to desired outputs, Strata will crash before computing first motion. Also checked Fourier amplitude spectrum and has trouble computing it as well, which makes sense since transfer function won't compute. Any thought?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.