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

problem when i use wallShearstress divide dimensionedScalar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2015, 19:54
Default problem when i use wallShearstress divide dimensionedScalar
  #1
Member
 
Fei Fan
Join Date: Jun 2013
Location: NanJing, China
Posts: 54
Rep Power: 12
Fanfei is on a distinguished road
Hi Foamers:
I have a problem when i use wallShearstress divide dimensionedScalar.
------------------------code------------------------------
shields.boundaryField()[patchWallID]= mag(wallShearStress.boundaryField()[patchWallID])/(gr*d*ro_sand);
--------------------------------------------------------------------------------------
The error is that error: no match for ‘operator/’ (operand types are ‘Foam::tmp<Foam::Field<double> >’ and ‘Foam::dimensioned<double>’)
--------------------------------------------------------------------------------------
The wallshearstress is volVectorField and the gr,d,ro_sand are three dimensionedScalar, shields is a volScalarField with dimensionless. I have no idea what's wrong with this code, anyone who can help me, thanks!
Best regards
Fan Fei

Last edited by wyldckat; March 6, 2015 at 16:25. Reason: removed unrelated quote
Fanfei 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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 08:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 07:56.