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

Problem adding temperature to icoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2012, 17:53
Default Problem adding temperature to icoFoam
  #1
New Member
 
Join Date: Mar 2009
Posts: 22
Rep Power: 17
Baldy is on a distinguished road
I am having some problems adding temperature to icoFoam.

I have followed the tutorial on the wiki and trying to modify 1.6-ext.

Here's the error message

Code:
Making dependency list for source file T_icoFoam.C
SOURCE=T_icoFoam.C ;  g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linuxGccDPOpt/T_icoFoam.o
T_icoFoam.C: In function ‘int main(int, char**)’:
T_icoFoam.C:106: error: no matching function for call to ‘Foam::fvMatrix<double>::fvMatrix(Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >)’
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvMatrix.C:323: note: candidates are: Foam::fvMatrix<Type>::fvMatrix(Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, Foam::Istream&) [with Type = double]
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvMatrix.C:266: note:                 Foam::fvMatrix<Type>::fvMatrix(const Foam::tmp<Foam::fvMatrix<Type> >&) [with Type = double]
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvMatrix.C:235: note:                 Foam::fvMatrix<Type>::fvMatrix(const Foam::fvMatrix<Type>&) [with Type = double]
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvMatrix.C:184: note:                 Foam::fvMatrix<Type>::fvMatrix(Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&, const Foam::dimensionSet&) [with Type = double]
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable ‘momentumPredictor’
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
make: *** [Make/linuxGccDPOpt/T_icoFoam.o] Error 1
I have read other threads on here that deal with similar problems but still haven't figured out how to fix it.
Baldy is offline   Reply With Quote

Old   November 25, 2012, 19:09
Default
  #2
New Member
 
Join Date: Mar 2009
Posts: 22
Rep Power: 17
Baldy is on a distinguished road
As soon as I post it on the forum I figure it out!

I had my temperature set as volVectorField instead of volScalarField if anyone ever has the same problem.
Baldy is offline   Reply With Quote

Reply


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
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 12 October 1, 2018 06:36
Adding temperature equation to porousSimpleFoam David_010 OpenFOAM Programming & Development 9 February 14, 2018 01:22
problem with using timeVaryingUniform by icoFoam amin144 OpenFOAM 12 August 11, 2012 06:09
Adding a new temperature dependent viscositymodel? dgadensg OpenFOAM Programming & Development 10 May 22, 2010 05:47
problem when running icoFoam on a complex shape flow field wendywu OpenFOAM 1 May 20, 2009 23:40


All times are GMT -4. The time now is 19:07.