|
[Sponsors] |
Identifying the required equation for my field |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 27, 2022, 19:20 |
Identifying the required equation for my field
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Hi Everyone,
I hope you are all well. I have a question about the suitable equation for my field. You can see the following image showing a field named nu. As you see, I need to diffuse (interpolate) the values from the blue region to the red region, in order to smooth the values. The direction for this diffusion is shown by the yellow arrows. I have the set of cells containing the high and low nu values, separating them. However, I need to know what is the suitable way to have an smooth diffusion from the blue region to red region? Sincerely yours, Mohammad |
|
January 28, 2022, 03:34 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Use a linear interpolation over triangles, in a FE manner
|
|
January 29, 2022, 22:35 |
|
#3 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
||
January 30, 2022, 06:22 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
However, your interpolation requires only linear (if triangle) or bilinear lagrangian interpolation, it is very easy to do. The fundamental textbook about FE is by Olek C Zienkiewicz |
||
January 31, 2022, 21:47 |
|
#5 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
Thanks. But can you tell me it is something like Laplacian equation? I need to know what is the idea to diffuse the values? based on distance? |
||
February 1, 2022, 05:26 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
f_int= 0.5*(f1 + f2) You can assume f_exact= f_int + truncation truncation = - 0.5*(f1 + f2) + f_exact = - 0.5*h^2 * ( f1 - 2*f_exact + f2)/h^2 So that you see the appearence of a smoothing terms in the form of second derivatives |
||
February 2, 2022, 00:46 |
|
#7 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
So it is something like averaging method? How do you relate it to the neighboring cells? I can't find your point, as I need to have the values over the cells affected by the known values. In my opinion, it should be something like spreading over the cells using Laplacian equation. Then, having zero gradient BC can be a good option for this equation. Am I right? Last edited by mostanad; February 2, 2022 at 04:26. |
||
February 2, 2022, 04:56 |
|
#8 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
This an equivalent of the differential smooth filtering. You can just substitute the nodal value you compute by means of the resulting linearly interpolated value, resulting in a spreading. |
||
February 7, 2022, 00:20 |
|
#9 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
Yes, you are right but I require a different thing. The thing I need is to have a diffusive equation over the red domain, with giving the values at boundaries with zero gradient. The operation you mentioned is just an interpolation over the unknown cells and does not definitely satisfy the zero-gradient condition. Please help me with this requirement. |
||
February 7, 2022, 05:51 |
|
#10 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
This is not your original question. If you set an elliptic equation in the red region with homogeneus Neumann BC. on the circle, you have infinite solution. You can fix an arbitrary value. |
||
February 7, 2022, 19:46 |
|
#11 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
OK Filippo, Does high viscosity, like the above image, mean to be like an obstacle for the flow? Does it prevent the fluid to enter the higher viscosity domain? I can't understand what happens if the viscosity is high and low between two subdomains. |
||
February 8, 2022, 04:37 |
|
#12 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
No. The continuity constraint requires that V.n=0 on the surface of the high viscosity region. This is a condition on the mass flux and has nothing to do with the diffusion. Thus, you have to compute and check if that condition is fulfilled.
|
|
February 8, 2022, 06:04 |
|
#13 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
OK. But I only need to know what will be the effect if the viscosity over a set of cells will be high? You can see in the following video, when the viscosity is high in block, the flow is harder to penetrate. https://www.youtube.com/watch?v=ueMCheEpMrk |
||
February 8, 2022, 06:39 |
|
#14 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
Showing coloured movies means nothing. "Harder to penetrate" means also nothing ... You need to explicitly compute the continuity condition to check what happens. Also high viscosity flows (Stokes flows) remain coupled with the divergence-free constraint that you have to satisfy. High viscosity does not mean automatically a region that cannot be penetrated by a flux of mass. Consider a closed surface for the red region and evaluate your error in the continuity. Then refine the grid and check if the error decreases accordingly. This is a quantitative way to evaluate if your method works. |
||
February 8, 2022, 07:33 |
|
#15 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
|
||
February 8, 2022, 08:11 |
|
#16 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
If you didn't focus your problem I cannot help. You cannot have an aswer if you are not aware that Stokes flows are governed by a system of equations. Setting high viscosity in the momentum equations in a certain region does not satisfies automatically the continuity equation in that region (and along its boundary). Instead of posting colours, compute the mass equation to check if your method works. Compute the Div v field in the whole space, cell-by cell. Then plot v.n along the circle over the red region. |
||
February 8, 2022, 08:15 |
|
#17 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
|
||
February 8, 2022, 08:25 |
|
#18 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
“ Does high viscosity, like the above image, mean to be like an obstacle for the flow? Does it prevent the fluid to enter the higher viscosity domain?
I can't understand what happens if the viscosity is high and low between two subdomains.” Ask to your CFD expert but before that make your brain clearer when you post a question. |
|
February 8, 2022, 08:57 |
|
#19 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 279
Rep Power: 12 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why we need rhoEqn.H in rhoPimpleFoam | cryabroad | OpenFOAM Running, Solving & CFD | 20 | May 19, 2021 06:57 |
Improvements required for obtaining a good solution of 1D heat conduction equation | Deeds | Main CFD Forum | 0 | January 7, 2020 05:59 |
Steady Advection-diffusion equation, with scalar velocity field, openfoam | andrea5 | OpenFOAM Programming & Development | 0 | September 17, 2019 05:10 |
potential flows, helmholtz decomposition and other stuffs | pigna | Main CFD Forum | 1 | October 26, 2017 09:34 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |