CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Add a field sources to buoyantPimpleFoam

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

LinkBack Thread Tools Display Modes
Old   March 26, 2012, 06:51
Default Add a field sources to buoyantPimpleFoam
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 502
Rep Power: 12
samiam1000 is on a distinguished road
Dear foamers,

I have added the field source feature (see here) to the buoyanSimpleFoam solver. I called it buoyantSimpleFoam_Epta (attached)

I am now trying to do the same with the buoyantPimpleFoam. But I am finding it difficult.
Could you check my mew solver buoyantPimpleFoam_Epta (attached, too)?

Thanks a lot,

PS: when I try to compile it I get the following error message:
lab@lab-laptop:~/OpenFOAM/lab-2.1.0/applications/solvers/buoyantPimpleFoam_Epta$ wmake
Making dependency list for source file buoyantPimpleFoam_Epta.C
SOURCE=buoyantPimpleFoam_Epta.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam210/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/finiteVolume/cfdTools -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantPimpleFoam_Epta.o
In file included from buoyantPimpleFoam_Epta.C:78:
UEqn.H: In function ‘int main(int, char**)’:
UEqn.H:14: error: no match for call to ‘(Foam::fvVectorMatrix) ()’
UEqn.H:16: error: no match for call to ‘(Foam::fvVectorMatrix) ()’
/opt/openfoam210/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’
make: *** [Make/linux64GccDPOpt/buoyantPimpleFoam_Epta.o] Error 1
Attached Files
File Type: gz buoyantPimpleFoam_Epta.tar.gz (2.9 KB, 10 views)
File Type: gz buoyantSimpleFoam_Epta.tar.gz (2.8 KB, 6 views)
samiam1000 is offline   Reply With Quote

Old   March 26, 2012, 10:16
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 218
Rep Power: 14
kwardle is on a distinguished road
Did you try "sources.constrain(UEqn);" with no extra parentheses?
kwardle 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
problems after decomposing for running OpenFOAM 6 December 23, 2015 15:27
Adding Temperature field to IcoFoam yapalparvi OpenFOAM Programming & Development 14 November 19, 2015 05:57
Need help evaluating field by interpolation with a "lookup table" JohnRHawk OpenFOAM Programming & Development 2 June 28, 2011 13:27
Convergence of CFX field in FSI analysis nasdak CFX 2 June 29, 2009 01:17
Flow field measurement in turbomachinery! Wanlai Lin Main CFD Forum 3 September 3, 1999 12:06

All times are GMT -4. The time now is 06:08.