|
[Sponsors] |
Writing ascii data for an entire vector field? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 20, 2014, 20:41 |
Writing ascii data for an entire vector field?
|
#1 |
New Member
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 12 |
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?
|
|
August 20, 2014, 21:26 |
|
#2 |
New Member
Join Date: Jan 2014
Location: South Florida
Posts: 20
Rep Power: 12 |
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 ); // ************************************************************************* // |
|
Tags |
data, export, field, sample |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error when writing data | macfly | FLUENT | 8 | February 3, 2014 16:23 |
studying a valve case | mina.basta | OpenFOAM | 33 | August 30, 2013 05:46 |
dsmcFoam : writing options : How to keep only field data ? Not Lagrangian | elfuertes | OpenFOAM Running, Solving & CFD | 2 | August 19, 2013 06:05 |
Writing a transient data fileld | ant | CFX | 0 | October 20, 2002 13:19 |
Published Axial Fan Data | Vincent Johnston | Main CFD Forum | 2 | July 14, 1999 01:49 |