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

Issues with EHDFoam Compilation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By babakflame

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2016, 05:00
Default Issues with EHDFoam Compilation
  #1
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
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, 09:58
Default
  #2
Member
 
Bruno Blais
Join Date: Sep 2013
Location: Canada
Posts: 64
Rep Power: 12
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, 03:59
Default
  #3
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
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, 04:33
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
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, 05:51
Default
  #5
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
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, 21:44
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
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, 07:41
Default
  #7
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
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, 18:51
Default
  #8
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
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

Old   December 26, 2016, 05:37
Default dear bobi
  #9
New Member
 
arash
Join Date: Jan 2015
Posts: 5
Rep Power: 11
arashma is on a distinguished road
I have problem with compiling ehdFoam with of2.1.1 too,would you please give me the new version of ehdFoam solver for openfoam ex 3.1?or where can i found that?
arashma is offline   Reply With Quote

Old   December 26, 2016, 13:07
Default
  #10
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Hi Arash

If you cant compile the version in 2.1, then you can not compile the FoamExtend version. Post your error , I will help you install it.

If you still wanna continue with FOAM-Extend, version, find the following link:

EHDFoam

The newest version with more options and utilities will publish soon,
arashma likes this.
babakflame is offline   Reply With Quote

Old   January 5, 2017, 19:44
Default hi bobi
  #11
New Member
 
arash
Join Date: Jan 2015
Posts: 5
Rep Power: 11
arashma is on a distinguished road
thanks for your reply,Thats it:
SOURCE=EHDFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/transportModels/incompressible/lnInclude -I/opt/openfoam211/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam211/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/EHDFoam.o
EHDFoam.C:40:32: fatal error: EHDtwoPhaseMixture.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/EHDFoam.o] Error 1
my openfoam v is:211 and ubuntu 12.04 lts
I do some change in ts his link Issues with EHDFoam Compilation
but still i have it,i tried to install openfoam 1.5 maybe it because the version of that but it was so har to install with source pack and lost git sites,would you help me please?
arashma is offline   Reply With Quote

Old   January 6, 2017, 16:52
Default
  #12
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Dear Arash

Your error is very clear:
You need to add EHDtwoPhaseMixture.H file in the main directory of solver.
According to the names, I have a feeling that the code you are trying to compile was the old version compatible with OF 1.6

Code:
EHDFoam.C:40:32: fatal error: EHDtwoPhaseMixture.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/EHDFoam.o] Error 1
Since, I dont have access to the source code, you are trying to compile, I want you to compile this version which is compatible with OF 2.1.x (tested by myself) and upload the possible errors:

Since I know which code you are working with

EHDFoam
babakflame is offline   Reply With Quote

Old   January 19, 2017, 21:06
Default
  #13
New Member
 
arash
Join Date: Jan 2015
Posts: 5
Rep Power: 11
arashma is on a distinguished road
Dear Bobi
Thanks for your reply bro,I have succeeded to install openFoam 1.5,Then i do the Descriptions in The solver folder Step by Step,first i copy the EHDtwoPhaseMixture.C & EHDtwoPhaseMixture.H in to the ~/OpenFOAM/OpenFOAM-1.5/src/transportModels/incompressible folder,Then i type in Terminal "wmake libso" and tried to compile EHDtwoPhaseMixture but the error was:
SOURCE=EHDTwoPhaseMixture/EHDtwoPhaseMixture.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I.. -I/home/mein/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/mein/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/mein/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc43DPOpt/EHDtwoPhaseMixture.o
In file included from EHDTwoPhaseMixture/EHDtwoPhaseMixture.C:27:
EHDTwoPhaseMixture/EHDtwoPhaseMixture.H:190: error: conflicting return type specified for ‘virtual const Foam::volScalarField& Foam::EHDtwoPhaseMixture::nu() const’
../incompressible/transportModel/transportModel.H:86: error: overriding ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::transportModel::nu() const’
make: *** [Make/linux64Gcc43DPOpt/EHDtwoPhaseMixture.o] Error 1
make: *** Waiting for unfinished jobs....
Then i do some changes that Salehda(David) suggested that in this link :
EHDFoam
it means i changed :
//- Return the kinematic laminar viscosity
virtual const volScalarField& nu() const
{
return nu_;
}
to
//- Return the kinematic laminar viscosity
virtual tmp<volScalarField& nu() const
{
return nu_;
}
but still i have this log error:
SOURCE=EHDTwoPhaseMixture/EHDtwoPhaseMixture.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I.. -I/home/mein/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/mein/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/mein/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc43DPOpt/EHDtwoPhaseMixture.o
In file included from EHDTwoPhaseMixture/EHDtwoPhaseMixture.C:27:
EHDTwoPhaseMixture/EHDtwoPhaseMixture.H:190: error: conflicting return type specified for ‘virtual const Foam::volScalarField& Foam::EHDtwoPhaseMixture::nu() const’
../incompressible/transportModel/transportModel.H:86: error: overriding ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::transportModel::nu() const’
make: *** [Make/linux64Gcc43DPOpt/EHDtwoPhaseMixture.o] Error 1
make: *** Waiting for unfinished jobs....
i do wclean before any changes but still it doesnt any effect on the compiling.
thanks
arashma is offline   Reply With Quote

Old   January 28, 2017, 07:17
Default
  #14
New Member
 
arash
Join Date: Jan 2015
Posts: 5
Rep Power: 11
arashma is on a distinguished road
Dear bobi
Thanks for your fast replay,I have installed openfoam 1.5,1.5.x,2.1.1,2.1.x on ubuntu 12.04 LTS.In all of them i have same error,in of2.1.x of21x-ubuntu12.04.txt after delete word "virtual" the error is the same delvirtual.txt.Then I Setup ubuntu 16.10 and Openfoam 2.1.1 and 4.0 on it(not succesed to install of2.1.x).with version 4 I still have a error but on the 2.1.1 I think i have compile the EHDTwoPhaseMixture EHDTwoPhaseMixture.txt and then i go to the EHDFoam folder and do "wmake" or "wmake libso" and the log error isehdfoam.txt
,1-what should i do with this problems 2-would you tell me witch version of ubuntu and openfoam you have installed? 3-I have compiled the ivoo 's code how can i use it for this field(electrowething)in that folder he put some samples but in paraFoam i have n't seen good changes in droplet or...? Thanks bobi

Last edited by arashma; January 29, 2017 at 06:02.
arashma is offline   Reply With Quote

Old   January 30, 2017, 21:58
Default
  #15
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
Dear Arash

Ivo's code is just an update to the original EHDFoam. Basically, the same equations are solved in both codes. So, if you want to work on electrowetting stick to ivo's code.

You can find his paper regarding this issue, in EHDFoam thread (under his post).

The General EHDFoam was written for O.F. 1.6, the ivo's version is for 2.1.x

A new EHDFoam will be published soon for recent versions of O.F.


Regards
babakflame is offline   Reply With Quote

Old   June 28, 2019, 00:39
Default
  #16
Member
 
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7
Pavithra is on a distinguished road
Hello Everyone,

I am new to OpenFoam.

Based on the solver (EHDFoam) posted in this thread, I have combined electrical equations with buoyantBoussinesqPimpleFoam.

My intention is to have a solver for single phase EHD flow. I am able to compile the solver successfully.

Could some one please suggest me a good benchmark case to validate the solver.

Thank You.

With Thanks.
Pavithra.
Pavithra is offline   Reply With Quote

Reply

Tags
compile, ehdfoam, installation


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Issues with OpenMPI compilation Regis_ OpenFOAM Installation 5 July 15, 2015 10:14
Multigrid Stability Issues ThomasHermann SU2 1 November 5, 2014 16: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:20.