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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2020, 07: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: 12
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


All times are GMT -4. The time now is 18:14.