|
[Sponsors] |
August 15, 2011, 09:17 |
surfaceVectorField
|
#1 |
Member
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15 |
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) } 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 thanks Luca |
|
Tags |
surfacevectorfield |
|
|
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 |