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

Error while compiling phaseFieldFoam solver

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

Like Tree1Likes
  • 1 Post By akidess

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2016, 12:52
Default Error while compiling phaseFieldFoam solver
  #1
New Member
 
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 11
fluidflowsteel is on a distinguished road
Hi All,

Has anyone compiled the phaseFieldFoam solver given in the link https://github.com/11101011/phaseFieldFoam ?

I am getting the following error while compiling

incompressibleTwoPhaseMixture/twoPhaseMixture.C: In constructor ‘Foam::twoPhaseMixture::twoPhaseMixture(const volVectorField&, const surfaceScalarField&, const Foam::IOdictionary&, const Foam::word&)’:
incompressibleTwoPhaseMixture/twoPhaseMixture.C:241:5: error: no matching function for call to ‘Foam::IOdictionary::IOdictionary()’
)
^
incompressibleTwoPhaseMixture/twoPhaseMixture.C:241:5: note: candidates are:
In file included from incompressibleTwoPhaseMixture/twoPhaseMixture.H:39:0,
from incompressibleTwoPhaseMixture/twoPhaseMixture.C:37:
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:84:9: note: Foam::IOdictionary::IOdictionary(const Foam::IOobject&, Foam::Istream&)
IOdictionary(const IOobject&, Istream&);
^
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:84:9: note: candidate expects 2 arguments, 0 provided
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:81:9: note: Foam::IOdictionary::IOdictionary(const Foam::IOobject&, const Foam::dictionary&)
IOdictionary(const IOobject&, const dictionary&);
^
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:81:9: note: candidate expects 2 arguments, 0 provided
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:78:9: note: Foam::IOdictionary::IOdictionary(const Foam::IOobject&)
IOdictionary(const IOobject&);
^
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:78:9: note: candidate expects 1 argument, 0 provided
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:54:7: note: Foam::IOdictionary::IOdictionary(const Foam::IOdictionary&)
class IOdictionary
^
/opt/openfoam30/src/OpenFOAM/lnInclude/IOdictionary.H:54:7: note: candidate expects 1 argument, 0 provided



regards,
fluidflowsteel is offline   Reply With Quote

Old   June 1, 2016, 12:58
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 31
akidess will become famous soon enough
That solver was developed for OF-2.2. Either downgrade, or find out what changed in the twoPhaseMixture library from 2.2 to 3.0 and update the code of the solver accordingly.
Annier likes this.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   June 1, 2016, 14:57
Default
  #3
New Member
 
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 11
fluidflowsteel is on a distinguished road
thanks for your quick reply akidess.

actually I am new to openfoam. I am unable to open the library files (with .so extension) in the path opt/openfoam30/platform/linux64gcc... /lib

it is showing the following error " Could not display “libcombustionModels.so”There is no application installed for “shared library” files.
Do you want to search for an application to open this file?"

regards,
fluidflowsteel is offline   Reply With Quote

Old   June 26, 2016, 15:51
Default
  #4
New Member
 
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 11
fluidflowsteel is on a distinguished road
Hi akidess,

I have downgraded the OpenFoam version to 2.2.0 and the phaseFieldFoam code (https://github.com/11101011) has compiled without any errors. also with the blockMesh command I have generated the geometry successfully. after straightway I entered the command "phaseFieldFoam" and getting the following error

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.0-5be49240882f
Exec : phaseFieldFoam
Date : Jun 26 2016
Time : 11:47:06
Host : "ubuntu"
PID : 15540
Case : /home/arunava1/OpenFOAM/arunava-2.2.0/run/tutorials/test.case-master
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Selecting dynamicFvMesh dynamicRefineFvMesh
Reading field fraction of liquid phase
Reading field U
Reading field p_rgh
Reading/calculating face flux field phi
Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Capillary Width = 5.15392e-05
Mixing Energy Density = 6.50198e-06
Reading g
Calculating field g.h
No finite volume options present

PIMPLE: Operating solver in PISO mode
time step continuity errors : sum local = 0, global = 0, cumulative = 0
GAMGPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0, global = 0, cumulative = 0
Courant Number mean: 0 max: 0
Starting time loop
Courant Number mean: 0 max: 0
Interface Courant Number mean: 0 max: 0
deltaT = 0.00111111
Time = 0.00111111
Selected 0 split points out of a possible 0.
Selected 0 split points out of a possible 0.
Solving U and Alpha1 RK4 Equations: 0 1 2 3 ... Complete
Phase-1 volume fraction = 0 Min(alpha1) = 0 Max(alpha1) = 0
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2 Uninterpreted:
#3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#4 Foam:perator/(Foam::tmp<Foam::Field<double> > const&, Foam::UList<double> const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#5 Foam::fixedFluxPressureFvPatchScalarField::updateC oeffs() in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libfiniteVolume.so"
#6 at gaussLaplacianSchemes.C:0
#7 Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacianUncorrected(Foam::GeometricFi eld<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libfiniteVolume.so"
#8 Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libfiniteVolume.so"
#9
in "/home/arunava1/OpenFOAM/root-2.2.0/platforms/linuxGccDPOpt/bin/phaseFieldFoam"
#10
at phaseFieldFoam.C:0
#11
in "/home/arunava1/OpenFOAM/root-2.2.0/platforms/linuxGccDPOpt/bin/phaseFieldFoam"
#12 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#13
in "/home/arunava1/OpenFOAM/root-2.2.0/platforms/linuxGccDPOpt/bin/phaseFieldFoam"
Segmentation fault (core dumped)






In the usage section of https://github.com/11101011/test.case, the following is written
funkySetFields -time 01) Run the pre-conditioner.
2) Run the actual phase field solver.


what odes it mean ?

regards,
fluidflowsteel is offline   Reply With Quote

Old   June 27, 2016, 04:09
Default
  #5
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 19
fs82 is on a distinguished road
Quote:
#3 Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) in "/opt/openfoam220/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
This seems to be the important line, and I guess there is some division by zero. Usually, when simulating multiphase flows this is related to a phase fraction of zero somewhere in your domain. So you should check your alpha fields.

The commands you listed
Quote:
In the usage section of https://github.com/11101011/test.case, the following is written
funkySetFields -time 01) Run the pre-conditioner.
2) Run the actual phase field solver.
tells you, that you have to install swak4Foam and initialize your fields with funkySetFields. I guess, as you are missing this step, your error above is related to that. Running the pre-conditioner is something I never read about as this usually is defined in the fvSolutions dictionary and I have so far never seen that the pre-conditioner is executed as a stand-alone utility. However, you should check the User Manual and read about the solver in the forum and see if you get some hints. The last step is clear, as you already executed the solver
fs82 is offline   Reply With Quote

Old   June 27, 2016, 04:14
Default
  #6
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 31
akidess will become famous soon enough
Quote:
Originally Posted by fs82 View Post
Running the pre-conditioner is something I never read about as this usually is defined in the fvSolutions dictionary and I have so far never seen that the pre-conditioner is executed as a stand-alone utility. However, you should check the User Manual and read about the solver in the forum and see if you get some hints. The last step is clear, as you already executed the solver
It's a custom solver that comes with a custom preconditioner app.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   June 27, 2016, 04:16
Default
  #7
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 19
fs82 is on a distinguished road
Quote:
It's a custom solver that comes with a custom preconditioner app.
Allright, I am learning everyday
fs82 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating Point Exception Error nyox FLUENT 11 November 30, 2018 13:31
Compiling meltFoam solver mick223 OpenFOAM Programming & Development 12 July 31, 2015 11:33
OF2.2.2 in Mac 10.9_error of compiling new solver Ran Sui OpenFOAM Programming & Development 2 January 25, 2014 12:00
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Compiling new Solver with wmake lin123 OpenFOAM 3 April 13, 2010 15:18


All times are GMT -4. The time now is 12:55.