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

extract surfaces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2019, 08:29
Default extract surfaces
  #1
New Member
 
Sara Lenzi
Join Date: Jun 2017
Location: Italy
Posts: 8
Rep Power: 8
saralen is on a distinguished road
Send a message via Skype™ to saralen
Hi all,


I'm changing the code in such a way I can extract surface average of some variable at every deltat (no time step).

I don't want to use any kind of postProcess function but directly change the main code.



I'd like do something like that:

forAll(mesh.C().boundaryField(), patchi){

const scalarField& Ap = mesh.magSf().boundaryField()[patchi];
...
}

but referring in general to a surface at a fixed z, not only to boundaryField(). I want to replace this cycle with a cycle over height.


What I can use instead of .boundaryField() ?
What field of 'mesh' I have to access to?
Where I can find more detail about OpenFOAM classes/structure?


Hope to have been clear,
Sara
saralen is offline   Reply With Quote

Reply

Tags
extract surfaces


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
Extracting results on multiple surfaces sunilpatil FLUENT 0 October 21, 2018 11:15
Cannot extract surfaces of the .vtk file in Paraview cfdcar SU2 4 August 15, 2018 09:46
[snappyHexMesh] SHM not snapping to some surfaces Swift OpenFOAM Meshing & Mesh Conversion 13 January 4, 2016 01:56
Modeling both radiation and convection on surfaces - Ansys Transient Thermal R13 s.mishra ANSYS 0 March 31, 2012 04:12
Extract surfaces? HP FLUENT 3 August 15, 2005 10:16


All times are GMT -4. The time now is 21:41.