CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Periodicity of a function (loop) CFX (https://www.cfd-online.com/Forums/cfx/69525-periodicity-function-loop-cfx.html)

uorinopuot October 26, 2009 09:01

Periodicity of a function (loop) CFX
 
Hello,

I have created a function for times 0 to 1 second. I want to make it periodical using the expressions but there is no periodicity choice. I have lots of values for my interpolated function so repeating all of them to a further range is not an option unfortunately. I was thinking about looping using expressions but i do not know how to do it.
Any ideas?
Thanks

ghorrocks October 26, 2009 17:06

Use the mod function. It does modulo arithmetic so "mod(time,1)" would return 0.57s if the time was 4.57s.

uorinopuot October 27, 2009 19:15

Works! Cheers again!


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