Question

Create a Matlab code that computes the displacements and stresses for any 4 noded bilienar element...

Create a Matlab code that computes the displacements and stresses for any 4 noded bilienar element as seen in class. Assume plane stress. For a problem of your choice (using one element only) with at least two unconstrained dofs

Homework Answers

Answer #1


nsd = 2; % Number of space dimensions
ndof = 2; % Number of degrees-of-freedom per node
nnp = 3; % Number of nodal points
nel = 2; % Number of elements
nen = 2; % Number of element nodes
neq = ndof*nnp; % Number of equations
f = zeros(neq,1); % Initialize force vector
d = zeros(neq,1); % Initialize displacement matrix
K = zeros(neq); % Initialize stiffness matrix
% Element properties
CArea = [1 1 ]; % Elements area
leng = [1 sqrt(2)]; % Elements length
phi = [90 45 ]; % Angle
E = [1 1 ]; % Young’s Modulus
% prescribed displacements
% displacement d1x d1y d2x d2y
d = [0 0 0 0]';
nd = 4; % Number of prescribed displacement degrees-of-freedom
% prescribed forces
f(5) = 10; % Force at node 3 in the x-direction
f(6) = 0; % Force at node 3 in the y-direction
% output plots
plot_truss = 'yes';
plot_nod = 'yes';
% mesh Generation
truss_mesh_2_2;

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1...
Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1 on the super- and sub-diagonal. Then replace the (1,1) element of A with a 1. (Make your commands capable of handling an arbitary sized NxN matrix by first defining N=5, then using the variable N as the size in each of the commands.)
Exercise 1: Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal,...
Exercise 1: Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1 on the super- and sub-diagonal. Then replace the (1,1) element of A with a 1. (Make your commands capable of handling an arbitary sized NxN matrix by first defining N=5, then using the variable N as the size in each of the commands.)
I have trouble in my code with - Create and append the fancySheet link element to...
I have trouble in my code with - Create and append the fancySheet link element to the document head - Create and append figBox element to element with id box - Populate the figure box with preview images of the five fancy style sheets I don't understand what went wrong. New Perspectives HMTL5, CSS3, and JavaScript T12 Case Problem 1: New Accents Photography JavaScript File Event Listener Go to the na_styler.js file in your editor. Add an event listener that...
Java code Problem 1. Create a Point class to hold x and y values for a...
Java code Problem 1. Create a Point class to hold x and y values for a point. Create methods show(), add() and subtract() to display the Point x and y values, and add and subtract point coordinates. Tip: Keep x and y separate in the calculation. Create another class Shape, which will form the basis of a set of shapes. The Shape class will contain default functions to calculate area and circumference of the shape, and provide the coordinates (Points)...
Only use C for this problem. To start, create a structure with arrays. Any structure you...
Only use C for this problem. To start, create a structure with arrays. Any structure you decide on is ok, just create your own. That said, you are required to meet these guidelines: 1. You must give the structure you make a name. Any is ok 2. Your structure must have at least 3 members. 3. Two of those members must be arrays. 4. Your members need to be of at least two different data-types. To clarify, your members cannot...
using matlab please present code for the following (ALL PARTS PLEASE AND THANK YOU) 1. No...
using matlab please present code for the following (ALL PARTS PLEASE AND THANK YOU) 1. No Input/No Output Write a function that has no input and no outputs. This function will simply display some text when it is called. (this is my code, are there suggestions for improvements?) function Display() disp('some text') end 2. 1 Input/No Outputs Write a function with one input and no outputs. This function will simply display a variable that is provided as an input argument....
This is a MATLAB question FOR ELECTRICAL AND ELECTRONIC ENGINEERING Implement a design that solve the...
This is a MATLAB question FOR ELECTRICAL AND ELECTRONIC ENGINEERING Implement a design that solve the problem below in Simulink; KNUST runs on four (4) energy sources, Hydro from ECG, Solar, Thermal and Biomass. The source of power that is selected at any time, is controlled by two (2) sensors, A and B. Hydro is selected if both sensor A and B is on. Solar is selected when sensor only A is on, Thermal is selected when only sensor B...
Design a class with the following requirements: 1- give the class a name from your choice....
Design a class with the following requirements: 1- give the class a name from your choice. 2- write some code that creates three instance variables, choose a name and type for each one of them. (must have two private and one public variables) 3- Initialize the variables using two different constructors. 4- Use mutator and accessor methods (set and get) for the private data members. 5- Display the value of each member variable using a method. 6- In the main,...
CODE IN JAVA PROGRAMMING A resistor is an electronic component that impedes the flow of current....
CODE IN JAVA PROGRAMMING A resistor is an electronic component that impedes the flow of current. The amount of impedance (ignoring any inductive or capacitive qualities) is called resistance and is defined in ohms. You can combine two resistors together in parallel (both leads--wires coming out of the device--of the resistor are wired together) or in series (one lead of one is connected to only one lead of the other) to create a new effective resistance. The formula for two...
Create an interface named Turner, with a single method called turn(). Then create 4 classes: 1-...
Create an interface named Turner, with a single method called turn(). Then create 4 classes: 1- Leaf: that implements turn(), which changes the color of the Leaf object and returns true. If for any reason it is unable to change color, it should return false (you can come up with a reason for failure). The new color can be determined at random. 2- Document: that implements turn(), which changes the page on the document to the next page and returns...