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

How to call the primitive bcosb function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2005, 10:46
Default I am not familiar with the pr
  #1
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
luckyluke is on a distinguished road
I am not familiar with the programming art of OpenFOAM,yet. Today, I add a few lines in the 'main' function as follows:
1. scalar dalp,alp;
2. dalp=cos(alp);

But when I run 'wmake',the error is "call of overloaded `cos(Foam::scalar&)' is ambiguous".

What should I do? By the way,what are the main special features for OpenFOAM, compared to the original C/C++?

Thanks.
luckyluke is offline   Reply With Quote

Old   April 8, 2005, 11:33
Default try dalp=Foam::cos(alp)
  #2
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
try dalp=Foam::cos(alp)
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu 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
Primitive Types jsquat OpenFOAM 0 June 18, 2007 13:12
primitive variable jj Main CFD Forum 0 November 6, 2006 09:33
how to call the random function in Fluent Yong FLUENT 3 April 6, 2004 03:52
conservative-primitive ip Main CFD Forum 0 November 10, 2003 07:22
how to call C++ function from fortran with MPI kenn Main CFD Forum 1 February 17, 2002 20:39


All times are GMT -4. The time now is 22:01.