How Can I identify who is the maximum variable? #20171
-
Hi all! I want to identify which is the maximum force in each cell, but not the maximum value. Let's suppose the new variable is named var. I want something like this:
So in a pseudocolor plot, then I can see which force dominates in every region. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
We can define something like this using the expression editor.
Is this what you're looking for? We take the max of the three forces and subtract out each of the forces, then take the absolute value and check if it is below some epsilon (I chose 0.0001). Then we can use the conditional structure to pick a value for each force and a value for no force, which shouldn't be any of the cells. |
Beta Was this translation helpful? Give feedback.
-
Hi @JustinPrivitera! Best regards! |
Beta Was this translation helpful? Give feedback.
We can define something like this using the expression editor.
Is this what you're looking for? We take the max of the three forces and subtract out each of the forces, then take the absolute value and check if it is below some epsilon (I chose 0.0001). Then we can use the conditional structure to pick a value for each force and a value for no force, which shouldn't be any of the cells.