|
[Sponsors] |
October 20, 2008, 11:16 |
Hello everybody,
i´m using
|
#1 |
Member
Join Date: Mar 2009
Posts: 35
Rep Power: 17 |
Hello everybody,
i´m using the following equation tmp<fvvectormatrix> VEqn ( fvm::div(-phi,V) + (gradU & V) + alpha & V // (*) ); The problem is, that alpha and V are volVectorFields and (*) will be a scalar. Like in Programmers Guide for (*) i used fvm::Sp(alpha&V, I) // I initialvector In my createFields i use for I dimensionedVector I ( "I", dimensionSet(0, 0, 0, 0, 0, 0, 0), vector(1,1,1), ); But i get the following error message: createFields.H: In function 'int main(int char**)': createFields.H:110: error: expected primary-expression before ')' token AdjAlphaFoam_Vers2.C:81: error: no matching function for call to 'Sp(Foam::tmp<foam::geometricfield<double,> >, Foam::dimensionedVector&)' make: *** [Make/linuxGccDPOpt/AdjAlphaFoam_Vers2.o] Error 1 Is the "Sp(a,b)" operator the right solution for to use (*) in OpenFoam? For any answers i will be very happy! Thanks a lot, Khaled Totakhel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf function!! | shayej | FLUENT | 1 | February 5, 2009 08:37 |
Cp as a function | Mareike | CFX | 4 | April 8, 2008 04:55 |
If function | PANKAJ | CFX | 3 | January 13, 2008 03:53 |
Stream Function - Potential Function coordinates | harish | Main CFD Forum | 8 | June 25, 2005 13:18 |
Max y+ as a function of Re | Fred Uckfield | Main CFD Forum | 6 | October 17, 2001 11:15 |