CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

<unresolved overloaded function type> - How to work with that

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 13, 2010, 06:57
Default <unresolved overloaded function type> - How to work with that
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 462
Rep Power: 10
bastil is on a distinguished road
Dear Foamers,

I am trying to modify the incompressible realisableKE-Model. Therefore, I need to work with the function rCmu:

Code:
volScalarField myVariable_ = 2 * pow(rCmu, 0.5)
Obviously, rCmu is of function type and can not be multipled with a scalar/volScalarField and set into power with a double variable.
I tried converting rCmu into a volScalarField and work with this:

Code:
volScalarField rCmu_ = this->rCmu;
but this does not seem to work at all:

Code:
error: conversion from ‘<unresolved overloaded function type>’ to non-scalar type ‘Foam::volScalarField’ requested
Any suggestions about how to handle this? Thanks.

Regards Bastian
bastil is offline   Reply With Quote

Old   April 14, 2010, 04:57
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 17
olesen will become famous soon enough
Quote:
Originally Posted by bastil View Post
Dear Foamers,

I am trying to modify the incompressible realisableKE-Model. Therefore, I need to work with the function rCmu:

Code:
volScalarField myVariable_ = 2 * pow(rCmu, 0.5)
Obviously, rCmu is of function type and can not be multipled with a scalar/volScalarField and set into power with a double variable.
Without checking, I would have thought that one of these should work:

Code:
volScalarField myVariable_ = 2 * pow(rCmu(), 0.5);

volScalarField myVariable_ = 2 * sqrt(rCmu());
or
Code:
volScalarField myVariable_ = 2 * pow(rCmu()(), 0.5)

volScalarField myVariable_ = 2 * sqrt(rCmu()());
What does the compiler report with any of these?
olesen is offline   Reply With Quote

Reply

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
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
Elements that limit the Courant number skabilan OpenFOAM Running, Solving & CFD 9 July 3, 2008 13:07
Installation of OF141dev on redhatEL 64bits problems with Allmake young OpenFOAM Installation 3 May 1, 2008 01:42
work function xqyuen Phoenics 0 September 5, 2003 05:22
How does STEP function work in CEL setup in CFX5.5 joseph CFX 1 April 5, 2002 23:06


All times are GMT -4. The time now is 13:21.