CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

A realy easy variable - problem

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By l_r_mcglashan

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 4, 2013, 08:41
Default A realy easy variable - problem
  #1
Member
 
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 14
wernsen is on a distinguished road
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 am a having planeList and I want to write them down. It works but there is a problem with the file name. The output looks like this: plane_?.obj

I think there is a problem with the variable type but I cannot solve it.

Thanks for any hint...
martin
wernsen is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing on 64bit with ver13 jonititan OpenFOAM Installation 5 May 12, 2006 18:42
Problem installing on 64bit with ver13 jonititan OpenFOAM Installation 0 April 28, 2006 05:45
Easy problem waiting online joywe OpenFOAM Installation 8 May 30, 2005 12:19
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 08:40
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 13:24.