Skip to content

Commit

Permalink
Better material handling and extensibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccomb committed Dec 13, 2023
1 parent 6928b3e commit 4cd8646
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions tests/example.trs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This block defines materials used in subsequent member definitions. The
# order of hte columns is:
# S name, density, elastic modulus, yield strength
S A36 7800.0 200_000_000_000.0 250_000_000.0
S A36_Steel 7800.0 200_000_000_000.0 250_000_000.0

# This block defines joints. The order of the columns is
# J X-coord, Y-coord, Z-coord, X-support, Y-support, Z-support
Expand All @@ -23,25 +23,25 @@ J 4.5 1.0 0.0 0 0 1

# This block defines members. The order of the columns is
# M joint1, joint2, material, shape, {parameters for shape, t=X, etc.}
M 0 1 A36 pipe r=0.02 t=0.002
M 1 2 A36 pipe r=0.02 t=0.002
M 2 3 A36 pipe r=0.02 t=0.002
M 3 4 A36 pipe r=0.02 t=0.002
M 4 5 A36 pipe r=0.02 t=0.002
M 6 7 A36 pipe r=0.02 t=0.002
M 7 8 A36 pipe r=0.02 t=0.002
M 8 9 A36 pipe r=0.02 t=0.002
M 9 10 A36 pipe r=0.02 t=0.002
M 0 6 A36 pipe r=0.02 t=0.002
M 6 1 A36 pipe r=0.02 t=0.002
M 1 7 A36 pipe r=0.02 t=0.002
M 7 2 A36 pipe r=0.02 t=0.002
M 2 8 A36 pipe r=0.02 t=0.002
M 8 3 A36 pipe r=0.02 t=0.002
M 3 9 A36 pipe r=0.02 t=0.002
M 9 4 A36 pipe r=0.02 t=0.002
M 4 10 A36 pipe r=0.02 t=0.002
M 10 5 A36 pipe r=0.02 t=0.002
M 0 1 A36_Steel pipe r=0.02 t=0.002
M 1 2 A36_Steel pipe r=0.02 t=0.002
M 2 3 A36_Steel pipe r=0.02 t=0.002
M 3 4 A36_Steel pipe r=0.02 t=0.002
M 4 5 A36_Steel pipe r=0.02 t=0.002
M 6 7 A36_Steel pipe r=0.02 t=0.002
M 7 8 A36_Steel pipe r=0.02 t=0.002
M 8 9 A36_Steel pipe r=0.02 t=0.002
M 9 10 A36_Steel pipe r=0.02 t=0.002
M 0 6 A36_Steel pipe r=0.02 t=0.002
M 6 1 A36_Steel pipe r=0.02 t=0.002
M 1 7 A36_Steel pipe r=0.02 t=0.002
M 7 2 A36_Steel pipe r=0.02 t=0.002
M 2 8 A36_Steel pipe r=0.02 t=0.002
M 8 3 A36_Steel pipe r=0.02 t=0.002
M 3 9 A36_Steel pipe r=0.02 t=0.002
M 9 4 A36_Steel pipe r=0.02 t=0.002
M 4 10 A36_Steel pipe r=0.02 t=0.002
M 10 5 A36_Steel pipe r=0.02 t=0.002

# This block defines loads. The order of the columns is:
# L joint, x-load, y-load, z-load
Expand Down
2 changes: 1 addition & 1 deletion trussme/physical_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Material properties
MATERIALS: list[Material] = [
{
"name": "A36",
"name": "A36_Steel",
"rho": 7800.0,
"E": 200*pow(10, 9),
"Fy": 250*pow(10, 6)
Expand Down

0 comments on commit 4cd8646

Please sign in to comment.