|
[Sponsors] |
February 12, 2014, 17:22 |
Hybrid Scheme
|
#1 |
Senior Member
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15 |
Dear all
I was trying to implement the hybrid scheme but I have faced some problems. I will appreciate any suggestions, for the implementation I have added three more parameter to the limiter function to be able to define the Peclect number. then I pick the Quick scheme as the template for new scheme. now the code is reading as : Code:
scalar limiter ( const scalar cdWeight, const scalar faceFlux, const typename LimiterFunc::phiType& phiP, const typename LimiterFunc::phiType& phiN, const typename LimiterFunc::gradPhiType& gradcP, const typename LimiterFunc::gradPhiType& gradcN, const vector& d, const vector& Sf, const scalar& magSf , const scalar Diffu ) const { scalar Pe = (faceFlux/magSf)*(d & Sf)/(Diffu*magSf); scalar QLimiter; QLimiter = pos(1-0.5*mag(Pe)); // Limit the limiter between upwind and downwind return QLimiter; } best Mahdi |
|
February 12, 2014, 18:16 |
|
#2 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
Dear Mahdi,
sorry if stating the obvious: prevent magSf and or Diffu from being zero or add SMALL to the divider Hope anyone else has a better solution Best regards Wouter |
|
February 12, 2014, 19:44 |
|
#3 |
Senior Member
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15 |
Dear Wouter
your suggestion will make it work. But then I'm just worried what will happen to boundaries ( possible place that Diffu and Magsf could be zero?!) best Mahdi |
|
February 13, 2014, 09:11 |
|
#4 | |
Senior Member
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15 |
now it runs
Im reading the Diffu in limitedscheme class in this way Quote:
mahdi |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to implement power law or hybrid schemes?? | kamkari | OpenFOAM Programming & Development | 13 | January 13, 2018 07:35 |
Hybrid Scheme for DES | iqbalsk8 | OpenFOAM Programming & Development | 1 | October 22, 2016 12:18 |
hybrid scheme | dsanthosh2 | FLUENT | 1 | July 3, 2012 01:27 |
Hybrid scheme activation | cheema | FLUENT | 0 | May 1, 2011 03:28 |
Hybrid discretization scheme | alice | FLUENT | 0 | July 15, 2004 22:47 |