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

Accessing particular faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2012, 16:24
Default Accessing particular faces
  #1
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
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?
deji is offline   Reply With Quote

Old   January 19, 2012, 20:29
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
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.
linnemann is offline   Reply With Quote

Old   January 19, 2012, 20:49
Default
  #3
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
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.
deji is offline   Reply With Quote

Old   January 19, 2012, 20:58
Default
  #4
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
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.
linnemann is offline   Reply With Quote

Old   January 19, 2012, 21:02
Default
  #5
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
Thanks much Niels, I am going to look into the code myself.

Cheers,
Deji
deji is offline   Reply With Quote

Old   January 20, 2012, 14:27
Default
  #6
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 16
deji is on a distinguished road
I do not think that solver is in OpenFOAM anylonger, atleast not in OpenFOAM-1.7. Do you know what version has the code?
deji is offline   Reply With Quote

Old   January 23, 2012, 02:43
Default
  #7
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
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.
linnemann is offline   Reply With Quote

Reply


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


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 09:38
[ICEM] Export ICEM mesh to Gambit / Fluent romekr ANSYS Meshing & Geometry 1 November 26, 2011 12:11
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


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