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

(Puzzling) gradient assembly for art. comp. viscous fluxes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2016, 07:10
Default (Puzzling) gradient assembly for art. comp. viscous fluxes
  #1
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
Hi,

currently I am working through the code (primarily the NS-Solver in incompressible mode) and now I got stuck at the first lines that I don't understand.
I think I will need some help here, so maybe it's time for my first post..


I totally "agree" with the CNumerics::GetViscousArtCompProjFlux-routine (called by CNSSolver::Viscous_Residual via CAvgGradCorrectedArtComp_Flow::ComputeResidual), but the corresponding CNumerics::GetViscousArtCompProjJacs-routine puzzles me.
I wrote out the Mean_GradPrimVar-Variables in terms of conservative variables, but despite for the second term in the term for the gradient correction, which - after multiplying with the edge normal - contributes a factor that is itself named "factor" in GetViscousArtCompProjJacs, there were no promising matches.
On top of that, I can't figure out why - for viscous fluxes in this particular case - the i-th residual is dependent from other than the i-th conservative variable, as the code for the Jacobian assembly indicates.

If anyone could provide me with a hint on what's going on there, I would be really grateful. Thanks in advance!!

Regards, Ole
Sprotte is offline   Reply With Quote

Old   April 1, 2016, 08:47
Default
  #2
Member
 
Ole Burghardt
Join Date: Mar 2016
Location: Kiel, Germany
Posts: 60
Rep Power: 10
Sprotte is on a distinguished road
I found a partial answer to my question (though I'm not sure whether to edit my first post or to reply, but since it is not really a correction..)

I found out that gradients for flow and Jacobian calculations are obviously approximated differently. In my first attempt, I wanted to take the derivative of the Green-Gauß method (with subsequent averaging) and I ended up just finding the right coefficient for the correction term that was not calculated by Green-Gauß (but by "TSL", if that's correct?).

My other question remains open. Why is the vanishing flow divergence assumption for incompressible fluids only used for flow calculation, but not for the calculation of its Jacobian?

Thank you for any effort
Sprotte 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
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 14:42
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
Viscous Fluxes in Finite Volume Method CharlieTan84 Main CFD Forum 4 September 14, 2012 14:44
Viscous fluxes in a Riemann HLLC solver Bryce Sharman Main CFD Forum 5 July 8, 2009 23:29
Limited Gradients for Viscous fluxes and Sources andy Main CFD Forum 7 June 16, 2006 11:38


All times are GMT -4. The time now is 09:46.