|
[Sponsors] |
Storing cell coordinates of an iso-surface every time-step in a parallel calculations |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2018, 14:20 |
Storing cell coordinates of an iso-surface every time-step in a parallel calculations
|
#1 |
New Member
Join Date: Aug 2017
Posts: 21
Rep Power: 9 |
I am dealing with a transient simulation and am performing parallel calculations. I wanted to extract coordinates of the cell centres on an iso-surface of a scalar (e.g. pressure) every time-step and store them in an array. This array should be accessible to other subroutines (e.g. Define_adjust). Is there any UDF to this end?
|
|
July 13, 2018, 06:06 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
You may use Define_execute_at_end macro to organize after each timestep a loop over all cells in your domain and check the condition you want (for instance pressure = 1atm).
than you may organize here writing to the array. Or you may make a flag for cells where the condition is true. All of these data you may use in other macro Define_adjust for instance. best regards |
|
July 13, 2018, 16:37 |
|
#3 | |
New Member
Join Date: Aug 2017
Posts: 21
Rep Power: 9 |
Quote:
Thanks for your reply. With the method you suggest, the array has a variable length that a value should be assigned to its elements in a macro (let's say execute_at_end, which is running on each node separately) and this array should be visible to other nodes as well. Then, the question is how to define this array and make it accessible to other computational nodes. The other question is how to address the elements in this array since each computational node has a different number of cells containing that iso-surface. Regards, |
||
Tags |
cell centre data, fluent - udf - parallel, parallel calculation, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time Step Continuity Errors simpleFoam | Dorian1504 | OpenFOAM Running, Solving & CFD | 1 | October 9, 2022 10:23 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 12:08 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |