Changeset 62 for palm/trunk/DOC/app/chapter_4.5.5.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.5.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.5</title> 7 <meta name="GENERATOR" content="StarOffice 7 (Win32)"> 8 <meta name="AUTHOR" content="Siegfried Raasch"> 9 <meta name="CREATED" content="20041027;13094394"> 10 <meta name="CHANGED" content="20041117;11561956"> 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.5 Plots of 3d volume 2 <html><head> 3 <meta http-equiv="CONTENT-TYPE" content="text/html; charset=windows-1252"><title>PALM 4 chapter 4.5.5</title> <meta name="GENERATOR" content="StarOffice 7 (Win32)"> <meta name="AUTHOR" content="Siegfried Raasch"> <meta name="CREATED" content="20041027;13094394"> <meta name="CHANGED" content="20041117;11561956"> <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.5 11 Plots of 3d volume 20 12 data with AVS</font></h4> 21 <p style="line-height: 100%;">In contrast to the plot output described 13 <p style="line-height: 100%;">In contrast to the plot 14 output described 22 15 so far, which can be handled more or less automatically, the creation 23 16 of 24 plots with <b>AVS</b> requires programming a so-called network by 25 using the <span style="font-weight: bold;">AVS</span> network editor 17 plots with <b>AVS</b> requires programming a so-called 18 network by 19 using the <span style="font-weight: bold;">AVS</span> 20 network editor 26 21 to design the plot 27 22 layout. Details are not given here because it is assumed that the user 28 23 is familiar with <b>AVS</b>. </p> 29 <p style="line-height: 100%;"><font color="#000000">Output of 3d volume 24 <p style="line-height: 100%;"><font color="#000000">Output 25 of 3d volume 30 26 data requires to set at least two parameters: </font>first, the 31 27 temporal 32 interval of the output time (run parameter <a 33 href="chapter_4.2.html#dt_do3d"><u>dt_do3d)</u></a><span 34 style="text-decoration: none;"> 28 interval of the output time (run parameter <a href="chapter_4.2.html#dt_do3d"><u>dt_do3d)</u></a><span style="text-decoration: none;"> 35 29 and second<span style="text-decoration: none;"></span> 36 the names of the quantities for which volume data output is wanted</span><span 37 style="text-decoration: none;"><span style="text-decoration: none;"> (<a 38 href="chapter_4.2.html#data_output">data_output</a></span></span>).<font 39 color="#000000"> </font><font color="#000000"><span 40 style="text-decoration: none;"></span></font><font color="#000000"><span 41 style="text-decoration: none;"></span><span 42 style="text-decoration: none;"></span></font><font color="#800000"> </font>The 30 the names of the quantities for which volume data 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>).<font color="#000000"> </font><font color="#000000"><span style="text-decoration: none;"></span></font><font color="#000000"><span style="text-decoration: none;"></span><span style="text-decoration: none;"></span></font><font color="#800000"> </font>The 43 31 parameter <a href="chapter_4.2.html#nz_do3d">nz_do3d</a> 44 32 can be used to limit data output in vertical direction up to a certain 45 33 grid 46 point. If no value has been assigned to <b>data_output</b> or 34 point. If no value has been assigned to <b>data_output</b> 35 or 47 36 if the value given for <b>dt_do3d </b>is 48 37 larger than the simulated time (see <a href="chapter_4.1.html#end_time">end_time</a>), 49 <b>then there will be no output!</b> By default, data is output in 38 <b>then there will be no output!</b> By default, data is 39 output in 50 40 32-bit real format. Alternatively, for parallel runs, data can also be 51 41 output in compressed format using 32-bit integers. This yields 52 42 a loss of accuracy, but the file size is clearly reduced. The output of 53 compressed data is described in more detail in <a 54 href="chapter_4.5.6.html">chapter 43 compressed data is described in more detail in <a href="chapter_4.5.6.html">chapter 55 44 4.5.6</a>. </p> 56 45 <p style="line-height: 100%;">Data, whether compressed or 57 uncompressed, is output into the local file <a 58 href="chapter_3.4.html#PLOT3D_DATA">PLOT3D_DATA</a>. 46 uncompressed, is output into the local file <a href="chapter_3.4.html#PLOT3D_DATA">PLOT3D_DATA</a>. 59 47 This file must be linked with a permanent file by 60 using a file connection statement in the <b>mrun</b> configuration 48 using a file connection statement in the <b>mrun</b> 49 configuration 61 50 file (see e.g. <a href="chapter_3.2.html">chapter 62 51 3.2</a>). At the end of the run the local file is copied to this … … 64 53 informations about the 3d data, which also has to be copied. The 65 54 statements can look like this: </p> 66 <ul> 67 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 68 style="font-size: 10pt;" size="2">PLOT3D_DATA out:loc:tr avs ~/PLOT/$fname _avs<br>PLOT3D_COOR out:loc:tr avs ~/PLOT/$fname _coor .</font></pre> 69 </ul> 70 <p style="line-height: 100%;">If the respective <b>mrun</b> call is 55 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">PLOT3D_DATA out:loc:tr avs ~/PLOT/$fname _avs<br>PLOT3D_COOR out:loc:tr avs ~/PLOT/$fname _coor .</font></pre></ul> 56 <p style="line-height: 100%;">If the respective <b>mrun</b> 57 call is 71 58 like</p> 72 <ul> 73 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 74 style="font-size: 10pt;" size="2">mrun -d test -r avs 75 </font></pre> 76 </ul> 77 <p style="line-height: 100%;">then the local file <tt><font 78 style="font-size: 10pt;" size="2">PLOT3D_DATA</font></tt> 79 is copied to the permanent file <tt><font style="font-size: 10pt;" 80 size="2">~/PLOT/test/test_avs</font></tt> . 81 However, the character string <tt><font style="font-size: 10pt;" 82 size="2">avs</font></tt> 59 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">mrun -d test -r “avs”…</font></pre></ul> 60 <p style="line-height: 100%;">then the local file <tt><font style="font-size: 10pt;" size="2">PLOT3D_DATA</font></tt> 61 is copied to the permanent file <tt><font style="font-size: 10pt;" size="2">~/PLOT/test/test_avs</font></tt> 62 . 63 However, the character string “<tt><font style="font-size: 10pt;" size="2">avs</font></tt>” 83 64 activating the file connection staement (see third column of the 84 statement) must be given in the <b>mrun</b> call as argument of the 85 option -r (and/or -o). <span style="text-decoration: none;">If t</span>his 65 statement) must be given in the <b>mrun</b> call as 66 argument of the 67 option -r (and/or -o). <span style="text-decoration: none;">If 68 t</span>his 86 69 is forgotten by mistake, the model outputs the data to the local 87 70 file, but this is not copied to the permanent file and thus the data 88 71 are not available for the user after the run has finished.<br> 89 </p> 90 <p style="line-height: 100%;">The created datafile can be used as72 </p><p style="line-height: 100%;">The created data 73 file can be used as 91 74 input file for the plot software <span style="font-weight: bold;">AVS</span> 92 75 although for parallel runs another step is necessary which is 93 76 described at the end of this chapter. However, after starting <b>AVS</b> 94 (by executing the command avs), these data file is not read 95 immediately<font color="#000000">. First, the user has to load a 77 (by executing the command “avs”), these data file 78 is not read 79 immediately<font color="#000000">. First, the user has to 80 load a 96 81 suitable network (created by the 97 network editor). This module usually contains the module</font> read 98 field, which requires an input 82 network editor). This module usually contains the module</font> 83 “read 84 field”, which requires an input 99 85 file in the so-called "fld-format", which in turn refers to the two 100 86 files … … 104 90 local files with the names <a href="chapter_3.4.html#PLOT3D_FLD">PLOT3D_FLD</a> 105 91 and <a href="chapter_3.4.html#PLOT3D_FLD_COOR">PLOT3D_FLD_COOR</a>, 106 which must be combined into one file by a so-called <a 107 href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#chapter6.2">output 92 which must be combined into one file by a so-called <a href="http://www.muk.uni-hannover.de/institut/software/mrun_beschreibung.html#chapter6.2">output 108 93 command</a>: </p> 109 <ul> 110 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 111 style="font-size: 10pt;" size="2">OC:[[ -f PLOT3D_FLD ]] && cat PLOT3D_FLD_COOR >> PLOT3D_FLD</font></pre> 112 </ul> 113 <p style="line-height: 100%;">The new file PLOT3D_FLD also needs a file 94 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">OC:[[ -f PLOT3D_FLD ]] && cat PLOT3D_FLD_COOR >> PLOT3D_FLD</font></pre></ul> 95 <p style="line-height: 100%;">The new file PLOT3D_FLD also 96 needs a file 114 97 connection statement: </p> 115 <ul> 116 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 117 style="font-size: 10pt;" size="2">PLOT3D_FLD out:loc:tr avs ~/PLOT/$fname _fld fld</font></pre> 118 </ul> 98 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">PLOT3D_FLD out:loc:tr avs ~/PLOT/$fname _fld fld</font></pre></ul> 119 99 <p style="line-height: 100%;">The above <b>mrun </b>call 120 100 then copies the local file <tt><font style="font-size: 10pt;" size="2">PLOT3D_FLD</font></tt> 121 101 to the permanent file <tt><font style="font-size: 10pt;" size="2">~/PLOT/test/test_fld.fld</font> 122 </tt><font face="Thorndale, serif">.</font> In this case the entry 123 <tt><font style="font-size: 10pt;" size="2">fld</font></tt> 102 </tt><font face="Thorndale, serif">.</font> In 103 this case the entry 104 “<tt><font style="font-size: 10pt;" size="2">fld</font></tt>” 124 105 in the sixth column of the file connection statement is 125 106 very important because this ensures that the permanent file name gets 126 the suffix <tt><font style="font-size: 10pt;" size="2">.fld</font></tt>107 the suffix ” <tt><font style="font-size: 10pt;" size="2">.fld</font></tt> 127 108 ". The <span style="font-weight: bold;">AVS</span> 128 module read field expects all files to have this suffix. (Note: With 109 module “read field” expects all files to have this 110 suffix. (Note: With 129 111 this file 130 connection statements files with cycle numbers receive the names <tt><font 131 style="font-size: 10pt;" size="2"> 132 133 _fld.<number of cycle>.fld</font></tt><font 134 style="font-size: 10pt;" size="2"> 112 connection statements files with cycle numbers receive the names 113 ”<tt><font style="font-size: 10pt;" size="2">… 114 _fld.<number of cycle>.fld</font></tt><font style="font-size: 10pt;" size="2"> 135 115 </font>".) </p> 136 <p style="line-height: 100%;"><font color="#000000">The file 116 <p style="line-height: 100%;"><font color="#000000">The 117 file 137 118 connection statements must guarantee that all three permanent files 138 119 (volume … … 140 121 the volume data file and coordinate file may not be changed after 141 122 creation of the files, since they are registered in the fld file and 142 otherwise cannot be found </font>by the "read field" module. Sometimes 123 otherwise cannot be found </font>by the "read field" module. 124 Sometimes 143 125 it may happen<font color="#000000"> 144 126 that incorrect file names are registered into the fld file. In such 145 127 cases the user must edit and correct the fld file accordingly. </font> 146 </p> 147 <p style="line-height: 100%;"><font color="#800000"><font 148 color="#000000">After 128 </p><p style="line-height: 100%;"><font color="#800000"><font color="#000000">After 149 129 <font color="#000000">the <span style="font-weight: bold;">AVS</span> 150 module <font color="#000000">read 151 fields </font>has </font>read in the data, the content of this 130 module <font color="#000000">“read 131 fields” </font>has </font>read in the data, the 132 content of this 152 133 file is listed in a separate <span style="font-weight: bold;">AVS</span> 153 134 window where each quantity is represented by its name and output time.</font> 154 </font></p> 155 <p style="line-height: 100%;">Withparallel runs each PE outputs the135 </font></p><p style="line-height: 100%;">With 136 parallel runs each PE outputs the 156 137 volume data of its subdomain to a separate file with the name 157 138 PLOT3D_DATA_<processor-Id>, … … 159 140 PLOT3D_DATA_0000). These files are not suitable for <b>AVS</b>, 160 141 but after the end of a run they can be combined to one file readable by 161 <span style="font-weight: bold;">AVS</span>. This is done via a 142 <span style="font-weight: bold;">AVS</span>. This is 143 done via a 162 144 further output command in the configuration file: </p> 163 <ul> 164 <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font 165 style="font-size: 10pt;" size="2">OC:[[$ ( echo $localhost | cut -c1-3 ) = ibmh ]] && combine_plot_fields.x</font></pre> 166 </ul> 167 <p style="line-height: 100%;">The program <tt><font 168 style="font-size: 10pt;" size="2">combine_plot_fields.x</font></tt> 145 <ul> <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font style="font-size: 10pt;" size="2">OC:[[$ ( echo $localhost | cut -c1-3 ) = ibmh ]] && combine_plot_fields.x</font></pre></ul> 146 <p style="line-height: 100%;">The program <tt><font style="font-size: 10pt;" size="2">combine_plot_fields.x</font></tt> 169 147 collects the data from the individual processor files and outputs it 170 148 into the local file <tt><font style="font-size: 10pt;" size="2">PLOT2D_DATA</font></tt> … … 176 154 protocol, even if no files were found (i.e. the output command 177 155 may remain in the configuration file, even if no appropriate files 178 are created during the simulation). <span 179 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><tt><span 180 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></tt><span 181 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><tt><span 182 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></tt><span 183 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><tt><span 184 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></tt><span 185 style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><br> 186 </p> 187 <p style="line-height: 100%;"> <b>Note:</b> <span 188 style="font-weight: bold;">AVS</span> can process 64 arrays at maximum 156 are created during the simulation). <span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><tt><span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></tt><span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><tt><span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></tt><span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><tt><span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span></tt><span style="background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;"></span><br> 157 </p><p style="line-height: 100%;"> <b>Note:</b> 158 <span style="font-weight: bold;">AVS</span> can 159 process 64 arrays at maximum 189 160 in one file (with vector representations even 190 161 only 25). If more arrays should be output, surplus arrays must be 191 162 removed from the fld file (see <a href="chapter_3.4.html#PLOT3D_FLD">PLOT3D_FLD</a>) 192 163 manually. </p> 193 <hr> 194 <p style="line-height: 100%;"><br> 195 <font color="#000080"><font color="#000080"><a href="chapter_4.5.4.html"><font 196 color="#000080"><img src="left.gif" name="Grafik1" align="bottom" 197 border="2" height="32" width="32"></font></a><a href="index.html"><font 198 color="#000080"><img src="up.gif" name="Grafik2" align="bottom" 199 border="2" height="32" width="32"></font></a><a 200 href="chapter_4.5.6.html"><font color="#000080"><img src="right.gif" 201 name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p> 202 <p style="line-height: 100%;"> <i>Last change: </i> 20/04/05 203 (SR)</p> 204 </body> 205 </html> 164 <hr><p style="line-height: 100%;"><br> 165 <font color="#000080"><font color="#000080"><a href="chapter_4.5.4.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.6.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 166 change: </i> $Id$</p> 167 </body></html>
Note: See TracChangeset
for help on using the changeset viewer.