CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

LiftDrag coefficient in LES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2008, 04:59
Default Hi everybody, i hope the qu
  #1
New Member
 
Fabian Korn
Join Date: Mar 2009
Location: Heilbronn, Germany
Posts: 21
Rep Power: 17
fabian_korn is on a distinguished road
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$
fabian_korn is offline   Reply With Quote

Old   September 22, 2008, 03:34
Default Hi, Fabin, Have you solved
  #2
Senior Member
 
ZHOU Bin
Join Date: Mar 2009
Location: Nanjing/Torino, Nanjing/Piemente, China/Italy
Posts: 164
Rep Power: 17
zhoubinwx is on a distinguished road
Send a message via ICQ to zhoubinwx Send a message via MSN to zhoubinwx Send a message via Skype™ to zhoubinwx
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)
zhoubinwx is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question to liftDrag hoochie OpenFOAM Post-Processing 29 September 19, 2014 04:38
LiftDrag tool nuovodna OpenFOAM Running, Solving & CFD 45 September 2, 2009 18:56
LiftDrag for 141 ryan_m OpenFOAM Running, Solving & CFD 2 August 24, 2009 22:26
Liftdrag calculation marco OpenFOAM Post-Processing 10 March 6, 2009 10:51
LiftDrag utility not available guggi OpenFOAM Running, Solving & CFD 1 August 2, 2006 13:36


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