CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Field Function for velocity_Inlet (https://www.cfd-online.com/Forums/star-ccm/104866-field-function-velocity_inlet.html)

 infikamal5 July 17, 2012 10:51

Field Function for velocity_Inlet

I would like to know if its possible to create a field function for a jet inlet at particular time step . For example i tried to make the jet inlet work for every 0.02 s so i wrote a Field_Function as follows : :confused:

((\$Time*100)%2 == 0 ) ? 5 : 0

But this function is not working properly . Can some one suggest me any other way to have a Jet_inlet field function at periodic time step.

 siara817 July 19, 2012 03:02

Do you want to jet work at interval of 0.02 and stop at the next interval of 0.02?

 infikamal5 July 19, 2012 07:20

I want my jet to work in a periodic way for example it should work for all the even time as 0.02s , 0.04s , 0.06s , 0.08s, 0.10s and so on , but it should not be working for odd time value as 0.01s , 0.03s , 0.05s etc ... so that i will have a periodic jet velocity inlet .

 rwryne July 19, 2012 08:10

Quote:
 Originally Posted by infikamal5 (Post 371916) I would like to know if its possible to create a field function for a jet inlet at particular time step . For example i tried to make the jet inlet work for every 0.02 s so i wrote a Field_Function as follows : :confused: ((\$Time*100)%2 == 0 ) ? 5 : 0 But this function is not working properly . Can some one suggest me any other way to have a Jet_inlet field function at periodic time step.

I think to do modulus in STAR-CCM+, you need to use mod(). I.e. mod(\$Time,2)

 infikamal5 July 19, 2012 08:38

Thanx Ryne , i will try that and keep you updated with the result .!!

 All times are GMT -4. The time now is 21:44.