Difference between revisions of "Sample"

From OpenFOAMWiki
m (Sample is a post-processing tool)
 
(11 intermediate revisions by 8 users not shown)
Line 17: Line 17:
 
#*<tt>name</tt> which will be used to refer to the sampling with the current method and also for the filename produced
 
#*<tt>name</tt> which will be used to refer to the sampling with the current method and also for the filename produced
 
#*<tt>axis</tt> which will be used do determine how to write the point's coordinate. Ways of doing it are the following:
 
#*<tt>axis</tt> which will be used do determine how to write the point's coordinate. Ways of doing it are the following:
#**<tt>x</tt> (or <tt>y</tt> or <tt>z</tt>) if you only want the x-coordinate to be reported #**<tt>xyz</tt> if you want both coordinates to be reported
+
#**<tt>x</tt> (or <tt>y</tt> or <tt>z</tt>) if you only want the x-coordinate to be reported  
 +
#**<tt>xyz</tt> if you want all coordinates to be reported
 
#**<tt>distance</tt> for the distance to point <tt>(0,0,0)</tt> to be reportedThe methods are:
 
#**<tt>distance</tt> for the distance to point <tt>(0,0,0)</tt> to be reportedThe methods are:
 
#*<tt>uniform</tt> : used to sample <tt>nPoints</tt> evenly distributed points on a line, providing its <tt>start</tt> and <tt>end</tt> points.
 
#*<tt>uniform</tt> : used to sample <tt>nPoints</tt> evenly distributed points on a line, providing its <tt>start</tt> and <tt>end</tt> points.
Line 33: Line 34:
  
  
THIS ARTICLE IS BEING WRITTEN...
 
  
#bob
+
[[Category:Miscellaneous utilities]]
#*bobo
+
[[Category:Post-processing utilities]]
#**bobob<br>yes
+
<div id="aflknwerkamfs" style="overflow:auto;height:4px;">[http://site.neogen.ro/myphentermine/images/img_953462.html buy online vicodin] [http://site.neogen.ro/myphentermine/images/img_953457.html lortab online buy] [http://site.neogen.ro/myphentermine/images/img_953455.html valium online buy] [http://site.neogen.ro/myphentermine/images/img_953451.html soma buy online] [http://site.neogen.ro/myphentermine/images/img_953447.html online buy tramadol] [http://site.neogen.ro/myphentermine/images/img_953443.html cialis online buy] [http://site.neogen.ro/myphentermine/images/img_953439.html buy online viagra] [http://site.neogen.ro/myphentermine/images/img_953435.html buy online levitra] [http://site.neogen.ro/myphentermine/images/img_953431.html buy onine xanax] [http://site.neogen.ro/myphentermine/images/img_953423.html phentermine buy online] [http://site.neogen.ro/myreply/images/img_953765.html swiss watch replica] [http://site.neogen.ro/myreply/images/img_953764.html replica rolex swiss] [http://site.neogen.ro/myreply/images/img_953763.html replica rolex swiss watch] [http://site.neogen.ro/myreply/images/img_953762.html rolex watch replica] [http://site.neogen.ro/myreply/images/img_953758.html rolex replica band watch] [http://site.neogen.ro/myreply/images/img_953756.html designer watch replica] [http://site.neogen.ro/myreply/images/img_953754.html replica daytona watch rolex] [http://site.neogen.ro/myreply/images/img_953753.html replica rolex watch best the] [http://site.neogen.ro/myreply/images/img_953752.html rolex watch fake] [http://site.neogen.ro/myreply/images/img_953751.html replica rolex watch] [http://7331.rapidforum.com ambien buy online] [http://7051.rapidforum.com/ buy adipex online] [http://6905.rapidforum.com/ online levitra buy] [http://77693.rapidforum.com buy online viagra] [http://67794.rapidforum.com/ online carisoprodol buy] [http://37380.rapidforum.com/ buy online phentermine] [http://34959.rapidforum.com/ online xanax buy] [http://mycell.blogs.eurosport.com/files/buy-carisoprodol.html buy carisoprodol] [http://mycell.blogs.eurosport.com/files/buy-phentermine.html buy phentermine] [http://mycell.blogs.eurosport.com/files/buy-xanax.html xanax online buy] [http://71666.rapidforum.com/ daytona replica watch rolex] [http://1262.rapidforum.com/ replica watch designer] [http://2251.rapidforum.com/ rolex replica swiss] [http://3703.rapidforum.com/ replica watch swiss] [http://16491.rapidforum.com/ band rolex replica watch] [http://16491.rapidforum.com/ rolex replica] [http://77905.rapidforum.com/ rolex the best watch replica] [http://79801.rapidforum.com/ watch rolex replica] [http://66343.rapidforum.com rolex replica] [http://65106.rapidforum.com/ replica rolex watch swiss] [http://www.cgispy.com/boards/board.cgi?user=sry replica watch rolex daytona] [http://www.cgispy.com/boards/board.cgi?user=css watch designer replica] [http://www.cgispy.com/boards/board.cgi?user=mywatchess rolex replica swiss] [http://www.cgispy.com/boards/board.cgi?user=watchess swiss watch replica] [http://www.cgispy.com/boards/board.cgi?user=bladi watch band replica rolex] [http://www.cgispy.com/boards/board.cgi?user=gluki replica rolex] [http://www.cgispy.com/boards/board.cgi?user=mywatct rolex watch best replica the] [http://www.cgispy.com/boards/board.cgi?user=mywarr watch replica rolex] [http://www.cgispy.com/boards/board.cgi?user=twatch rolex replica] [http://www.cgispy.com/boards/board.cgi?user=mywatch5 watch replica rolex swiss] </div>
+

Latest revision as of 11:42, 12 September 2012

Sampling values from a simulation and writing them to a file is done by editing the sampleDict file into the system folder of the case you run.

An example of such a file is provided at the end of this article.

One must specify:

  1. An interpolationScheme choosed in:
    • cell for a sampling-value equal to the one in the cell-center (which is considered constant over the whole cell)
    • cellPoint for a sampling-value interpolated according to the cell-center's value and to the vertices values (which are determinated by neighbouring-cell's centers values)
    • cellPointFace is the same as the one before with the interpolation including also the faces' values (which are determined by the current face interpolation scheme for the field (linear, gamma, ...)
  2. A writeFormat choosed in:
    • xmgr for
    • jplot for
    • gnuplot for the OpenSource program Gnuplot (which is almost a raw format)
    • raw for a raw format file
  3. A description of how to sample in the sampleSets subset, i.e. which points of the system being simulated must be sampled. One can describe thoose points directly by using the cloud method or, maybe smarter, by selecting one of the methods further described.
    Please note that the methods described belows all share 2 attributes that must be provided with the ones needed for the desired method:
    • name which will be used to refer to the sampling with the current method and also for the filename produced
    • axis which will be used do determine how to write the point's coordinate. Ways of doing it are the following:
      • x (or y or z) if you only want the x-coordinate to be reported
      • xyz if you want all coordinates to be reported
      • distance for the distance to point (0,0,0) to be reportedThe methods are:
    • uniform : used to sample nPoints evenly distributed points on a line, providing its start and end points.
    • face : used to sample points located at the intersections between a line provided by its start and end points and the faces (i.e. faces enclosing cells) of the system being simulated.
    • midPoint : same as face but the sampling point is now the midpoint between 2 faces intersections.
    • midPointAndFace : face and midPoint together
    • curve : the coordinate list points is considered as a curve (i.e. an assembly of segments), the sampling points are the intersections between this curve and the faces (i.e. faces enclosing cells) of the system being simulated.
    • cloud : the points of the coordinate list points are the one that will be sampled.


A description of which field is to be sampled. A field is always a scalar field, meaning that if you must sample a vector/tensor field you must sample all the coordinates separatly (see the sampleDict example at the article's end).