Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How to use the Mod() Function?
Posted 2 ago 2012, 10:48 GMT-4 1 Reply
Please login with a confirmed email address before reporting spam
I have searched all over and all I can find in the documentation is simply - Mod (x,y)
Awesome, that doesn't tell me how to use it or what it is for (i'm seeing a pattern here). In addition It's been suggested on this forum many times but I can't find out how to PROPERLY use the function. Am I missing some document somewhere? I have the user and reference guides in PDF form, but it doesn't say how to use these functions.
I'm simply trying to repeat an interpolated function over and over again. I have tried all the following and other random permutations I can't recall:
Flow_Int(mod(t[1/s],1))
Flow_Int(mod(t,1))
Flow_Int(mod(t[1/s],0.5))
Flow_Int(mod(t,0.5))
Whenever it hit the point I defined such as 1 or 0.5 it tells me there is a "singularity" whatever that means... I have even tried simply sin(mod(t,1)) as my inlet and this still won't work.
*NOTE* Trying to use this on "laminar" inflow, won't work. However when I tried it in Velocity it does?!?!
Awesome, that doesn't tell me how to use it or what it is for (i'm seeing a pattern here). In addition It's been suggested on this forum many times but I can't find out how to PROPERLY use the function. Am I missing some document somewhere? I have the user and reference guides in PDF form, but it doesn't say how to use these functions.
I'm simply trying to repeat an interpolated function over and over again. I have tried all the following and other random permutations I can't recall:
Flow_Int(mod(t[1/s],1))
Flow_Int(mod(t,1))
Flow_Int(mod(t[1/s],0.5))
Flow_Int(mod(t,0.5))
Whenever it hit the point I defined such as 1 or 0.5 it tells me there is a "singularity" whatever that means... I have even tried simply sin(mod(t,1)) as my inlet and this still won't work.
*NOTE* Trying to use this on "laminar" inflow, won't work. However when I tried it in Velocity it does?!?!
1 Reply Last Post 2 ago 2012, 15:18 GMT-4