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

compile errors of boundary condition "expDirectionMixed"

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2010, 01:52
Question compile errors of boundary condition "expDirectionMixed"
  #1
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 17
liying02ts is on a distinguished road
A boundary condition named "expDirectionMixed", which is in the ~/src/finiteVolume/fields/fvPatchFields/derived/expDirectionMixed. It has not been complied during the compilation of OpenFOAM. We compile it by add the name of source file “expDirectionMixedFvPatchField.C”to the "file" file, which in the folder ~/src/finiteVolume/Make. And then execute "wmake libso" to compile it .But there are some errors appear, as follow:

Code:
 
SOURCE=fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/triSurface/lnInclude -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/ly/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/expDirectionMixedFvPatchField.o 
In file included from fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.H:264, 
from fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:27: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::snGrad() const’: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:147: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:147: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:150: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:150: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:158: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:158: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::evaluate(Foam::Pstream::commsTypes)’: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:166: error: there are no arguments to ‘updated’ that depend on a template parameter, so a declaration of ‘updated’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:168: error: there are no arguments to ‘updateCoeffs’ that depend on a template parameter, so a declaration of ‘updateCoeffs’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:171: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:174: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:174: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueBoundaryCoeffs(const Foam::tmp<Foam::Field<double> >&) const’: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:205: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:208: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:208: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:216: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientInternalCoeffs() const’: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:224: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientBoundaryCoeffs() const’: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:232: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:235: error: there are no arguments to ‘patchInternalField’ that depend on a template parameter, so a declaration of ‘patchInternalField’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:235: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:242: error: there are no arguments to ‘patch’ that depend on a template parameter, so a declaration of ‘patch’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: In member function ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::write(Foam::Ostream&) const’: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:254: error: there are no arguments to ‘writeEntry’ that depend on a template parameter, so a declaration of ‘writeEntry’ must be available 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C: At global scope: 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:41: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:41: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:57: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::fvPatchFieldMapper&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:57: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::fvPatchFieldMapper&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:72: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:72: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:87: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:87: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:101: error: redefinition of ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::DimensionedField<Type, Foam::volMesh>&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:101: error: ‘Foam::expDirectionMixedFvPatchField<Type>::expDirectionMixedFvPatchField(const Foam::expDirectionMixedFvPatchField<Type>&, const Foam::DimensionedField<Type, Foam::volMesh>&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:116: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::autoMap(const Foam::fvPatchFieldMapper&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:116: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::autoMap(const Foam::fvPatchFieldMapper&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:131: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::rmap(const Foam::fvPatchField<Type>&, const Foam::labelList&)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:131: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::rmap(const Foam::fvPatchField<Type>&, const Foam::labelList&)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:145: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::snGrad() const’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:145: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::snGrad() const’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:164: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::evaluate(Foam::Pstream::commsTypes)’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:164: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::evaluate(Foam::Pstream::commsTypes)’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:193: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueInternalCoeffs(const Foam::tmp<Foam::Field<double> >&) const’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:193: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueInternalCoeffs(const Foam::tmp<Foam::Field<double> >&) const’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:203: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueBoundaryCoeffs(const Foam::tmp<Foam::Field<double> >&) const’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:203: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::valueBoundaryCoeffs(const Foam::tmp<Foam::Field<double> >&) const’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:222: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientInternalCoeffs() const’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:222: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientInternalCoeffs() const’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:230: error: redefinition of ‘Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientBoundaryCoeffs() const’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:230: error: ‘virtual Foam::tmp<Foam::Field<Type> > Foam::expDirectionMixedFvPatchField<Type>::gradientBoundaryCoeffs() const’ previously declared here 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:248: error: redefinition of ‘void Foam::expDirectionMixedFvPatchField<Type>::write(Foam::Ostream&) const’ 
fields/fvPatchFields/derived/expDirectionMixed/expDirectionMixedFvPatchField.C:248: error: ‘virtual void Foam::expDirectionMixedFvPatchField<Type>::write(Foam::Ostream&) const’ previously declared here 
make: *** [Make/linux64GccDPOpt/expDirectionMixedFvPatchField.o] Error 1
I have no idea about it.
I wonder if it is because of the version of OpenFOAM, or other problems.
I have tried to compile it both in OpenFOAM-1.5 and OpenFOAM-1.6, but the errors appear both.
Help me, please.
Thank you everyone.
liying02ts is offline   Reply With Quote

Old   February 1, 2010, 04:13
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
This is a legacy BC superceded by directionMixed. I have now removed it from OpenFOAM-1.6.x.

H
henry is offline   Reply With Quote

Old   February 1, 2010, 20:11
Default
  #3
New Member
 
liying
Join Date: Apr 2009
Posts: 6
Rep Power: 17
liying02ts is on a distinguished road
ok,I get it.
Thank you for your reply!
liying02ts 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
How exactly the "pressure outlet" bdry condition compute properties on the boundary? yating9901 FLUENT 3 June 28, 2010 12:26
Transient outlet boundary condition problem jwillie2000 CFX 1 December 7, 2009 17:07
Axis Boundary Condition..what is it? CFDtoy FLUENT 6 February 13, 2007 05:51
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 11:44
How to resolve boundary condition problem? sam FLUENT 2 July 20, 2003 02:19


All times are GMT -4. The time now is 05:44.