CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to create velocity profile using the previous time step ones

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ngcw1986
  • 1 Post By ngcw1986

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2012, 23:47
Default How to create velocity profile using the previous time step ones
  #1
New Member
 
fangming
Join Date: May 2011
Posts: 3
Rep Power: 15
ngcw1986 is on a distinguished road
Dear all,

I am doing a large eddy simulation case, and I run into a trouble to define inlet conditions, explicitly the turbulent velocity.

The turbulent velocity has such a formation: u'(t)=u'(t-delta_t)*exp(-t/T). For u'(t) is not a direct function of time, it causes a great pain to rebuild such a inlet turbulent velocity for me.

I tried a lot using groovyBC of swak4FOAM, used to extract the previous time step value of u@inlet but failed. I wondering anyone can help me out.

Considering my poor skill using swak4FOAM and little experience with openFOAM, I hope I did not propose a stupid questions!

Thank you in advance! Great regard and best wishes!
labyrinth01 likes this.
ngcw1986 is offline   Reply With Quote

Old   March 13, 2012, 19:00
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ngcw1986 View Post
Dear all,

I am doing a large eddy simulation case, and I run into a trouble to define inlet conditions, explicitly the turbulent velocity.

The turbulent velocity has such a formation: u'(t)=u'(t-delta_t)*exp(-t/T). For u'(t) is not a direct function of time, it causes a great pain to rebuild such a inlet turbulent velocity for me.

I tried a lot using groovyBC of swak4FOAM, used to extract the previous time step value of u@inlet but failed. I wondering anyone can help me out.

Considering my poor skill using swak4FOAM and little experience with openFOAM, I hope I did not propose a stupid questions!

Thank you in advance! Great regard and best wishes!
I don't really understand what you're trying to do. Anyway. The development version (the one downloaded by mercurial) has a function has a function oldTime(U) that gives you the value of a field at the last time-step. Use with care
gschaider is offline   Reply With Quote

Old   March 13, 2012, 22:53
Post
  #3
New Member
 
fangming
Join Date: May 2011
Posts: 3
Rep Power: 15
ngcw1986 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
I don't really understand what you're trying to do. Anyway. The development version (the one downloaded by mercurial) has a function has a function oldTime(U) that gives you the value of a field at the last time-step. Use with care

Thanks for your quick reply,Bernhard. Thanks very much!

Okay, well, it's time for me to improve my English. I am sorry for my vague expressions.

What I really want to do is using the old time step value of U at inlet to construct a "new" U for the new time step at the same inlet patch. I am not quite familar with the OpenFOAM variable and swak4FOAM functions and tried and failed may times.

It is excited to hear your news! May be I can download it and try this new feature.

Great regards and best wishes!
guanjiang.chen likes this.
ngcw1986 is offline   Reply With Quote

Reply

Tags
previous timestep, time dependent velocity, velocity inlet


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
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 10:03
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 11:23
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 05:35
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 05:01.