|
[Sponsors] |
July 31, 2013, 20:04 |
probesDict issues
|
#1 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Dear all:
I am trying to use probesDict to capture pressure at 0.1m from the bottom of 2D tank (sloshingtank2D, interDymFoam). The tank is 1mX1mX0.1m. Fluid depth is 0.4m. The axis origin (0,0,0) is at midpoint of the tank 0.4m above the bottom (at the water surface). My probesDict file is as follows: Code:
/*--------------------------------*- 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.5 -0.3) ); // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Code:
Time = 0.55 Time = 0.6 Time = 0.65 --> FOAM Warning : From function findElements::findElements(const fvMesh&) in file probes/probes.C at line 105 Did not find location (0 0.5 -0.3) in any cell. Skipping location. Thanks. Last edited by wyldckat; October 6, 2013 at 13:43. Reason: Added [CODE][/CODE] |
|
August 2, 2013, 14:52 |
|
#2 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
August 2, 2013, 16:02 |
probe a point using sampleDict
|
#3 | |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Quote:
Any suggestions? |
||
October 6, 2013, 14:36 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
For reference, I'm coming from Musa's other thread: http://www.cfd-online.com/Forums/ope...tml#post455342 OK, the situation is this: the "probesDict" specifies points in their absolute position in the reference world. This means that they do not move with the mesh itself. Therefore, there are two possible solutions here:
Code:
probeLocations ( (0.0 0.5 -0.3) //0s (0.0 0.52 -0.31) //0.1s (0.0 0.53 -0.32) //0.2s (0.0 0.54 -0.33) //0.3s (0.0 0.55 -0.36) //0.4s (0.0 0.56 -0.37) //0.5s ); // Best regards, Bruno
__________________
|
|
October 7, 2013, 09:29 |
|
#5 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Thankyou for your response. However, if I am running a simulation with 4000 time steps, then it would be impractical to try and create a list of coordinates - would you not agree, or is there an easy way of obtaining the probe coordinates as the mesh moves?
Musa |
|
October 7, 2013, 17:39 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Musa,
Then all that is left is for you to take care of the possibility #1: Quote:
Bruno
__________________
Last edited by wyldckat; October 7, 2013 at 17:41. Reason: see "edit:" |
||
October 8, 2013, 16:31 |
|
#7 | |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Quote:
http://www.openfoam.org/mantisbt/view.php?id=1039 hopefully we will see something soon. |
||
March 23, 2014, 14:57 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick update - As I've just reported on the bug tracker:
Quote:
|
||
March 24, 2014, 10:03 |
Point probe close to wall gives errors
|
#9 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
Thankyou very much for your response. I will take a look. I am using the older version of OpenFOAM (2.2.1) not the 2.3 which is now available from the OpenFoam site.
|
|
April 1, 2014, 09:26 |
|
#10 |
Senior Member
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18 |
||
April 5, 2014, 20:37 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
I took a better look into this and found out that this was fixed here: http://www.openfoam.org/mantisbt/view.php?id=1090
The respective commit: https://github.com/OpenFOAM/OpenFOAM...f27b5d573c2a9b To apply this fix, try to see if this works: Code:
cd $FOAM_SRC/sampling/probes/ wget "https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-2.2.x/541b8b0e6498e56728743128a3f27b5d573c2a9b/src/sampling/probes/probes.C" -O probes.C wget "https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-2.2.x/541b8b0e6498e56728743128a3f27b5d573c2a9b/src/sampling/probes/probes.H" -O probes.H wget "https://raw.githubusercontent.com/OpenFOAM/OpenFOAM-2.2.x/541b8b0e6498e56728743128a3f27b5d573c2a9b/src/sampling/probes/probesTemplates.C" -O probesTemplates.C cd .. wmake libso Bruno
__________________
|
|
September 5, 2016, 11:57 |
|
#12 |
New Member
Ali Aghaei
Join Date: Oct 2014
Posts: 12
Rep Power: 12 |
Dear Bruno,
is this also the case for foam-extend 3.1 or other versions of foam-extend? Thank you in advance! Last edited by alia; September 6, 2016 at 13:11. |
|
Tags |
inerdymfoam, probe, probe pressure, probedict, sloshingtank2d |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
probe a line | GerhardHolzinger | OpenFOAM Post-Processing | 14 | July 11, 2020 15:13 |
[General] Issues with output to VTK format | akail | ParaView | 0 | February 19, 2013 15:38 |
[General] Some Paraview Issues I can not solve | MR_Chicho | ParaView | 1 | September 24, 2012 06:03 |
License and Network issues | scottneh | STAR-CCM+ | 2 | September 12, 2011 19:27 |
FLUENT Speed Issues on Cluster | cfd23 | FLUENT | 2 | April 4, 2010 00:43 |