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

DyOneEqEddy negative nuSgs

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By henry
  • 1 Post By henry

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2009, 19:43
Default dyOneEqEddy (and perhaps other
  #1
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
dyOneEqEddy (and perhaps other dynamic models) depends upon a localized ck i.e.

nuSgs = ck(D) * sqrt(k) * delta

I've found that ck(D) can become negative leading to negative nuSgs.

How about bounding nuSgs e.g. in dyOneEqEddy.C after the k solve with somebody like

bound(nuSgs_, dimensionedScalar("zero", nuSgs_.dimensions(), 0.0));

Or upstream in the actual calculation of ck.

Of course, perhaps we're simply trying to reverse the cascade.

Michael
roth is offline   Reply With Quote

Old   March 3, 2009, 20:02
Default Hi Michael, Does the dyOneE
  #2
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Hi Michael,

Does the dyOneEqEddy model calculate one single global constant, ck, or is it a localized costant. If it is local then in the presence of backsactter ck can be negative ( and nuSgs also negative). One the other hand if the constant is a global one, then the backscatter << forward scatter and the chance of the constant going negative is small.

thanks

kumar
kumar2 is offline   Reply With Quote

Old   March 3, 2009, 20:34
Default Hi Kumar, dyOneEqEddy uses
  #3
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
Hi Kumar,

dyOneEqEddy uses a localized ck.

Hmmm backscatter. Good point though I'm seeing far too much of it. I wonder if the ck needs some form of limiting or stabilization.

Thanks, I'll investigate further.

Thanks
Michael
roth is offline   Reply With Quote

Old   March 4, 2009, 01:25
Default Hi Michael, I was looking
  #4
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Hi Michael,


I was looking at the code for calculating ck in dynOneEqEddy.C (i have also pasted it below


///////////////////////////////// Begin Code///////////////////////////////////////////////////////////
dimensionedScalar dynOneEqEddy::ck(const volSymmTensorField& D) const
{
volScalarField KK = 0.5*(filter_(magSqr(U())) - magSqr(filter_(U())));

volSymmTensorField LL = dev(filter_(sqr(U())) - sqr(filter_(U())));

volSymmTensorField MM =
delta()*(filter_(sqrt(k_)*D) - 2*sqrt(KK + filter_(k_))*filter_(D));

dimensionedScalar MMMM = average(magSqr(MM));

if (MMMM.value() > VSMALL)
{
return average(LL && MM)/MMMM;
}
else
{
return 0.0;
}
}

//////////////////////////////// End Code ///////////////////////////////////////////////////////////////


ck is average(LL && MM)/MMMM

and MMMM = average(magSqr(MM)); // Is this not a single number for the whole domain ?
average(LL && MM) // This also appears to be a single number for the whole domain ?

Thus ck is just one number for the whole domain. or am i wrong here ??

Any ideas as to how locDynOneEqEddy is different from dynOneEqEddy. I thought the dynOneEqn gives a globalized ck and locDynOneEqEddy gives a local ck. any comments ?

Thanks again.

kumar
kumar2 is offline   Reply With Quote

Old   March 4, 2009, 04:09
Default Hi Michael, Personally I am
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Hi Michael,

Personally I am not convinced by the argument that negative nuSgs represents back-scatter; it violates the entropy inequality. This is a big problem with localized dynamic models and the reason why I don't use them. Putting a clip in to stop nuSgs becoming negative is one "solution" but it's not very physical.

H
hua1015 likes this.
henry is offline   Reply With Quote

Old   March 4, 2009, 17:23
Default Hi Henry, What is the diffe
  #6
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Hi Henry,

What is the difference between the locDynOneEqEddy and dynOneEqEddy ?

Thanks a lot

Best regards

Kumar
kumar2 is offline   Reply With Quote

Old   March 4, 2009, 18:03
Default locDynOneEqEddy uses locally e
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
locDynOneEqEddy uses locally evaluated coefficients.

dynOneEqEddy uses globally averaged coefficients and is hence only formally applicable to homogeneous turbulence e.g. in a box with cyclic boundaries.

H
hua1015 likes this.
henry is offline   Reply With Quote

Old   March 4, 2009, 18:28
Default Hi Henry Thanks a lot for y
  #8
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Hi Henry

Thanks a lot for your reply.

Best Regards

Kumar
kumar2 is offline   Reply With Quote

Old   September 26, 2016, 20:49
Default negative nuSGS
  #9
New Member
 
louisiana
Join Date: Jan 2016
Location: baton rouge
Posts: 3
Rep Power: 10
sahar.haddadian1989 is on a distinguished road
Quote:
Originally Posted by henry View Post
Hi Michael,

Personally I am not convinced by the argument that negative nuSgs represents back-scatter; it violates the entropy inequality. This is a big problem with localized dynamic models and the reason why I don't use them. Putting a clip in to stop nuSgs becoming negative is one "solution" but it's not very physical.

H
Hi Henry,

do you know why we have these negative nuSGS in dynamic models? Thanks.
sahar.haddadian1989 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
negative RPM NTM FLUENT 1 September 12, 2008 01:47
negative vol roy FLUENT 3 April 27, 2004 10:38
what can cause the negative K? Lee Siemens 1 June 24, 2003 20:34
negative densities. Mihir Siemens 4 December 9, 2002 22:04
negative uds value despite zero bc Elmar Riesmeier FLUENT 3 June 11, 2001 22:22


All times are GMT -4. The time now is 07:39.