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

Sampling planes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2024, 12:11
Post Sampling planes
  #1
New Member
 
Join Date: Sep 2024
Posts: 1
Rep Power: 0
Andilandi is on a distinguished road
I am running simulations with synInflow in OpenFoam 2112 (i am using this old version because synInflow is programmed for it).
I needed the U vectors for the inlet Layer at all time steps in the simulation. I did this with this code:


inletProfiles
{
type surfaces;
libs ("libsampling.so");
fields (U);
writeControl timeStep;
writeInterval 1;
fixedLocations true;
interpolationScheme cell;
surfaceFormat raw;
surfaces
(
inletSurfaces
{
type patch;
patches (inlet);
}
);
}

Then I tried to get U for Planes parallel with the inlet but at other X coordinates, that seemed to work. Here the Code i used:


profiles1
{
type surfaces;
libs ("libsampling.so");
fields (U);
writeControl timeStep;
writeInterval 1;
fixedLocations true;
interpolationScheme cell;
surfaceFormat raw;
surfaces
(
profiles1
{
type plane;
planeType pointAndNormal;
pointAndNormalDict
{
point (X 0 0);
normal (1 0 0);
}
triangulate false;
}
);
}

for X i would put the coordinate i want the plane to be. The problem is, if I put X=0 ,in my understanding it should be the same as the inlet Layer? But the Data is different, the coordinates in the Post processing files are the same in both versions, but the values for U are different. Is that normal? What is the explanation?
The most important question is which version is right and how do I fix the other one?


Thanks for helping, I just started with open-foam and don't have that much experience yet
Andilandi is offline   Reply With Quote

Reply

Tags
libsampling, openfoam 2112, post procesing, sample, sample surface


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
sampling interval and sampling frequency beauty FLUENT 13 November 9, 2022 09:23
problem sampling a plane in parallel syavash OpenFOAM Post-Processing 0 May 7, 2018 11:15
[waves2Foam] surfaceElevation sampling utilities katakgoreng OpenFOAM Community Contributions 2 November 18, 2016 06:27
Sampling on moving planes Tarak OpenFOAM Post-Processing 1 August 12, 2016 06:43
Calculating average velocity for planes - Confused! nikolasf Visualization & Post-Processing 0 April 23, 2013 10:56


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