Module: StructuraidCore::Engineering::Analysis::Footing::Utils::OneWayMoment

Included in:
CentricCombinedTwoColumns
Defined in:
lib/structuraid_core/engineering/analysis/footing/utils/one_way_moment.rb

Instance Method Summary collapse

Instance Method Details

#maximum_momentObject



20
21
22
# File 'lib/structuraid_core/engineering/analysis/footing/utils/one_way_moment.rb', line 20

def maximum_moment
  moment_at(moment_inflection_point)
end

#moment_at(x_distance) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/structuraid_core/engineering/analysis/footing/utils/one_way_moment.rb', line 7

def moment_at(x_distance)
  return [] if x_distance > section_length

  moment = [
    moment_stretch_1(x_distance),
    moment_stretch_2(x_distance),
    moment_stretch_3(x_distance)
  ].select(&:nonzero?)
  return [0] if moment.empty?

  moment
end

#moment_inflection_pointObject



24
25
26
# File 'lib/structuraid_core/engineering/analysis/footing/utils/one_way_moment.rb', line 24

def moment_inflection_point
  -reaction_at_first_column / solicitation_load
end