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

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

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

Like Tree1Likes
  • 1 Post By bastil

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2010, 05:57
Default <unresolved overloaded function type> - How to work with that
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
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
Elham likes this.
bastil is offline   Reply With Quote

Old   April 14, 2010, 03:57
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
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 15:45
Elements that limit the Courant number skabilan OpenFOAM Running, Solving & CFD 9 July 3, 2008 12:07
Installation of OF141dev on redhatEL 64bits problems with Allmake young OpenFOAM Installation 3 May 1, 2008 00:42
work function xqyuen Phoenics 0 September 5, 2003 04: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 16:17.