|
[Sponsors] |
August 18, 2007, 22:00 |
Hi everybody
I'm an OpenFoa
|
#1 |
New Member
Oscar G
Join Date: Mar 2009
Location: Bogotá, Bogotá, Colombia
Posts: 27
Rep Power: 17 |
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 |
|
August 18, 2007, 22:21 |
Hi Openfoam Users
Working i
|
#2 |
New Member
Oscar G
Join Date: Mar 2009
Location: Bogotá, Bogotá, Colombia
Posts: 27
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gambit Doesnt Work | Nuno Gomes | FLUENT | 2 | May 12, 2008 15:30 |
user_sub FIDAP doesnt work | semetay | FLUENT | 3 | July 22, 2006 20:51 |
Hypersonic setings?, i am afraid this doesnt work | jorge sancho | CFX | 2 | June 29, 2005 01:19 |
Hey, fluent doesnt work ! | Javier | Main CFD Forum | 3 | March 11, 2004 10:56 |
why doesnt my code work for small Re No?? | lostsoul | Main CFD Forum | 4 | December 1, 2000 13:04 |