|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 11 ![]() |
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, |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 31 ![]() |
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.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 11 ![]() |
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, |
|
|
|
|
|
|
|
|
#4 |
|
New Member
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 11 ![]() |
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, |
|
|
|
|
|
|
|
|
#5 | ||
|
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 19 ![]() |
Quote:
The commands you listed Quote:
|
|||
|
|
|
|||
|
|
|
#6 | |
|
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 31 ![]() |
Quote:
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
||
|
|
|
||
|
|
|
#7 | |
|
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 19 ![]() |
Quote:
|
||
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |