Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/loadbearing_wall/geom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def apply_spread_angle(
w1: Optional[float] = None,
x1: Optional[float] = None,
p: Optional[float] = None,
x: Optional[float] = None
x: Optional[float] = None,
) -> tuple[float, float, float, float]:
"""
Returns a dictionary representing the load described by
Expand Down Expand Up @@ -64,16 +64,16 @@ def apply_minimum_width(
"""
Returns a dictionary representing a distributed load
representing the point load converted to a distributed
load over the 'spread_width' in such a way that the
load over the 'spread_width' in such a way that the
point load will be distributed an equal amount over
half of the spread_width on each side of point load.

If the point load location is 0 or wall_length, then
the point load will be a distributed load over half
of the spread_width (since there is not room for the
other half).
other half).

Load locations between zero/wall_length and half of the
Load locations between zero/wall_length and half of the
spread_width will be linearly interpolated.
"""
assert spread_width <= wall_length
Expand Down
4 changes: 1 addition & 3 deletions src/loadbearing_wall/linear_reactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ def from_projected_loads(
)
return cls(linear_reaction_components, w0, w1, x0, x1)

def extract_reaction_string(
self, xa: float, xb: float, case: str, dir: str
):
def extract_reaction_string(self, xa: float, xb: float, case: str, dir: str):
"""
Returns a LinearReactionString representing the linear reactions that
exist between 'xa' and 'xb' extracted from self.
Expand Down
6 changes: 3 additions & 3 deletions src/loadbearing_wall/wall_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class LinearWallModel(BaseModel):
out_of_plane_dir: str = "y"
apply_spread_angle_gravity: bool = True
apply_spread_angle_inplane: bool = True
magnitude_point_key: str = 'p'
magnitude_point_key: str = "p"
magnitude_start_key: str = "w0"
magnitude_end_key: str = "w1"
location_point_key: str = 'x'
location_point_key: str = "x"
location_start_key: str = "x0"
location_end_key: str = "x1"
reverse_reaction_force_direction: bool = True
Expand Down Expand Up @@ -229,7 +229,7 @@ def spread_loads(self) -> None:
point_load[p],
point_load[x],
self.minimum_point_spread,
self.length
self.length,
)
proj[load_dir][load_case].append(
{
Expand Down