|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Kevin
Join Date: Jul 2023
Posts: 9
Rep Power: 2 ![]() |
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} ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Nov 2019
Posts: 79
Rep Power: 6 ![]() |
There are many ways to achieve this, for example you can nest two max functions: max(max(${CellLengthAxi}, ${CellLength2D}),${CellLength3D})
|
|
![]() |
![]() |
![]() |
Tags |
amr, field functions, star-ccm+ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |