rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
ellipt_compliant_plot_sim_data.m
1 function phs = ellipt_compliant_plot_sim_data(model,model_data,sim_data,params)
2 % function plots the results of the detailed simulation
3 %
4 %input: model:
5 % model_data: grid information (p,e,t)
6 % sim_data:
7 %output: plot
8 
9 %shortcuts
10 p=model_data.grid.p;
11 e=model_data.grid.e;
12 t=model_data.grid.t;
13 u=sim_data.u;
14 %sim_data.plot_title=
15 ti = 'Plot of a detailed simulation';
16 
17 phs = [];
18 phs2 = [];
19 
20 if model.plot_isolines == 1
21  phs = pdeplot(p,e,t,'xydata',u,'colormap','jet', 'contour','on', 'title',ti);
22 % disp('plotted solution isolines');
23 % keyboard;
24  % das handle succhen, das eine typ 'line' ist und isempty(get(ph),'Zdata');
25 
26  htypes=get(phs(:),'Type');
27  checkline=strcmp('line',htypes);
28  lineindex=find(checkline==1);
29 
30  hline=phs(lineindex);
31  for i=1:length(hline)
32  checkcont(i)=isempty(get(hline(i),'ZData'))';
33  end
34 
35  contindex=find(checkcont == 0);
36 
37  hcont=hline(contindex);
38 
39  %%%%definition of contour lines
40  set(hcont,'LineStyle','-')
41  set(hline(find(checkcont==1)),'LineStyle',':','Linewidth',1)
42 else
43  phs = pdeplot(p,e,t,'xydata',u,'colormap','jet', 'title',ti);
44  disp('plotted solution, no isolines');
45 end
46 
47 if model.plot_mesh == 1
48  figure;
49  phs2 = pdemesh(p,e,t);
50  disp('plotted mesh');
51 end
52 
53 phs = [phs(:); phs2(:)];
54 
55 %keyboard;
56 
57 
58 
59 
60 
61 
62