CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Sintax conversion from 102 to 11 (http://www.cfd-online.com/Forums/openfoam-solving/60637-sintax-conversion-102-11-a.html)

chris March 16, 2005 13:14

Try DB() -> db()
 
Try DB() -> db()

chris March 16, 2005 13:16

To clarify, I mean: replace D
 
To clarify, I mean:
replace DB() with db()

henry March 16, 2005 13:19

Also you might find it useful
 
Also you might find it useful to read the ReleaseNotes that are provided with 1.1

panara March 17, 2005 06:00

replacing DB with db is not wo
 
replacing DB with db is not working, fortunately I got the right corrections from Hrvoje.

Thanks again...

I have another question, I have another application that is not working on 1.1

I get the following error message:

GradU.C: In function `int main(int, char**)':
GradU.C:104: error: 'struct Foam::volTensorField' has no member named 'xy'
make: *** [Make/linuxOpt/GradU.o] Error 1

it refers to the line:

volTensorField GradU
...
GradU.xy()

Can somebody help me?

Daniele

hjasak March 17, 2005 06:02

Try: gradU.component(tensor
 
Try:

gradU.component(tensor::XY)

Hrv

henry March 17, 2005 06:07

Did you application work in 1.
 
Did you application work in 1.0.2? volTensorField has never had a member function xy() so it should fail to compile in all versions of FOAM.

panara March 17, 2005 06:16

the modification gradU.comp
 
the modification

gradU.component(tensor::XY)

is working, thanks again!!

Yes, my application was working well in 1.0.2, I am sure.

Daniele

henry March 17, 2005 06:19

It doesn't make any sense to m
 
It doesn't make any sense to me that the .xy() function call for volTensorField would work in 1.1 but not in 1.0.2 given that the function isn't in eitehr version of the code. Do you still have a working installation of 1.0.2? Could you try compiling that piece of code and send me the details?

panara March 17, 2005 06:31

I apologize, I tryed to reco
 
I apologize,
I tryed to recompile my application in 1.0.2 and it is not working..

Since I used that application to get results before, the only explanation for my mistache could be that I changed the source file in that way without recompiling it.

I am very sorry.


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