Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Introduction When designing hypersonic flight vehicles, heating is a first order concern. The skin temperatures can exceed 1 0 0 0 Kelvin and the internal
Introduction
When designing hypersonic flight vehicles, heating is a first order concern. The skin temperatures
can exceed Kelvin and the internal structures also get very hot. It is important to analyse the
expected temperatures in the vehicle so that appropriate engineering decisions are made early in the
design process. In this assignment, you will build a method using Python to estimate temperatures
on internal structures of a hypersonic vehicle. The particular vehicle for analysis is shown in Figure
with the black outline depicting the crosssection of interest. We assume there is an internal structure
at this location to which the aircraft skin attaches.
Figure : A hypersonic vehicle. Top: view from underside. Bottom: view from top. The black outline
represents the crosssection of interest.
You will use a method called "walkonspheres" to calculate the temperature at an internal point of
the cross section. This method uses a simple but powerful physical idea, and a simple but powerful
algorithm efficiency idea. The physical idea for estimating temperature at a point inside a domain
is:
take a number of random walks starting from the point and grab the temperature value at
the boundary when the walk hits the boundary;
average the boundary temperature values obtained from all random walks to get the estimate of
internal temperature.
This estimate gets better as more walks are taken. An example of a single walk is shown in Figure a Now, the random walk can be slow. We can speed this up with an efficiency idea. At any point, let's
find the largest circle that touches the boundary. Instead of a random walk using a small step, we will
take a large random jump on the circle. This moves us across the domain much more quickly. We
repeat the process until we hit or get very close to a boundary. This idea is shown in Figure b
This is why the method is named walkonspheres: we are taking a random walk across spheres. This
idea was demonstrated by Muller in In this assignment, we will work in twodimensions; we
use circles in D instead of spheres. Do not worry about the details now. The assignment tasks will
guide you to build up the method.
The assignment is divided into two parts:
Part
In this part, you will build the walkonspheres method for a square domain using procedural
programming techniques. This will allow you to understand the method and, by using a square
domain, allows us to test our code by comparing to an answer computed by an independent
method.
Part
In the second part, you will build the walkonspheres method using an objectoriented design.
This program will be more powerful than the one from Part because you will be able to compute
temperatures on geometries more complex than a square. You will apply your program to compute
a temperature on the interior of the crosssection of a hypersonic vehicle, as shown in Figure
PART : procedural program for walkonspheres on a square domain
The algorithm for performing a walkonspheres estimate on a square domain is given in Figure In
the tasks that follow, we first build pieces of the algorithm and then assemble the whole.Write a function, nearestedgesquare length which returns a tuple containing an integer
or
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started