CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   User Field Function Problem (https://www.cfd-online.com/Forums/star-ccm/141019-user-field-function-problem.html)

RobinZ August 28, 2014 08:08

User Field Function Problem
 
Hey Guys,
i have a problem with defining a user field function in star ccm+.
I want to have the value for the highest y position with an volume fraction value of 1, for water. So short i want to observe my water level. I tried to write this:
max($$Position[1]($VolumeFractionWater==1))
But i get an syntax error. I hope you can help me.

kguntur August 28, 2014 11:57

I am not sure if this is what you want, but you can try this to get the max y value for volume fraction of water =1
Create a threshold for volume fraction of water >0.9
(use 0.99 if you want to be very precise)
Create a maximum report with the threshold as the part and Position(j) as the function.
This report would give the max y for volume fraction of water >0.9.

Hope this helps.

ping August 29, 2014 06:18

that is a good suggestion

another method is to create an isosurface at water volume fraction 0.5 or similar and then do a max report of position on this new derived part

RobinZ September 3, 2014 08:22

Thanks a lot! I did it by creating an isosurface. It was very easy.


All times are GMT -4. The time now is 22:35.