|
[Sponsors] |
January 12, 2015, 12:54 |
Extracting data
|
#1 |
New Member
Join Date: Sep 2012
Posts: 23
Rep Power: 14 |
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. |
|
January 12, 2015, 22:20 |
Extracting Data
|
#2 | |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15 |
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) ); } } cheers shakil Quote:
|
||
January 12, 2015, 23:45 |
|
#3 |
New Member
Join Date: Sep 2012
Posts: 23
Rep Power: 14 |
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? |
|
January 13, 2015, 05:06 |
|
#4 | |
New Member
Join Date: Sep 2013
Posts: 1
Rep Power: 0 |
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 ); } } Quote:
|
||
January 13, 2015, 13:12 |
|
#5 |
New Member
Join Date: Sep 2012
Posts: 23
Rep Power: 14 |
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. |
|
May 6, 2024, 17:34 |
|
#6 | |
New Member
Vahid
Join Date: Aug 2023
Posts: 2
Rep Power: 0 |
Quote:
the max and min temp in my field? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 22:00 |
【Help】"Error: Update_Time_Level: invalid data" | Chen | FLUENT | 2 | August 24, 2014 08:51 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
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 |