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

Are there any input streams from standard console?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2022, 06:36
Default Are there any input streams from standard console?
  #1
New Member
 
Join Date: May 2020
Posts: 14
Rep Power: 6
ruanyg968tf is on a distinguished road
Dear foamers,
Are there any input stream wrappers for reading from standard input stream just like Info or Pout for information output? I didn't encounter such classes till now. I raised this post just out of curiosity. I would be grateful if you have any idea about this question.
ruanyg968tf is offline   Reply With Quote

Old   April 20, 2022, 13:19
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by ruanyg968tf View Post
Dear foamers,
Are there any input stream wrappers for reading from standard input stream just like Info or Pout for information output? I didn't encounter such classes till now. I raised this post just out of curiosity. I would be grateful if you have any idea about this question.

The `Sin` stream ? (defined in IOstreams.H). Note however with Info, it isn't actually a regular direct stream but a messageStream, which is how it also handles suppressing output on non-master processes.
olesen is offline   Reply With Quote

Old   April 21, 2022, 04:42
Default
  #3
New Member
 
Join Date: May 2020
Posts: 14
Rep Power: 6
ruanyg968tf is on a distinguished road
Hi Mark, Thanks for your reply. It seems that OpenFOAM doesn't use the 'Sin' stream directly. I'll have a close look at the class. Thank you again.
ruanyg968tf 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
Standard vs Actual Inlet Velocity as BC rajcoep.88 Main CFD Forum 3 February 8, 2016 09:47
cooler heat input DineshramBalaji FLUENT 4 May 17, 2014 09:04
reading profiles as input parameters? alechan Fluent UDF and Scheme Programming 0 March 14, 2014 06:10
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 11:45
ANSYS ICEM CFD: lsdyna input file creation problem Evan CFX 0 June 15, 2006 14:12


All times are GMT -4. The time now is 10:00.