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

motorBike tutorial won't run correctly with 2.2.x

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 31, 2013, 09:42
Default motorBike tutorial won't run correctly with 2.2.x
  #1
New Member
 
Join Date: May 2013
Posts: 3
Rep Power: 4
Dan_Sobien is on a distinguished road
Hey everyone,

I'm trying to run the motorBike tutorial with OpenFOAM-2.2.x, but it is not running correctly. I haven't changed anything in the directory and it gives the following error when executing the ./Allrun command:

Code:
xargs: illegal option -- i
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
             [-L number] [-n number [-x]] [-P maxprocs] [-s size]
             [utility [argument ...]]
xargs: illegal option -- i
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
             [-L number] [-n number [-x]] [-P maxprocs] [-s size]
             [utility [argument ...]]
The lines from the Allrun file that I believe are causing these are:

Code:
ls -d processor* | xargs -i  rm -rf ./{}/0 $1
ls -d processor* | xargs -i  cp -r 0.org ./{}/0 $1
I've tried changing the options for xargs in the Allrun file, since the manual for xargs says it has to be a capital "I". I've also tried changing the "i" into "IR" because the -I option also requires more input, and this gives errors trying to find the directories for the remove and copy commands.

Also looking at the mesh generation, the snappyHexMesh terminates with an error when executed alone:

Code:
--> FOAM FATAL ERROR: 
Unknown file extension 

Valid types are :

6
(
bdf
eMesh
inp
nas
obj
vtk
)


    From function edgeMesh<Face>::New(const fileName&, const word&) : constructing edgeMesh
    in file edgeMeshNew.C at line 45.

FOAM exiting
I believe there is a compliancy issue with the latest update for 2.2.x and I'm new to OpenFAOM, so I'm unsure of what the real issue is and how to solve it. Thanks for any advice or input.
Dan_Sobien is offline   Reply With Quote

Old   June 1, 2013, 00:23
Default
  #2
New Member
 
Dan Kokron
Join Date: Dec 2012
Posts: 23
Rep Power: 4
dkokron is on a distinguished road
Works for me on Fedora18

xargs --help
Usage: xargs [-0prtx] [--interactive] [--null] [-d|--delimiter=delim]
[-E eof-str] [-e[eof-str]] [--eof[=eof-str]]
[-L max-lines] [-l[max-lines]] [--max-lines[=max-lines]]
[-I replace-str] [-i[replace-str]] [--replace[=replace-str]]
[-n max-args] [--max-args=max-args]
[-s max-chars] [--max-chars=max-chars]
[-P max-procs] [--max-procs=max-procs] [--show-limits]
[--verbose] [--exit] [--no-run-if-empty] [--arg-file=file]
[--version] [--help] [command [initial-arguments]]

xargs --version
xargs (GNU findutils) 4.5.10
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version 25d7f3a59bfdc7aaca4a016f687826883a55bef3
dkokron is offline   Reply With Quote

Old   June 2, 2013, 17:11
Default update? patch?
  #3
New Member
 
Mitchell Long
Join Date: May 2013
Posts: 2
Rep Power: 0
mlong74 is on a distinguished road
how would one go about updating or finding a patch to have more options for the xargs and other commands in general?
mlong74 is offline   Reply With Quote

Old   June 3, 2013, 08:10
Default
  #4
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 9
egp is on a distinguished road
Dan,

This is a problem with the version of the CGAL library in MacPorts. It prevents surfaceFeatureExtract from compiling properly.

I will help you later this morning.


Quote:
Originally Posted by Dan_Sobien View Post
Hey everyone,

I'm trying to run the motorBike tutorial with OpenFOAM-2.2.x, but it is not running correctly. I haven't changed anything in the directory and it gives the following error when executing the ./Allrun command:

Code:
xargs: illegal option -- i
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
             [-L number] [-n number [-x]] [-P maxprocs] [-s size]
             [utility [argument ...]]
xargs: illegal option -- i
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
             [-L number] [-n number [-x]] [-P maxprocs] [-s size]
             [utility [argument ...]]
The lines from the Allrun file that I believe are causing these are:

Code:
ls -d processor* | xargs -i  rm -rf ./{}/0 $1
ls -d processor* | xargs -i  cp -r 0.org ./{}/0 $1
I've tried changing the options for xargs in the Allrun file, since the manual for xargs says it has to be a capital "I". I've also tried changing the "i" into "IR" because the -I option also requires more input, and this gives errors trying to find the directories for the remove and copy commands.

Also looking at the mesh generation, the snappyHexMesh terminates with an error when executed alone:

Code:
--> FOAM FATAL ERROR: 
Unknown file extension 

Valid types are :

6
(
bdf
eMesh
inp
nas
obj
vtk
)


    From function edgeMesh<Face>::New(const fileName&, const word&) : constructing edgeMesh
    in file edgeMeshNew.C at line 45.

FOAM exiting
I believe there is a compliancy issue with the latest update for 2.2.x and I'm new to OpenFAOM, so I'm unsure of what the real issue is and how to solve it. Thanks for any advice or input.
egp is offline   Reply With Quote

Old   September 6, 2013, 04:33
Smile eMesh
  #5
New Member
 
Therese
Join Date: Aug 2013
Posts: 1
Rep Power: 0
chinafly is on a distinguished road
I've met the same problem. It is because i didn't write the correct name of the eMesh in snappyHexMesh.
Have a look at your case.
chinafly is offline   Reply With Quote

Reply

Tags
motorbike, openfoam, openfoam 2.2.x, tutorial

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
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 16:01
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
InletOutlet boundary condition in motorBike tutorial madad2005 OpenFOAM 2 November 27, 2009 09:15
Can workbench and cfx run correctly on vista? Sandam CFX 1 December 2, 2007 17:32
Cannot run Tutorial 11, please help Harendra CD-adapco 1 November 21, 2005 07:14


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