|December 21, 2016, 11:49||
Argument unit to evaluate cosine function ?
Join Date: Jun 2016
Posts: 18Rep Power: 2
Can any one help me in this ?
I have one equation where Theta = Foam::atan2(y,x) where y and x can be any value integer or floating type. Thus the value of the Theta will be in the range of -pi to + pi in radians as per the atan2 function.
Then i need to find out the value of cos(Theta).
Now my question is whether the argument Theta has to be in radians to get the cosine value or I need to convert the Theta from radians to degrees to get the cosine value ?
|December 21, 2016, 15:54||
Join Date: Oct 2010
Location: Leoben (Austria)
Blog Entries: 6Rep Power: 31
FOAM works with radians either than with degree. You also can make some simple checks. What does cos(pi) return or what does cos(90°) return within FOAM. Assuming that we would need degree, the second one should return 0.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Problem with parallel run of snappyHexMesh||Lorenzo92||OpenFOAM Native Meshers: snappyHexMesh and Others||5||April 15, 2016 04:12|
|-Xlinker --add-needed -Xlinker --no-as-needed||NH1994||OpenFOAM Programming & Development||7||December 31, 2014 11:24|
|swak4Foam installation problem||Claudio87||OpenFOAM||9||May 8, 2013 10:20|
|is internalField(U) equivalent to zeroGradient?||immortality||OpenFOAM Running, Solving & CFD||7||March 29, 2013 02:27|
|Droplet Evaporation||Christian||Main CFD Forum||2||February 27, 2007 07:27|