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

How to use the cell coordinates in calculations?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2022, 12:59
Default How to use the cell coordinates in calculations?
  #1
New Member
 
Matteo
Join Date: Feb 2022
Location: Italy
Posts: 4
Rep Power: 4
Teus_po is on a distinguished road
Hello everyone, I want to simulate the swirl and tumble number along with the poppet valves flow coefficient. The swirl and tumble coefficients are calculated as the first imege shows.

In order to do so, I created a new Field using a function object, as described here: integrate multiplication of fields

My function object is as shown in the file "dMom.txt" attached.

Without putting the general coordinate, it works, it calculates the new field, my problem is to actually put the single cell coordinate in the calculation. I tried with some methods on internet, as the one tried in the file but I couldn't make it.

The swirl axis is the z one, and there's a -0.14 in the y because is the position of the axis of the cylinder.

Any ideas?
Attached Images
File Type: png Swirl.png (15.7 KB, 1 views)
Attached Files
File Type: txt dMom.txt (2.1 KB, 2 views)
Teus_po 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
UDF: Given coordinates, How to identify the cell? Zhang Fluent UDF and Scheme Programming 26 August 15, 2022 05:54
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
Selecting cell closest to coordinates (and setting its field value) rando_foamer OpenFOAM Pre-Processing 2 May 14, 2019 05:15
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
momentum source term depending on cell coordinates nikolas FLUENT 0 January 30, 2007 10:00


All times are GMT -4. The time now is 11:40.