immortality |
March 26, 2013 08:27 |
Error in compiling a modified solver
I added some line to the rhoPimpleFoam as below:
Code:
word patchName = "left";
label patchID = mesh.boundary().findPatchID(patchName);
forAll(U.boundaryField()[patchID],faceI)
{
U.boundaryField()[patchID][faceI].component(0)=min(U[cellI].component(0), 500);
}
but this error occurd:
Code:
ehsan@Ehsan-com:~/Desktop/rhoPimpleFoamLimited$ ./Allwmake
+ wmake
Making dependency list for source file rhoPimpleFoamLimited.C
SOURCE=rhoPimpleFoamLimited.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam211/src/turbulenceModels/compressible/turbulenceModel -I/opt/openfoam211/src/finiteVolume/cfdTools -I/opt/openfoam211/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhoPimpleFoamLimited.o
rhoPimpleFoamLimited.C: In function ‘int main(int, char**)’:
rhoPimpleFoamLimited.C:91:69: error: ‘cellI’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/rhoPimpleFoamLimited.o] Error 1
+ wmake rhoPorousMRFPimpleFoam
make: *** No rule to make target `rhoPorousMRFPimpleFoam'. Stop.
+ wmake rhoPorousMRFLTSPimpleFoam
make: *** No rule to make target `rhoPorousMRFLTSPimpleFoam'. Stop.
ehsan@Ehsan-com:~/Desktop/rhoPimpleFoamLimited$
whats the difficulty by cellI?how should I introduce cellI to solver?
|