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

How to access fields from neighbour cells with swak4Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2020, 08:08
Default How to access fields from neighbour cells with swak4Foam
  #1
New Member
 
Hugo
Join Date: Jan 2011
Location: Montreal
Posts: 27
Rep Power: 15
Hugoles is on a distinguished road
Hello,

I need to integrate the field values of cells along columns in a certain direction. Does someone know whether this is possible to do with swak?

More specifically, I need to sum a scalar field along a vertical column of cells up to a given height, so I need to access the field values of all cells below. The operation needs to be repeated for every cell layer below such height. Ideally, the calculation should look for the cells in the layers below since in the region of interest, the cell vertices are not aligned with the xyz directions (bottom surface is a terrain with varying elevation).

With this information, I need to create another field that does not change in time, so I could create it with funkySetFields. However, it would be also very useful to know if there are any function objects that can get access to cell neighbours information (besides those next to patches) during run time.

Thank you for the help!

Hugo
Hugoles is offline   Reply With Quote

Reply

Tags
cell neighbours, field access, function objects, swak4foam


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] Bad looking cells with CastelledMesh juvima OpenFOAM Meshing & Mesh Conversion 2 January 7, 2020 10:40
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[ICEM] error analysis despaired student ANSYS Meshing & Geometry 7 June 27, 2012 12:57
killed "snappyHexMesh" parkh32 OpenFOAM Pre-Processing 2 April 8, 2012 18:12


All times are GMT -4. The time now is 12:54.