how to get current time as scalar?
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?
//read from runTime
//read from a field ,for example U
scalar t=U.mesh().time().value() ;
//read from mesh
thanks for the help. I got it working with time().value()
|All times are GMT -4. The time now is 11:49.|