|
[Sponsors] |
May 10, 2010, 09:25 |
sampling a plane
|
#1 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
Hi
I'm trying to use sample on plane to get my velocity field in 3D. I have normally 2500 cell centers (50 nodes * 50 nodes) When I'm using sample with the option for the surface : type patch patchName inlet then it's ok and I have 2500 values but when I do type plane BasePoint (0 0 0) normal (0 1 0) interpolate false; triangulate false; then I get 5000... I tried different values for interpolate and triangulate but cannot get my 2500. How could I do please? Interpolation Scheme is Cell Thanks for your help ... |
|
May 10, 2010, 15:33 |
|
#2 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
I made a simpler case to test that ...
On a plane I only have 36 NODES (it's a square section with 6 nodes on each side) so this gives me 25 CELL CENTRES When sampling a surface and setting interpolate true, then I have 36 values for my sampling and the values are for each nodes When sampling a line, then I have 25 values, values are for each centre I would like to have the values for sampling of a surface on the centers. Does anybody know more about this? Thanks for your help |
|
May 12, 2010, 10:04 |
|
#3 |
New Member
Adrian Stalder
Join Date: Mar 2010
Posts: 10
Rep Power: 16 |
I encountered the same problem today. I couldnt solve it yet, but I'll let you when I find out something new.
Cheers Adrian |
|
May 12, 2010, 10:18 |
|
#4 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
Dear Adrian,
I think I'm on the way of solving the problem I use "sample" combined with "timeVaryingMappedFixedValue" boundary condition. You can find an example in $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDailyExpInlet You have to post process the data given by sample to be able to use then with TimeVaryingMappedFixedValue but this is easily done by Matlab (can give you the code if you want but it's very specific for my case so maybe you will have to write your own or modify mine ) |
|
May 13, 2010, 18:04 |
|
#5 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
OK after fighting with my case for Two days, it's now working with my velocity fields extracted from a plane of another case.
I had to be tricky to get it to work : sample + matlab interpolation + non uniform velocity field at inlet (no use of TimeVaryingMappedFixedValue which, for my case, did weird interpolation) So if someone is encoutering the same issue, I can explain to him and give my files to treat the data... It's case-specific and not fully automated but hey, it's working |
|
December 17, 2012, 10:49 |
|
#6 |
New Member
Join Date: Dec 2012
Posts: 7
Rep Power: 14 |
Hi Jérémy,
I'm also working with the timeVaryingMappedFixedValue. Unfortunately I get kind of weird interpolation at the inlet. Maybe the same thing happend to you. So I would be grateful if you can help me out. The inlet values files and the points file are created by octave for each timestep. Even if I place the points exactly at the cell center of the inlet patch cells (where actually no interpolation is needed) I get kind of stripes in my inlet (for e.g. velocity) distribution. see figure: https://dl.dropbox.com/u/48415338/inlet_U_openFOAM.png While the output data of octave doesn't show those stripes: https://dl.dropbox.com/u/48415338/inlet_U_octave.png (Due to time dependent fluctations the plot looks a bit ragged) best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03:09 |
Is it possible that make sampling plane not triangulated | panda60 | OpenFOAM | 2 | May 27, 2010 00:25 |
[Gmsh] boundaries with gmshToFoam | ouafa | OpenFOAM Meshing & Mesh Conversion | 7 | May 21, 2010 13:43 |
ICEM and symmetry plane | Roland | CFX | 3 | September 13, 2006 09:38 |
Mixing plane geometry definition | Hbet | FLUENT | 0 | January 18, 2002 08:16 |