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

How to read/write bool variable from boundary condition?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2014, 10:09
Default How to read/write bool variable from boundary condition?
  #1
Member
 
Petr Furmanek
Join Date: Jan 2012
Location: Faenza, Italy
Posts: 66
Rep Power: 14
petr.f. is on a distinguished road
Hi all,

I'd like to add write info option to my boundary condition. To this purpose I've added a private variable

bool printInfo_

to my BC class. Now, when I want to write it in the write function, I'm using

writeEntryIfDifferent<bool>(os, "printInfo", "true", printInfo_);

but this doesn't work. Do you know what is the right way to do it? Thanks.
petr.f. 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
How access member variable of a boundary condition Vesposo OpenFOAM Programming & Development 1 March 13, 2014 07:49
Dirichlet boundary condition for additional variable on the wall ftab CFX 13 January 27, 2013 12:24
Slip boundary condition what is inside normunds OpenFOAM Running, Solving & CFD 2 June 4, 2007 06:45
Additional variable - wall boundary condition flga CFX 2 May 30, 2007 03:14


All times are GMT -4. The time now is 12:05.