# Field Function for velocity_Inlet

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 17, 2012, 10:51 Field Function for velocity_Inlet #1 New Member   KS5 Join Date: Mar 2012 Location: US Posts: 14 Rep Power: 5 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 : ((\$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.

 July 19, 2012, 03:02 #2 Senior Member     siamak rahimi ardkapan Join Date: Jul 2010 Location: Copenhagen, Denmark Posts: 218 Rep Power: 9 Do you want to jet work at interval of 0.02 and stop at the next interval of 0.02?

 July 19, 2012, 07:20 #3 New Member   KS5 Join Date: Mar 2012 Location: US Posts: 14 Rep Power: 5 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 .

July 19, 2012, 08:10
#4
Super Moderator

Ryne Whitehill
Join Date: Aug 2009
Posts: 313
Rep Power: 9
Quote:
 Originally Posted by infikamal5 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 : ((\$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)

 July 19, 2012, 08:38 #5 New Member   KS5 Join Date: Mar 2012 Location: US Posts: 14 Rep Power: 5 Thanx Ryne , i will try that and keep you updated with the result .!!

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post pauloabeck STAR-CCM+ 2 April 28, 2011 18:40 alessio.nz OpenFOAM 5 April 20, 2011 08:44 sailor FLUENT 0 April 13, 2011 03:45 Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42 PLUH STAR-CCM+ 3 July 6, 2009 08:33

All times are GMT -4. The time now is 20:59.