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

How to get the value of deltaT in OpenFOAM?

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

Like Tree2Likes
  • 1 Post By fumiya
  • 1 Post By fumiya

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2013, 02:31
Question How to get the value of deltaT in OpenFOAM?
  #1
New Member
 
anonymous
Join Date: Apr 2010
Posts: 14
Rep Power: 7
shchao is on a distinguished road
Dear FOAMers:
I want to use the value of deltaT, known as time steppness ,while calculation in fvMotionSolver lib.Does OpenFOAM define this varible?Or How can I calculate the time stepness, esspecially in interFoam?Thank you!

Last edited by shchao; March 2, 2013 at 02:57.
shchao is offline   Reply With Quote

Old   March 2, 2013, 03:44
Default
  #2
Senior Member
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 169
Rep Power: 7
fumiya is on a distinguished road
You can use runTime.deltaTValue().
songwukong likes this.
fumiya is offline   Reply With Quote

Old   March 2, 2013, 04:57
Exclamation Thank you for your reply but it seems there's a little problem
  #3
New Member
 
anonymous
Join Date: Apr 2010
Posts: 14
Rep Power: 7
shchao is on a distinguished road
Hi,Fumiya!
Thank you for your reply!
I'm using a piston-type wavemaker derived from oscillatingDisplacement in fvMotionSolver.When i add runTime.deltaTValue() into the code and excute the wmake libso command.It returns an error --'runTime' doesn't declare in this scope.I have include the setDeltaT.H in the file.
shchao is offline   Reply With Quote

Old   March 2, 2013, 05:56
Default
  #4
Senior Member
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 169
Rep Power: 7
fumiya is on a distinguished road
Hi shchao,

How about this->db().time().deltaTValue()?

Fumiya
songwukong likes this.
fumiya is offline   Reply With Quote

Old   March 2, 2013, 06:40
Thumbs up It works!Thank you!
  #5
New Member
 
anonymous
Join Date: Apr 2010
Posts: 14
Rep Power: 7
shchao is on a distinguished road
Hi,Fumiya
I've modified the code as you said. And it works.Thank you sincerely!
shchao is offline   Reply With Quote

Old   November 5, 2013, 08:59
Default
  #6
New Member
 
Jarvis
Join Date: Jun 2013
Posts: 10
Rep Power: 4
nbyjn is on a distinguished road
Quote:
Originally Posted by shchao View Post
Hi,Fumiya!
Thank you for your reply!
I'm using a piston-type wavemaker derived from oscillatingDisplacement in fvMotionSolver.When i add runTime.deltaTValue() into the code and excute the wmake libso command.It returns an error --'runTime' doesn't declare in this scope.I have include the setDeltaT.H in the file.
Hi shchao,
Glad to meet you! I'm also using a piston-type wavemaker by interDyMFoam.
But I have two questions:
1.At the starttime, the piston(left boundary) moves rightward, so the water level should rise. But in fact, the water goes down! Do you have the same question?
2.interDyMFoam change the timestep automaticly, so the slover runs slower and slower. It's so slow that it can't calculate for 0.1s in a whole night! Can you give me some advice?
Thank you very much!
nbyjn is offline   Reply With Quote

Old   October 12, 2014, 08:04
Default
  #7
New Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 29
Rep Power: 5
Ed R is on a distinguished road
Hi all,

I'm trying to use deltaT in a restraint on sixDoFRigidBodyMotion solver. I've tried both the runTime.deltaTValue() and db().time().deltaTValue() and neither runTime nor db are define in the scope.

Which .H files do I need to include in order to use runTime or is it significantly more difficult than that?

Thanks,

Ed
Ed R is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
feature or bug - deltaT issue lakeat OpenFOAM Running, Solving & CFD 26 November 1, 2012 03:19
openfoam 1.5-dev on opensuse10.3-64bit anon_c OpenFOAM 2 December 4, 2009 01:33
Issues with OpenFoam sanjibdsharma OpenFOAM 0 August 14, 2009 08:41
2009 OpenFOAM Summer School in Zagreb, Croatia hjasak OpenFOAM Announcements from Other Sources 0 March 27, 2009 13:08
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 02:18.