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

Issues with EHDFoam Compilation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 11, 2016, 06:00
Default Issues with EHDFoam Compilation
  #1
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 2
Aicharem is on a distinguished road
Hi Everyone,

I'm currently trying to install EHDFoam, but I'm having issues compiling it. I know that it was designed for an older version of OpenFOAM and suspect that may be the problem. Does anyone know how to get around this?
Aicharem is offline   Reply With Quote

Old   February 11, 2016, 10:58
Default
  #2
Member
 
Bruno Blais
Join Date: Sep 2013
Location: Canada
Posts: 62
Rep Power: 5
blais.bruno is on a distinguished road
Quote:
Originally Posted by Aicharem View Post
Hi Everyone,

I'm currently trying to install EHDFoam, but I'm having issues compiling it. I know that it was designed for an older version of OpenFOAM and suspect that may be the problem. Does anyone know how to get around this?
Could you post the compilation errors you get?
Cheers
BB
blais.bruno is offline   Reply With Quote

Old   February 12, 2016, 04:59
Default
  #3
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 2
Aicharem is on a distinguished road
Hi Bruno,

The first error I get is that there is no 'Make' file in the 'EHDTwoPhaseMixture' folder, so running wmake libso returns the following:

'wmake error: could not find Make directory
wmake error: file 'Make/files' does not exist in /home/harry'

I then try to compile the 'EHDFoam' folder by running wmake libso and the following error is returned:

g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam30/src/transportModels -I/opt/openfoam30/src/transportModels/incompressible/lnInclude -I/opt/openfoam30/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam30/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam30/src/OpenFOAM/lnInclude -I/opt/openfoam30/src/OSspecific/POSIX/lnInclude -fPIC -c EHDFoam.C -o Make/linux64GccDPInt32Opt/EHDFoam.o
In file included from /opt/openfoam30/src/finiteVolume/lnInclude/ddtScheme.C:30:0,
from /opt/openfoam30/src/finiteVolume/lnInclude/ddtScheme.H:337,
from /opt/openfoam30/src/finiteVolume/lnInclude/fvcDdt.C:28,
from /opt/openfoam30/src/finiteVolume/lnInclude/fvcDdt.H:199,
from /opt/openfoam30/src/finiteVolume/lnInclude/fvc.H:44,
from /opt/openfoam30/src/finiteVolume/lnInclude/fvCFD.H:8,
from EHDFoam.C:36:
/opt/openfoam30/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
#include "cyclicAMILduInterface.H"
^
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/EHDFoam.o] Error 1

I think one of the problems may be the the following:

In the installation instructions file it says:

'1 copy to $FOAM_SRC/transportModels/incompressible
2 add the following line to $FOAM_SRC/transportModels/incompressible/Make/files

EHDTwoPhaseMixture/EHDtwoPhaseMixture.C

3 "wamke libso" in $FOAM_SRC/transportModels/incompressible'

but in the newest version of OpenFoam I cannot see this folder location - is there an equivalent one? So far I have tried compiling in my home directory, in $FOAM_RUN, and in $FOAM_RUN/tutorials/incompressible.

Thanks for your help
A
Aicharem is offline   Reply With Quote

Old   February 12, 2016, 05:33
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 227
Rep Power: 6
Antimony is on a distinguished road
Hi,

I noticed that you have the error of the cyclicAMI not being found. Encountered a similar error recently while working on OF24x. The fix, as someone else had pointed out then, was to make sure this line was added in your "options" file

Code:
-I$(LIB_SRC)/meshTools/lnInclude
The link to the post is here:
HTML Code:
http://www.cfd-online.com/Forums/openfoam-programming-development/160718-error-making-new-utility-code-cyclicamilduinterface-h-no-such-file-directory.html
Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 12, 2016, 06:51
Default
  #5
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 2
Aicharem is on a distinguished road
Hi Antimony,

I have tried your fix and it certainly seems to have helped, though I now get the following error:

Make/linux64GccDPInt32Opt/options:57: *** missing separator. Stop.
Make/linux64GccDPInt32Opt/options:57: *** missing separator. Stop.
Make/linux64GccDPInt32Opt/options:57: *** missing separator. Stop.

I cannot see where in the file a separator is missing, have tried googling the problem and the usual issues (spaces where there should be tabs etc) have not remedied the problem. The original options file is:

EXE_INC = \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = \
-linterfaceProperties \
-lincompressibleTransportModels \
-lfiniteVolume \
-llduSolvers

With Antimony's changes applied it looks like this:

EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = \
-linterfaceProperties \
-lincompressibleTransportModels \
-lfiniteVolume \
-llduSolvers


Cheers,
A
Aicharem is offline   Reply With Quote

Old   February 15, 2016, 22:44
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 227
Rep Power: 6
Antimony is on a distinguished road
Hi,

Have you run wclean before doing the wmake?

http://www.cfd-online.com/Forums/ope...t-created.html

(Post # 5)

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 25, 2016, 08:41
Default
  #7
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 2
Aicharem is on a distinguished road
Hi,

Firstly, sorry for the late reply, I have been rather busy the last week and this took a back seat. I have indeed run wclean but to no avail.

I think one of the big issues is that this solver was created for OpenFOAM 1.5 and since then there have been lots of changes that may affect the compiling process. I was mainly trying to run the program to give me guidance in creating my own ehd solver, but I think I can gain most of the useful info from the source files.

Thanks for your help.

A
Aicharem is offline   Reply With Quote

Old   February 26, 2016, 19:51
Default
  #8
Senior Member
 
Bobi
Join Date: Oct 2012
Location: Chicago, Illinois
Posts: 372
Rep Power: 7
babakflame is on a distinguished road
Dear Fellows

There is another version of this solver for FoamExtend 3.1 that compiles easily along with F.E. 3.1.

I have tried it and it compiled without any problem.
babakflame is offline   Reply With Quote

Reply

Tags
compile, ehdfoam, installation

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
Issues with OpenMPI compilation Regis_ OpenFOAM Installation 5 July 15, 2015 10:14
Multigrid Stability Issues ThomasHermann SU2 1 November 5, 2014 17:18
Compilation Order and Single Precision Issues gocarts OpenFOAM Bugs 1 October 14, 2009 17:19
InterFoamPressure compilation issues jack OpenFOAM Running, Solving & CFD 3 May 14, 2008 11:38
Changes in OF 14 and compilation issues alberto OpenFOAM Running, Solving & CFD 13 May 13, 2007 15:21


All times are GMT -4. The time now is 06:09.