|
[Sponsors] |
sampleDict: automatically sample all neighboring cells of a line |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 31, 2017, 08:10 |
sampleDict: automatically sample all neighboring cells of a line
|
#1 |
New Member
Michael Hoss
Join Date: Sep 2016
Posts: 8
Rep Power: 9 |
Dear OpenFoamers,
I want to sample data around an axis using sampleDict. In order to get values of cells that are actually intersected by the axis (see illustration below), I can just use the keyword "midPoint", which requires the axis and then chooses the cells accordingly. Now, what is the easiest way to also get the values in the neighboring cells of that axis, in order to compute finite differences? Unfortunately, my grid has several refinement levels, which is why I cannot just specify 3 different axes. It would be a lot of work to manually specify all points where samples should be written. However, my axis points straight into z-direction, which could make it easy. Is there a way to get these values automatically using uniform, face, midPoint, midPointAndFace etc. or will I have to edit the code of libsampling.so and write it myself? |
|
March 16, 2017, 09:19 |
|
#2 |
New Member
Michael Hoss
Join Date: Sep 2016
Posts: 8
Rep Power: 9 |
Since a quick solution is not in sight and I did not want to dive in too deep into the C++ code, I have specified every single point that needs to be sampled individually. This was done by a script in bash that outputs a textfile with all sample locations.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Compiling hacFoam (Ubuntu 10.04)(OF2.0.0)(LAMMPS13Jul2010)) | Henrik_E | OpenFOAM Installation | 3 | September 29, 2016 16:16 |
[OpenFOAM] Take derivative of mean velocity in paraFoam | hiuluom | ParaView | 13 | April 26, 2016 06:44 |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 11:37 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 14, 2003 23:19 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 15:16 |