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

surfacescalarfield

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2016, 04:14
Default surfacescalarfield
  #1
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 13
milad653279 is on a distinguished road
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
milad653279 is offline   Reply With Quote

Old   April 11, 2016, 07:25
Default
  #2
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
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
hk318i is offline   Reply With Quote

Reply


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
request for surfaceScalarField corrected from objectRegistry region0 failed immortality OpenFOAM Running, Solving & CFD 7 May 7, 2015 21:00
How to evaluate a surfaceScalarField face by face? Zheng.Zhi OpenFOAM 1 July 15, 2013 18:03
Function returning uniform surfaceScalarField lichmaster OpenFOAM 3 June 25, 2012 03:46
Very basic problem with surfaceScalarField definition feldy77 OpenFOAM 4 December 8, 2011 13:13
[OpenFOAM] surfaceScalarField in paraFoam danielr ParaView 1 October 5, 2009 02:08


All times are GMT -4. The time now is 17:42.