CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Writing ascii data for an entire vector field?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2014, 19:41
Question Writing ascii data for an entire vector field?
  #1
New Member
 
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 12
CoolHand is on a distinguished road
I've written a matlab program that reads the files created by sample. Sample creates those nice ascii column data files that are so convenient for matlab. Can I use sample to export a similar file for the entire vector field U? If not does anyone know how this could be achieved?
CoolHand is offline   Reply With Quote

Old   August 20, 2014, 20:26
Default
  #2
New Member
 
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 12
CoolHand is on a distinguished road
I think I found it already. It's a set type called 'array' but there are still some bits I don't get it.

Are e1 and e2 direction normals? Is origin the center of span box or the corner and then spanbox is opposite corner? And I'm pretty sure pointdensity is the number of samples in each direction.

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cellPoint;

setFormat       raw;

sets
(
    sample
    {
        // Sample 'pointsDensity' points in a box with origin at 'origin'
        // plus the vector 'spanBox'
        type    array;
        axis    xyz;
        coordinateSystem
        {
            e1      (1 0 0);
            e2      (0 1 0);
            origin  ( 0 0 0 );
        }
        pointsDensity   (10 10 10);
        spanBox         (3 0.2 3);

    }
);
fields          ( U );


// ************************************************************************* //
CoolHand is offline   Reply With Quote

Reply

Tags
data, export, field, sample

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error when writing data macfly FLUENT 8 February 3, 2014 15:23
studying a valve case mina.basta OpenFOAM 33 August 30, 2013 04:46
dsmcFoam : writing options : How to keep only field data ? Not Lagrangian elfuertes OpenFOAM Running, Solving & CFD 2 August 19, 2013 05:05
Writing a transient data fileld ant CFX 0 October 20, 2002 12:19
Published Axial Fan Data Vincent Johnston Main CFD Forum 2 July 14, 1999 00:49


All times are GMT -4. The time now is 03:13.