|
[Sponsors] |
April 10, 2016, 05:14 |
surfacescalarfield
|
#1 |
Member
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14 |
Dear my friends,
I wanna take surfacescalarfield object. I use cout<<name of my parameter [patchi]: but it doesn't work. could anyone help me. I want to write components of surfacescalarfield object in a file.txt Best regards |
|
April 11, 2016, 08:25 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
std::cout<< stream cannot handle objects of type surfacescalarfield. Generally, it is better to use OF library instead of standard c++, such as Info <<.
In your case, you want to right to a file therefore, you are looking for something like standard fstream. Fortunately, OF has its implementation of this class which called OFstrram, you can find it here [LINK] and I'm sure this forum has many threads about this topic. Bw, Hassan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
request for surfaceScalarField corrected from objectRegistry region0 failed | immortality | OpenFOAM Running, Solving & CFD | 7 | May 7, 2015 22:00 |
How to evaluate a surfaceScalarField face by face? | Zheng.Zhi | OpenFOAM | 1 | July 15, 2013 19:03 |
Function returning uniform surfaceScalarField | lichmaster | OpenFOAM | 3 | June 25, 2012 04:46 |
Very basic problem with surfaceScalarField definition | feldy77 | OpenFOAM | 4 | December 8, 2011 14:13 |
[OpenFOAM] surfaceScalarField in paraFoam | danielr | ParaView | 1 | October 5, 2009 03:08 |