CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to get current time using codeStream in b.c.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2016, 15:09
Default How to get current time using codeStream in b.c.
  #1
New Member
 
Carles
Join Date: Aug 2015
Posts: 4
Rep Power: 12
CarlesCQL is on a distinguished road
Dear Foamers,

I'm trying to set a time varying Qro in greyDiffusiveRadiationViewFactor b.c. using codeStream. My knowledge of C++ is very poor and I'm having difficulties with this. I've tried so far without succes:

Code:
time().value()
this->db().time().value() 
runTime().value()
Any idea?

Thank you all in advance!
CarlesCQL is offline   Reply With Quote

Old   July 14, 2022, 07:09
Default
  #2
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 18
chandra shekhar pant is on a distinguished road
Hello,

I am also struggling with the similar issue, if you have already resolved this, could you please share the solution, I also tried:
Code:
d.db().time().value()
, although this is not throwing error, but neither doing it's job to get the time. Any comment/suggestion would be a great help, thanks in advance.
chandra shekhar pant is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 09:22
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 22:03.