|
[Sponsors] |
How to use the cell coordinates in calculations? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 29, 2022, 12:59 |
How to use the cell coordinates in calculations?
|
#1 |
New Member
Matteo
Join Date: Feb 2022
Location: Italy
Posts: 4
Rep Power: 4 |
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? |
|
|
|
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 |