|
[Sponsors] |
May 9, 2009, 23:08 |
how to get current time as scalar?
|
#1 |
Senior Member
|
Hi,
I am trying to get something like sin(time().timeName()) but timeName is of type word and I couldn't find a scalar equivalent.. Anmyone has a simple solution to this? thanks! -Louis |
|
May 10, 2009, 08:50 |
runTime.value()
|
#2 |
Senior Member
|
Hi Louis
just test //read from runTime scalar t=runTime.value(); //read from a field ,for example U scalar t=U.mesh().time().value() ; //read from mesh scalar t=mesh.time().value(); Junwei |
|
May 10, 2009, 11:01 |
|
#3 |
Senior Member
|
Hi Junwei,
thanks for the help. I got it working with time().value() -Louis |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 07:55 |
Changing deltaT of current time step | olwi | OpenFOAM Running, Solving & CFD | 1 | April 30, 2009 05:55 |
SimpleFoam k and epsilon bounded | nedved | OpenFOAM Running, Solving & CFD | 1 | November 25, 2008 21:21 |
FSI time | YY | CFX | 0 | April 25, 2008 13:38 |
How to read out time used for current solution | Angelo Sozzi | FLUENT | 1 | July 7, 2004 14:16 |