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

linearUpwindV vs linearUpwind

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2015, 07:22
Default linearUpwindV vs linearUpwind
  #1
New Member
 
anand sudhi
Join Date: Sep 2015
Posts: 16
Rep Power: 11
anandsudhi is on a distinguished road
Hi,

the improved version of limited interpolation Schemes for vectors like limitedLinearV, linearUpwindV are different from the the original versions (linearUpwind and limitedLinear).

If anyone can tell me the extra modification done to linearUpwindV to account for direction of the field. I understand there is a new variable 'maxCorr' in the code. But i am not able to understand its implementation.

Also does this modification make linearUpwindV bounded with out the need of specifying limited gradients?

Any comments will be very much appreciated.

Thank you

Anand
anandsudhi is offline   Reply With Quote

Old   October 30, 2015, 07:26
Default the extract from the code
  #2
New Member
 
anand sudhi
Join Date: Sep 2015
Posts: 16
Rep Power: 11
anandsudhi is on a distinguished road
forAll(faceFlux, facei)
{


vector maxCorr;

if (faceFlux[facei] > 0.0)
{
maxCorr =
(1.0 - w[facei])*(vf[nei[facei]] - vf[own[facei]]);

sfCorr[facei] =
(Cf[facei] - C[own[facei]]) & gradVf[own[facei]];
}
else
{
maxCorr =
w[facei]*(vf[own[facei]] - vf[nei[facei]]);

sfCorr[facei] =
(Cf[facei] - C[nei[facei]]) & gradVf[nei[facei]];
}

scalar sfCorrs = magSqr(sfCorr[facei]);
scalar maxCorrs = sfCorr[facei] & maxCorr;

if (sfCorrs > 0)
{
if (maxCorrs < 0)
{
sfCorr[facei] = vector::zero;
}
else if (sfCorrs > maxCorrs)
{
sfCorr[facei] *= maxCorrs/(sfCorrs + VSMALL);
}
}
else if (sfCorrs < 0)
{
if (maxCorrs > 0)
{
sfCorr[facei] = vector::zero;
}
else if (sfCorrs < maxCorrs)
{
sfCorr[facei] *= maxCorrs/(sfCorrs - VSMALL);
}
}
}
anandsudhi is offline   Reply With Quote

Reply

Tags
limited, linearupwind, linearupwindv


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
A few simple questions about linearUpwind and limitedLinear chegdan OpenFOAM 28 March 30, 2024 03:44
strange processor boundary behavior with linearUpwindV akimbrell OpenFOAM Bugs 19 April 2, 2018 08:42
error on linearUpwind immortality OpenFOAM Running, Solving & CFD 3 May 22, 2013 19:20
rhoCentralFoam linearUpwind Andy_bm OpenFOAM Running, Solving & CFD 8 November 14, 2011 12:34
linearUpwind scheme in OpenFOAM 2.0.1 ??? cabul OpenFOAM 8 November 9, 2011 07:57


All times are GMT -4. The time now is 04:11.