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

surface sampling with a step smaller than outputTime

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2013, 12:22
Default surface sampling with a step smaller than outputTime
  #1
New Member
 
Seiji Adachi
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 5
Rep Power: 17
seiji_adachi is on a distinguished road
Hi foamers,

Sampling data on a surface with a time step smaller than outputTime
seems not working. In pisoFoam/les/pitzDaily/system/controlDict,

endTime 0.001;
deltaT 1e-05;
writeControl timeStep;
writeIntermal 100;

surfaceSampling
{
outputControl timeStep;
outputInterval 10;
}

are set in hoping that sampling will be done in 1e-05 x 10 = 0.0001 interval.
It is, however, done in 1e-05 x 100 = 0.001 interval, which is the same as
outputTime. Time directories are created correctly but almost all of them
are empty! Here are files and directories after calculation:

----------------------------------------------------------------------------------
ibp-ak-svr02:..les/pitzDaily $ ls
0 0.001 constant log postProcessing system
ibp-ak-svr02:..les/pitzDaily $ ls postProcessing/surfaceSampling/
0.0001 0.0002 0.0003 0.0004 0.0005 0.0006 0.0007 0.0008 0.0009 0.001
ibp-ak-svr02:..les/pitzDaily $ find postProcessing/ -name "*.vtk"
postProcessing/surfaceSampling/0.001/U_nearWall.vtk
----------------------------------------------------------------------------------

I am using OpenFOAM-2.2.0 now. In version 2.1.1, sampling can be correctly
done:
----------------------------------------------------------------------------------
pcsea:..les/pitzDaily $ ls surfaceSampling/
0.0001 0.0002 0.0003 0.0004 0.0005 0.0006 0.0007 0.0008 0.0009 0.001
pcsea:..les/pitzDaily $ find surfaceSampling/ -name "*.vtk"
surfaceSampling/0.0001/U_nearWall.vtk
surfaceSampling/0.0003/U_nearWall.vtk
surfaceSampling/0.001/U_nearWall.vtk
surfaceSampling/0.0009/U_nearWall.vtk
surfaceSampling/0.0007/U_nearWall.vtk
surfaceSampling/0.0004/U_nearWall.vtk
surfaceSampling/0.0005/U_nearWall.vtk
surfaceSampling/0.0008/U_nearWall.vtk
surfaceSampling/0.0006/U_nearWall.vtk
surfaceSampling/0.0002/U_nearWall.vtk
----------------------------------------------------------------------------------

Is this a bug in version 2.2.0? or something is missing in my operation.
Full controlDict is attached at the bottom.

regards,

Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application pisoFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

//endTime 0.1;
endTime 0.001;

deltaT 1e-05;

writeControl timeStep;

writeInterval 100;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

functions
{
probes
{
type probes;
functionObjectLibs ("libsampling.so");
enabled true;
outputControl timeStep;
outputInterval 1;

fields
(
p
);

probeLocations
(
( 0.0254 0.0253 0 )
( 0.0508 0.0253 0 )
( 0.0762 0.0253 0 )
( 0.1016 0.0253 0 )
( 0.127 0.0253 0 )
( 0.1524 0.0253 0 )
( 0.1778 0.0253 0 )
);

}

fieldAverage1
{
type fieldAverage;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl outputTime;

fields
(
U
{
mean on;
prime2Mean on;
base time;
}

p
{
mean on;
prime2Mean on;
base time;
}
);
}

surfaceSampling
{
// Sample near-wall velocity

type surfaces;

// Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so");
enabled true;
// outputControl outputTime;
outputControl timeStep;
outputInterval 10;

interpolationScheme cellPoint;

surfaceFormat vtk;

// Fields to be sampled
fields
(
U
);

surfaces
(
nearWall
{
type patchInternalField;
patches ( lowerWall );
distance 1E-6;
interpolate true;
triangulate false;
}
);
}
}

// ************************************************** *********************** //
seiji_adachi is offline   Reply With Quote

Old   August 14, 2013, 06:01
Default
  #2
New Member
 
Seiji Adachi
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 5
Rep Power: 17
seiji_adachi is on a distinguished road
Hello all,

After updating to OpenFOAM-2.2.1, surface sampling with a smaller
interval became possible. I will never use version 2.2.0. Thank you
for your consideration.

Best,
seiji_adachi is offline   Reply With Quote

Old   January 3, 2014, 07:39
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 134
Rep Power: 13
kkpal is on a distinguished road
My version is 2.2.2, but this problem still remain.
Now I have to write down all the fields with very short interval, which is very memory consuming!
Quote:
Originally Posted by seiji_adachi View Post
Hello all,

After updating to OpenFOAM-2.2.1, surface sampling with a smaller
interval became possible. I will never use version 2.2.0. Thank you
for your consideration.

Best,
kkpal is offline   Reply With Quote

Old   April 15, 2014, 04:44
Default
  #4
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
Hi all,

I am new in OF, i am unable to understand, how to give probe for a surface or say, for a patch..??

thanks and regards,
Adarsh Tiwari
adarsh tiwari is offline   Reply With Quote

Reply


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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 11:05
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43


All times are GMT -4. The time now is 07:24.