|June 10, 2008, 08:41||
I have been looking into the i
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61Rep Power: 10
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?
|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|