|
[Sponsors] |
December 27, 2012, 03:23 |
probe a line or lines as similar by sample
|
#1 |
New Member
Qiang Zhou
Join Date: May 2010
Location: Eindhoven University of Technology
Posts: 28
Rep Power: 16 |
Hi foamers,
I am wondering is it possible to probe a line (or lines) with setting the start point and end point as similar that in sample. Any ideas and advice would be highly appreciated! Zhou Qiang |
|
January 3, 2013, 12:59 |
|
#2 | ||
Member
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 15 |
Hi,
It's convenient to use #include "fliename": [probes] Quote:
Write in probeLocations like this: Quote:
Nick |
|||
January 3, 2013, 21:29 |
|
#3 | |
New Member
Qiang Zhou
Join Date: May 2010
Location: Eindhoven University of Technology
Posts: 28
Rep Power: 16 |
Hi, Sun.
Thank you for your advice. In fact, I wanna know how we can probe a line as sample a line as shown below. Quote:
|
||
January 3, 2013, 23:19 |
|
#4 |
Member
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 15 |
Hi, Zhou
As far as I know, there is no such function available. If there is any, please let me know! I think "probe on a line" is less flexible than providing points directly, since the latter can probe at any place you like, while the former can only get limited locations like 4/100*n as mentioned in your probe line. If I wanna probe more densely near the wall, this would fail me. So in my opinion, providing probe location is the most versatile and straightforward way! Best regards! Nick |
|
July 31, 2013, 12:49 |
probe a point using sampleDict
|
#5 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Dear all:
Is it possible to probe a point to obtain pressure values as postprocessing? I have included the following in my sampleDict to probe the pressure, but when I run sample, I do not get any results. functions { probes1 { type probes; functionObjectLibs ("libsampling.so"); region region1; probeLocations ( (0 0.5 -0.3) ); fields (p); } } |
|
August 2, 2013, 10:15 |
probe at a point
|
#6 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Apparently there is a dictionary called "probesDict". And the code for that is as follows:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object probesDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Fields to be probed. runTime modifiable! // To run this file, type "probeLocations" in the solver directory fields ( p ); // Locations to be probed. runTime modifiable! probeLocations ( (0.0 0.45 -0.3) ); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // This is a variation of the one available at this URL: https://github.com/OpenFOAM/OpenFOAM...tem/probesDict The dict file I have included here was modified from the one in the URL above so that I could probe a sloshingtank2d problem. The problem I have is that OpenFOAM cannot find the probe location (0 0.49 -0.3) during the postprocessing. Apparently as I am using moving mesh, the point is not always there. Does anyone know of a work around? Thanks. |
|
June 13, 2020, 22:12 |
|
#7 |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Sir, I m also trying to get a probe value at every time-step of U,p,UPrime2Mean and R field along a line. How can I use these code to get it in openfoam? Anykind of help is really acceptable.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] discretizer - gmshToFoam | Andyjoe | OpenFOAM Meshing & Mesh Conversion | 13 | March 14, 2012 05:35 |
[Gmsh] Layers in a curved surface | Artex85 | OpenFOAM Meshing & Mesh Conversion | 1 | December 18, 2011 09:51 |
functions on parallel sample along line | tonyuprm | OpenFOAM | 0 | May 2, 2011 08:41 |
errors | Fahad | Main CFD Forum | 0 | March 23, 2004 14:20 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 15, 2003 00:19 |