Tintrp = interpolateTemperature(thermalresults,xq,yq) returns the interpolated temperature values at the 2-D points specified in xq and yq. This syntax is valid for both the steady-state and transient thermal models.
Tintrp = interpolateTemperature(thermalresults,xq,yq,zq) returns the interpolated temperature values at the 3-D points specified in xq, yq, and zq. This syntax is valid for both the steady-state and transient thermal models.
Tintrp = interpolateTemperature(thermalresults,querypoints) returns the interpolated temperature values at the points in querypoints. This syntax is valid for both the steady-state and transient thermal models.
Tintrp = interpolateTemperature(___,iT) returns the interpolated temperature values for the transient thermal model at times iT.
Assuming that this is an iron plate, assign a thermal conductivity of 79.5 W/(m*K). Because this is a steady-state model, you do not need to assign mass density or specific heat values.
Apply a constant temperature of 300 K to the bottom of the plate (edge 3). Also, assume that the top of the plate (edge 1) is insulated, and apply convection on the two sides of the plate (edges 2 and 4).
The solver finds the values of temperatures and temperature gradients at the nodal locations. To access these values, use results.Temperature, results.XGradients, and so on. For example, plot the temperatures at nodal locations.
Interpolate the resulting temperatures to a grid covering the central portion of the geometry, for x and y from -0.5 to 0.5.
Reshape the Tintrp vector and plot the resulting temperatures.
Assuming that this is a copper block, the thermal conductivity of the block is approximately 4 W/(cm*K).
Apply a constant temperature of 373 K to the left side of the block (edge 1) and a constant temperature of 573 K at the right side of the block.
The solver finds the values of temperatures and temperature gradients at the nodal locations. To access these values, use results.Temperature, results.XGradients, and so on. For example, plot temperatures at nodal locations.
Create a grid specified by x, y, and z coordinates and interpolate temperatures to the grid.
Create a contour slice plot for fixed values of the y coordinate.
Create a contour slice plot for four fixed values of the z coordinate.
Solve a 2-D transient heat transfer problem on a square domain and compute temperatures at the convective boundary.
Set the initial conditions: uniform room temperature across domain and higher temperature on the left edge.
Define a line at convection boundary and compute temperature gradients across that line.
Plot the interpolated temperature Tintrp along the x axis for the following values from the time interval tlist.
Solution of thermal problem, specified as a SteadyStateThermalResults object or a TransientThermalResults object. Create thermalresults using solve.
x-coordinate query points, specified as a real array. interpolateTemperature evaluates temperatures at the 2-D coordinate points [xq(i),yq(i)] or at the 3-D coordinate points [xq(i),yq(i),zq(i)]. So xq, yq, and (if present) zq must have the same number of entries.
interpolateTemperature converts query points to column vectors xq(:), yq(:), and (if present) zq(:). It returns temperatures in the form of a column vector of the same size. To ensure that the dimensions of the returned solution is consistent with the dimensions of the original query points, use reshape. For example, use Tintrp = reshape(Tintrp,size(xq)).
y-coordinate query points, specified as a real array. interpolateTemperature evaluates temperatures at the 2-D coordinate points [xq(i),yq(i)] or at the 3-D coordinate points [xq(i),yq(i),zq(i)]. So xq, yq, and (if present) zq must have the same number of entries. Internally, interpolateTemperature converts query points to the column vector yq(:).
z-coordinate query points, specified as a real array. interpolateTemperature evaluates temperatures at the 3-D coordinate points [xq(i),yq(i),zq(i)]. So xq, yq, and zq must have the same number of entries. Internally, interpolateTemperature converts query points to the column vector zq(:).
Query points, specified as a real matrix with either two rows for 2-D geometry, or three rows for 3-D geometry. interpolateTemperature evaluates temperatures at the coordinate points querypoints(:,i), so each column of querypoints contains exactly one 2-D or 3-D query point.
Temperatures at query points, returned as an array. For query points that are outside the geometry, Tintrp = NaN.