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

Weiss Preconditioning

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By mprinkey
  • 1 Post By Fabian82
  • 1 Post By samurai_01

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2015, 08:27
Smile Weiss Preconditioning
  #1
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13
AshwaniAssam is on a distinguished road
Dear all,

We are trying to create a 3D unstructured Density-Based Navier-Stokes Solver. We are using (steady state algorithm) weiss time-derivative preconditioning as mentioned in ref[1]. And Runge Kutta 3rd order-time stepping with global time-stepping. For Lid Driven problem at Re = 100 (Ma~1e-6), we are using a fixed time step of 5e-2. We are getting a wavy like plot as can be seen in the figure attached. The smooth curve is the reference result (Ghia et al). I am also attaching the contour of the same. Can anyone help, in describing the mistake I might be doing in the code. Is the error in the convection term, diffusion or preconditioning altogether. We have used 2nd order preconditioned roe scheme [1]. The gradient calculation is also done as per [1].

[1] Weiss, Jonathan M., and Wayne A. Smith. "Preconditioning applied to variable and constant density flows." AIAA journal 33.11 (1995): 2050-2057.

export.jpg

ucnt.jpg

with regards.
Ashwani

Last edited by AshwaniAssam; May 7, 2015 at 08:36. Reason: Tried to make the problem statement more clear.
AshwaniAssam is offline   Reply With Quote

Old   May 7, 2015, 11:32
Default Weiss-Smith Preconditioning
  #2
Member
 
A. S.
Join Date: Apr 2009
Location: Raipur (INDIA)
Posts: 54
Rep Power: 17
apoorv is on a distinguished road
It is a closed enclosure, what is the reference velocity
apoorv is offline   Reply With Quote

Old   May 7, 2015, 14:17
Default
  #3
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13
AshwaniAssam is on a distinguished road
It is closed. The reference velocity being the maximum velocity in the domain. so, it comes out to be the velocity of the moving lid, in this case 0.001021. And the Ur for preconditioning is calculated using the formulation given in ref[1].
AshwaniAssam is offline   Reply With Quote

Old   May 7, 2015, 16:39
Default
  #4
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
I can't really speak to the specific preconditioning scheme. But I will ask some questions that might be helpful. The scheme is formulated as:

dU/dt = F(U)

(1) This is a pseudotransient solver. What are your final residuals, ||F(U_final)||? If those are converged results, you have a problem in the core discretization schemes. I can't be more specific because this test case is designed to have pressure, viscous, and convective terms all in play.

(2) If you turn off the preconditioning and/or drop the timestep substantially, do you get the same/better results?

(3) How large are your variations in density? Is the divergence of the velocity field zero?

(4) You can try scaling back Re to increase viscous behavior. That may help verify that the viscous formulation is right.
samurai_01 likes this.
mprinkey is offline   Reply With Quote

Old   May 8, 2015, 01:40
Default
  #5
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13
AshwaniAssam is on a distinguished road
@mprinkey
Quote:
(1) This is a pseudotransient solver. What are your final residuals, ||F(U_final)||? If those are converged results, you have a problem in the core discretization schemes. I can't be more specific because this test case is designed to have pressure, viscous, and convective terms all in play.
A: These are not converged results, but they are taken, when residuals are of order 1e-3. Although this is a pseudo transient solver, but if we are using global time stepping,then I "think" we "should" get true solution (just my guess).
Quote:
(2) If you turn off the preconditioning and/or drop the timestep substantially, do you get the same/better results?
Turning off preconditioning gives unrealistic solution for such low Mach number, but gives accurate results for high Mach number( Flow over Wedge)Decreasing timesteps gives similar results(no drastic change).

Quote:
(3) How large are your variations in density? Is the divergence of the velocity field zero?
There are no variations in density. Will check divergence of velocity divergence and report back.

Quote:
(4) You can try scaling back Re to increase viscous behavior. That may help verify that the viscous formulation is right.
Will do this and report back. But have validated flow over flat plate case with Shapario et al's result. So, I am pretty much confident that the viscous part is correct.
What could be the sources of error in preconditioning? Can preconditioning survive at 1e-6 Mach numbers?And do we have to use CFL local timestepping, instead of using fixed global timestepping. I am trying these things out, and the speed of solver is very slow, so if someone has experience in this field, than any help in this regard will be appreciated.
AshwaniAssam is offline   Reply With Quote

Old   May 8, 2015, 09:09
Default
  #6
Member
 
A. S.
Join Date: Apr 2009
Location: Raipur (INDIA)
Posts: 54
Rep Power: 17
apoorv is on a distinguished road
Hi,

Based on previous experience, I have tested it till 0.001 Mach Number on airfoils and cascades, what is the medium you are using air or water. I am not sure it will work for such low mach numbers. But to my knowledge Preconditioned coupled solvers are preferred for natural convection, but I have never tested it.

Apoorv
apoorv is offline   Reply With Quote

Old   May 13, 2015, 03:39
Default
  #7
Senior Member
 
Ashwani
Join Date: Sep 2013
Location: Hyderabad
Posts: 154
Rep Power: 13
AshwaniAssam is on a distinguished road
Thank you for your reply!!

Can you please guide me how to construct the dissipation term? The paper says that given the equation:
Fc = (Fc_left+Fc_right-(Gamma*Aroe,p*(Q_right-Q_left)))*0.5
where Q is primitive variables vector.
Gamma: Preconditioning matrix.

It says that Fc_left and Fc_right are evaluated using reconstructed Left and Right Q vectors(using 2nd order reconstruction),and arithmetic averaging is used to evaluate Aroe,p and Gamma are evaluated using arithmetic averaging.

My question is, whether to evaluate Q_right - Q_left using arithmetic averaging, or using spatial reconstructed vectors? Can this be a source of error?
Also, the code works well for high speed flows (flow over wedge of 15 deg, at Ma = 2.5 and has been validated , with and without viscous flux), but will not give correct results for flow over bump at Ma = 0.1.
I have checked and rechecked the values time and again.
I am knee deep struck in this problem and don't know what to do, any directions will be appreciated.
AshwaniAssam is offline   Reply With Quote

Old   May 13, 2015, 09:57
Default
  #8
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
I suggest trying on a much simpler case with analytic solution (say, laminar channel), so that you can save time and you have a feedback on convergence/accuracy.
sbaffini is offline   Reply With Quote

Old   May 14, 2015, 08:18
Default
  #9
New Member
 
Join Date: Mar 2012
Posts: 8
Rep Power: 14
Fabian82 is on a distinguished road
Numerical flux terms where the upwinding is based on the characteristics of the compressible Euler/Navier Stokes equations are known to fail in the low Mach number regime. The numerical diffusion caused by the upwinding becomes excessive at low Mach numbers and produces wrong results (most likely tending towards the Re=0 case).

For Riemann solver based numerical flux terms, preconditioning of the dissipation may solve the problem. See e.g. http://arxiv.org/abs/1409.8289 and references therein. Note that this preconditioning is independent of the preconditioning of the pseudo time derivative which is just intended to accelerate the convergence towards a steady state.
Martin Hegedus likes this.
Fabian82 is offline   Reply With Quote

Old   May 15, 2015, 00:46
Default
  #10
Member
 
Join Date: Oct 2012
Posts: 46
Rep Power: 14
samurai_01 is on a distinguished road
Hi

The artificial dissipation terms (Gamma*Aroe,p*(Q_right-Q_left)) in the paper by weiss actually have a mixture of reconstructed values and values that are obtained by arithmetic averaging.
All the values that have Delta with them, try finding them out using Reconstruction, for rest of the values use arithmetic averaging.

Also, Fc_left and Fc_right are made using reconstruction.
Hope this solves your problem a bit!!
AshwaniAssam likes this.
samurai_01 is offline   Reply With Quote

Reply

Tags
compressible flow, preconditioning, weiss


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
ROE-TURKEL Preconditioning Akash C SU2 Shape Design 1 August 19, 2013 17:09
Roe implement about preconditioning ricklee Main CFD Forum 7 July 7, 2006 07:14
Re: Preconditioning for moving grids ganesh Main CFD Forum 0 April 6, 2006 07:18
implementing preconditioning clifford bradford Main CFD Forum 0 October 19, 2000 17:03
local preconditioning Manish Jaiman Main CFD Forum 3 May 1, 2000 09:31


All times are GMT -4. The time now is 00:29.