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.
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
Related questions
Question
can you please help me with this question from the start

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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc4205fce-0b4d-4640-b3f9-45e32a33cf84%2F202c5970-4f6c-4d24-a283-4b272f998b3c%2Fg7g1qbg_processed.png&w=3840&q=75)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education

Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY