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

What happen with this square root??

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 9 Post By darlopez

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 21, 2013, 12:30
Default What happen with this square root??
  #1
New Member
 
Darío López
Join Date: Oct 2011
Location: Vigo, Spain
Posts: 10
Rep Power: 14
darlopez is on a distinguished road
Hi everybody!

I want to write a simple operation in my solver:

Tension = zF*sqrt(1-(calcDistance0-0.5)/2.4*(calcDistance0-0.5)/2.4); + forceStatic*(calcDistance0-0.5)/2.4;

Where Tension, zF, calcDistance0 and forceStatic are scalars (static scalar ...)
When I try to compile I find this error:

solveForceBalance.H:154: error: call of overloaded 'sqrt(Foam::scalar)' is ambiguous
/usr/include/bits/mathcalls.h:157: note: candidates are: double sqrt(double)


Help me please!!!
darlopez is offline   Reply With Quote

 


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
RMS root mean square velocity Fluent C.C FLUENT 4 August 29, 2022 21:10
root mean square velocity Far CFX 12 June 1, 2016 08:58
Environment errors with .deb install and ubuntu 13.04 64 bit jonathanbyrn OpenFOAM Installation 14 September 26, 2013 05:22
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 14:45
root mean square John FLUENT 4 May 30, 2002 16:14


All times are GMT -4. The time now is 10:36.