1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mariulka [41]
3 years ago
6

Create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar N, scalars L and W in feet and scalars T1 a

nd T2 in degrees Fahrenheit. It will output a matrix T which is the temperature of each x and y locations. T will have the number of columns equal to the number of elements in x and rows equal to the number of elements in y. Though this can be done without loops (perhaps more efficiently), your program must use a nested loop.
Engineering
1 answer:
Shalnov [3]3 years ago
3 0

Answer:

clear, clc

prob3_5([1,2,3],[6,5,7],12,11,22,55,76)

function T=prob3_5(x,y,N,L,W,T1,T2)

w=zeros(1,length(x));

for n=1:2:N

for i=1:length(x)

w(i)=w(i)+(2/pi)*(2/n)*sin(n*pi*x(i)/L).*sinh(n*pi*y(i)/L)/sinh(n*pi*W/L);

end

end

T=(T2-T1)*w+T1;

end

Explanation:

Please input the commands into MATLAB

You might be interested in
Air exits a compressor operating at steady-state, steady-flow conditions at 150 oC, 825 kPa, with a velocity of 10 m/s through a
ioda

Answer:

a) Qe = 0.01963 m^3 / s , mass flow rate m^ = 0.1334 kg/s

b) Inlet cross sectional area = Ai = 0.11217 m^2 , Qi = 0.11217 m^3 / s    

Explanation:

Given:-

- The compressor exit conditions are given as follows:

                  Pressure ( Pe ) = 825 KPa

                  Temperature ( Te ) = 150°C

                  Velocity ( Ve ) = 10 m/s

                  Diameter ( de ) = 5.0 cm

Solution:-

- Define inlet parameters:

                  Pressure = Pi = 100 KPa

                  Temperature = Ti = 20.0

                  Velocity = Vi = 1.0 m/s

                  Area = Ai

- From definition the volumetric flow rate at outlet ( Qe ) is determined by the following equation:

                   Qe = Ae*Ve

Where,

           Ae: The exit cross sectional area

                   Ae = π*de^2 / 4

Therefore,

                  Qe = Ve*π*de^2 / 4

                  Qe = 10*π*0.05^2 / 4

                  Qe = 0.01963 m^3 / s

 

- To determine the mass flow rate ( m^ ) through the compressor we need to determine the density of air at exit using exit conditions.

- We will assume air to be an ideal gas. Thus using the ideal gas state equation we have:

                   Pe / ρe = R*Te  

Where,

           Te: The absolute temperature at exit

           ρe: The density of air at exit

           R: the specific gas constant for air = 0.287 KJ /kg.K

             

                ρe = Pe / (R*Te)

                ρe = 825 / (0.287*( 273 + 150 ) )

                ρe = 6.79566 kg/m^3

- The mass flow rate ( m^ ) is given:

               m^ = ρe*Qe

                     = ( 6.79566 )*( 0.01963 )

                     = 0.1334 kg/s

- We will use the "continuity equation " for steady state flow inside the compressor i.e mass flow rate remains constant:

              m^ = ρe*Ae*Ve = ρi*Ai*Vi

- Density of air at inlet using inlet conditions. Again, using the ideal gas state equation:

               Pi / ρi = R*Ti  

Where,

           Ti: The absolute temperature at inlet

           ρi: The density of air at inlet

           R: the specific gas constant for air = 0.287 KJ /kg.K

             

                ρi = Pi / (R*Ti)

                ρi = 100 / (0.287*( 273 + 20 ) )

                ρi = 1.18918 kg/m^3

Using continuity expression:

               Ai = m^ / ρi*Vi

               Ai = 0.1334 / 1.18918*1

               Ai = 0.11217 m^2          

- From definition the volumetric flow rate at inlet ( Qi ) is determined by the following equation:

                   Qi = Ai*Vi

Where,

           Ai: The inlet cross sectional area

                  Qi = 0.11217*1

                  Qi = 0.11217 m^3 / s    

- The equations that will help us with required plots are:

Inlet cross section area ( Ai )

                Ai = m^ / ρi*Vi  

                Ai = 0.1334 / 1.18918*Vi

                Ai ( V ) = 0.11217 / Vi   .... Eq 1

Inlet flow rate ( Qi ):

                Qi = 0.11217 m^3 / s ... constant  Eq 2

               

6 0
3 years ago
An insulated, vertical piston-cylinder device initially contains 10kg of water, 6kg of which is in the vapor phase. The mass of
Alexeev081 [22]

Answer:

a)120C

b)29kg

Explanation:

Hello!

To solve this exercise follow the steps below

1. we will call 1 the initial state, 2 the steam that enters and 3 the final state

2. We find the quality of the initial state, dividing the mass of steam by the total mass.

q1=\frac{6kg}{10kg} =0.6

3 Find the internal energy in the three states using thermodynamic tables

note:Through laboratory tests, thermodynamic tables were developed, these allow to know all the thermodynamic properties of a substance (entropy, enthalpy, pressure, specific volume, internal energy etc ..)  

through prior knowledge of two other properties such as pressure and temperature.  

u1=IntEnergy(Water;x=0,6(quality);P=200kPa) =1719KJ/kg

u2=IntEnergy(Water;t=350;P=5000kPa) =2808KJ/kg

u3=IntEnergy(Water;x=1;P=200kPa) =2529KJ/kg

4. use the internal energy and pressure to find the temperature in state 3, using thermodynamic tables

T3=Temperature(Water;P=200kPa;u=u3=2529KJ/kg)=120C

5. Use the first law of thermodynamics in the system, it states that the initial energy in a system must be equal to the final

m1u1+m2u2=(m1+m2)u3

where

m1=inital mass=10kg

m2=the mass of the steam that has entered.

solve for m2

(m1)(u1-u3)=(m2)(u3)-(m2)(u2)

m2=m1\frac{u1-u3}{u3-u2} =10\frac{1719-2529}{2529-2808} =29kg

7 0
3 years ago
.The war of the currents in the 1880's involved Thomas Edison and Nikola Tesla on a reality TV show stranded on an island. Each
natali 33 [55]

Answer:

True

Explanation:

Nikola Tesla defeated Thomas Edison in the AC/DC battle of electric current.

7 0
3 years ago
A 35-ft³ rigid tank has propane at 25 psia, 540 R and is connected by a valve to another tank of 20 ft³ with propane at 40 psia,
gulaghasi [49]

Answer:

final pressure = 200KPa or 29.138psia

Explanation:

The detailed step by step calculations with appropriate conversion factors applied are as shown in the attachment.

8 0
3 years ago
I = 48 mA, R = 1125 2. What is Vs ?
german
54 volts

Ohms law. E= I x R
6 0
4 years ago
Other questions:
  • What is a construction worker with limited skills called?
    12·1 answer
  • What is a two stroke engine and what is a four stroke engine, please keep the definitions as simple as can be and please explain
    8·2 answers
  • Technician A says that most states will allow landfills to dispose of whole tires with a permit. Technician B says that landfill
    5·1 answer
  • A driver is traveling at 52 mi/h on a wet road. an object is spotted on the road 415 ft ahead and the driver is able to come to
    5·2 answers
  • (Signal Property) Under what condition is a discrete-time signal x[????] or a continuous-time signal x(????) periodic? Determine
    5·1 answer
  • In the High Low Logic Index low levels are bearish and high levels are bullish, generally True False
    13·1 answer
  • Hỗ trợ mình với được không các bạn
    13·1 answer
  • The website of a bank that an organization does business with has been reported as untrusted by the organization's web browser.
    12·1 answer
  • You must yield the right-of-way to all of the following EXCEPT:
    8·1 answer
  • A common boundary-crossing problem for engineers is when their home country' values come into sharp contrast with the host count
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!