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

probe of mag(U)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 2, 2014, 10:36
Default probe of mag(U)
  #1
New Member
 
Join Date: Oct 2013
Posts: 21
Rep Power: 5
flux is on a distinguished road
Hi,

i am trying , to probe the magnitude of the U-field at a specific position.

I have already tried the following code in my controldict, but i always get the U-field in components or nothing:

Code:
  
functions {
    probes
    {
        type            probes;
        functionObjectLibs     ("libsampling.so");
        enabled                 true;
        outputControl        timeStep;
        outputInterval       1;
        probeLocations
        (
            (-0.2 -0.05 0)
        );

        fields
        (
        U
        magU
        mag(U)
        );
    }
}
So what should i do, to get an x-y list of the itaration step and the magnitude of the U field?


Thanks!
flux is offline   Reply With Quote

Old   April 3, 2014, 07:31
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Delft, Netherlands
Posts: 328
Rep Power: 12
tomf is on a distinguished road
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

I am not sure if it can be done within the controldict, but this command on the terminal will give you the magnitude of U for each probed timestep:

Code:
sed 's/(/ /g' postProcessing/probes/0/U | sed 's/)/ /g' | awk '{print $1 " " sqrt($2*$2+$3*$3+$4*$4)}' >  postProcessing/probes/0/magU
Regards,
Tom
tomf is offline   Reply With Quote

Old   April 9, 2014, 04:10
Default
  #3
New Member
 
Join Date: Oct 2013
Posts: 21
Rep Power: 5
flux is on a distinguished road
thx, but i calculated the magnitude with excel^^
flux is offline   Reply With Quote

Old   April 9, 2014, 07:48
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi,

I am not sure if it can be done within the controldict, but this command on the terminal will give you the magnitude of U for each probed timestep:

Code:
sed 's/(/ /g' postProcessing/probes/0/U | sed 's/)/ /g' | awk '{print $1 " " sqrt($2*$2+$3*$3+$4*$4)}' >  postProcessing/probes/0/magU
Regards,
Tom
Your sed commands can be replaced by
Code:
tr "()" " "
Bernhard is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Probe Smoothing badger1 STAR-CCM+ 1 May 21, 2013 22:36
Heat transfer/Temperature along a tube and probe. moienfar-CFD FLUENT 4 March 4, 2013 12:29
new atmospheric probe design manobianco Main CFD Forum 0 May 12, 2012 15:04
functionObject Probe: it's possible to stop and restart? ivan_cozza OpenFOAM Post-Processing 0 September 28, 2010 04:42
Using Probe for part of a patch ndr OpenFOAM Running, Solving & CFD 5 November 8, 2009 04:47


All times are GMT -4. The time now is 20:51.