CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Resolving Velocity Magnitudes with Probes

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2010, 17:51
Default Resolving Velocity Magnitudes with Probes
  #1
Member
 
Join Date: Jul 2010
Posts: 37
Rep Power: 15
steph79 is on a distinguished road
Hi again. I wish to use OpenFOAM to calculate velocity magnitudes in the flow field with respect to time however I have only been able to code for the two respective points below to resolve the u, v and w components which I would rather not have to post-process. I think that the magnitudes need to be calculated and then magU used but I haven't seen this explicitly coded elsewhere on some google searches. Any help would be appreciated, if I haven't explained myself clearly enough then let me know!

Thanks.


Code:
 FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     icoFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         0.02;

deltaT          0.0001;

writeControl    timeStep;

writeInterval   10;

purgeWrite      0;

writeFormat     ascii;

writePrecision  12;

writeCompression uncompressed;

timeFormat      general;

timePrecision   12;

runTimeModifiable yes;

libs ( "libOpenFOAM.so" "libgroovyBC.so" ) ;

functions
{
	probes
	{
		type			probes;
		functionObjectLibs 	("libsampling.so");
		enabled 		true;
		outputControl		timeStep;
		outputInterval 		10;
		probeLocations
		(
			( 1 10 0.5 )
			( 2 2  0.5 )
		);
	fields
		(
		U
		);
	}
}
steph79 is offline   Reply With Quote

Old   August 9, 2010, 18:56
Default
  #2
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
There was a utility called magU in OpenFOAM. Not sure whether it is still around. Just try typing magU and see what happens. If it does exist, then either magU or it's source should tell you how to proceed. Good Luck!
msrinath80 is offline   Reply With Quote

Old   August 9, 2010, 19:16
Default
  #3
Member
 
Join Date: Jul 2010
Posts: 37
Rep Power: 15
steph79 is on a distinguished road
Quote:
Originally Posted by msrinath80 View Post
There was a utility called magU in OpenFOAM. Not sure whether it is still around. Just try typing magU and see what happens. If it does exist, then either magU or it's source should tell you how to proceed. Good Luck!
Thanks, I tried that already but it seems to ignore the magU and persists as though it was U. I was thinking that this may have been because I haven't correctly calculated the magU's beforehand though!
steph79 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unbelievably high velocity magnitudes in film cooling - HELP! shankara.2 FLUENT 0 June 1, 2009 23:43
Velocity in Porous medium : HELP! HELP! HELP! Kali Sanjay Phoenics 0 November 6, 2006 07:10
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 25, 2006 00:09
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 03:13
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 01:48.