Sample

From OpenFOAMWiki
Revision as of 22:42, 31 July 2006 by Upmsuq (Talk | contribs)

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 both 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).



THIS ARTICLE IS BEING WRITTEN...

  1. bob
    • bobo
      • bobob
        yes
dooney burke handbag nine west handbag womens handbag quilted handbag mary frances handbag kathy van zeeland handbag wholesale replica handbag gucci handbag low price straw handbag lv handbag dkny handbag replica chanel handbag authentic louis vuitton handbag dooney handbag discount coach handbag handmade handbag fossil handbag bradley handbag vera michael kors handbag discount designer handbag authentic gucci handbag knockoff handbag dior handbag replica coach handbag juicy couture handbag brighton handbag chloe handbag handbag jacobs marc marc jacobs handbag discount handbag handbag purse dooney bourke handbag chanel handbag fendi handbag louis vuitton handbag gucci handbag swiss panerai replica watch swiss cartier watch replica swiss gear backpack laptop patek philippe swiss replica swiss watch quartz luxury replica swiss watch swiss offshore bank account swiss army chronograph fake swiss rolex watch replica fake replica rolex swiss watch army chronograph swiss watch omega swiss replica fake rolex swiss watch cartier swiss replica swiss breitling replica swiss made breitling replica watch fake swiss watch account bank credit offshore suisse swiss swiss army wrist watch swiss army laptop bag panerai swiss replica account bank bank offshore swiss switzerland union swiss camping gear cnc swiss machining army briefcase swiss 0.01 replica rolex swiss watch swiss army laptop backpack swiss made replica watch swiss army backpack replica rolex swiss watch replica rolex swiss swiss rolex replica swiss replica watch last minute package travel alaska deal travel travel agency lawton oklahoma california jose san travel travel lancaster pennsylvania dealer illinois trailer travel group holland travel agent california jose san travel travel agent johnstown pennsylvania jamaica travel requirement travel johnstown pennsylvania jamaica travel tip travel agency cleveland ohio travel agency cincinnati ohio hawaii information travel travel agency lancaster pennsylvania travel agent madison wisconsin golf ireland travel travel steubenville ohio alaska nursing travel travel agency allentown pennsylvania travel trailer rental in wisconsin coastal discount package travel vacation robot site travel web travel agency fort smith oklahoma bus escort hanover travel hawaii onlin online travel agent illinois travel hawaii tip travel travel fort smith oklahoma agency davenport illinois travel travel agent cincinnati agency nebraska travel discount hawaii package travel travel agent louisville travel agent harrisburg pennsylvania california francisco guide san travel california rental trailer travel aa insurance travel travel agency canton ohio travel agent riverside online site travel web gap travel year gaming lodging resort resort spa travel hawaii links travel agency california jose san travel america south travel best site travel web new nyc travel visit york last minute package travel alaska deal travel travel agency lawton oklahoma california jose san travel travel lancaster pennsylvania dealer illinois trailer travel group holland travel agent california jose san travel travel agent johnstown pennsylvania jamaica travel requirement travel johnstown pennsylvania jamaica travel tip travel agency cleveland ohio travel agency cincinnati ohio hawaii information travel travel agency lancaster pennsylvania travel agent madison wisconsin golf ireland travel travel steubenville ohio alaska nursing travel travel agency allentown pennsylvania travel trailer rental in wisconsin coastal discount package travel vacation robot site travel web travel agency fort smith oklahoma bus escort hanover travel hawaii onlin online travel agent illinois travel hawaii tip travel travel fort smith oklahoma agency davenport illinois travel travel agent cincinnati agency nebraska travel discount hawaii package travel travel agent louisville travel agent harrisburg pennsylvania california francisco guide san travel california rental trailer travel aa insurance travel travel agency canton ohio travel agent riverside online site travel web gap travel year gaming lodging resort resort spa travel hawaii links travel agency california jose san travel america south travel best site travel web new nyc travel visit york gucci handbag low price attic handbag straw handbag lv handbag replica gucci handbag dkny handbag stone mountain handbag balenciaga handbag discount coach handbag handmade handbag bradley handbag vera michael kors handbag discount designer handbag christian dior handbag authentic gucci handbag knockoff handbag dior handbag replica coach handbag kate spade handbag juicy couture handbag brighton handbag chloe handbag louis vuitton replica handbag handbag jacobs marc marc jacobs handbag discount handbag guess handbag burberry handbag replica designer handbag handbag purse dooney bourke handbag fendi handbag louis vuitton handbag wholesale handbag replica handbag coach handbag gucci handbag prada handbag fendi handbag louis vuitton handbag cheap buy xanax order xanax online buy xanax buy tramadol buy xanax online replica coach handbag louis vuitton replica handbag wholesale replica handbag replica designer handbag prada replica handbag louis vuitton replica handbag replica gucci handbag designer handbag replica replica coach handbag replica chanel handbag quality replica watch quality replica watch quality replica watch swiss replica rolex watch swiss replica rolex watch swiss replica rolex watch omega replica watch omega replica watch omega replica watch louis vuitton replica handbag louis vuitton replica handbag cartier replica watch cartier replica watch cartier replica watch breitling replica watch breitling replica watch