|
[Sponsors] |
Weights for 2-dimensional upwind finite difference scheme |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 7, 2018, 07:05 |
Weights for 2-dimensional upwind finite difference scheme
|
#1 |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Dear all,
Consider a 5x5 mesh of uniform spacing, with velocity U=[1,1]. What should be the restrictions on the weight values on the nodes for scheme to be an upwind scheme? I have tried to develop one such scheme. The figure below shows x-, and y-coordinates, and the weight values at each node. (Absolute values of weight are shown in the figure.) Are the weight values correct for an upwind scheme? Thank you. |
|
April 7, 2018, 08:44 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
I don't understand your post, you should write the discretization you adopted to see what you are doing. Is the scheme 1d and applied separately on x and y direction? what the order of the accuracy?
|
|
April 7, 2018, 08:54 |
|
#3 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Quote:
Thank you for replying. Regarding you statement about whether it is 1D or 2D, the scheme is 2D and is not applied separately on x and y direction. I am trying to create a new upwind scheme. The image attached in the first post shows the weight values at different points in a 2D stencil. For 1D stencils, the weight of upstream point should be greater than the weight of downstream point, provided that they are at same distance from ref. point, for an scheme to be classified as an upwinded scheme. The scheme I have developed satisfies this condition. My question is what are the conditions that a scheme should satisfy so that it can be classified as an upwind scheme in case of 2D. |
||
April 7, 2018, 09:01 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
That does not depend on the weight of the nodes but on the fact that the stencil is upwinded in a 2D way, according to both sign of u and v components. A transport condition at unitary Courant number should be implied. You should show the computational molecule around a point i,j. |
||
April 7, 2018, 09:18 |
|
#5 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Dear Sir,
Quote:
I guess what you mean is that I should include more points from upstream side in computational molecule than downstream side. This is not what I am trying to do. I am changing weights of points such that the weight of upstream points are greater in magnitude than the weights of downstream points. So, in this context, what should be the conditions that these weight values should satisfy? Thank you. |
||
April 7, 2018, 09:26 |
|
#6 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
I assume you are discretizing the equation
df/dt +u df/dx + v df/dy = 0 Therefore, it seems you are using a central stencil for d/dx and d/dy and using non-symmetric weight on the nodes, right? As I wrote, you need that your scheme is: - consistent - stable - transportive properties (check for v=0 and cfl=1 that you get the exact solution, then invert the case) However, I don't understand how you can get a real 2D molecule using FD. That would be possible if you adopt a FV formulation where the line integrals are involved, similarily to QUICK/QUICKEST schemes |
|
April 7, 2018, 09:40 |
|
#7 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Quote:
At last we are on same page. Yes, the weight values are non-symmetric and I am using a meshless method. When using non-symmetric weights for 1D problem, the weights for upstream points should be greater than weights for downstream points. This is the condition that weight values must satisfy in order to achieve upwinding. There must be similar conditions for non-symmetric 2D weights. What are those conditions? What should be the relation between weight values such that I can say that there is no cross-wind diffusion? Thank you so much for your time. |
||
April 7, 2018, 09:53 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
You should introduce terms like d2f/dxdy, d2f/dx2 and d2f/dy2 in a tensor anti-diffusion terms...That is somehow what happens in a Lax-Wendroff formulation.
However, I don't understand what you are doing as you wrote "meshless" method. Then, what about the time integration? |
|
April 8, 2018, 04:18 |
|
#9 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Quote:
The weights for discretization of spatial derivatives are obtained using the meshless method, whereas, fro time integration, I shall use Euler explicit method. |
||
April 8, 2018, 04:28 |
|
#10 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
Using first order explicit method I doubt you can get a numerically stable solution if the downwind weights are of the same order of magnitude of the upwind ones. The hyperbolic character of the equations requires some constraint about the direction of the characteristic lines. Then, you definitely need to assess that the scheme is consistent. Have you tried to do some numerical test? |
||
April 8, 2018, 05:16 |
|
#11 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Quote:
The weights for upstream and downstream are not of the same order of magnitude, at least for 1D. I have not tried any numerical test, however, I have solved a few numerical examples for 1D case with high Pe numbers, and the results are encouraging. For very high Pe number, the conventional meshless method results in spurious oscillations. The method I developed successfully suppressed those oscillations. Thank you. |
||
April 8, 2018, 05:21 |
|
#12 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
Sorry but this is not clear, you are solving a convection-diffusion problem or only a convection problem? If you are solving a convection-diffusion problem the weights you showed consider both effects. That implies the discretization of the laplacian that is not upwinded. |
||
April 8, 2018, 06:06 |
|
#13 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Quote:
I am solving highly convective convection-diffusion equation in 2 dimensions. The image in first post shows the weight values for first derivative only (d/dx). These weight values are upwinded (are they? This is the main question). For second derivatives, I will use symmetric weights, which are not difficult to obtain. |
||
April 8, 2018, 06:29 |
|
#14 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
To be honest, I don't think you are following any rigorous methodology in your approach, at least reading your posts. I don't know if I can be of help this way. Now you wrote your computational stencil is only for the df/dx. But, according to the convection equation this partial derivative can be upwinded only along the x-direction following the path (x-u*dt). Therefore, there is no theoretical reason to produce a 2D stencil for this term. The 2D stencil would appear if you consider the vector term v.Grad f and you consider the directional derivative df/ds along the vector direction (x -v*dt). A further approach where a 2D stencil appear is if you use the integral form of the equation and you reconstruct the numerical flux to be integrated along the FV face. You can see some upwinded schemes in Eq.s(25) in: https://www.researchgate.net/publica...mes_simulation |
||
April 8, 2018, 07:12 |
|
#15 | |
New Member
abcd efgh ijkl
Join Date: Oct 2015
Posts: 26
Rep Power: 11 |
Quote:
Thank you for replying to all my queries. I do agree with you that I am not following any systematic approach. About the second part of your reply,the scheme I am working on is an extension of local radial basis function in differential quadrature (LRBF-FD) method[1] for 2D convection-diffusion equation. This is a meshless/meshfree method and the domain is discretized using nodal/point cloud. To approximate any differential operator at point x_i, a computational molecule is obtained by drawing a circle/sphere around that point with centre at x_i with a given radius, say, r_0. All the points inside the circle/sphere are called neighbors of x_i, and these neighbors are used to find weight values. Irrespective of what the differential operator is, all the neighbors are used in the calculating the weights. One way to achieve upwinding in this scheme is to use a comet shape local support domain in which more upstream points compared to downstream points are used. This is done in reference 2. I hope things make a little more sense now. Right Sir? References: [1]Local radial basis function-based differential quadrature method and its application to solve two-dimensional incompressible Navier–Stokes equations https://www.sciencedirect.com/scienc...45782502006187 [2] A novel upwind-based local radial basis function differential quadrature method for convection-dominated flows - YL Chan https://www.sciencedirect.com/scienc...45793013004155 |
||
April 8, 2018, 07:23 |
|
#16 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
I don't use meshless methods and I am not an expert about them. What I wonder is about the mathematical consistence of your discretization. Specifically, if you get your 2D stencil for the d/dx derivative, the local truncation error (I am using a terminology for mesh-based discretization) would contain derivatives also along y. Therefore, you should assess that for dx and dy going to zero (and I don't know how you could relate this to a meshless method in a rigorous way, I suspect by tending the radius to zero) the local truncation error vanishes. However, considering the mathematical character of the convective equation, the upwinding is based on the characteristic lines idea. The informations travel along the trajectory dx/dt = v. Again, there is no mathematical reason to consider in the circonference of radius R around a point x the points outside the domain of dependence are used. What I would try to do is to upwind the center of the circumference. |
||
Tags |
finite difference method, finite differences, upwind diffrence |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
upwind scheme implementation | researcher | Main CFD Forum | 1 | January 16, 2016 04:28 |
Finite element vs. finite difference | Francisco Saldarriaga | Main CFD Forum | 23 | December 17, 2014 09:21 |
two dimensional upwind donor cell scheme for 2D continuity equation | coagmento | Main CFD Forum | 1 | December 1, 2014 05:13 |
Upwind Vs Central Difference | saurabh007 | Main CFD Forum | 1 | September 26, 2014 08:26 |
Upwind Vs Central Difference | saurabh007 | Main CFD Forum | 10 | September 25, 2014 15:24 |