CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   motorBike tutorial won't run correctly with 2.2.x (http://www.cfd-online.com/Forums/openfoam-solving/118641-motorbike-tutorial-wont-run-correctly-2-2-x.html)

Dan_Sobien May 31, 2013 09:42

motorBike tutorial won't run correctly with 2.2.x
 
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.

dkokron June 1, 2013 00:23

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

mlong74 June 2, 2013 17:11

update? patch?
 
how would one go about updating or finding a patch to have more options for the xargs and other commands in general?

egp June 3, 2013 08:10

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 (Post 431209)
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.


chinafly September 6, 2013 04:33

eMesh
 
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.


All times are GMT -4. The time now is 07:41.