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

Question on applying exponentially stretched grid in the vertical direction.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2023, 04:24
Post Question on applying exponentially stretched grid in the vertical direction.
  #1
New Member
 
DENGGEFEI
Join Date: Dec 2023
Posts: 16
Rep Power: 2
G. matton is on a distinguished road
hello,

I want to transform a code( Rans-2DV-WENO-SIMPLIC- sigma Coordinate) into a vertical streched version to statifity the y+ condition in deep waters. The original code use a uniform mesh in the vertical, the vertical grid number is 8000 to meet y+=100 in my simulation, which is too expensive. Therefore, I should apply the vertical stretched version.

But I have no idea how to use the exponentially stretched grid. Could some one be so nice to tell me how to deal with it? Is there any example to study?

I think there should be a transform function, so the compution domain is uniform, and the scheme used in the original code still works.

thanks in advance
G. matton is offline   Reply With Quote

Old   December 19, 2023, 07:42
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Why do you want to compute the discrete derivatives in the computational plane? Use the formula for non uniform grid.
FMDenaro is offline   Reply With Quote

Old   December 19, 2023, 08:50
Default
  #3
New Member
 
DENGGEFEI
Join Date: Dec 2023
Posts: 16
Rep Power: 2
G. matton is on a distinguished road
Hello FMDenaro, the original code apply a geometric multigrid with red-black SOR method to solve possion function, and the advection is sloved by the WENO scheme. In the computational plane(uniform grid)these scheme may work. This is why i want to do calculations in the computational plane. Very thanks to you.
G. matton is offline   Reply With Quote

Old   December 19, 2023, 09:47
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by G. matton View Post
Hello FMDenaro, the original code apply a geometric multigrid with red-black SOR method to solve possion function, and the advection is sloved by the WENO scheme. In the computational plane(uniform grid)these scheme may work. This is why i want to do calculations in the computational plane. Very thanks to you.
The transformation you asked is described in sec 3.1 Here
https://www.researchgate.net/publica...-uniform_grids

But you need to transform the equations from the physical to the computational plane. This is a topic you can find in the classic textbooks about structured grid generations.
FMDenaro is offline   Reply With Quote

Old   December 19, 2023, 10:03
Default
  #5
New Member
 
DENGGEFEI
Join Date: Dec 2023
Posts: 16
Rep Power: 2
G. matton is on a distinguished road
Thanks very much, FMDenaro.
I hope tp do the exponentially stretched grid in the sigma coordinate. In the physical domain, the bottom is the sea bed and the up is the free-surface. In the computational domain 1 (for the original code), the bottom is 0 and the up is 1. This transformation is clear and many model does this. However, when I want to use stretched grid in the computational domain 1, and by some transformation like sigma-transformation, the stretched grid will be uniform in the computational domain 2 (for the stretched code version), and the scheme used in the original code can be easily applied into the stretched one.
G. matton is offline   Reply With Quote

Old   December 19, 2023, 10:09
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,773
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by G. matton View Post
Thanks very much, FMDenaro.
I hope tp do the exponentially stretched grid in the sigma coordinate. In the physical domain, the bottom is the sea bed and the up is the free-surface. In the computational domain 1 (for the original code), the bottom is 0 and the up is 1. This transformation is clear and many model does this. However, when I want to use stretched grid in the computational domain 1, and by some transformation like sigma-transformation, the stretched grid will be uniform in the computational domain 2 (for the stretched code version), and the scheme used in the original code can be easily applied into the stretched one.



yes, but there is the fact you need the metric, that is the Jacobian for the derivatives.
FMDenaro is offline   Reply With Quote

Old   December 19, 2023, 21:59
Default
  #7
New Member
 
DENGGEFEI
Join Date: Dec 2023
Posts: 16
Rep Power: 2
G. matton is on a distinguished road
Thanks very much.I will learn from your suggestion
G. matton is offline   Reply With Quote

Reply

Tags
rans, stretched grid


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
On grid independent solution for pulsatile flow David FLUENT 5 March 25, 2022 03:33
Solution breaks on highly stretched grid crazyshock Main CFD Forum 0 October 16, 2017 16:26
Moving Body Grid Question Matt Main CFD Forum 5 September 13, 2004 00:45
Troubles modelling flow through a grid Hans Klaufus CFX 1 June 28, 2000 16:43
grid spacing question clifford bradford Main CFD Forum 5 November 10, 1999 18:40


All times are GMT -4. The time now is 23:18.