CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Add a field sources to buoyantPimpleFoam (

samiam1000 March 26, 2012 06:51

Add a field sources to buoyantPimpleFoam
2 Attachment(s)
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

kwardle March 26, 2012 10:16

Did you try "sources.constrain(UEqn);" with no extra parentheses?

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