|
[Sponsors] |
October 29, 2012, 08:57 |
How to express sin(w*t) in openFoam
|
#1 |
New Member
007
Join Date: Oct 2012
Posts: 9
Rep Power: 13 |
Hello everyone. I want to add sin(w*t) in my openFoam solver, but I have no idea about using the current time value. Can anyone help? Thank you!
|
|
October 29, 2012, 10:08 |
|
#2 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15 |
Does this work?
Code:
scalar t=runTime.value(); f=Foam::sin(w*t); |
|
October 29, 2012, 23:25 |
|
#3 |
New Member
007
Join Date: Oct 2012
Posts: 9
Rep Power: 13 |
It helps, thank you!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues with OpenFoam | sanjibdsharma | OpenFOAM | 0 | August 14, 2009 08:41 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 04:48 |
2009 OpenFOAM Summer School in Zagreb, Croatia | hjasak | OpenFOAM Announcements from Other Sources | 0 | March 27, 2009 12:08 |
Summer School on Numerical Modelling and OpenFOAM | hjasak | OpenFOAM | 5 | October 12, 2008 13:14 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |