Question
Please write in the Julia Language. Consider a steel rod. Write a program which will calculate the temperature profile in the rod using a finite difference scheme. The user should enter the length of the rod (L), the value for k (= 65 W/mK), and a value for q in W/m^3. The user should also enter the number of intervals N ,(so you can calculate Δx=L/N). The user should also enter the end temperatures.
Your program should create the matrix resulting from the finite difference solution and solve it. It should print out the temperature profile. (just a list of T at x).
You also have a putative analytical solution (mine). You should compare your numerical answer to the analytical.
You will need to create the matrix in a double nested For loop. Do NOT just enter the values inside the code.

courseware.ku.edu CPE 325 MP3 Consider a steel rod. Write a program which will calculate the temperature profile in the rod u
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Stem re 2 Firs we hawe to determine D matrin m, o e o m 1 3 1s 3 25 5.5 b.S 1も25 5.37so.ぐ! 1.b7s 3 2.9 19.1875 5-523 -m t-vb+254 o(34.42-330) 429, 52 kg (0.8) 429 Sa-we 429.52410 tHo Head m 1994 ®.hle know, We peank 3 Scanned by CamScanner

Add a comment
Know the answer?
Add Answer to:
Please write in the Julia Language. Consider a steel rod. Write a program which will calculate th...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider a steel rod. Write a program which will calculate the temperature profile in the rod usi...

    write a program which will calculate the temperature... Consider a steel rod. Write a program which will calculate the temperature profile in the rod using a finite difference scheme. The user should enter the length of the rod (L), the value for k 65 W/mK), and a value for q in W/m*3. The user should also enter the number of intervals N ,(so you can calculate Ax L/N). The user should also enter the end temperatures. Your program should create...

  • PLEASE USE MATLAB. THANK YOU! Consider the following polynomial equation: ax3 bx2 cx d 0 Write a program that allows th...

    PLEASE USE MATLAB. THANK YOU! Consider the following polynomial equation: ax3 bx2 cx d 0 Write a program that allows the user to enter the coefficients a,b,c and d and the search range needed for the Bisection method. The program should stop when the maximum error is less than 0.01. The program should display the root and also have a condition to stop when no roots are found in the range. Consider the following polynomial equation: ax3 bx2 cx d...

  • Write a complete MIPS assembly language program that implements the following pseudocode. program h2 define global...

    Write a complete MIPS assembly language program that implements the following pseudocode. program h2 define global integer variables w, x, y, z -- in the .data section function main() SysPrintStr("Enter an integer >= 0 for w? ") w ← SysReadInt() SysPrintStr("Enter an integer >= 0 for x? ") x ← SysReadInt() SysPrintStr("Enter an integer < 0 for y? ") y ← SysReadInt() z ← 16(w + x) - (3 × -y mod 7) SysPrintStr("z = ") SysPrintInt(z) SysExit() end function...

  • In python language Write a program that lets the user play the game of Rock, Paper,...

    In python language Write a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows: 1. When the program begins, a random number in the range of 1 and 3 is generated. 1 = Computer has chosen Rock 2 = Computer has chosen Paper 3 = Computer has chosen Scissors (Dont display the computer's choice yet) 2. The user enters his or her choice of “Rock”, “Paper", “Scissors" at...

  • -----------Python program------------------- Instructions: For this assignment, you will write complete a program that allows a customer...

    -----------Python program------------------- Instructions: For this assignment, you will write complete a program that allows a customer to plan for retirement. Part 2: Generate a Retirement Planning Table: It's hard to decide how much you need to save for retirement. To help your customer visualize how long her nest egg will last, write a program that allows the user to generate a retirement planning table showing the number of months the savings will last for various combinations of starting account balance...

  • Today you are to write a Java program that will prompt for and read 2 words...

    Today you are to write a Java program that will prompt for and read 2 words of equal length entered by the user, and create a new word which contains the last letter of the 1st word, the last letter of the 2nd word, followed by the second to last character of the 1st word, followed by the second to last character of the 2nd word and so on. Be sure to use the same format and wording as in...

  • Introduction: In this lab, you will write a MIPS program to read in (up to) 50...

    Introduction: In this lab, you will write a MIPS program to read in (up to) 50 integer values from the user, store them in an array, print out the amay, one number per line, reverse the elements in the array and finally print out the elements in the just-reversed) array. Feel free to do this lab and all assembly programming labs) in Windows. You must use MARS Getting started: l. In MARS, create a new assembly file with the name...

  • Write a C++ program to solve: The completed program should include the following: —Program input and...

    Write a C++ program to solve: The completed program should include the following: —Program input and output —Allow the user to input the starting, stopping and increment values for the insulation thickness and the air temperature. Also, at the end of the program, provide an opportunity for the user to use the program again without having to re-execute the program (ie. Ask them if they want to use the program again). —your program must find and output the value of...

  • Write a program (python) to calculate and plot the position and the velocity of a linear...

    Write a program (python) to calculate and plot the position and the velocity of a linear piston connected to a crank through a connecting rod as a function of crank angle. The crank shaft is rotating at a constant angular velocity. The equation for the piston position and velocity is respectively given by ? = ? ???? + √? 2 − ? 2???2? ? = −? ? ???? − ? 2 ? ???? ???? √? 2 − ? 2???2? where...

  • Just do program 6 using c++ which are printf and scanf. Please don’t use cout and...

    Just do program 6 using c++ which are printf and scanf. Please don’t use cout and cin. Program 4: A slot machine has three windows. A random fruit is picked for each window from cherry apple, lemon, and orange. If all three windows match, the user wins 8 times the bet amount. If the first two windows only are cherries, the user wins 3 times the bet amount. If the first window is a cherry and the second window is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT