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

surfaceVectorField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 15, 2011, 08:17
Default surfaceVectorField
  #1
Member
 
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 6
lulo is on a distinguished road
Hi everyone

I need to create a surfaceVectorField and what i do in my code is:


Code:
forAll(mesh_.boundary(),patchI)
{
      scalarField wallStress = mag(- (nut_.boundaryField()[patchI] + nu()) * mesh_.Sf().boundaryField()[patchI] ^ 
                   ((uGrad ^ mesh_.Sf().boundaryField()[patchI])
                    / mesh_.magSf().boundaryField()[patchI]) / mesh_.magSf().boundaryField()[patchI]); // tau (value)

      surfaceVectorField wallStress1 = - (nut_.boundaryField()[patchI] + nu()) * mesh_.Sf().boundaryField()[patchI] ^ 
                   (uGrad ^ mesh_.Sf().boundaryField()[patchI]); // tau (value)
}
wallStress works fine but when i add surfaceVectorField wallStress1, when i compile it i get this error:

Code:
kOmegaWilcox2006/wallOmegaWilcox2006I.H: In member function 'virtual void Foam::incompressible::RASModels::kOmegaWilcox2006::correct()':
kOmegaWilcox2006/wallOmegaWilcox2006I.H:15:51: error: conversion from 'Foam::tmp<Foam::Field<Foam::Vector<double> > >' to non-scalar type 'Foam::surfaceVectorField' requested
In file included from kOmegaWilcox2006/kOmegaWilcox2006.C:414:0:
kOmegaWilcox2006/wallOmegaWilcox2006I.H:15:51: error: conversion from 'Foam::tmp<Foam::Field<Foam::Vector<double> > >' to non-scalar type 'Foam::surfaceVectorField' requested
In file included from kOmegaWilcox2006/kOmegaWilcox2006.C:445:0:
kOmegaWilcox2006/wallOmegaWilcox2006I.H:15:51: error: conversion from 'Foam::tmp<Foam::Field<Foam::Vector<double> > >' to non-scalar type 'Foam::surfaceVectorField' requested
make: *** [Make/linux64GccDPOpt/kOmegaWilcox2006.o] Error 1
Does anyone know how to correct this????

thanks

Luca
lulo is offline   Reply With Quote

Reply

Tags
surfacevectorfield

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
laplacian nimasam OpenFOAM 7 May 9, 2011 16:06
fvc::div for surfaceVectorField ARTem OpenFOAM Programming & Development 0 March 16, 2011 05:18


All times are GMT -4. The time now is 16:35.