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

How are gradients updated on ghost points?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2024, 04:28
Default How are gradients updated on ghost points?
  #1
Member
 
AN
Join Date: Jan 2024
Posts: 44
Rep Power: 3
KleinMoretti is on a distinguished road
Hello,
I didn't find the code about gradients updating on ghost points. In the CNEMOEulerSolver, there is the object "node_infty", which is defined by the following statement.

node_infty = new CNEMOEulerVariable(Pressure_Inf, MassFrac_Inf, Mvec_Inf,
Temperature_Inf, Temperature_ve_Inf,
1, nDim, nVar, nPrimVar, nPrimVarGrad,
config, FluidModel);
node_infty->SetPrimVar(0, FluidModel);

It just seems to specify the primitive variables information on node_infty. The gradient information seems to be set by the default value 0.

Under the path \SU2_CFD\include\gradients\..., I found the files that update the gradients, but they don't update the gradients on ghost points.

I would be very grateful if anyone could answer this for me!
KleinMoretti is offline   Reply With Quote

Old   November 19, 2024, 04:18
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 773
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Why do you need gradients on ghost points? The ghost points are introduced so you can compute gradients on boundary nodes. To compute boundary gradients, the halo nodes only need to contain values, not gradients.
bigfootedrockmidget is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] .STL: non-closed manifold surface giulio.topazio OpenFOAM Meshing & Mesh Conversion 32 November 25, 2016 03:15
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Reflected ghost values of a solid boundary quarkz Main CFD Forum 1 July 25, 2007 07:33
extreme points problem Lipo Wang Main CFD Forum 2 August 18, 2004 03:15
Can you help me about ghost points? yujun Main CFD Forum 1 May 21, 2004 04:21


All times are GMT -4. The time now is 21:20.