CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   FindRefCell doesnt work in OpenFoam14 (https://www.cfd-online.com/Forums/openfoam-bugs/62560-findrefcell-doesnt-work-openfoam14.html)

oscar_j August 18, 2007 21:00

Hi everybody I'm an OpenFoa
 
Hi everybody

I'm an OpenFoam-1.4 user and I'm interested in to simulate heat transfer between many regions, so I'm working on conjugated2 solver posted at Friday, August 26, 2005 by Daniele which is a OpenFoam-1.3 solver and it works fine in OpenFoam-1.3 but when I compile in OpenFoam-1.4 some errors happen:

readSIMPLEControls1.H: In function 'int main(int, char**)':
readSIMPLEControls1.H:33: error: 'findRefCell' was not declared in this scope
readSIMPLEControls1.H:39: warning: use of old-style cast
readSIMPLEControls1.H:40: warning: use of old-style cast
readSIMPLEControls1.H:39: warning: use of old-style cast
readSIMPLEControls1.H:40: warning: use of old-style cast
make: *** [Make/linuxGcc4DPOpt/conjugateFoam2.o] Error 1

I think that those errors are produced by the following code part in readSIMPLEControls1.H:

label pRefCellNew = findRefCell(mesh1, pRefCell);

if (pRefCellNew != pRefCell)
{
pRefCell = pRefCellNew;

((dictionary&)simple).remove("pRefCell");
((dictionary&)simple).add("pRefCell", pRefCell);
}

What is the findRefCell(mesh1, pRefCell) function for OpenFOAM-1.4 and how can I use it ?

Many Thanks
Oscar G

oscar_j August 18, 2007 21:21

Hi Openfoam Users Working i
 
Hi Openfoam Users

Working in OF-1.4, I tryed having the Make/files file like:

conjugateFoam2.C

EXE = $(FOAM_USER_APPBIN)/conjugateFoam2

and the Make/options like:

EXE_INC = \
-I$(LIB_SRC)/cfdTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/finiteVolume/cfdTools/general \
-I$(LIB_SRC)/finiteVolume/cfdTools/general/findRefCell

EXE_LIBS = \
-lcfdTools \
-lfiniteVolume \
-lfindRefCell

but it didnt work, I get the following:

bash-3.1$ wmake
Making dependency list for source file conjugateFoam2.C
SOURCE=conjugateFoam2.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/oscarj/OpenFOAM/OpenFOAM-1.4/src/cfdTools/lnInclude -I/home/oscarj/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude -I/home/oscarj/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/cfdTools/general -I/home/oscarj/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/cfdTools/general/findRefCe ll -IlnInclude -I. -I/home/oscarj/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/conjugateFoam2.o
createMeshes.H: In function 'int main(int, char**)':
createMeshes.H:15: error: 'class Foam::fvMesh' has no member named 'constructAndClear'
createMeshes.H:31: error: 'class Foam::fvMesh' has no member named 'constructAndClear'
readSIMPLEControls1.H:33: error: 'findRefCell' was not declared in this scope
readSIMPLEControls1.H:39: warning: use of old-style cast
readSIMPLEControls1.H:40: warning: use of old-style cast
make: *** [Make/linuxGcc4DPOpt/conjugateFoam2.o] Error 1

What could I do?...

Beforehand thank you very much for your valuable help.

Have a good day
Oscar G


All times are GMT -4. The time now is 11:02.