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

Grid transformation to computational space

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2020, 13:17
Default Grid transformation to computational space
  #1
New Member
 
Join Date: May 2020
Posts: 1
Rep Power: 0
mech_eng_gr is on a distinguished road
Hello,

So I've got this problem that I need to solve the governing equations (x,y momentum and continuity with pressure correction (SIMPLE)) over a computational plane. But, I dont know how will I procceed from the physical plane to the computational one. I've been trying to figure this out from John D. Anderson's book but I can't find the solution.
The physical space is a duct with a 90degrees turn at some distance. I have the original grid with its nodes so I know the position of the nodes at the first place. The grid is compressed near the wall also.
How could I transform it into a computational space with η, ξ ? How can I transform the governing equations correctly with η and ξ ?

Thanks.
mech_eng_gr is offline   Reply With Quote

Old   May 31, 2020, 22:17
Default
  #2
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14
Eifoehn4 is on a distinguished road
Dear mech_eng_gr,

are you familiar with the chain rule?

Consider a field variable f as a function of f(x(\xi,\eta),y(\xi,\eta)). Now you can start from the physical side

\frac{ \partial f}{ \partial x} =  \frac{ \partial f}{ \partial \xi}  \frac{ \partial \xi}{ \partial x} +  \frac{ \partial f}{ \partial \eta}  \frac{ \partial \eta}{ \partial x},
\frac{ \partial f}{ \partial y} =  \frac{ \partial f}{ \partial \xi}  \frac{ \partial \xi}{ \partial y} +  \frac{ \partial f}{ \partial \eta}  \frac{ \partial \eta}{ \partial y},

resulting in

\begin{pmatrix}
f_x \\
f_y 
\end{pmatrix}= \begin{pmatrix}
\xi_x & \eta_x \\
\xi_y & \eta_y 
\end{pmatrix} \begin{pmatrix}
f_{\xi} \\
f_{\eta} 
\end{pmatrix}.

Or you start from the other side with

\frac{ \partial f}{ \partial \xi}    =  \frac{ \partial f}{ \partial x}  \frac{ \partial x}{ \partial \xi} +  \frac{ \partial f}{ \partial y}  \frac{ \partial y}{ \partial \xi}
\frac{ \partial f}{ \partial \eta}  =  \frac{ \partial f}{ \partial x}  \frac{ \partial x}{ \partial \eta} +  \frac{ \partial f}{ \partial y}  \frac{ \partial y}{ \partial \eta}

resulting in

\begin{pmatrix}
f_{\xi} \\
f_{\eta} 
\end{pmatrix}= \begin{pmatrix}
x_{\xi} & y_{\xi} \\
x_{\eta} & y_{\eta} 
\end{pmatrix} \begin{pmatrix}
f_{x} \\
f_{y} 
\end{pmatrix}.

Now since both sides must be identical it holds

\begin{pmatrix}
\xi_x & \eta_x \\
\xi_y & \eta_y 
\end{pmatrix} =  \begin{pmatrix}
x_{\xi} & y_{\xi} \\
x_{\eta} & y_{\eta} 
\end{pmatrix}^{-1} .

Here you may use the Cramer's rule for the right side.

Now all you have to do is simply to replace your derivative expressions with the relations above before discretization. Moreover after that you also have to discretize the covariant metric terms x_{\xi},  y_{\xi},  x_{\eta},  y_{\eta}.

Regards

Last edited by Eifoehn4; June 1, 2020 at 08:34.
Eifoehn4 is offline   Reply With Quote

Reply

Tags
computational, grid, transformation


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
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 05:37
transformation code from gambit grid dinhanh Mesh Generation & Pre-Processing 0 June 5, 2017 10:34
what is the computational formula of the grid spacings Δx+,Δy+,Δz+? Detian Liu Mesh Generation & Pre-Processing 2 April 26, 2013 12:48
GRID TO GRID INTERPOLATION in FLUENT calogero FLUENT 3 June 4, 2003 09:32
Non-uniform grid calculation Aspens Main CFD Forum 1 February 23, 2000 15:15


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