|
[Sponsors] |
October 3, 2024, 07:02 |
Boundary conditions
|
#1 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
How good are interpolating polynomials in CFD?
I'm working on a finite volume code, and I need to find the value of the density on the boundary and I only have the midpoint values. I thought about using the first three mid-point values to obtain a quadratic equation rho(x)=ax^2+bx+c, and then set x=0 to obtain the value at the boundary. Does this sound reasonable? |
|
October 3, 2024, 08:09 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
I used to compute the value on a fiinite volume surrounding the node on the boundary. |
||
October 3, 2024, 17:11 |
|
#3 |
Senior Member
|
I would start from what you know on the boundary. If density is involved in your calculation (i.e., it isn't constant), and you don't already know it in a point, I expect you to know some other variable from which density can be desumed, like pressure and temperature.
Unless you are actually working out how to apply your boundary conditions in the first place... in that case, as mentioned by Filippo, do not extrapolate at higher order, ever. In FV codes, if some variable needs to be extrapolated, it is typically copied from the nearest cell center. But it depends from which boundary condition you are working on and the kind of code. You need to tell more (kind of code, kind of bc, additional details on the boundary and scope of the task, etc.) in order to have a sharper suggestion. |
|
October 9, 2024, 12:29 |
|
#4 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
||
October 9, 2024, 12:34 |
|
#5 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
October 9, 2024, 12:38 |
|
#6 | |||
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
Quote:
Quote:
v_t=u_h, u_t=(P_L(v)+zeta(v)/v*u_h)_h Where v is specific volume and h denotes the amount of mass from x=0. I have stress-free conditions a P_L(v) and zeta(v) are functions of v. |
||||
October 9, 2024, 12:41 |
|
#7 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
This is the method I used.
|
|
October 9, 2024, 12:45 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
October 10, 2024, 05:27 |
|
#9 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
||
October 11, 2024, 10:46 |
|
#10 |
Senior Member
|
I am not accustomed to this kind of problem but, I can only notice that:
1) You don't actually need a bc on v, you need v on the boundary because it is needed by the bc on u. Indeed, the volume integrated equation for v only has u as flux terms. If you have u on boundaries you can evolve v in any cell, it seems to me. Is this interpretation correct? 2) I know nothing about sintering, but not having a bc is weird. I would look better at some literature on the matter to find out how bcs are applied here. 3) In any case, if there isn't a bc, extrapolating the nearest cell value is just as good as using the second order interpolation, but it has the added benefit of not introducing any new maxima or minima. Introducing new maxima or minima trough bcs is an almost certain way to divergence (altough, there might be cases where this doesn't happen). |
|
October 11, 2024, 12:55 |
|
#11 | ||||
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
Quote:
Quote:
Quote:
|
|||||
Tags |
finite volume method |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
reverse flow in centrifugal fan blades | kalm | CFX | 20 | December 2, 2023 07:25 |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |