CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Storing cell coordinates of an iso-surface every time-step in a parallel calculations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2018, 14:20
Default 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
cfdstar is on a distinguished road
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?
cfdstar is offline   Reply With Quote

Old   July 13, 2018, 06:06
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Old   July 13, 2018, 16:37
Default
  #3
New Member
 
Join Date: Aug 2017
Posts: 21
Rep Power: 9
cfdstar is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
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
Dear Alexander,

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,
cfdstar is offline   Reply With Quote

Reply

Tags
cell centre data, fluent - udf - parallel, parallel calculation, udf


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
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


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