|
[Sponsors] |
![]() |
![]() |
#1 |
Member
supercommandodhruv
Join Date: Sep 2011
Posts: 57
Rep Power: 13 ![]() |
Hello All,
I am using probes function to have data points at some locations in my domain. I have 2 questions. 1. If I use U as fields, I get the three components at of velocity at that point. Is there a way to get the magnitude of velocity at that point (like mag U) ? 2. For the location of the probes, I have different locations which changes with every test case, so I want the controlDict to read the locations from from a different file, where I have set the formula for the location points. How can I do this? Thanks in advance for your help. Dhruv. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 17 ![]() |
Hi,
I'm not sure about the first question, maybe someone else can help you there. For the second question; you can use include statements in your controlDict file, Code:
... probeLocations ( #include "some/PATH/someFile" ); ... Good Luck /N |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
supercommandodhruv
Join Date: Sep 2011
Posts: 57
Rep Power: 13 ![]() |
Thanks nsf,
I also looked in one of the tutorials, and found the same. I will try it today. Dhruv. Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#4 | |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 17 ![]() |
Quote:
Here's a trick I'd like to share for those new to linux and bash. Let's say you wanted to find tutorial examples that use include statements in the controlDict file, this one-liner can help you Code:
find $FOAM_TUTORIALS -name controlDict | xargs grep "#include" Hopefully someone will find this useful ![]() /Nicolas |
||
![]() |
![]() |
![]() |
Tags |
probes |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error using probes | balkrishna | OpenFOAM Running, Solving & CFD | 6 | November 12, 2010 04:55 |
Resolving Velocity Magnitudes with Probes | steph79 | OpenFOAM | 2 | August 9, 2010 18:16 |
probes for a component of a volTensorField | titio | OpenFOAM Post-Processing | 0 | July 2, 2010 13:50 |
problems with probes() function in chtMultiRegionFoam | Victor | OpenFOAM | 0 | November 25, 2009 15:08 |
Probes and multiprocessor runs | grtabor | OpenFOAM Running, Solving & CFD | 1 | June 12, 2007 13:59 |