|
[Sponsors] |
January 4, 2013, 09:41 |
A realy easy variable - problem
|
#1 |
Member
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 15 |
Hey guys,
I am going crazy. Here the code: Code:
forAll(pSampledPlaneList, pI) { pSampledPlaneList[pI]().update(); fileName fname("plane_" + word(pI) + ".obj"); pSampledPlaneList[pI]().write(fname); } I think there is a problem with the variable type but I cannot solve it. Thanks for any hint... martin |
|
January 7, 2013, 11:43 |
|
#3 |
Member
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 15 |
thanks alot it works. But can you tell me how can I find out this the next time by my own? Just a few hints would be nice.
|
|
January 7, 2013, 14:25 |
|
#4 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
Not sure, I just know it, but I often use grep to try and find out if there's already something similar to what I want to do around. You could have done the following search:
Code:
grep -e "fileName.*(*.obj" -R . Code:
fileName cutsFile("hexCellLooper_" + name(cellI) + ".obj");
__________________
Laurence R. McGlashan :: Website |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem installing on 64bit with ver13 | jonititan | OpenFOAM Installation | 5 | May 12, 2006 19:42 |
Problem installing on 64bit with ver13 | jonititan | OpenFOAM Installation | 0 | April 28, 2006 06:45 |
Easy problem waiting online | joywe | OpenFOAM Installation | 8 | May 30, 2005 13:19 |
Periodic flow boundary condition problem | sudha | FLUENT | 3 | April 28, 2004 09:40 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |