|
[Sponsors] |
September 30, 2024, 12:11 |
Sampling planes
|
#1 |
New Member
Join Date: Sep 2024
Posts: 1
Rep Power: 0 |
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 |
|
Tags |
libsampling, openfoam 2112, post procesing, sample, sample surface |
|
|
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 |