Changeset 62 for palm/trunk/DOC/app/chapter_4.5.4.html
- Timestamp:
- Mar 13, 2007 2:52:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/DOC/app/chapter_4.5.4.html
r54 r62 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html> 3 <head> 4 <meta http-equiv="CONTENT-TYPE" 5 content="text/html; charset=windows-1252"> 6 <title>PALM chapter 4.5.4</title> 7 <meta name="GENERATOR" content="StarOffice 7 (Win32)"> 8 <meta name="AUTHOR" content="Siegfried Raasch"> 9 <meta name="CREATED" content="20041027;10130843"> 10 <meta name="CHANGED" content="20041117;11420847"> 11 <meta name="KEYWORDS" content="parallel LES model"> 12 <style> 13 <!-- 14 @page { size: 21cm 29.7cm } 15 --> 16 </style> 17 </head> 18 <body dir="ltr" lang="en-US"> 19 <h4 style="line-height: 100%;"><font size="4">4.5.4 Plots of 2d cross 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM 4 chapter 4.5.4</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20041027;10130843"> <meta name="CHANGED" content="20041117;11420847"> <meta name="KEYWORDS" content="parallel LES model"> <style> 5 <!-- 6 @page { size: 21cm 29.7cm } 7 --> 8 </style></head> 9 10 <body style="direction: ltr;" lang="en-US"><h4 style="line-height: 100%;"><font size="4">4.5.4 11 Plots of 2d cross 20 12 sections with iso2d</font></h4> 21 <p style="line-height: 100%;">PALM permits simultaneous output xy, xz 13 <p style="line-height: 100%;">PALM permits simultaneous 14 output xy, xz 22 15 and 23 16 yz cross sections. Since the output of all three cross section plots is … … 25 18 <p style="line-height: 100%;">Output of xy cross 26 19 sections requires to set at least two parameters: first, the temporal 27 interval of the output time (run parameter <a 28 href="chapter_4.2.html#dt_do2d_xy"><u>dt_do2d_xy)</u></a><span 29 style="text-decoration: none;"> 20 interval of the output time (run parameter <a href="chapter_4.2.html#dt_do2d_xy"><u>dt_do2d_xy)</u></a><span style="text-decoration: none;"> 30 21 and second<span style="text-decoration: none;"></span> 31 the names of the quantities for which cross section output is wanted</span><span 32 style="text-decoration: none;"><span style="text-decoration: none;"> (<a 33 href="chapter_4.2.html#data_output">data_output</a></span></span>). 22 the names of the quantities for which cross section output is wanted</span><span style="text-decoration: none;"><span style="text-decoration: none;"> (<a href="chapter_4.2.html#data_output">data_output</a></span></span>). 34 23 The string <span style="font-style: italic;">'_xy'</span> 35 24 must be appended to these name strings in either case. Output times … … 37 26 directly but only via the output time interval, starting from the 38 27 beginning of the initial 3d run (t=0, but no cross sections are 39 written at the time t=0; exceptions see <a 40 href="chapter_4.2.html#do2d_at_begin">do2d_at_begin</a>). 28 written at the time t=0; exceptions see <a href="chapter_4.2.html#do2d_at_begin">do2d_at_begin</a>). 41 29 The exact location (height level) of the cross 42 section(s) can be defined with run parameter <a 43 href="chapter_4.2.html#section_xy">section_xy</a>. 44 If no values have been assigned to <b>data_output</b> and <b>section_xy</b>or30 section(s) can be defined with run parameter <a href="chapter_4.2.html#section_xy">section_xy</a>. 31 If no values have been assigned to <b>data_output</b> and <b>section_xy</b> 32 or 45 33 if the value given for <b>dt_do2d_xy </b>is 46 34 larger than the simulated time (see <a href="chapter_4.1.html#end_time">end_time</a>), 47 35 <b>then there will be no output!</b><br> 48 </p> 49 <p style="line-height: 100%;">Data is output inbinary format36 </p><p style="line-height: 100%;">Data is output in 37 binary format 50 38 into the 51 39 local file <a href="chapter_3.4.html#PLOT2D_XY">PLOT2D_XY</a>. 52 40 This file must be linked with a permanent file by 53 using a file connection statement in the <b>mrun</b> configuration 41 using a file connection statement in the <b>mrun</b> 42 configuration 54 43 file (see e.g. <a href="chapter_3.2.html">chapter 55 44 3.2</a>). At the end of the run the local file is copied to this 56 45 file. Such a statement can look like this: </p> 57 <ul> 58 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 59 style="font-size: 10pt;" size="2">PLOT2D_XY out:loc:tr pxy ~/PLOT/$fname _pxy_in.</font></pre> 60 </ul> 61 <p style="line-height: 100%;">If the respective <b>mrun</b> call is 46 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">PLOT2D_XY out:loc:tr pxy ~/PLOT/$fname _pxy_in.</font></pre></ul> 47 <p style="line-height: 100%;">If the respective <b>mrun</b> 48 call is 62 49 like </p> 63 <ul> 64 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 65 style="font-size: 10pt;" size="2">mrun -d test -r pxy 66 </font></pre> 67 </ul> 68 <p style="line-height: 100%;">then the local file <tt><font 69 style="font-size: 10pt;" size="2">PLOT2D_XY</font></tt> 70 is copied to the permanent file <tt><font style="font-size: 10pt;" 71 size="2">~/PLOT/test/test_pxy_in</font> 72 </tt>. However, the character string <font style="font-size: 10pt;" 73 size="2"></font><tt><font style="font-size: 10pt;" size="2">pxy</font></tt><font 74 style="font-size: 10pt;" size="2"></font> 50 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -d test -r “pxy”…</font></pre></ul> 51 <p style="line-height: 100%;">then the local file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY</font></tt> 52 is copied to the permanent file <tt><font style="font-size: 10pt;" size="2">~/PLOT/test/test_pxy_in</font> 53 </tt>. However, the character string <font style="font-size: 10pt;" size="2">“</font><tt><font style="font-size: 10pt;" size="2">pxy</font></tt><font style="font-size: 10pt;" size="2">”</font> 75 54 activating the file connection statement (see third column of the 76 statement) must be given in the <b>mrun</b> call as argument of the 55 statement) must be given in the <b>mrun</b> call as 56 argument of the 77 57 option -r (and/or -o)<b>.</b> <span style="text-decoration: none;">If 78 t</span>his is forgotten by mistake, the model outputs the data to 58 t</span>his is forgotten by mistake, the model outputs the data 59 to 79 60 the local file, but this is not copied to the permanent file and thus 80 61 the data are not available for the user after the run has finished.</p> 81 62 <p style="line-height: 100%;">The created data file can be 82 63 directly used as input file for the plot software <b>iso2d</b>. 83 However, this requires the user to assign <a 84 href="chapter_4.2.html#data_output_2d_on_each_pe">data_output_2d_on_each_pe</a> 64 However, this requires the user to assign <a href="chapter_4.2.html#data_output_2d_on_each_pe">data_output_2d_on_each_pe</a> 85 65 = <i>.FALSE. </i>(see also at the end of this chapter) . <b>iso2d</b> 86 66 needs another file, the so-called parameter file, which specifies the … … 93 73 different local files named <a href="chapter_3.4.html#PLOT2D_XY_GLOBAL">PLOT2D_XY_GLOBAL</a> 94 74 and <a href="chapter_3.4.html#PLOT2D_XY_LOCAL">PLOT2D_XY_LOCAL</a>. 95 These must be combined to one file via a so-called <a 96 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#chapter6.2">output 97 command</a> in the configuration file. The resulting file alsoneeds a75 These must be combined to one file via a so-called <a href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#chapter6.2">output 76 command</a> in the configuration file. The resulting file also 77 needs a 98 78 file connection statement: </p> 99 <ul> 100 <pre style="line-height: 100%;"><font style="font-size: 10pt;" 101 size="2">OC: [[ -f PLOT2D_XY_GLOBAL]] && cat PLOT2D_XY_LOCAL >> PLOT2D_XY_GLOBAL</font><br><br><font 102 style="font-size: 10pt;" size="2">PLOT2D_XY_GLOBAL out:loc:tr pxy ~/PLOT/$fname _pxy_par.</font></pre> 103 </ul> 104 <p style="line-height: 100%;">The output command (corn shell syntax) 79 <ul> <pre style="line-height: 100%;"><font style="font-size: 10pt;" size="2">OC: [[ -f PLOT2D_XY_GLOBAL]] && cat PLOT2D_XY_LOCAL >> PLOT2D_XY_GLOBAL</font><br><br><font style="font-size: 10pt;" size="2">PLOT2D_XY_GLOBAL out:loc:tr pxy ~/PLOT/$fname _pxy_par.</font></pre></ul> 80 <p style="line-height: 100%;">The output command (corn 81 shell syntax) 105 82 tests whether the file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY_GLOBAL</font></tt> 106 83 exists and if so the file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY_LOCAL</font></tt> 107 is appended via the "cat" command to the file <tt><font 108 style="font-size: 10pt;" size="2">PLOT2D_XY_GLOBAL</font></tt> 109 which then contains all parameters needed by <b>iso2d</b>. This84 is appended via the "cat" command to the file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY_GLOBAL</font></tt> 85 which then contains all parameters needed by <b>iso2d</b>. 86 This 110 87 relatively pedantic proceeding is due to the fact that PALM 111 88 can produce the file PLOT2D_XY_GLOBAL only at the end of the simulation 112 89 (when the final value of the global <span style="font-weight: bold;">iso2d</span>-parameter 113 <a 114 href="http://www.muk.uni-hannover.de/institut/software/iso2d_beschreibung.html#PLANZ">planz</a> 90 <a href="http://www.muk.uni-hannover.de/institut/software/iso2d_beschreibung.html#PLANZ">planz</a> 115 91 is known), while the local parameter sets are written continuously 116 92 to the file PLOT2D_XY_LOCAL during the run. A consequence is, that in 117 case of aborts of a run the file <tt><font style="font-size: 10pt;" 118 size="2">PLOT2D_XY_GLOBAL</font></tt> 93 case of aborts of a run the file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY_GLOBAL</font></tt> 119 94 has possibly not been created and thus a visualization of the data - 120 95 although they may be available - is 121 96 not possible (in such a case, the user may create the parameter file 122 97 manually). </p> 123 <p style="line-height: 100%;">If you are in the directory <tt><font 124 style="font-size: 10pt;" size="2">~/PLOT/test</font></tt>,the data98 <p style="line-height: 100%;">If you are in the directory <tt><font style="font-size: 10pt;" size="2">~/PLOT/test</font></tt>, 99 the data 125 100 can be plotted by entering 126 </p> 127 <ul> 128 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 129 style="font-size: 10pt;" size="2">iso2d -d test _pxy_in -p test_pxy_par</font></pre> 130 </ul> 131 <p style="line-height: 100%;">By default plot layout as specified in 101 </p><ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">iso2d -d test _pxy_in -p test_pxy_par</font></pre> 102 </ul><p style="line-height: 100%;">By default plot 103 layout as specified in 132 104 the parameter file is as follows: for each cross section of each 133 105 individual quantity a seperate plot is created using isolines. Isolines … … 144 116 beginning of the 3d simulation, t=0) and the location of the cross 145 117 sections (as height level and grid point number) is noted. </p> 146 <p style="line-height: 100%;">The layout of the plots can be 118 <p style="line-height: 100%;">The layout of the plots can 119 be 147 120 varied by editing the parameter file (according to the 148 121 various features of <b>iso2d</b>: color shading, 149 vector plots, streamlines, etc.). For a detailed description of the <span 150 style="font-weight: bold;">iso2d</span> parameters see the 151 <a 152 href="http://www.muk.uni-hannover.de/institut/software/iso2d_beschreibung.html">iso2d</a> 122 vector plots, streamlines, etc.). For a detailed description of the <span style="font-weight: bold;">iso2d</span> parameters see 123 the 124 <a href="http://www.muk.uni-hannover.de/institut/software/iso2d_beschreibung.html">iso2d</a> 153 125 manual (only in German). </p> 154 <p style="line-height: 100%;">With parallel runs and choice of <a155 href="chapter_4.2.html#data_output_2d_on_each_pe">data_output_2d_on_each_pe</a>126 <p style="line-height: 100%;">With parallel runs and 127 choice of <a href="chapter_4.2.html#data_output_2d_on_each_pe">data_output_2d_on_each_pe</a> 156 128 = <i>.T.</i> each PE outputs the data of its subdomain 157 to a separate file with the name PLOT2D_XY_<processor-Id>, 129 to a separate file with the name 130 PLOT2D_XY_<processor-Id>, 158 131 whereby <processor-Id> is a four digit number (e.g. 159 PLOT2D_XY_0000). These files are not suitable for <span 160 style="font-weight: bold;">iso2d</span>, but after the 132 PLOT2D_XY_0000). These files are not suitable for <span style="font-weight: bold;">iso2d</span>, but after the 161 133 end 162 of a run they can be combined to one file readable by <span 163 style="font-weight: bold;">iso2d</span>. This is donevia a134 of a run they can be combined to one file readable by <span style="font-weight: bold;">iso2d</span>. This is done 135 via a 164 136 further output command in the configuration file: </p> 165 <ul> 166 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 167 style="font-size: 10pt;" size="2">OC:[[$ ( echo $localhost | cut -c1-3 ) = imbh ]] && combine_plot_fields.x</font></pre> 168 </ul> 169 <p style="line-height: 100%;">The program <tt><font 170 style="font-size: 10pt;" size="2">combine_plot_fields.x</font></tt> 137 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">OC:[[$ ( echo $localhost | cut -c1-3 ) = imbh ]] && combine_plot_fields.x</font></pre></ul> 138 <p style="line-height: 100%;">The program <tt><font style="font-size: 10pt;" size="2">combine_plot_fields.x</font></tt> 171 139 collects the data from the individual processor files and outputs it 172 140 into the local file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY</font></tt> … … 179 147 may remain in the configuration file, even if no appropriate files 180 148 are created during the simulation). <br> 181 <b><br> 182 Note:</b> due to internal 183 restrictions of <b>iso2d </b>the file <tt><font 184 style="font-size: 10pt;" size="2">PLOT2D_XY</font></tt> 149 <b><br>Note:</b> due to internal 150 restrictions of <b>iso2d </b>the file <tt><font style="font-size: 10pt;" size="2">PLOT2D_XY</font></tt> 185 151 may not contain more than 99 cross sections. This restriction does not 186 152 apply 187 for the production of video clips via <b>iso2d</b>. </p> 188 <hr> 189 <p style="line-height: 100%;"><br> 190 <font color="#000080"><font color="#000080"><a href="chapter_4.5.3.html"><font 191 color="#000080"><img src="left.gif" name="Grafik1" align="bottom" 192 border="2" height="32" width="32"></font></a><a href="index.html"><font 193 color="#000080"><img src="up.gif" name="Grafik2" align="bottom" 194 border="2" height="32" width="32"></font></a><a 195 href="chapter_4.5.5.html"><font color="#000080"><img src="right.gif" 196 name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p> 197 <p style="line-height: 100%;"> <i>Last change: </i> 198 20/04/05 (SR)</p> 199 </body> 200 </html> 153 for the production of video clips via <b>iso2d</b>. 154 </p> 155 <hr><p style="line-height: 100%;"><br> 156 <font color="#000080"><font color="#000080"><a href="chapter_4.5.3.html"><font color="#000080"><img src="left.gif" name="Grafik1" align="bottom" border="2" height="32" width="32"></font></a><a href="index.html"><font color="#000080"><img src="up.gif" name="Grafik2" align="bottom" border="2" height="32" width="32"></font></a><a href="chapter_4.5.5.html"><font color="#000080"><img src="right.gif" name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p><p style="line-height: 100%;"> <i>Last 157 change: </i> 158 $Id$</p> 159 </body></html>
Note: See TracChangeset
for help on using the changeset viewer.