CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Get position of minval/maxval of a simulated field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2017, 19:31
Default Get position of minval/maxval of a simulated field
  #1
New Member
 
Val Jewtoukoff
Join Date: May 2017
Posts: 4
Rep Power: 8
vjewtou is on a distinguished road
Hi all,

I would like to calculate the transient (x0, y0) position of the minimum of a field (pressure for example) projected on a horizontal section.

I have looked online how to do this but couldn't find anything that does what I need. Does anyone please know how to do this?

I need this to track the center of a simulated vortex and calculate angular momentum about its axis, using a user field function defined by: (x-x0)*v-(y-y0)*u,
where (x, y) are horizontal coordinates, and (u, v) are the horizontal components of velocity.

Thanks in advance!
vjewtou is offline   Reply With Quote

Old   September 11, 2017, 07:16
Default
  #2
Senior Member
 
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20
ping is on a distinguished road
a series of reports and thresholds should be able to do this.
you could start with a min report to get the value of the require field.
then create a user field function that is a very small fraction larger than that field report.
then create a threshold of using the new user field as the input scalar in below mode and it will create a subset of cells hopefully just one that is the one required.
then do an average report of this threshold part to report on cell centroid x.
likewise for y and you have the require coordinates at each timestep.
i am pretty sure if you search a bit wider on the steve support portal you will find related articles.
ping is offline   Reply With Quote

Old   September 11, 2017, 20:18
Default
  #3
New Member
 
Val Jewtoukoff
Join Date: May 2017
Posts: 4
Rep Power: 8
vjewtou is on a distinguished road
Thank you!

Your message helped me a lot. What I did was first to make a pressure isosurface (with a value close to the minimum), and then making a vertical threshold of that isosurface between 0 and 10 m above the surface. Finally, I make a report to calculate the surface average and get X and Y positions.
vjewtou 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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
creating an internal field? maybee OpenFOAM Programming & Development 2 February 4, 2021 17:15
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
field functions - table crevoise STAR-CCM+ 3 March 26, 2013 09:37
Import field from CFX5 result file top OpenFOAM 2.1.1 konneym OpenFOAM Pre-Processing 0 March 5, 2013 13:20


All times are GMT -4. The time now is 16:34.