CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

discretization of convective terms of Spalart Allmaras equations

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By sbaffini
  • 1 Post By sbaffini
  • 2 Post By FMDenaro
  • 1 Post By selig5576

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2019, 07:34
Default discretization of convective terms of Spalart Allmaras equations
  #1
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 10
Abolfazl_cfd is on a distinguished road
Hi everyone.

I'm about to discretize the spalart allaras equation and add it into my compressible code based on Roe scheme.

I was wondering can i use a simple first or second upwind for discretization of convective terms of spalart allmaras like incompressible flow or I should use the method of Roe!?

thanks a lot
Abolfazl_cfd is offline   Reply With Quote

Old   March 28, 2019, 08:47
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
How would you define the Roe method for a scalar equation as the one for SA and how an upwind scheme?

They are the same for, say, unstructured schemes
sbaffini is offline   Reply With Quote

Old   March 29, 2019, 02:53
Default
  #3
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 10
Abolfazl_cfd is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
How would you define the Roe method for a scalar equation as the one for SA and how an upwind scheme?

They are the same for, say, unstructured schemes
Hi sbaffini

Actually I don't know. I know how i can use forward and backward discretization for convective term of spalart and this is all I know. I have no idea how I can use Roe for spalart!

actually maybe I'm not asking the right question. I'm not well familiar with turbulence models.
Abolfazl_cfd is offline   Reply With Quote

Old   March 29, 2019, 06:00
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Well, I tougth that, as you have a Roe scheme in your compressible code, you kind of knew it. For a general vector equation of the form:

\frac{\partial \textbf{W}}{\partial t} + \frac{\partial \textbf{F}\left(\textbf{W}\right)}{\partial \textbf{x}}=0

your Roe scheme for the flux \textbf{F} at the interface between cells L and R typically is:

\textbf{F} = \frac{1}{2}\left[\textbf{F}\left(\textbf{W}_L\right)+\textbf{F}\left(\textbf{W}_R\right)-\textbf{M}\left|\Lambda\right|\textbf{M}^{-1}\left(\textbf{W}_R-\textbf{W}_L\right)\right]

where:

\frac{\partial \textbf{F}}{\partial \textbf{W}} = \textbf{M}\left|\Lambda\right|\textbf{M}^{-1}

is the Jacobian of the flux (upwind altered by taking the absolute eigenvalues), the surface normal is assumed to point toward the R cell and the L and R states can be, in general, cell values (1st order) or suitably reconstructed values (2nd or higher order).

Now, if you apply this to a scalar equation for \phi with assigned mass flux, say m, which is the first component of \textbf{F} above, you get as flux:

F = \frac{1}{2}\left[m\left(\phi_L+\phi_R\right)-\left|m\right|\left(\phi_R-\phi_L\right)\right]

which actually is the upwind scheme in its most common version. In layman's terms, the point is that, for a scalar equation, you don't have a wave structure anymore, just a single eigenvalue, m.
Abolfazl_cfd likes this.
sbaffini is offline   Reply With Quote

Old   March 29, 2019, 06:23
Default
  #5
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Note that I assumed that you are solving the SA equation as decoupled from the main equations, as otherwise you have no option for the scheme.
Abolfazl_cfd likes this.
sbaffini is offline   Reply With Quote

Old   April 7, 2019, 09:48
Default
  #6
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 10
Abolfazl_cfd is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
Note that I assumed that you are solving the SA equation as decoupled from the main equations, as otherwise you have no option for the scheme.
Dear sbaffini

thank you for your kind reply.
I checked the "computational fluid dynamics Vo.II" written by Hoffmann.
I found that I can discrete the convective terms using a simple upwind scheme.

but now I have another question.
there is a term in Spalart Allmaras model: \sqrt{2S_{ij} S_{ij} }?
I know S_{ij} is S_{ij}=\frac{1}{2}(\frac{u_i}{x_j}-\frac{u_j}{x_i}) but I don't get it how i can expand \sqrt{2S_{ij} S_{ij} }!

is the expansion for 2D like this? \sqrt{2S_{ij} S_{ij} }=\sqrt{2*(\frac{1}{2}(V_x-U_y))^2  }?
How like is the expansion for 3D?

thanks a lot!

Last edited by Abolfazl_cfd; April 7, 2019 at 14:01.
Abolfazl_cfd is offline   Reply With Quote

Old   April 7, 2019, 12:46
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,877
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Abolfazl_cfd View Post
Dear sbaffini

thank you for your kind reply.
I checked the "computational fluid dynamics Vo.II" written by Hoffmann.
I found that I can discrete the convective terms using a simple upwind scheme.

but now I have another question.
there is a term in Spalart Allmaras model: \sqrt{2S_{ij} S_{ij} }?
I know S_{ij} is the strain rate tensor and S_{ij}=\frac{1}{2}(\frac{u_i}{x_j}-\frac{u_j}{x_i}) but I don't get it how i can expand \sqrt{2S_{ij} S_{ij} }!

is the expansion for 2D like this? \sqrt{2S_{ij} S_{ij} }=\sqrt{2*(\frac{1}{2}(V_x-U_y))^2  }?
How like is the expansion for 3D?

thanks a lot!



No, Sij is the symmetric part of the velocity gradient. But what is more, stands in that fact the a turbulence model for incompressible flows does not necessarily can be extended as it is to compressible flows.
Have a look here http://iccfd.org/iccfd7/assets/pdf/p...1902_paper.pdf
arjun and Abolfazl_cfd like this.
FMDenaro is offline   Reply With Quote

Old   April 7, 2019, 16:29
Default Discretization
  #8
Senior Member
 
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 11
selig5576 is on a distinguished road
Unless you absolutely need to use the Roe scheme, I would suggest the AUSM+ scheme (or one of the variants.) It's easier to implement, cheaper in computational cost, and can be more accurate than the Roe scheme (I can't think of a case of where it's not.)
Abolfazl_cfd likes this.
selig5576 is offline   Reply With Quote

Old   April 8, 2019, 03:54
Default
  #9
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 10
Abolfazl_cfd is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
No, Sij is the symmetric part of the velocity gradient. But what is more, stands in that fact the a turbulence model for incompressible flows does not necessarily can be extended as it is to compressible flows.
Have a look here http://iccfd.org/iccfd7/assets/pdf/p...1902_paper.pdf
Dear FMDenaro
Thank you for correcting my mistake.
I toke a look into the paper and found it really helpful. specially the part about negative values of source term in Spalart Allmaras.
Thank U.
Abolfazl_cfd is offline   Reply With Quote

Old   April 8, 2019, 03:59
Default
  #10
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 10
Abolfazl_cfd is on a distinguished road
Quote:
Originally Posted by selig5576 View Post
Unless you absolutely need to use the Roe scheme, I would suggest the AUSM+ scheme (or one of the variants.) It's easier to implement, cheaper in computational cost, and can be more accurate than the Roe scheme (I can't think of a case of where it's not.)
Dear selig5576

Thank you for your precious advice.
Actually I am working on immersed boundary method.
years ago I tried to add my immersed code to a AUSM solver but some instabilities near the immersed boundary started to grow and after several attempts I gave up upon AUSM. But for Roe scheme it works properly.
Thanks a lot.
Abolfazl_cfd is offline   Reply With Quote

Old   April 9, 2019, 04:47
Default
  #11
New Member
 
Abolfazl
Join Date: Oct 2016
Posts: 28
Rep Power: 10
Abolfazl_cfd is on a distinguished road
Quote:
Originally Posted by Abolfazl_cfd View Post
Hi everyone.

I'm about to discretize the spalart allaras equation and add it into my compressible code based on Roe scheme.

I was wondering can i use a simple first or second upwind for discretization of convective terms of spalart allmaras like incompressible flow or I should use the method of Roe!?

thanks a lot
Thank U all.

finally I could write the spalart allmaras code. Although instead of Roe scheme, I used E-CUSP scheme, but the results in channel flow in Re=10000 are satisfactory.
If anyone need the code, can send me an email. I would happy to share it and I hope it would help.
moosavi.abolfazl@gmail.com
Abolfazl_cfd 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
A problem about using the Spalart Allmaras model shiningkissss CFX 4 April 23, 2017 23:28
CFX Spalart Allmaras turbulence models aweizazuji CFX 9 September 24, 2013 11:53
Spalart Allmaras Paper Seroga Main CFD Forum 0 April 7, 2008 03:48
About discretization equations for Axisymmetric Dalitj Main CFD Forum 0 August 15, 2003 00:50
Turbulent terms in the MRF equations Francisco Saldarriaga Main CFD Forum 1 July 22, 1999 17:49


All times are GMT -4. The time now is 05:42.