CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   TwoDMotion appears in compilation (https://www.cfd-online.com/Forums/openfoam-solving/59997-twodmotion-appears-compilation.html)

mer September 30, 2006 10:10

Hi; I get a problem when I tr
 
Hi;
I get a problem when I try to compile the solver freeSurface in surfaceTracking (openFoam-1.3_29_08_06) within OpenFoam-1.3. the compilation gives me the error:
FreeSurface.C:1390:error:'class Foam::tetDecompositionMotionSolver' has no member named 'twoDMotion'.

I search with doxygen and found the 2-D motion corrector pointer in the motion smoother class, but I can't eliminate the error.

Can any one here help me to resolve this problem.

hjasak September 30, 2006 10:27

Hi, In order to help you I
 
Hi,

In order to help you I need more info. For starters, I assume you are compiling my development version, right? Secondly, I cannot find the file called "FreeSurface.C" in the whole of OpenFOAM. Do:

foam
find . -name FreeSurface.C

and give me a result. There is a file called "freeSurface.C" and that compiles and runs without problems:

SOURCE=freeSurface.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/hjasak/OpenFOAM/OpenFOAM-1.3/src/finiteArea/lnInclude -I/home/hjasak/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/hjasak/OpenFOAM/OpenFOAM-1.3/src/dynamicMesh/lnInclude -I/home/hjasak/OpenFOAM/OpenFOAM-1.3/src/tetDecompositionMotionSolver/lnInclude -I/home/hjasak/OpenFOAM/OpenFOAM-1.3/src/tetDecompositionFiniteElement/lnInclude -DCELL_DECOMP -I/home/hjasak/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/freeSurface.o

Hrv

mer September 30, 2006 16:35

Thanks Mr. Hrvoje Jasak for yo
 
Thanks Mr. Hrvoje Jasak for your replay.
First, excuse me. I made a mistake about the file in my post. Yes, it is freeSurface.c.


secondly, The objectif behind my compilation of this solver is to understand the bubbleInterTrackFoam solver which needs (if I'm right) the freeSurface library. In my case, I don't compile your development version at all, but copy the solver in the released version of openFoam-1.3, then the error appears.

The final object, is to translate this with the interFoam solver. if you ask me, why I'm doing so, I responde you that: first I'm a new user of CFD and openFoam and I try to developp a script of coupling which couple between some solvers within openFoam without a major modification in the solvers.

Thanks you.

Merrouche

mer October 1, 2006 09:07

Hi, Here is the result of m
 
Hi,

Here is the result of my compilation.
--------------------------------------------------

Making dependency list for source file freeSurface.C
Making dependency list for source file makeFreeSurfaceData.C
Making dependency list for source file freeSurfacePointDisplacement.C

SOURCE_DIR=.
SOURCE=freeSurface.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/mer/OpenFOAM/OpenFOAM-1.3/src/finiteArea/lnInclude -I/home/mer/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/mer/OpenFOAM/OpenFOAM-1.3/src/dynamicMesh/lnInclude -I/home/mer/OpenFOAM/OpenFOAM-1.3/src/tetDecompositionMotionSolver/lnInclude -I/home/mer/OpenFOAM/OpenFOAM-1.3/src/tetDecompositionFiniteElement/lnInclude -DFACE_DECOMP -I/home/mer/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/freeSurface.o
freeSurface.C: In member function 'void Foam::freeSurface::smooth()':
freeSurface.C:1390: error: 'class Foam::tetDecompositionMotionSolver' has no member named 'twoDMotion'
make: *** [Make/linuxGcc4DPOpt/freeSurface.o] Error 1
--------------------------------------------------

I can see a difference between yours in : -DCELL_DECOMP and DFACE_DECOMP. any help?

Thanks.


All times are GMT -4. The time now is 18:55.