CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 14 for WindowstmCygwin (https://www.cfd-online.com/Forums/openfoam-installation/57338-openfoam-14-windowstmcygwin.html)

7islands July 17, 2008 23:40

Can you try the modified ParaV
 
Can you try the modified ParaView 3.2.1 downloadable from http://oshima.eng.niigata-u.ac.jp/Op...iew/index.html ?

T

paulchang July 18, 2008 09:42

Thanks, Laurence. After I c
 
Thanks, Laurence.

After I created the softlink "ln -s flex flex++", the errors are significantly less. The installation, however, is still unsuccessful. The following is a copy of the error messages:


make: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libtriSurface.dll] Error 1
.
.
make: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libcombustionThermophysica lModels.dll] Error 1
.
.
make[3]: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/ansysToFoam] Error 1
make[3]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion/ansysTo Foam'
make[2]: *** [ansysToFoam] Error 2
make[2]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh/conversion'
make[1]: *** [conversion] Error 2
make[1]: Leaving directory `/home/paul/OpenFOAM/OpenFOAM-1.4/applications/utilities/mesh'
make: *** [mesh] Error 2
+ '[' 0 = 1 -a '' = doc ']'

l_r_mcglashan July 18, 2008 10:36

Are you getting the error u
 
Are you getting the error

undefined reference to yyFlexLexer::yywrap()

associated with any of those error messages? If so, I think that particular problem has a workaround on these forums, albeit not a nice one.

jason_wy July 18, 2008 10:57

Hello all, Has anybody trie
 
Hello all,

Has anybody tried the ParaView that Takuya posted with OpenFOAM 1.5 release? It seems they are not compatible.

I got the following error message, when I start to load the data:

ERROR: In \cygwin\home\kankyo\install\ParaView3\3.2\ParaView 3.2.1\VTK\IO\vtkOpenFOAMReader .cxx, line 3851
vtkOpenFOAMReader (05B2BC78): Numbers of faces in owner and neighbor don't match


ERROR: In \cygwin\home\kankyo\install\ParaView3\3.2\ParaView 3.2.1\VTK\Filtering\vtkExecuti ve.cxx, line 757
vtkCompositeDataPipeline (05B45240): Algorithm vtkOpenFOAMReader(05B2BC78) returned failure for request: vtkInformation (05E2ED30)
Debug: Off
Modified Time: 88040
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
ALGORITHM_AFTER_FORWARD: 1
KEYS_TO_COPY: UPDATE_BLOCKS
FROM_OUTPUT_PORT: 0
FORWARD_DIRECTION: 0


Is it easy to fix it?

Thanks,

Yi

olesen July 18, 2008 11:29

Yi, This is easy to fix. "N
 
Yi,

This is easy to fix. "Numbers of faces in owner and neighbor don't match" is an incorrect check. Since the boundary faces don't have neighbours, the list of neighbours will be shorter than the list of owners. In some OpenFOAM versions, these virtual neighbours were tagged with '-1' and both lists had the same length. A shorter neighbour list is fine though, so you can remove the check or use this:

if(nNeigh > nFaces)
{
vtkErrorMacro(<<"More neighbours than faces");
return false;
}

7islands July 18, 2008 11:39

As Mark says it's expected. Th
 
As Mark says it's expected. The reader is already working with 1.5 in my (and Mark's I hope) hands thanks to Mark's suggestions, but I still have to do several fine adjustments before release. Hopefully I can post a new version soon.

T

paulchang July 18, 2008 14:19

Laurence, thank you for the he
 
Laurence, thank you for the help.

The error did relate to yyFlexLexer::yywrap(), and I modified those files mentioned in this post:

http://www.cfd-online.com/cgi-bin/Op...2652#POST22652

One more compilation, however, just generated more errors. The following is part of those errors (please note: this time, the errors relate to more programs)

Creating library file: /home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libcombustionThermophysical Models.achemkinReader.o:chemkinReader.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.rdata$_ZTVN4Foam13chemkinReaderE[vtable for Foam::chemkinReader]+0x48): undefined reference to `yyFlexLexer::yywrap()'
chemkinLexer.o:chemkinLexer.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.rdata$_ZTV11yyFlexLexer[vtable for yyFlexLexer]+0x28): undefined reference to `yyFlexLexer::yywrap()'
collect2: ld returned 1 exit status

make: *** [/home/paul/OpenFOAM/OpenFOAM-1.4/lib/cygwinGcc4DPOpt/libcombustionThermophysica lModels.dll] Error 1
.
.
/home/paul/OpenFOAM/OpenFOAM-1.4/src/mico-2.3.12/platforms/cygwinGcc4DPOpt/inclu de/string.h:49: error: expected ';' before 'operator'
.
/home/paul/OpenFOAM/cygwin/gcc-4.1.2/bin/../lib/gcc/i686-pc-cygwin/4.1.2/include /c++/cstring:81: error: '::memmove' has not been declared
.
/home/paul/OpenFOAM/cygwin/gcc-4.1.2/bin/../lib/gcc/i686-pc-cygwin/4.1.2/include /c++/bits/char_traits.h:253: error: 'memcmp' was not declared in this scope
.
/home/paul/OpenFOAM/cygwin/gcc-4.1.2/bin/../lib/gcc/i686-pc-cygwin/4.1.2/include /c++/bits/locale_facets.h:1152: error: 'memcpy' was not declared in this scope.
.
/home/paul/OpenFOAM/OpenFOAM-1.4/src/mico-2.3.12/platforms/cygwinGcc4DPOpt/inclu de/mico/throw.h:111: error: 'strcmp' was not declared in this scope
.
PatchTool.C:883: warning: use of old-style cast
.
PatchTool.C:5694: error: 'strcmp' was not declared in this scope
.
.
.

jason_wy July 18, 2008 14:47

Thanks Mark and Takuya! Do
 
Thanks Mark and Takuya!

Does this mean I need to make the change you suggested in OpenFoam reader and recompile it with ParaView? If so, I will probably wait for Takuya's version.

Yi

l_r_mcglashan July 18, 2008 18:04

Hi Paul, I can sympathise w
 
Hi Paul,

I can sympathise with you as it took me the best part of 2 days to get the Cygwin port running on both my laptop and my desktop.
To be honest, if you really want to use OpenFOAM, run it on Linux, where the installation is generally rather trivial. I only use the Cygwin port to run the odd bits and bobs from home.
I too still had some errors in the compilation but I only use the main solvers and libraries, which compiled fine. Have you tried running the solvers you are interested in? I just don't have the time to be rigorous about this unfortunately.
The best I can do for you is to send you a document that I wrote whilst installing both Cygwin and OF. My e-mail is lrm29@cam.ac.uk_delete_this_bit if you're interested.

paulchang July 21, 2008 13:13

Thanks, Laurence. I really app
 
Thanks, Laurence. I really appreciate your kind offer. Could you send the document to paulchang6@yahoo.com?

pablocg July 28, 2008 17:37

Hello all, I've been trying t
 
Hello all,
I've been trying to get OF to run on windows for quite a few days already. Thanks Laurence for the assistance through emails. I'm having a problem now with FoamX. I managed to get it to run, used for a bit, then closed it and could never get it to work again. This is the error im getting:

$ FoamX
Starting NameServer with inet:PEVPG1:1234 ...
uncaught MICO exception: IDL:omg.org/CORBA/INITIALIZE:1.0 (0, not-completed)
3 [sig] nsd 1456 _cygtls::handle_exceptions: Error while dumping state (pr
obably corrupted stack)
/home/evxpg1/OpenFOAM/OpenFOAM-1.4/bin/runFoamXHB: line 149: 1456 Segmentation
fault (core dumped) nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref < /d
ev/null

Any suggestions appreciated.
Thanks,
-Pablo

eno July 31, 2008 18:11

When try to compile the solver
 
When try to compile the solver turbFoam i had the following error:

wmake
/bin/sh: C:\cygwin\OpenFOAM\OpenFOAM-1.4\applications\wmake/bashScripts/addCompile: /bin/bash: bad interpreter: Permission denied
Making dependency list for source file turbFoam.C
make: *** [turbFoam.dep] Error 126

olwi August 4, 2008 16:51

What's your login shell? Could
 
What's your login shell? Could it be that it's not bash? Type "echo $SHELL", or check the last column of your user id:s line in /etc/passwd. It should read /bin/bash. I cannot reproduce your error, but I have a vague memory of something similar a year ago, on another PC, before I cleaned up the cygwin installation...

/Ola

eno August 4, 2008 17:40

Thanks for respond, now the er
 
Thanks for respond, now the error is like:
wmake
Dropping import dependency files
/OpenFOAM/OpenFOAM-1.4/wmake/bashScripts
/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/turbFoam
make: execvp: /OpenFOAM/OpenFOAM-1.4/wmake/bashScripts/mkObjectDir: Permission denied
make: *** [/OpenFOAM/OpenFOAM-1.4/applications/bin/cygwinGcc4DPOpt/turbFoam] Error 127

olwi August 5, 2008 08:14

Hi Sean, The error message
 
Hi Sean,

The error message suggests that the script mkObjectDir does not have permission for whatever action it attempts. Either you're having problems with permissions (are you running under a uid other than the uid used for unpacking the OF tarballs?), or you're doing something strange...

In what directory are you typing "wmake"? Why are you trying to recompile only turbFoam, inside the original OF tree? Have you already compiled the whole library yourself, without error, or are you using the precompiled binaries?

I get the feeling you are doing something strange, possibly new to cygwin and/or linux.

/Ola

eno August 5, 2008 11:20

Thanks Ola, I am trying to co
 
Thanks Ola,
I am trying to compile 1.4 but with too many errors so I test compiling turbFoam. eventually i hope to be able to run some custom make solvers/BCs.(my 1.3 binary installation is working)
I run wmake in:
C:\cygwin\OpenFOAM\OpenFOAM-1.4\applications\solvers\incompressible\turbFoam

There are only a few lines in mkObjectDir:
if [ $# = 1 ]
then
if [ ! -d ${1%/*} -a $1 != ${1%/*} ]
then
mkdir -p ${1%/*}
fi
fi

I should be able to mkdir in c:\cygwin...

Appreciate your advice

paulchang August 7, 2008 16:03

Laurence, With more tries,
 
Laurence,

With more tries, my installation is still not successful. I'll just use it in Linux. Anyway, thank you for the kind help.

olwi August 9, 2008 06:54

Hi Sean, Well, can _you_ mk
 
Hi Sean,

Well, can _you_ mkdir in c:\cygwin... ??? Try it by hand.

You say you tried compiling the whole 1.4, but got too many errors. The errors do tell you something... Something is obviously not well. I would try to look at the first error and figure out what happens.

Possibly you should re-unpack the whole tar pack and try from scratch... I followed the README of the cygwin pack to the last dot, and I had no problems. Maybe you shouldn't recompile everything? Just make a copy of turbFoam (myTurbFoam, for example), and see if it compiles?

Bon courage, as the French say...

/Ola


All times are GMT -4. The time now is 15:48.