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

Limited schemes implementation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 10, 2008, 08:41
Default I have been looking into the i
  #1
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
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

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


All times are GMT -4. The time now is 19:00.