Skip to content

Commit d9f81fd

Browse files
committed
Added analysis.rst
1 parent ad72763 commit d9f81fd

File tree

3 files changed

+40
-5
lines changed

3 files changed

+40
-5
lines changed

PyNite/Plastic Beam.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232

3333
# Add a load
3434
plastic_beam.add_node_load('N3', 'FY', -0.0001, 'D')
35-
plastic_beam.add_node_load('N2', 'FY', -0.3*259.3, 'Push')
36-
plastic_beam.add_node_load('N3', 'FX', -1*259.3, 'Push')
35+
plastic_beam.add_node_load('N2', 'FY', -0.3*325.7, 'Push')
36+
plastic_beam.add_node_load('N3', 'FX', -1*325.7, 'Push')
3737

3838
# Add a load combination
3939
plastic_beam.add_load_combo('1.4D', {'D':1.4})
40-
plastic_beam.add_load_combo('Pushover', {'Push':0.05})
40+
plastic_beam.add_load_combo('Pushover', {'Push':0.01})
4141

4242
# Analyze the model
43-
plastic_beam._not_ready_yet_analyze_pushover(log=True, check_stability=False, push_combo='Pushover', max_iter=30, tol=0.01, sparse=True, combo_tags=None)
43+
plastic_beam._not_ready_yet_analyze_pushover(log=True, check_stability=False, push_combo='Pushover', max_iter=30, sparse=True, combo_tags=None)
4444

4545
# Plot the moment diagram
4646
# plastic_beam.Members['M1'].plot_shear('Fy', '1.4D')
47-
# plastic_beam.Members['M1'].plot_moment('Mz', '1.4D')
47+
plastic_beam.Members['M1'].plot_moment('Mz', '1.4D')
4848
# plastic_beam.Members['M1'].plot_deflection('dy', '1.4D')
4949

5050
# Render the model

docs/source/analysis.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
========
2+
Analysis
3+
========
4+
5+
`Pynite` offers several analysis options you can choose from. This section will help you identify the anlysis options you want to run.
6+
7+
Sparse vs. Dense Solvers
8+
========================
9+
10+
Each of the analysis options in Pynite allows you to use either a sparse or dense matrix solver. The dense matrix solver stores all the values in the stiffness matrix, whereas the sparse solver only stores non-zero values. Both solvers provide correct solutions, but each will perform differently depending on your model.
11+
12+
The sparse solver is the default solver used by Pynite. It is well suited to large models. It uses less memory and solves large models faster. It solves small models slower, but usually the difference is not noticed because the models are small anyway. In order to use it you'll need to have ``Scipy`` installed.
13+
14+
You can switch to the dense solver by passing `sparse=False` to the analysis method you are using. ``Scipy`` does not need to be installed to use the dense solver. The dense solver is well suited to small models. If you need to repeatedly solve a small model, the dense solver can offer some performance advantages over the sparse solver.
15+
16+
General Analysis
17+
================
18+
19+
Use the `FEModel3D.analyze()` method to run a general analysis. This analysis is iterative if there are tension-only or compression-only elements or supports in the model.
20+
21+
Linear Analysis
22+
===============
23+
24+
Linear analysis can be performed by using the `FEModel3D.analyze_linear()` method. This method of analysis is very fast, but is limited to models without nonlinear features such as tension-only or compression-only elements and supports, or P-:math:`\Delta` effects. This method only needs to assemble the stiffness matrix once because it uses analytical superposition of forces to generate load combinations. Superposition requires a linear model.
25+
26+
P-:math:`\Delta` Analysis
27+
=========================
28+
29+
P-:math:`\Delta` analysis is required by many building codes for frame structures. It covered in great detail here: :doc:`PDelta`
30+
31+
Other Useful Options
32+
====================
33+
34+
You can pass a few other parameters to each analysis. To check statics use `check_statics=True` in the analysis command. To check stability use the `check_stability=True` option. Note that this option does slow down solution speed.

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This documentation is just getting started and is a little bare at the moment. K
2626
node
2727
member
2828
plate
29+
analysis
2930
stability
3031
PDelta
3132
reporting

0 commit comments

Comments
 (0)