|
[Sponsors] |
November 19, 2008, 18:07 |
Dear OpenFOAMers:
I would l
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Dear OpenFOAMers:
I would like to revise gen6DoF.C in interDyMFoam/sloshingTank3D6DoF. I tried to use Foam::abs(... Foam::sin(..)), but, got an error saying abs is not a member function of Foam. However, Foam::sin(..) works in the same .C file. Can someone tell me how to access abs function? Thanks! Pei |
|
November 19, 2008, 22:52 |
Hi Pei !
According to the p
|
#2 |
Member
Mathieu Olivier
Join Date: Mar 2009
Location: Quebec City, Canada
Posts: 77
Rep Power: 17 |
Hi Pei !
According to the programmer's guide (p. P-23), the Foam::abs() does not seem to exist. I guess that Foam::mag() would do the same job for a scalar... Mathieu |
|
November 20, 2008, 07:52 |
Thanks a lot Mathieu!
I mis
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 |
Thanks a lot Mathieu!
I missed this in the Programmer's guide. Pei |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
Problem with math equations | Jonas Larsson | CFD-Wiki | 1 | November 14, 2006 12:56 |
a math operator in UDF | lichun Dong | FLUENT | 7 | June 18, 2005 23:04 |
math description of CFD | John | Main CFD Forum | 2 | December 13, 2002 03:34 |
MATH * MATH + MATH - MATH | Mehdi BEN ELHADJ | Main CFD Forum | 2 | October 9, 2000 17:02 |