|
[Sponsors] |
January 19, 2012, 17:24 |
Accessing particular faces
|
#1 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
Greetings to all at the OpenFOAM forum.
If I have a set of faces set aside, let's say 10 of them in my computational domain and those faces are: label neededFaces, how can I get flow quantities of those particular faces only? I already have a surfaceScalarField of my entire domain, but I only want these 10 to use someplace else....So how can I do that Foamers? |
|
January 19, 2012, 21:29 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
I would use foamToVTK -faceSet and use Paraview to access the data using a programmable filter or python calculator. Then you have access to your data only in those 10 faces, and can calculate your desired stuff. http://www.vtk.org/Wiki/Python_Programmable_Filter http://www.itk.org/Wiki/Python_Calculator
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
January 19, 2012, 21:49 |
|
#3 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
Thanks for the reply Niels. But I need those quantities for an LES wall function that I am implementing into OpenFOAM, so they are required at runtime. Any ideas? Thanks.
|
|
January 19, 2012, 21:58 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
Well it didnt say it had to be runtime I havent looked into the coding of it but just as MRFSimpleFoam operates on a faceSet/cellSet it must be possible to see how the Coriolis force is added to the faces/cells and then reusing that for your wall function.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
January 19, 2012, 22:02 |
|
#5 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
Thanks much Niels, I am going to look into the code myself.
Cheers, Deji |
|
January 20, 2012, 15:27 |
|
#6 |
Senior Member
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17 |
I do not think that solver is in OpenFOAM anylonger, atleast not in OpenFOAM-1.7. Do you know what version has the code?
|
|
January 23, 2012, 03:43 |
|
#7 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
For 1.7.x its in the tutorials/incompressible/MRFSimpleFoam/MRFSimpleFoam folder
For 2.x versions its in the regular place for solvers.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
[ICEM] Export ICEM mesh to Gambit / Fluent | romekr | ANSYS Meshing & Geometry | 1 | November 26, 2011 13:11 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
[snappyHexMesh] external flow with snappyHexMesh | chelvistero | OpenFOAM Meshing & Mesh Conversion | 11 | January 15, 2010 20:43 |