|
[Sponsors] |
How to extract data from specific domain instead of whole domain |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 28, 2023, 04:07 |
How to extract data from specific domain instead of whole domain
|
#1 |
New Member
Mach
Join Date: Jun 2023
Posts: 4
Rep Power: 3 |
Hell everyone!
I would like to extract data near airfoil for particular study rather than to work on full domain data because it is too much resource consuming. Can you help me with any function present in openfoam for this particular task or in paraview. |
|
August 28, 2023, 04:26 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hello,
In ParaView you can use the clip filter, with a "clip type: box" for instance to clip your domain and keep only the part you want to work with. Cheers, Yann |
|
August 28, 2023, 13:32 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
One option would be to specify the restricted region and generate output files during the simulation. Would normally recommend the ensightWrite functionObject (for small output sizes with a static mesh), but the vtkWrite functionObject would work equally well. If you check the documentation of ensightWrite, you will see that it supports a geometric selection mechanism: Code:
selection { box { action use; source box; box (-0.1 -0.01 -0.1) (0.1 0.30 0.1); } dome { action add; shape sphere; origin (-0.1 -0.01 -0.1); radius 0.25; } centre { action subtract; source sphere; origin (-0.1 -0.01 -0.1); radius 0.1; } blob { action add; source surface; surface triSurfaceMesh; name blob.stl; } } With these functionObjects, you can specify which fields you wish to output as well. |
||
August 30, 2023, 03:04 |
|
#4 |
New Member
Mach
Join Date: Jun 2023
Posts: 4
Rep Power: 3 |
Thank You Yann, I got the desired result through this first applying clip then slice over it. Now I am trying get the data of every snapshot in one csv file , do you know any command for that or we have to write a python script?
|
|
August 30, 2023, 03:09 |
|
#5 | |
New Member
Mach
Join Date: Jun 2023
Posts: 4
Rep Power: 3 |
Quote:
|
||
Tags |
airfoil, domain, postprocess |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Problem with Mesh conversion from FLUENT Meshing to OpenFOAM | mn17jyf | OpenFOAM Meshing & Mesh Conversion | 3 | November 1, 2023 10:49 |
Extract data at a specific depth | reespanau | OpenFOAM Post-Processing | 1 | May 15, 2023 07:45 |
Turbomachinery Mass imbalance | sheaker | CFX | 12 | September 5, 2019 09:09 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |