CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

grep -r inletOutlet

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

Like Tree2Likes
  • 1 Post By chelvistero
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Display Modes
Old   May 27, 2010, 21:54
Default grep -r inletOutlet
  #1
Member
 
Join Date: Dec 2009
Posts: 33
Rep Power: 7
smillion is on a distinguished road
Hey guys,

I'm trying to find all the case files where it uses the inletOutlet condition.

I've tried typing grep -r inletOutlet and ls | grep -r inletOutlet within my tutorials directory. Problem is it takes forever to search unless I'm doing something wrong.

Please help?
smillion is offline   Reply With Quote

Old   May 28, 2010, 02:10
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 198
Rep Power: 7
Chris Lucas is on a distinguished road
Hi,

you can use the programm "docFetcher" you search all files

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   May 28, 2010, 02:35
Default
  #3
Member
 
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 7
chelvistero is on a distinguished road
Hi,
try "grep -ir inletOutlet *" . I think that should work!

Regards, Axel
mm.abdollahzadeh likes this.
chelvistero is offline   Reply With Quote

Old   May 28, 2010, 03:05
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,608
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Good morning

You could also try

find ./ -type d -name "0" | xargs grep -r inletOutlet

This is of course limited to the 0 time folder, however it should be more than sufficient in your case and it is fast.

Have fun

Niels
ngj is offline   Reply With Quote

Old   May 28, 2010, 08:47
Default
  #5
Member
 
Join Date: Dec 2009
Posts: 33
Rep Power: 7
smillion is on a distinguished road
Thanks for the help.
smillion is offline   Reply With Quote

Old   May 31, 2010, 05:21
Default
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by smillion View Post
Hey guys,

I'm trying to find all the case files where it uses the inletOutlet condition.

I've tried typing grep -r inletOutlet and ls | grep -r inletOutlet within my tutorials directory. Problem is it takes forever to search unless I'm doing something wrong.

Please help?
If you are looking for examples from 1.6.x, this is quite fast:
Code:
git grep --cached inletOutlet
mm.abdollahzadeh likes this.
olesen is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial of how to plot residuals ! wolle1982 OpenFOAM Running, Solving & CFD 112 July 30, 2015 04:09
Inletoutlet rengu OpenFOAM Running, Solving & CFD 7 June 8, 2015 03:02
Plotting Residuals ata OpenFOAM 12 July 8, 2011 02:50
InletOutlet boundary condition in motorBike tutorial madad2005 OpenFOAM 2 November 27, 2009 09:15
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 19:38


All times are GMT -4. The time now is 05:29.