A cantilever beam is under a concentrate load P (N), the beam has a length of L (m). P L y Write a function to find the internal shear force V(x) (N) and moment M(x) (N*m) at any given position along the beam x = a.

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question

can you please help me with this question from the start

A cantilever beam is under a concentrate load P (N), the beam has a length of L (m).
P
L
y
Write a function to find the internal shear force V(x) (N) and moment M(x) (N*m) at any given position along the beam x = a.
Transcribed Image Text:A cantilever beam is under a concentrate load P (N), the beam has a length of L (m). P L y Write a function to find the internal shear force V(x) (N) and moment M(x) (N*m) at any given position along the beam x = a.
In [65]: # Complete the function given the variables P, L, a and return the shear force as "Va" and internal moment as
"Ma".
## Don't change the predefined content, only fill your code in the region "YOUR CODE"
def BeamInternal(P, L, a):
' 'Compute internal shear force V(x) and moment M(x) at any given position x=a.
Parameters
: Load
L : Beam length
: Arbitrary position along the beam x=a
a
Step 1: Cut the beam at any position x=a, and determine the shear force and moment formula
Step 2: Write down the internal force at given position V(x=a) and M(x=a)
# def V(x):
P = 10 # Assuming Load to rod to be 10N
L = 10 # Assuming length of rod to be 10m
if(x>10 and x<0):
return 'Not in the rod'
else:
return -P # As shear force inside rod is -P
def M(x):
P = 10 # Assuming Load to rod to be 10N
L = 10 # Assuming length of rod on positive face to be 10m
if(x>10 and x<0):
return
'Not in the rod'
else:
return P* (x-L) # As bending moment inside rod on positive face is P(x-L)
print (V(2))
print(M(2))
return Va, Ma # # Make sure in your solution, you use the same name
"Va" and "Ma" for the outputs. Here, there are
File "/tmp/ipykernel_55/3866599776 .py", line 41
return Va, Ma # # Make sure in your solution, you use the same name "Va" and "Ma" for the outputs. Here, there ar
e two outputs
IndentationError: unexpected indent
Transcribed Image Text:In [65]: # Complete the function given the variables P, L, a and return the shear force as "Va" and internal moment as "Ma". ## Don't change the predefined content, only fill your code in the region "YOUR CODE" def BeamInternal(P, L, a): ' 'Compute internal shear force V(x) and moment M(x) at any given position x=a. Parameters : Load L : Beam length : Arbitrary position along the beam x=a a Step 1: Cut the beam at any position x=a, and determine the shear force and moment formula Step 2: Write down the internal force at given position V(x=a) and M(x=a) # def V(x): P = 10 # Assuming Load to rod to be 10N L = 10 # Assuming length of rod to be 10m if(x>10 and x<0): return 'Not in the rod' else: return -P # As shear force inside rod is -P def M(x): P = 10 # Assuming Load to rod to be 10N L = 10 # Assuming length of rod on positive face to be 10m if(x>10 and x<0): return 'Not in the rod' else: return P* (x-L) # As bending moment inside rod on positive face is P(x-L) print (V(2)) print(M(2)) return Va, Ma # # Make sure in your solution, you use the same name "Va" and "Ma" for the outputs. Here, there are File "/tmp/ipykernel_55/3866599776 .py", line 41 return Va, Ma # # Make sure in your solution, you use the same name "Va" and "Ma" for the outputs. Here, there ar e two outputs IndentationError: unexpected indent
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Dimensional Analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY