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

Newtonian Relaxation (Nudging)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2014, 22:30
Default Newtonian Relaxation (Nudging)
  #1
New Member
 
Join Date: Jun 2014
Posts: 2
Rep Power: 0
lannymac is on a distinguished road
I'm trying to implement nudging into OF. Nudging is described by: da/dt = G*(anudge - a) where a is the variable you want to nudge, anudge is what you are nudging it towards, and G is an inverse timescale.

Right now I'm using bouyantPimpleFoam and I want to nudge U, T, and P (or rho if need be). I'm having a lot of trouble implementing this into the code. Does anyone have any suggestions?

Cheers,
Landan
lannymac is offline   Reply With Quote

Old   November 21, 2014, 05:32
Default
  #2
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
I suppose this is similar to underrelaxation, but in this case you "relax" the field to some other value than the last calculation step. You'll have to add your modification of the field values somewhere, for example at the end of a time step or so.

Relaxation works like this:
U=f*U_n+(1-f)*U_(n-1)
with f = [0..1]
chriss85 is offline   Reply With Quote

Old   November 28, 2014, 15:33
Default
  #3
New Member
 
Join Date: Jun 2014
Posts: 2
Rep Power: 0
lannymac is on a distinguished road
Thanks chriss85.

I was more so thinking of nudging the simulation to some measured meteorology. Do you think you're method should still work best?


Cheers
lannymac is offline   Reply With Quote

Old   December 1, 2014, 01:52
Default
  #4
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
No, underrelaxation is only used to increase numerical stability. You might be able to look at some relaxation code to figure out how to do your nudging though.
chriss85 is offline   Reply With Quote

Reply

Tags
nudging, openfoam


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
buoyantPimpleFoam - no relaxation Tobi OpenFOAM Bugs 1 January 14, 2014 17:14
Multiphase and Non Newtonian fluid wanna88 FLUENT 0 May 27, 2013 00:09
Relaxation and convergence sammi Phoenics 0 March 20, 2008 03:32
Question on adjusting relaxation factor CFD Rookie Main CFD Forum 3 January 26, 2004 14:37
Relaxation factor Moon Siemens 1 June 13, 2003 11:13


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