|
[Sponsors] |
October 4, 2011, 06:07 |
Probes
|
#1 |
Member
supercommandodhruv
Join Date: Sep 2011
Posts: 57
Rep Power: 15 |
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. |
|
October 4, 2011, 12:46 |
|
#2 |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18 |
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 |
|
October 5, 2011, 03:55 |
Thanks
|
#3 | |
Member
supercommandodhruv
Join Date: Sep 2011
Posts: 57
Rep Power: 15 |
Thanks nsf,
I also looked in one of the tutorials, and found the same. I will try it today. Dhruv. Quote:
|
||
October 5, 2011, 13:59 |
|
#4 | |
Senior Member
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18 |
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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error using probes | balkrishna | OpenFOAM Running, Solving & CFD | 6 | November 12, 2010 05:55 |
Resolving Velocity Magnitudes with Probes | steph79 | OpenFOAM | 2 | August 9, 2010 19:16 |
probes for a component of a volTensorField | titio | OpenFOAM Post-Processing | 0 | July 2, 2010 14:50 |
problems with probes() function in chtMultiRegionFoam | Victor | OpenFOAM | 0 | November 25, 2009 16:08 |
Probes and multiprocessor runs | grtabor | OpenFOAM Running, Solving & CFD | 1 | June 12, 2007 14:59 |