MATLAB PARTIAL DIFFERENTIAL EQUATION TOOLBOX 1 Bedienungsanleitung Seite 12

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 18
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 11
12
window select floating from the pull-down menu and set the number of decimal places to 0. In
the Color Options window set the number of chart colors to 10. Finally, click the green check
mark to close the windows and generate the plot. Note that the heat flux is extremely high in the
upper corners where the temperature jumps from 0 ˚C to 100 ˚C as expected.
To create a report that documents the settings for your simulation and your results, from the
toolbar at the top of the window use the Simulation pull-down menu to select Report. In the
Report Options window for the Report sections select the following: Model Information, Study
Properties, Material Properties, Thermal Loads, Mesh Information, and Study Results. Also, in
the Report Options window enter a Report path and Document name and click Publish. A
Generating Report window will open to indicate progress. When finished Microsoft Word will
open a document that includes the requested simulation setting information and results. Note that
in the Simulation Tree there is now a Report folder. You can right click on the report you just
created and select Define from the pull-down menu to change your options.
To export the data for post processing in MATLAB, in the Simulation Tree in the Results folder
right click on Thermal1 and select Show and then Probe from the pop-up menu. In the Options
window select On selected entities. In the Results window for Faces, Edges, or Vertices select
the front face of the brick in the drawing window and click Update. Note that for all nodes the
temperature and location are listed in the Results window and the statistics are listed in the
Summary window. In the Report Options window click the Save button and save the file as
“Steady2D.csv(comma separated text data file). Next, use a MATLAB script (saved in the
same folder as the data file) with the following lines to import the temperature and location data
into vectors named T, x, and y and to then plot the nodal data on a regular mesh:
fileID = fopen('Steady2D.csv'); % open data file
% scan text file: specify format, skip header lines, specify delimiter
C = textscan(fileID, '%d %f %f %f %f %s', 'HeaderLines', 9, 'Delimiter', ',');
fclose(fileID); % close data file
[N, T, x, y, z, Comp] = C{1, :}; % define variables stored in cell array
Nx = 20; Ny = 20; % number of points in x and y directions
xmax = max(x); ymax = max(y); % maximum values for for x and y directions
xgv = 0:xmax/Nx:xmax; % regular mesh vector in x-direction
ygv = 0:ymax/Ny:ymax; % regular mesh vector in y-direction
[xq, yq] = meshgrid(xgv, ygv); % create regular mesh arrays
Tq = griddata(x, y, T, xq, yq); % interpolate nodal data onto regular mesh
contourf(xq, yq, Tq); % contour plot of data
Seitenansicht 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 18

Kommentare zu diesen Handbüchern

Keine Kommentare