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

Extracting data

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

Like Tree2Likes
  • 1 Post By ahmmedshakil
  • 1 Post By ksara

Reply
 
LinkBack Thread Tools Display Modes
Old   January 12, 2015, 12:54
Default Extracting data
  #1
New Member
 
Join Date: Sep 2012
Posts: 4
Rep Power: 4
Zack is on a distinguished road
Dear all:

I am running 2D unsteady case with OpenFoam. I need to extract the position (x) of Maximum temperature along the pre-defined line or through whole of my region for each time step.

Basically, I need to have a table showing the location of maximum temperature at each time step (time, X).

Could someone pls help me on that?

Thanks.
Zack is offline   Reply With Quote

Old   January 12, 2015, 22:20
Default Extracting Data
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AU
Posts: 123
Rep Power: 5
ahmmedshakil is on a distinguished road
Hi,
You can deployed probe options. Just walk bottom of the "controlDict" and plug in the following lines....
Code:
functions
{
    probes
    {
        // Where to load it from
        functionObjectLibs ( "libsampling.so" );

        type            probes;

        // Name of the directory for probe data
        name            probes;

        // Write at same frequency as fields
        outputControl   outputTime;
        outputInterval  1;

        // Fields to be probed
        fields
        (
            T   //-Fields you want to see
	    
	    
        );

        probeLocations
        (
            (0		   0 	 	 0) //-point locations (x,y,z)
	   	    			
	);        			
            
    }
}
I guess, it will be helpful.

cheers
shakil

Quote:
Originally Posted by Zack View Post
Dear all:

I am running 2D unsteady case with OpenFoam. I need to extract the position (x) of Maximum temperature along the pre-defined line or through whole of my region for each time step.

Basically, I need to have a table showing the location of maximum temperature at each time step (time, X).

Could someone pls help me on that?

Thanks.
Zack likes this.
ahmmedshakil is offline   Reply With Quote

Old   January 12, 2015, 23:45
Default
  #3
New Member
 
Join Date: Sep 2012
Posts: 4
Rep Power: 4
Zack is on a distinguished road
Hi Shakil

Thank you for your help.

I am just wondering that the probe you gave me would record the temperature at location (0,0,0) for each time step/time interval?

Actually what I am looking for is:

at each time step or specified time interval, record the location of the point which has maximum temperature on either my whole region or specified/predefined line in my region.

Could you pls guide me on that?
Zack is offline   Reply With Quote

Old   January 13, 2015, 05:06
Default
  #4
New Member
 
Join Date: Sep 2013
Posts: 1
Rep Power: 0
ksara is on a distinguished road
Hi Zack,

In order to get the maximum (and minimum) value and location of temperature in the whole region for every time step you can use 'fieldMinMax' function, which is added to the 'controlDict' file.

Code:
functions
{
    minMax
    {
        // Type of functionObject
        type            fieldMinMax;

        // Where to load it from (if not already in solver)
        functionObjectLibs ("libfieldFunctionObjects.so");

        // Function object enabled flag
        enabled         true;

        // Log to output (default: false)
        log             false;

        // Write information to file (default: true)
        write           true;

        // Fields to be monitored - runTime modifiable
        fields
        (
            T
        );
    }
}
As a result you receive a 'fieldMinMax.dat' file, which contains something like that:
Quote:
# Time field min position(min) processor max position(max) processor
2.010100e+04 T 8.081115e+02 (-4.421370e-01 1.144333e-01 -2.089623e-01) 7 9.231500e+02 (-1.583240e-02 1.705093e-02 1.317570e-01) 0
2.010200e+04 T 8.072860e+02 (-4.421370e-01 1.144333e-01 -2.089623e-01) 7 9.249336e+02 (-2.547975e-02 1.920170e-02 1.509917e-01) 9
ksara
Zack likes this.
ksara is offline   Reply With Quote

Old   January 13, 2015, 13:12
Default
  #5
New Member
 
Join Date: Sep 2012
Posts: 4
Rep Power: 4
Zack is on a distinguished road
Hi ksara

Thanks for your response.

I have three more questions as well:

1- If I have some points (rather than one point) which have maximum temperature , how would I be able to record only the one which has higher/lower amount of X? Can I modify the fieldMinMAx function in a way to do that for me ?

2- If I want to track location of specified field value ( such as T=800 K), how would I be able to do it?

3- If I want to track Maximum/Minimum/specified value of temperature along the arbitrary line in my region (exp : center line in region rather than whole region), how should I do that? Where should I define the line and where I suppose to mention that in monitoring code?

I appreciate for your help again.

Last edited by Zack; January 13, 2015 at 17:20.
Zack 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
【Help】"Error: Update_Time_Level: invalid data" Chen FLUENT 2 August 24, 2014 07:51
fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 May 2, 2013 10:52
Extracting ParaView Data into Python Arrays Jeffzda ParaView 7 December 6, 2012 09:10
export data at nodes Meenu FLUENT 1 December 30, 2011 02:24
Extracting Stream Function from nodal u,v data Abhijit Tilak Main CFD Forum 5 March 8, 2004 17:13


All times are GMT -4. The time now is 16:31.