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

Limited schemes implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2008, 09:41
Default I have been looking into the i
  #1
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17
fabianpk is on a distinguished road
I have been looking into the implementation of TVD schemes in OpenFOAM, and I found something that I'm not entirely sure I understand.

When the function for the limiter variable is calculated in LimitedScheme.C (so before it is actually calculated) it goes into LimitFuncs.C where it does magSqr if the variable that's being interpolated is a vectorField. So, later on when the gradient is calculated, it is not the gradient of the field but the gradient of the mag-squared field.

The idea I have is that this is done because the later calculations of the limiter etc requires a scalar. And since it doesn't really matter if we use magSqr or mag of the field, the one that's cheaper to calculate is used.

Is my theory to why magsqr is used correct? Or is it some entirely different reason?

/Fabian
fabianpk is offline   Reply With Quote

Reply


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
temperature limited - absolute pressure limited Asashi FLUENT 3 July 18, 2014 10:51
temperature limited zhhuang FLUENT 4 August 23, 2011 03:44
temperature limited Y.harnane FLUENT 1 October 2, 2007 10:27
viscosity limited rick FLUENT 4 August 22, 2007 06:23
Reg :Temperature limited to 1e+05 GANESH FLUENT 4 March 11, 2006 01:12


All times are GMT -4. The time now is 22:12.