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

Finding max value using Field Functions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2023, 16:34
Default Finding max value using Field Functions
  #1
New Member
 
Kevin
Join Date: Jul 2023
Posts: 9
Rep Power: 2
kev11 is on a distinguished road
Hello all,

I am currently trying to refine my mesh using AMR, and I am using field functions as criteria. One of my field functions is dependent on cell length, where cell length is the largest dimension of the cell.

For instance, I have three variables, ${CellLengthAxi}, ${CellLength2D}, & ${CellLength3D}. I want to save my variable ${CellLength} as the max of the three length variables listed above. I tried writing a whole boolean statement, but it isn't working, unfortunately.

Is there a way to save those three length variables in an array, and just call a max function to obtain the max and save that value as ${CellLength} . If there is an easy way to do this, let me know! Thanks in advance!!
kev11 is offline   Reply With Quote

Old   August 9, 2023, 04:22
Default
  #2
Member
 
Join Date: Nov 2019
Posts: 89
Rep Power: 6
FliegenderZirkus is on a distinguished road
There are many ways to achieve this, for example you can nest two max functions: max(max(${CellLengthAxi}, ${CellLength2D}),${CellLength3D})
FliegenderZirkus is offline   Reply With Quote

Reply

Tags
amr, field functions, star-ccm+

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 03:05
multiphaseEulerFoam high Courant number Frenk_T OpenFOAM 5 November 24, 2016 04:23
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
''unknown radialModelType type Gidaspow'' PROBLEM WITH THE BED TUTORIAL AndoniBM OpenFOAM Running, Solving & CFD 2 March 25, 2015 19:44


All times are GMT -4. The time now is 03:56.