CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   LiftDrag coefficient in LES (http://www.cfd-online.com/Forums/openfoam-post-processing/61363-liftdrag-coefficient-les.html)

fabian_korn April 25, 2008 03:59

Hi everybody, i hope the qu
 
Hi everybody,

i hope the questions i will post is not already here, but anyhow i did not find anything about it.

I am doing LES simulation at a cylinder flow at Re around 200.

Now i want to calculate the drag coefficient, the normal tool works fine, but i realised that i have to use the lesDragCoefficient and not the normal one.

If i try to compile the source LiftDrag.H it chrashes. The error is shown here later.

The next thing is that sgsModel is not defined at applications.../lifDrag.C, but lesDragCoefficient needs it. Can anybody help me?

Thanks Fabian

fabian@jacky:~/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing/incompressible$ wmake
SOURCE=liftDrag/liftDrag.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/fabian/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/fabian/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/home/fabian/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/home/fabian/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels -I/home/fabian/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/fabian/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/liftDrag.o
liftDrag/liftDrag.C: In function 'Foam::scalar Foam::dragCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)':
liftDrag/liftDrag.C:46: error: redefinition of 'Foam::scalar Foam::dragCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)'
liftDrag/liftDrag.H:167: error: 'Foam::scalar Foam::dragCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)' previously defined here
liftDrag/liftDrag.C: In function 'Foam::scalar Foam::turbDragCoefficient(const Foam::autoPtr<foam::turbulencemodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)':
liftDrag/liftDrag.C:123: error: redefinition of 'Foam::scalar Foam::turbDragCoefficient(const Foam::autoPtr<foam::turbulencemodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)'
liftDrag/liftDrag.H:376: error: 'Foam::scalar Foam::turbDragCoefficient(const Foam::autoPtr<foam::turbulencemodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)' previously defined here
liftDrag/liftDrag.C: In function 'Foam::scalar Foam::lesDragCoefficient(const Foam::autoPtr<foam::lesmodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)':
liftDrag/liftDrag.C:211: error: redefinition of 'Foam::scalar Foam::lesDragCoefficient(const Foam::autoPtr<foam::lesmodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)'
liftDrag/liftDrag.H:463: error: 'Foam::scalar Foam::lesDragCoefficient(const Foam::autoPtr<foam::lesmodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)' previously defined here
liftDrag/liftDrag.C: In function 'Foam::vector Foam::liftCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)':
liftDrag/liftDrag.C:298: error: redefinition of 'Foam::vector Foam::liftCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)'
liftDrag/liftDrag.H:551: error: 'Foam::vector Foam::liftCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)' previously defined here
liftDrag/liftDrag.C: In function 'Foam::vector Foam::turbLiftCoefficient(const Foam::autoPtr<foam::turbulencemodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)':
liftDrag/liftDrag.C:376: error: redefinition of 'Foam::vector Foam::turbLiftCoefficient(const Foam::autoPtr<foam::turbulencemodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)'
liftDrag/liftDrag.H:630: error: 'Foam::vector Foam::turbLiftCoefficient(const Foam::autoPtr<foam::turbulencemodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)' previously defined here
liftDrag/liftDrag.C: In function 'Foam::vector Foam::lesLiftCoefficient(const Foam::autoPtr<foam::lesmodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)':
liftDrag/liftDrag.C:465: error: redefinition of 'Foam::vector Foam::lesLiftCoefficient(const Foam::autoPtr<foam::lesmodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)'
liftDrag/liftDrag.H:719: error: 'Foam::vector Foam::lesLiftCoefficient(const Foam::autoPtr<foam::lesmodel>&, const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&)' previously defined here
liftDrag/liftDrag.C: In function 'Foam::vector Foam::momentCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&, const Foam::scalar&)':
liftDrag/liftDrag.C:554: error: redefinition of 'Foam::vector Foam::momentCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&, const Foam::scalar&)'
liftDrag/liftDrag.H:807: error: 'Foam::vector Foam::momentCoefficient(const Foam::volVectorField&, const Foam::volScalarField&, const Foam::dimensionedScalar&, const Foam::word&, const Foam::vector&, const Foam::scalar&, const Foam::scalar&)' previously defined here
make: *** [Make/linuxGccDPOpt/liftDrag.o] Error 1
fabian@jacky:~/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing/incompressible$

zhoubinwx September 22, 2008 02:34

Hi, Fabin, Have you solved
 
Hi, Fabin,

Have you solved your problems about "redifinition"?

Would you mind if you give me any suggestions if you have already solved it?

Thank you.

Bin
(zhoubinwx at hotmail com)


All times are GMT -4. The time now is 04:22.