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

surfaceVectorField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2011, 09:17
Default surfaceVectorField
  #1
Member
 
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15
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


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
fvc::div for surfaceVectorField ARTem OpenFOAM Programming & Development 4 November 2, 2018 13:41
laplacian nimasam OpenFOAM 7 May 9, 2011 17:06


All times are GMT -4. The time now is 17:25.