CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Error about correctPhi during compilation

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

LinkBack Thread Tools Display Modes
Old   January 11, 2016, 02:11
Default Error about correctPhi during compilation
New Member
Join Date: Oct 2015
Posts: 13
Rep Power: 3
fkika is on a distinguished road
Hi everybody,

I'm trying to compile a new solver, but during the compilation I have this error:

correctPhi.H:2:1: error: expected constructor, destructor, or type conversion before ( token
In file included from correctPhi.H:11:0,
from myInterPhaseChangeFoam.C:41:
/opt/OpenFOAM/OpenFOAM-3.0.0/src/finiteVolume/lnInclude/continuityErrs.H:32:1: error: expected unqualified-id before { token

What is wrong with my solver?

The correctPhi.H file is this:

dimensionedScalar("rAUf", dimTime/rho.dimensions(), 1),

#include "continuityErrs.H"

I am using OpenFoam 3.0.0

Thank you!
fkika is offline   Reply With Quote

Old   January 26, 2017, 15:16
New Member
Linyan X
Join Date: Dec 2015
Posts: 13
Rep Power: 3
linyanx is on a distinguished road
Hi my friend,

Were you create your solver based on 'interFoam' solver? Is there anything updated for this system's complaint? I am also facing this problem.

linyanx is offline   Reply With Quote


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
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 06:21
swak4Foam compilation for OF-2.0.0 camoesas OpenFOAM Installation 19 December 10, 2012 14:24
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 06:56
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 07:07
Compilation Error.... Arnab CD-adapco 4 September 12, 2004 15:54

All times are GMT -4. The time now is 01:00.