CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

How to call the primitive bcosb function

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

LinkBack Thread Tools Display Modes
Old   April 8, 2005, 10:46
Default I am not familiar with the pr
Join Date: Mar 2009
Posts: 51
Rep Power: 8
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++?

luckyluke is offline   Reply With Quote

Old   April 8, 2005, 11:33
Default try dalp=Foam::cos(alp)
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 8
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

liu is offline   Reply With Quote


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
Primitive Types jsquat OpenFOAM 0 June 18, 2007 13:12
primitive variable jj Main CFD Forum 0 November 6, 2006 10: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 08:22
how to call C++ function from fortran with MPI kenn Main CFD Forum 1 February 17, 2002 21:39

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